Frame 1
stop();
Instance of Symbol 34 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
gotoAndStop(PercentLoaded);
if (PercentLoaded == 100) {
_root.loadit.nextFrame();
}
}
Frame 2
screenwidth = 550;
screenheight = 400;
score = 0;
sceneid = "_root.game";
follow = "_root.game.alloy";
hitz = new Sound();
hitz.attachSound("hitz");
stop();
Instance of Symbol 46 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = (_root.game._x * 0.75);
}
Instance of Symbol 777 MovieClip "game" in Frame 2
onClipEvent (enterFrame) {
if (_root.killed >= _root.tenem) {
play();
}
}
Instance of Symbol 779 MovieClip in Frame 2
onClipEvent (load) {
lastscene = _root.sceneid;
scene_top = 0;
scene_left = 0;
scene_right = ((eval (_root.sceneid + "._width") - 1) - _root.screenwidth) * -1;
scene_bot = (eval (_root.sceneid + "._height") - _root.screenheight) * -1;
scalex = eval (_root.sceneid + "._xscale") / 100;
scaley = eval (_root.sceneid + "._yscale") / 100;
scene_x = eval (_root.sceneid + "._x");
scene_y = eval (_root.sceneid + "._y");
}
onClipEvent (enterFrame) {
if (key.isDown(87)) {
scene_x = scene_x - (10 * scalex);
} else if (key.isDown(81)) {
scene_x = scene_x + (10 * scalex);
}
follow_x = eval (_root.follow + "._x");
follow_y = eval (_root.follow + "._y");
xdist = int((follow_x * scalex) + scene_x);
ydist = int((follow_y * scaley) + scene_y);
pan = 0;
flow = int(50 / scalex);
flow2 = int(20 / scaley);
if (xdist > (int(_root.screenwidth / 2) + flow)) {
pan = ((xdist - int(_root.screenwidth / 2)) - flow) * -1;
} else if (xdist < (int(_root.screenwidth / 2) - flow)) {
pan = (int(_root.screenwidth / 2) - flow) - xdist;
} else if (xdist > (int(_root.screenwidth / 2) + 3)) {
pan = -1.5;
} else if (xdist < (int(_root.screenwidth / 2) - 3)) {
pan = 1.5;
}
if (pan > 20) {
pan = 20;
} else if (pan < -20) {
pan = -20;
}
scene_x = scene_x + pan;
pan = 0;
if (ydist > (int(_root.screenheight / 2) + 60)) {
pan = (ydist - int(_root.screenheight / 2)) * -1;
} else if (ydist < (int(_root.screenheight / 2) - 60)) {
pan = int(_root.screenheight / 2) - ydist;
}
if (pan > 20) {
pan = 20;
} else if (pan < -20) {
pan = -20;
}
if ((pan > 2) or (pan < -2)) {
scene_y = scene_y + pan;
}
if (scene_y > scene_top) {
scene_y = scene_top;
} else if (scene_y < scene_bot) {
scene_y = scene_bot;
}
if (scene_x > scene_left) {
scene_x = scene_left;
} else if (scene_x < scene_right) {
scene_x = scene_right;
}
if ((scene_y != last_y) or (scene_x != last_x)) {
last_x = scene_x;
last_y = scene_y;
Set(_root.sceneid + "._y", scene_y);
Set(_root.sceneid + "._x", scene_x);
}
}
Instance of Symbol 798 MovieClip "tcontrol" in Frame 2
onClipEvent (enterFrame) {
if (_root.harpooned != nill) {
_root.targeted = _root.harpooned;
}
if (eval (_root.targeted + ".health") < 1) {
gotoAndStop (1);
healthbar._xscale = (_root.game.alloy.health / _root.game.alloy.maxhealth) * 100;
name = "Alloy";
pic.gotoAndStop(1);
_root.targeted == null;
} else if (_root.targeted != null) {
gotoAndStop (1);
healthbar._xscale = (eval (_root.targeted + ".health") / eval (_root.targeted + ".maxhealth")) * 100;
name = eval (_root.targeted + ".name");
name2 = eval (_root.targeted + ".pic");
pic.gotoAndStop(name2);
}
}
Instance of Symbol 805 MovieClip in Frame 2
onClipEvent (enterFrame) {
gtime = _root.guntime / 9;
if (_root.gun == 1) {
bar._xscale = 100;
} else {
if (gtime < 1) {
gtime = 0;
}
bar._xscale = gtime;
}
}
Frame 3
stopAllSounds();
Symbol 15 Button
on (release) {
_root.nextFrame();
}
Symbol 17 MovieClip Frame 25
gotoAndPlay (17);
Symbol 20 Button
on (release) {
if (random(2) == 1) {
getURL ("http://www.mindchamber.com/alloyscores.html", "_blank");
} else {
getURL ("http://www.psychogoldfish.com/alloy/records.php", "_blank");
}
}
Symbol 27 Button
on (release) {
getURL ("http://www.psychogoldfish.com/features.php?item=joy2key", "_blank");
}
Symbol 28 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
if (!init) {
_root.combonum = 0;
if (_root.punch < 5) {
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop(1);
}
Set("../:chargelevel", 1);
charge = 0;
init = 1;
if (!key.isDown(68)) {
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop(1);
}
}
if (key.isDown(68) and (charge < 70)) {
_root.charging = 1;
if (key.isDown(83) and (../:chargelevel >= 2)) {
tellTarget ("..") {
gotoAndPlay ("harpoon");
};
}
charge++;
if (charge > 10) {
Set("../:chargelevel", 3);
} else if (charge > 3) {
Set("../:chargelevel", 2);
_root.blood = "y";
}
_root.punch = 15;
_root.game.alloy.phold = 0;
if (charge > 68) {
_root.punch = 0;
_root.game.alloy.phold = 67;
}
../:stop();
_root.combonum = 0;
} else {
../:play();
_root.charging = 0;
}
Symbol 88 MovieClip Frame 2
gotoAndPlay (1);
Symbol 89 MovieClip Frame 1
_root.game.alloy._x = _root.game.alloy._x + ((../:speed * ../:chargelevel) * _root.game.harpoon.mod);
Symbol 89 MovieClip Frame 2
gotoAndPlay (1);
Symbol 102 MovieClip Frame 1
gotoAndStop(../:chargelevel);
Symbol 112 MovieClip Frame 1
gotoAndStop(../:chargelevel);
Symbol 128 MovieClip Frame 1
gotoAndStop(../:chargelevel);
Symbol 155 MovieClip Frame 1
power = 0;
_root.resetcombo = 1;
_root.impx = 0;
_root.impy = 0;
_root.damage = 0;
_root.punch = 15;
speed = 0;
if (key.isDown(38)) {
gotoAndPlay (80);
} else if (_root.harpoon > 0) {
power = 1;
gotoAndPlay (46);
}
Symbol 155 MovieClip Frame 2
speed = 4;
Symbol 155 MovieClip Frame 3
_root.resetcombo = 0;
Symbol 155 MovieClip Frame 4
_root.impx = -10 + (14 * chargelevel);
_root.impy = 3 * (chargelevel * 2);
_root.impcharge = chargelevel;
_root.damage = 10 * chargelevel;
_root.atype = 1;
_root.acharge = chargelevel;
_root.combos = 0;
Symbol 155 MovieClip Frame 9
speed = 0;
Symbol 155 MovieClip Frame 15
speed = 5;
Symbol 155 MovieClip Frame 18
_root.impx = 10 * chargelevel;
_root.impy = 5 * chargelevel;
_root.impcharge = chargelevel;
_root.damage = 15 * chargelevel;
_root.atype = 2;
_root.acharge = chargelevel;
Symbol 155 MovieClip Frame 24
speed = 0;
Symbol 155 MovieClip Frame 31
speed = 7;
Symbol 155 MovieClip Frame 33
if (power == 1) {
_root.impx = 50;
_root.impy = 24;
_root.damage = 34;
chargelevel = 1;
_root.atype = 4;
_root.acharge = 2;
} else {
_root.impcharge = chargelevel;
_root.impx = 4 + (20 * chargelevel);
_root.impy = 10 + (5 * chargelevel);
_root.damage = 25 * chargelevel;
_root.atype = 3;
_root.acharge = chargelevel;
}
Symbol 155 MovieClip Frame 36
speed = 0;
Symbol 155 MovieClip Frame 45
_root.punch = 0;
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop(1);
Symbol 155 MovieClip Frame 48
_root.follow = "_root.game.harpoon";
Symbol 155 MovieClip Frame 49
_root.game.harpoon.play();
_root.game.harpoon.mod2 = 1;
Instance of Symbol 138 MovieClip in Symbol 155 MovieClip Frame 49
onClipEvent (unload) {
_root.harp = 0;
_root.harpooned = null;
}
Symbol 155 MovieClip Frame 50
if (_root.harpooned != null) {
gotoAndPlay (61);
_root.game.harpoon.mod2 = -1;
_root.follow = "_root.game.alloy";
}
Symbol 155 MovieClip Frame 51
if (_root.harpooned != null) {
gotoAndPlay (60);
_root.game.harpoon.mod2 = -1;
_root.follow = "_root.game.alloy";
}
Symbol 155 MovieClip Frame 52
if (_root.harpooned != null) {
gotoAndPlay (59);
_root.game.harpoon.mod2 = -1;
_root.follow = "_root.game.alloy";
}
Symbol 155 MovieClip Frame 53
if (_root.harpooned != null) {
gotoAndPlay (58);
_root.game.harpoon.mod2 = -1;
_root.follow = "_root.game.alloy";
}
Symbol 155 MovieClip Frame 54
if (_root.harpooned != null) {
gotoAndPlay (57);
_root.game.harpoon.mod2 = -1;
_root.follow = "_root.game.alloy";
}
Symbol 155 MovieClip Frame 56
_root.game.harpoon.mod2 = -1;
_root.follow = "_root.game.alloy";
Symbol 155 MovieClip Frame 62
_root.harp = 0;
_root.game.harpoon.gotoAndStop(1);
_root.harp = 0;
_root.harpooned = null;
Symbol 155 MovieClip Frame 63
power = 1;
speed = 0;
if (!key.isDown(68)) {
_root.punch = 0;
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop(1);
} else if (key.isDown(38)) {
gotoAndPlay (80);
} else {
gotoAndPlay (32);
}
Symbol 155 MovieClip Frame 83
speed = 4;
Symbol 155 MovieClip Frame 84
_root.impx = 7 * chargelevel;
_root.impy = 20 + (20 * chargelevel);
_root.impcharge = chargelevel;
_root.damage = 15 * chargelevel;
_root.atype = 5;
_root.acharge = chargelevel;
Symbol 155 MovieClip Frame 92
speed = 0;
Symbol 155 MovieClip Frame 96
_root.punch = 0;
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop(1);
Symbol 167 MovieClip Frame 3
_root.game.alloy.defense = "on";
Symbol 167 MovieClip Frame 11
_root.desperation = "y";
if (_root.game.alloy.health > 10) {
_root.game.alloy.health = _root.game.alloy.health - 5;
}
Symbol 167 MovieClip Frame 13
_root.desperation = "";
_root.game.alloy.defense = "";
Symbol 167 MovieClip Frame 17
_root.game.alloy.ani1 = "";
Symbol 206 MovieClip Frame 1
name = getProperty("../", _name);
if (random(10) < 5) {
gotoAndPlay (22);
}
Symbol 206 MovieClip Frame 21
_root.dclip = name;
tellTarget ("_root.game") {
removeMovieClip(_root.dclip);
};
Symbol 206 MovieClip Frame 42
_root.dclip = name;
tellTarget ("_root.game") {
removeMovieClip(_root.dclip);
};
Instance of Symbol 185 MovieClip in Symbol 207 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.game.alloy._x = _root.game.alloy._x - (7 * _root.game.harpoon.mod);
}
Symbol 207 MovieClip Frame 9
_root.game.alloy.ani1 = "n";
_root.game.alloy.ani3 = 0;
Symbol 225 MovieClip Frame 1
_root.unlock = 1;
_root.follow = "_root.game.alloy";
if (_root.game.alloy.airtime < 3) {
_root.game.alloy.gravity = -5;
}
_root.game.alloy.airborn = "y";
if ((_root.djump == "y") and (_root.game.alloy.airborn == "y")) {
_root.game.alloy.gravity = 0;
_root.game.alloy.airborn = "y";
gotoAndPlay (16);
} else if ((_root.game.alloy.jump != "y") or key.isDown(40)) {
gotoAndPlay (7);
_root.jetcharge = 0;
} else {
_root.game.alloy.gravity = -5;
_root.game.alloy.airborn = "y";
_root.jetcharge = 0;
}
Symbol 225 MovieClip Frame 2
_root.kickcombo = "y";
Symbol 225 MovieClip Frame 4
_root.game.alloy.gravity = -50;
_root.game.alloy.airborn = "y";
_root.game.alloy.airtime = 3;
Symbol 225 MovieClip Frame 5
_root.game.alloy.gravity = -50;
_root.game.alloy.airborn = "y";
Symbol 225 MovieClip Frame 7
_root.game.alloy.jump = "n";
_root.djump = "";
_root.jetcharge = 20;
Symbol 225 MovieClip Frame 8
if (_root.game.alloy.airborn == "y") {
gotoAndPlay (7);
}
Symbol 225 MovieClip Frame 9
_root.game.alloy.xm = 0;
_root.game.alloy.gravity = 0;
_root.jetcharge = 0;
Symbol 225 MovieClip Frame 10
_root.jetcharge = 0;
Symbol 225 MovieClip Frame 11
_root.jetcharge = 0;
Symbol 225 MovieClip Frame 12
_root.game.alloy.ani1 = "n";
_root.game.alloy.jump = "n";
Symbol 225 MovieClip Frame 16
_root.unlock = 1;
_root.follow = "_root.game.alloy";
if (_root.jetcharge < 10) {
gotoAndPlay (2);
}
Symbol 225 MovieClip Frame 20
_root.game.alloy.gravity = -50;
_root.game.alloy.airborn = "y";
Symbol 225 MovieClip Frame 26
_root.game.alloy.jump = "n";
gotoAndPlay (7);
Symbol 230 MovieClip Frame 1
_root.game.alloy.ani1 = "y";
_root.game.alloy.ani12 = "y";
Symbol 230 MovieClip Frame 3
_root.game.alloy.xm = _root.game.alloy.xm - (2 * _root.game.harpoon.mod);
_root.impx = 8;
_root.impy = 4;
_root.damage = 10;
_root.meattime++;
Symbol 230 MovieClip Frame 4
loops++;
if (loops > 1) {
_root.game.alloy.ani1 = "n";
_root.game.alloy.ani2 = "n";
}
Symbol 240 MovieClip Frame 1
_root.game.alloy.ani1 = "y";
_root.game.alloy.ani2 = "y";
Symbol 240 MovieClip Frame 4
tellTarget ("_root.game.alloy") {
icegun.stop("icegun");
icegun.start(0, 1);
};
Symbol 240 MovieClip Frame 5
_root.game.alloy.xm = _root.game.alloy.xm - (10 * _root.game.harpoon.mod);
tellTarget ("_root.game") {
_root.iceballz++;
duplicateMovieClip ("iceball", "ice" + _root.iceballz, 600 + _root.iceballz);
};
tellTarget ("_root.game.ice" + _root.iceballz) {
gotoAndPlay (2);
};
Symbol 240 MovieClip Frame 15
_root.game.alloy.ani1 = "n";
_root.game.alloy.ani2 = "n";
Symbol 250 MovieClip Frame 1
_root.game.alloy.ani1 = "y";
_root.game.alloy.ani2 = "y";
Symbol 250 MovieClip Frame 2
tellTarget ("_root.game.alloy") {
lightning.stop("lightning");
lightining.start(0, 1);
};
Symbol 250 MovieClip Frame 3
_root.game.alloy.xm = _root.game.alloy.xm - (5 * _root.game.harpoon.mod);
tellTarget ("_root.game") {
_root.iceballz++;
duplicateMovieClip ("iceball", "ice" + _root.iceballz, 600 + _root.iceballz);
};
tellTarget ("_root.game.ice" + _root.iceballz) {
gotoAndPlay (4);
};
Symbol 250 MovieClip Frame 9
_root.game.alloy.ani1 = "n";
_root.game.alloy.ani2 = "n";
Symbol 251 MovieClip Frame 2
_root.atype = 11;
_root.acharge = 1;
stop();
Instance of Symbol 230 MovieClip in Symbol 251 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.blood = "y";
}
onClipEvent (load) {
loops = 0;
gun = new Sound();
gun.attachSound("gun1");
gun.start(0, 99999);
}
onClipEvent (unload) {
_root.blood = "";
gun.stop("gun1");
}
Symbol 251 MovieClip Frame 3
_root.atype = 12;
_root.acharge = 1;
stop();
Symbol 251 MovieClip Frame 4
_root.atype = 13;
_root.acharge = 1;
stop();
Instance of Symbol 250 MovieClip in Symbol 251 MovieClip Frame 4
onClipEvent (enterFrame) {
_root.spark = "y";
}
onClipEvent (unload) {
_root.spark = "";
}
Symbol 270 MovieClip Frame 1
_root.game.alloy.ani1 = "y";
Symbol 270 MovieClip Frame 48
_root.records.gotoAndStop(3);
_root.gotoAndStop(3);
_root.game.gotoAndStop(100);
Symbol 273 MovieClip Frame 6
_root.game.alloy.ani1 = "";
Symbol 284 MovieClip Frame 1
_root.bike = 1;
Symbol 284 MovieClip Frame 20
_root.bike = null;
Symbol 286 MovieClip Frame 1
if (!init) {
if (_root.punch < 5) {
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop("jump");
}
Set("../:chargelevel", 1);
charge = 0;
init = 1;
if (!key.isDown(68)) {
_root.game.alloy.ani1 = "";
_root.game.alloy.ani.gotoAndStop("jump");
}
}
if (key.isDown(68) and (charge < 30)) {
if (key.isDown(83) and (../:chargelevel >= 2)) {
tellTarget ("..") {
gotoAndPlay ("harp");
};
}
charge++;
if (charge > 15) {
Set("../:chargelevel", 3);
} else if (charge > 7) {
Set("../:chargelevel", 2);
_root.blood = "y";
}
_root.punch = 15;
_root.game.alloy.phold = 0;
if (charge > 68) {
_root.punch = 0;
_root.game.alloy.phold = 27;
}
../:stop();
} else {
../:play();
}
Symbol 286 MovieClip Frame 2
gotoAndPlay (1);
Symbol 336 MovieClip Frame 1
_root.game.alloy.ani3 = "y";
_root.jump = "n";
_root.game.alloy.jump = "";
_root.impx = 0;
_root.impy = 0;
_root.note = "test";
chargelevel = 1;
_root.punch = 15;
if (key.isDown(38)) {
gotoAndPlay (21);
} else if (_root.harpoon > 1) {
gotoAndPlay (45);
}
Symbol 336 MovieClip Frame 3
_root.game.alloy.gravity22 = -32 - (5 * chargelevel);
_root.game.alloy.xm22 = (10 + (12 * chargelevel)) * _root.game.harpoon.mod;
_root.impx = 4 + (4 * chargelevel);
_root.impy = 35 + (4 * chargelevel);
_root.impcharge = chargelevel;
_root.damage = 10 * chargelevel;
_root.atype = 6;
_root.acharge = 1;
_root.combos = 0;
Symbol 336 MovieClip Frame 12
_root.game.alloy.gravity22 = -35 - (15 * chargelevel);
_root.game.alloy.xm22 = (4 * chargelevel) * _root.game.harpoon.mod;
_root.impx = 4 * chargelevel;
_root.impy = 32 * chargelevel;
_root.impcharge = chargelevel;
_root.damage = 10 * chargelevel;
_root.atype = 7;
_root.acharge = chargelevel;
Symbol 336 MovieClip Frame 25
_root.game.alloy.gravity22 = -40;
_root.game.alloy.xm22 = -10 * _root.game.harpoon.mod;
_root.impx = 1 * chargelevel;
_root.impy = 30 * chargelevel;
_root.damage = 20 * chargelevel;
_root.atype = 8;
_root.acharge = chargelevel;
_root.impcharge = chargelevel;
Symbol 336 MovieClip Frame 33
_root.game.alloy.ani3 = "n";
_root.game.alloy.ani.gotoAndStop("jump");
Instance of Symbol 138 MovieClip in Symbol 336 MovieClip Frame 45
onClipEvent (unload) {
_root.harp = 0;
_root.harpooned = null;
}
Symbol 336 MovieClip Frame 47
_root.game.harpoon.play();
_root.game.harpoon.mod2 = 1;
Symbol 336 MovieClip Frame 48
if (_root.harppp == 1) {
gotoAndPlay (60);
_root.game.harpoon.mod2 = -1;
}
Symbol 336 MovieClip Frame 49
if (_root.harppp == 1) {
gotoAndPlay (59);
_root.game.harpoon.mod2 = -1;
}
Symbol 336 MovieClip Frame 50
if (_root.harppp == 1) {
gotoAndPlay (58);
_root.game.harpoon.mod2 = -1;
}
Symbol 336 MovieClip Frame 51
if (_root.harppp == 1) {
gotoAndPlay (57);
_root.game.harpoon.mod2 = -1;
}
Symbol 336 MovieClip Frame 52
if (_root.harppp == 1) {
gotoAndPlay (56);
}
Symbol 336 MovieClip Frame 54
_root.game.harpoon.mod2 = -1;
_root.atype = 9;
_root.acharge = 2;
Instance of Symbol 335 MovieClip in Symbol 336 MovieClip Frame 54
onClipEvent (enterFrame) {
if (_root.harppp == 1) {
if (!init) {
init = 1;
_root.game.alloy.gravity = -20;
}
_root.game.alloy._x = _root.game.alloy._x + (100 * _root.game.harpoon.mod);
_root.bike = 1;
}
}
Symbol 336 MovieClip Frame 60
if (_root.harppp == 1) {
_root.game.alloy.gravity = -30;
_root.game.alloy.xm = -10 * _root.game.harpoon.mod;
}
_root.harppp = 0;
_root.game.alloy.ani3 = "n";
_root.game.alloy.ani.gotoAndStop("jump");
_root.harp = 0;
_root.game.harpoon.gotoAndStop(1);
_root.harp = 0;
_root.harpooned = null;
Symbol 344 MovieClip Frame 1
Symbol 345 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
_root.desperation = "";
_root.impx = 0;
_root.impy = 0;
_root.damage = 0;
_root.bike = 0;
_root.jump = 0;
_root.game.alloy.jump = 0;
_root.game.alloy.xm = 0;
_root.game.harpoon.gotoAndStop(1);
_root.harp = 0;
_root.harpooned = null;
_root.atype = 0;
}
Symbol 345 MovieClip Frame 2
_root.unlock = 1;
_root.follow = "_root.game.alloy";
_root.atype = 0;
Symbol 345 MovieClip Frame 3
_root.harp = 0;
Instance of Symbol 155 MovieClip "ani" in Symbol 345 MovieClip Frame 3
onClipEvent (enterFrame) {
_root.desperation = "";
_root.punching = 1;
hm = _root.game.harpoon.mod;
gh = _root.ay - 60;
gw = _root.ax + (10 * hm);
_root.exx = 9999;
_root.targeted = null;
E = 1;
while (E <= _root.enemies) {
if ((eval (("_root.game.enemy" + E) + ".health") > 0) and (eval (("_root.game.enemy" + E) + ".ani1") != "y")) {
ew = eval (("_root.game.enemy" + E) + ".ww");
eh = eval (("_root.game.enemy" + E) + ".hh");
ex = eval (("_root.game.enemy" + E) + ".xx");
ey = eval (("_root.game.enemy" + E) + ".yy");
if (((gh + 20) > (ey - eh)) and ((gh - 20) < ey)) {
exx = (ex - gw) * hm;
if (((exx > 0) and (exx < _root.exx)) and (exx <= (130 + (25 * chargelevel)))) {
_root.exx = exx;
_root.targeted = "_root.game.enemy" + E;
}
}
}
E++;
}
}
onClipEvent (unload) {
_root.impx = 0;
_root.impy = 0;
_root.damage = 0;
_root.punching = 0;
_root.harpooned = null;
}
Symbol 345 MovieClip Frame 5
_root.atype = 10;
_root.acharge = 3;
Symbol 345 MovieClip Frame 7
_root.game.alloy.ani3 = "n";
_root.game.alloy.ani2 = "n";
_root.harp = 0;
_root.impx = 0;
_root.impy = 0;
Instance of Symbol 225 MovieClip "ani" in Symbol 345 MovieClip Frame 7
onClipEvent (enterFrame) {
_root.impx = 0;
_root.impy = 0;
_root.damage = 0;
_root.bike = 0;
_root.game.harpoon.gotoAndStop(1);
_root.harp = 0;
_root.harpooned = null;
_root.atype = 0;
}
Instance of Symbol 251 MovieClip "gun" in Symbol 345 MovieClip Frame 8
onClipEvent (enterFrame) {
_root.usedgun = "y";
if (_root.kickz > 0) {
_root.kickcombo = "";
}
gotoAndStop(_root.gun + 1);
hm = _root.game.harpoon.mod;
gh = _root.ay - 60;
gw = _root.ax + (60 * hm);
_root.exx = 9999;
_root.targeted = null;
E = 1;
while (E <= _root.enemies) {
if (((eval (("_root.game.enemy" + E) + ".health") > 0) or (eval (("_root.game.enemy" + E) + ".airborn") == "y")) and (eval (("_root.game.enemy" + E) + ".ani1") != "y")) {
ew = eval (("_root.game.enemy" + E) + ".ww");
eh = eval (("_root.game.enemy" + E) + ".hh");
ex = eval (("_root.game.enemy" + E) + ".xx");
ey = eval (("_root.game.enemy" + E) + ".yy");
if (((gh + 20) > (ey - eh)) and ((gh - 20) < ey)) {
exx = (ex - gw) * hm;
if ((exx > 0) and (exx < _root.exx)) {
_root.exx = exx;
_root.targeted = "_root.game.enemy" + E;
}
}
}
E++;
}
}
onClipEvent (unload) {
_root.freeze = 0;
_root.zap = 0;
_root.game.alloy.ani2 = "n";
}
Symbol 345 MovieClip Frame 9
_root.jump = "n";
Symbol 345 MovieClip Frame 10
_root.unlock = 1;
_root.follow = "_root.game.alloy";
Symbol 345 MovieClip Frame 11
_root.game.spfx2._y = _root.ay - 60;
_root.game.spfx2._x = _root.ax;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx2", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
_root.game.alloy.gravity = -10;
_root.game.alloy.xm = 6 * _root.amod;
Symbol 345 MovieClip Frame 12
_root.unlock = 1;
_root.follow = "_root.game.alloy";
Symbol 345 MovieClip Frame 13
_root.harppp = 0;
if (_root.game.alloy.airtime < 3) {
_root.game.alloy.gravity = -25;
_root.game.alloy.airtime = 3;
}
Instance of Symbol 336 MovieClip "ani" in Symbol 345 MovieClip Frame 13
onClipEvent (enterFrame) {
_root.punching = 1;
_root.jump = "n";
if (_root.game.alloy.airborn != "y") {
_root.game.alloy.ani.gotoandStop("jump");
}
hm = _root.game.harpoon.mod;
gh = _root.ay - 60;
gw = _root.ax + (10 * hm);
_root.exx = 9999;
_root.targeted = null;
E = 1;
while (E <= _root.enemies) {
if ((eval (("_root.game.enemy" + E) + ".health") > 0) and (eval (("_root.game.enemy" + E) + ".ani1") != "y")) {
ew = eval (("_root.game.enemy" + E) + ".ww");
eh = eval (("_root.game.enemy" + E) + ".hh");
ex = eval (("_root.game.enemy" + E) + ".xx");
ey = eval (("_root.game.enemy" + E) + ".yy");
if (((gh + 20) > (ey - eh)) and ((gh - 20) < ey)) {
exx = (ex - gw) * hm;
if (((exx > 0) and (exx < _root.exx)) and (exx <= (130 + (25 * chargelevel)))) {
_root.exx = exx;
_root.targeted = "_root.game.enemy" + E;
}
}
}
E++;
}
}
onClipEvent (unload) {
_root.punching = 0;
_root.harpooned = null;
}
Symbol 345 MovieClip Frame 14
_root.follow = "_root.game.alloy";
Instance of Symbol 344 MovieClip in Symbol 345 MovieClip Frame 14
onClipEvent (enterFrame) {
_root.game.alloy.ani1 = "y";
_root.game.alloy.ani2 = "y";
_root.game.alloy.ani3 = "y";
unfreeze++;
if (unfreeze > 45) {
_root.frozen = 0;
tellTarget ("..") {
gotoAndStop (1);
};
}
}
onClipEvent (unload) {
_root.game.alloy.ani1 = "";
_root.game.alloy.ani2 = "";
_root.game.alloy.ani3 = "";
_root.frozen = 0;
tellTarget ("../ice") {
play();
};
}
Symbol 346 MovieClip Frame 1
_root.game.harpoon.mod = -1;
Symbol 346 MovieClip Frame 2
_root.game.harpoon.mod = 1;
stop();
Symbol 347 MovieClip Frame 1
m = 6;
mod2 = 0;
_root.harp = 0;
_root.harpooned = null;
stop();
Symbol 347 MovieClip Frame 2
if ((_root.harppp == 1) and (_root.game.alloy.airborn == "y")) {
gotoAndStop (1);
_root.harp = 0;
_root.harpooned = null;
} else {
_root.harp = 1;
_x = (_x + ((83 * mod) * mod2));
_y = (_root.game.alloy._y - 60);
_root.harpx = _x;
_root.harpy = _y;
if (_root.harpooned != null) {
if (_root.game.alloy.airborn != "y") {
Set(_root.harpooned + "._x", _x);
}
}
m--;
}
Symbol 347 MovieClip Frame 3
gotoAndPlay (2);
Symbol 347 MovieClip Frame 11
gotoAndPlay (10);
Symbol 368 MovieClip Frame 8
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
if (init != 1) {
init = 1;
life = 0;
y = _root.game.alloy._y - 60;
x = _root.game.alloy._x + (140 * _root.game.harpoon.mod);
dirmod = _root.game.harpoon.mod;
_root.follow = "_root.game." + _name;
if (dirmod > 0) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
}
life++;
if (life > 45) {
_root.follow = "_root.game.alloy";
}
if (life > 200) {
removeMovieClip(this);
_root.follow = "_root.game.alloy";
}
x = x + (60 * dirmod);
_x = x;
_y = y;
NN = 0;
N = 0;
w = _width / 2;
h = _height;
while (N <= _root.enemies) {
if (N == 0) {
Nta = "alloy";
ani = ".ani";
} else {
Nta = "enemy" + N;
ani = ".dir.ani";
}
if (eval (("_root.game." + Nta) + ".health") > 0) {
xx = eval (("_root.game." + Nta) + ".xx");
yy = eval (("_root.game." + Nta) + ".yy");
ww = eval (("_root.game." + Nta) + ".ww");
if (eval (("_root.game." + Nta) + ".pic") == "Pitz4") {
ww = ww - (60 * dirmod);
}
hh = eval (("_root.game." + Nta) + ".hh");
if (((((x + w) > (xx - ww)) and ((x - w) < (xx + ww))) and (y > (yy - hh))) and (y < yy)) {
tellTarget (("_root.game." + Nta) + ani) {
gotoAndStop ("frozen");
};
if (Nta == "alloy") {
_root.frozen = 1;
}
if (eval (("_root.game." + Nta) + ".pic") == "Pitz4") {
Set(("_root.game." + Nta) + ".stun", 50);
Set(("_root.game." + Nta) + ".timer", 50);
Set(("_root.game." + Nta) + ".mode", "stand");
dirmod = dirmod * -1;
x = xx + (140 * dirmod);
if (dirmod > 0) {
dir.gotoAndStop(2);
tellTarget (("_root.game." + Nta) + ".dir") {
gotoAndStop (2);
};
} else {
dir.gotoAndStop(1);
tellTarget (("_root.game." + Nta) + ".dir") {
gotoAndStop (1);
};
}
_x = x;
} else {
Set(("_root.game." + Nta) + ".gravity", -15);
Set(("_root.game." + Nta) + ".airborn", "y");
Set(("_root.game." + Nta) + ".ai", "off");
Set(("_root.game." + Nta) + ".xm", 30 * dirmod);
Set(("_root.game." + Nta) + ".health", eval (("_root.game." + Nta) + ".health") - 25);
Set(("_root.game." + Nta) + ".frozen", 1);
Set(("_root.game." + Nta) + ".combos", eval (("_root.game." + Nta) + ".combos") + 1);
Set(("_root.game." + Nta) + ".points", eval (("_root.game." + Nta) + ".points") + 15);
Set(("_root.game." + Nta) + ".combotime", eval (("_root.game." + Nta) + ".combotime") + 2);
removeMovieClip(this);
_root.follow = "_root.game.alloy";
}
}
}
N++;
}
play();
Symbol 370 MovieClip Frame 3
gotoAndPlay (2);
Symbol 370 MovieClip Frame 4
if (init != 1) {
init = 1;
life = 0;
y = _root.game.alloy._y - 60;
x = _root.game.alloy._x + (140 * _root.game.harpoon.mod);
dirmod = _root.game.harpoon.mod;
_root.follow = "_root.game." + _name;
if (dirmod > 0) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
}
life++;
if (life > 30) {
_root.follow = "_root.game.alloy";
}
if (life > 100) {
removeMovieClip(this);
}
x = x + (90 * dirmod);
_x = x;
_y = y;
NN = 0;
N = 1;
w = _width / 2;
h = _height;
while (N <= _root.enemies) {
if (N == 0) {
Nta = "alloy";
ani = ".ani";
} else {
Nta = "enemy" + N;
ani = ".dir.ani";
}
if (eval (("_root.game." + Nta) + ".pic") != null) {
xx = eval (("_root.game." + Nta) + ".xx");
yy = eval (("_root.game." + Nta) + ".yy");
ww = eval (("_root.game." + Nta) + ".ww");
hh = eval (("_root.game." + Nta) + ".hh");
if (((((x + w) > (xx - ww)) and ((x - w) < (xx + ww))) and (y > (yy - hh))) and (y < yy)) {
tellTarget (("_root.game." + Nta) + ani) {
gotoAndStop ("zapped");
};
Set(("_root.game." + Nta) + ".gravity", -55);
Set(("_root.game." + Nta) + ".airborn", "y");
Set(("_root.game." + Nta) + ".ai", "off");
Set(("_root.game." + Nta) + ".xm", 20 * dirmod);
Set(("_root.game." + Nta) + ".health", eval (("_root.game." + Nta) + ".health") - 20);
if (eval (("_root.game." + Nta) + ".combotimer") < 1) {
Set(("_root.game." + Nta) + ".combos", eval (("_root.game." + Nta) + ".combos") + 1);
Set(("_root.game." + Nta) + ".combotime", eval (("_root.game." + Nta) + ".combotime") + 2);
Set(("_root.game." + Nta) + ".combotimer", 10);
_root.score = _root.score + 200;
}
}
}
N++;
}
play();
Symbol 370 MovieClip Frame 5
gotoAndPlay (4);
Symbol 373 MovieClip Frame 1
exists = "y";
_root.game.alloy.base_floor = _y;
nextFrame();
Symbol 373 MovieClip Frame 2
stop();
Symbol 392 MovieClip Frame 1
name = getProperty("../", _name);
if (random(10) < 5) {
gotoAndPlay (22);
}
Symbol 392 MovieClip Frame 21
_root.dclip = name;
tellTarget ("_root.game") {
removeMovieClip(_root.dclip);
};
Symbol 392 MovieClip Frame 42
_root.dclip = name;
tellTarget ("_root.game") {
removeMovieClip(_root.dclip);
};
Symbol 393 MovieClip Frame 1
if (_root.game.efx < 1) {
stop();
}
Symbol 393 MovieClip Frame 2
if (_root.game.harpoon.mod == 1) {
nextFrame();
} else {
stop();
}
Symbol 394 MovieClip Frame 1
if (_root.game.efx < 1) {
stop();
}
Symbol 394 MovieClip Frame 2
if (_root.game.harpoon.mod == 1) {
nextFrame();
} else {
stop();
}
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
if (hits < 2) {
txt.txt = ("Collision!\r" + points) + " Points";
} else {
txt.txt = (((hits + " x Collision Bonus!") + newline) + points) + " Points";
}
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
if (hits < 2) {
txt.txt = ("Rundown!\r" + points) + " Points";
} else {
txt.txt = (((hits + " x Rundown Bonus!") + newline) + points) + " Points";
}
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 2
if (points > _root.records.bestcomboscore) {
_root.records.bestcomboscore = points;
}
if (hits < 2) {
txt.txt = points + " Points";
} else {
txt.txt = (((hits + " x Combo!") + newline) + points) + " Points";
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
txt.txt = ((("Meat Grinder x " + hits) + newline) + points) + " Points";
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 2
if (hits > _root.records.bestenemyhangtime) {
_root.records.bestenemyhangtime = hits;
}
txt.txt = (((hits + " Second Hangtime!") + newline) + points) + " Points";
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 2
if (airtime > _root.records.besthangtime) {
_root.records.besthangtime = airtime;
}
if (hits < 2) {
txt.txt = (((airtime + " Second Hangtime!") + newline) + points) + " Points";
} else {
txt.txt = (((((((airtime + " Second Hangtime!") + newline) + "x ") + hits) + " Enemies") + newline) + points) + " Points";
}
Symbol 415 MovieClip Frame 10
_root.game.sfx3.gotoAndStop(1);
Symbol 416 MovieClip Frame 1
if (_root.game.efx < 1) {
stop();
}
Symbol 416 MovieClip Frame 2
if (_root.game.harpoon.mod == 1) {
nextFrame();
} else {
stop();
}
Symbol 422 MovieClip Frame 1
Set("../../../:looking", 1);
if (../../../:stun > 0) {
gotoAndPlay (60);
}
Symbol 422 MovieClip Frame 19
checker = random(10) + 1;
if (checker > 7) {
gotoAndPlay (45);
Set("../../../:looking", -1);
} else if (checker < 4) {
gotoAndPlay(random(10) + 5);
Set("../../../:looking", 1);
}
Symbol 422 MovieClip Frame 29
Set("../../../:looking", -1);
Symbol 422 MovieClip Frame 49
checker = random(10) + 1;
if (checker > 7) {
gotoAndPlay (20);
} else if (checker < 4) {
gotoAndPlay(random(10) + 30);
Set("../../../:looking", 0);
}
Symbol 422 MovieClip Frame 59
gotoAndPlay (1);
Symbol 422 MovieClip Frame 70
if (../../../:stun > 0) {
gotoAndPlay (60);
}
Symbol 430 MovieClip Frame 27
_root.ashot = "y";
_root.ashotdmg = 5;
_root.ashotmod = ../../../:dirmod;
_root.ashotx = getProperty("../../../", _x) + (36 * _root.ashotmod);
_root.ashotrange = 300;
_root.ashoty = getProperty("../../../", _y) - 60;
Symbol 430 MovieClip Frame 31
Set("../../../:ai", "on");
Symbol 442 MovieClip Frame 4
lastgrav = ../../../:gravity;
Symbol 442 MovieClip Frame 6
if (../../../:gravity < lastgrav) {
gotoAndPlay (1);
} else if (../../../:airborn == "y") {
gotoAndPlay (5);
lastgrav = ../../../:gravity;
}
Symbol 442 MovieClip Frame 21
if (../../../:health < 1) {
stop();
}
Symbol 442 MovieClip Frame 22
if (../../../:airborn == "y") {
gotoAndPlay (5);
lastgrav = ../../../:gravity;
}
Symbol 442 MovieClip Frame 26
tellTarget ("..") {
gotoAndStop (1);
};
Symbol 449 MovieClip Frame 1
Set("../../../:stun", 10);
if (random(10) < 5) {
gotoAndPlay (8);
}
Symbol 449 MovieClip Frame 7
tellTarget ("..") {
gotoAndStop (1);
};
Symbol 466 MovieClip Frame 31
tellTarget ("..") {
gotoAndStop ("hit");
};
Symbol 468 MovieClip Frame 1
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
Symbol 468 MovieClip Frame 2
gotoAndPlay (1);
Symbol 478 MovieClip Frame 1
Set("../../:ai", "on");
stop();
Symbol 478 MovieClip Frame 3
Set("../../:ai", "off");
Symbol 478 MovieClip Frame 4
Set("../../:ai", "off");
Symbol 478 MovieClip Frame 5
Set("../../:ai", "off");
freeze = 1;
Instance of Symbol 456 MovieClip "frozen" in Symbol 478 MovieClip Frame 5
onClipEvent (unload) {
if (../:freeze == 1) {
tellTarget ("../ice") {
play();
};
Set("../:freeze", 0);
}
}
Symbol 478 MovieClip Frame 6
Set("../../:ai", "off");
Symbol 478 MovieClip Frame 7
Set("../../:ai", "off");
Symbol 478 MovieClip Frame 8
Set("../../:ai", "on");
Symbol 479 MovieClip Frame 1
Set("../:dirmod", -1);
stop();
Symbol 479 MovieClip Frame 2
Set("../:dirmod", 1);
Symbol 480 MovieClip Frame 1
if (!init) {
dir.gotoAndStop(random(2) + 1);
health = 100;
maxhealth = 100;
bodydmg = 20;
gundmg = 10;
init = 1;
name = "Hood Ratz";
pic = "Ratz";
N = 1;
NN = 0;
_root.tenem++;
while (NN == 0) {
if (eval (("_root.game.enemy" + N) + ".health") < 1) {
_name = ("enemy" + N);
if (N > _root.enemies) {
_root.enemies = N;
}
NN = 1;
}
N++;
}
}
if (health < oldhealth) {
if (beenhit != "y") {
_root.attackz++;
}
beenhit = "y";
}
if ((beenhit == "y") and (airborn == "y")) {
hangbonus++;
} else {
if (int(hangbonus / 30) > 1) {
points = int(hangbonus / 30) * 100;
_root.game.hangtxt.hits = int(hangbonus / 30);
_root.game.hangtxt.points = points;
_root.game.hangtxt._y = _root.game.alloy._y - 64;
_root.game.hangtxt._x = _x;
_root.game.hangtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
hangbonus = 0;
beenhit = "";
}
ww = (_width / 2) - 5;
hh = _height;
xx = _x;
yy = _y;
max_right = _root.game.alloy.max_right;
max_left = _root.game.alloy.max_left;
if ((airborn != "y") and (health < 1)) {
combotime = 0;
if (_root.meattime < 2) {
_root.grinder++;
_root.meatx = _x;
}
}
if (combotime > 0) {
if ((airborn != "y") and (_root.charging != 1)) {
combotime = combotime - 1;
}
} else if (combos > 0) {
if (points > 0) {
_root.game.combotxt.hits = combos;
points = (points * combos) * 10;
_root.game.combotxt.points = points;
_root.game.combotxt._y = _root.game.alloy._y;
_root.game.combotxt._x = _x;
_root.game.combotxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
points = 0;
combos = 0;
}
if (((((((_root.game.alloy.airborn != "y") and (_root.harp == 1)) and (_root.harpooned == null)) and (_root.harpx > (xx - ww))) and (_root.harpx < (xx + ww))) and (_root.harpy > ((yy - hh) - 16))) and (_root.harpy < (yy + 16))) {
_root.harpooned = "_root.game." + _name;
ani1 = "";
airborn = "y";
_root.harppp = 1;
ai = "off";
hitz = 1;
}
if (_root.projectile != null) {
_root.projectile_time = 3;
}
if ((((_root.desperation == "y") and (_root.game.alloy._y > (yy - hh))) and (_root.game.alloy._y < (yy + 100))) and (gravity >= 0)) {
if ((_root.game.alloy._x < xx) and ((_root.game.alloy._x + 85) > (xx - ww))) {
health = health - 20;
xm = 25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
} else if ((_root.game.alloy._x > xx) and ((_root.game.alloy._x - 85) < (xx + ww))) {
health = health - 20;
xm = -25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
}
if (hitz == 1) {
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = _x;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
}
if ((((((_root.projectile != _name) and (_root.projectile != null)) and (_root.projectilex > (xx - ww))) and (_root.projectilex < (xx + ww))) and (_root.projectiley > (yy - hh))) and (_root.projectiley < yy)) {
if (_root.projectile_time > 0) {
_root.projectile_string++;
}
health = health - eval (("_root.game." + _root.projectile) + ".bodydmg");
xm = eval (("_root.game." + _root.projectile) + ".xm") * 1.05;
combos++;
combotime = 3;
gravity = -22;
airborn = "y";
_y = (_y - 11);
Set(("_root.game." + _root.projectile) + ".xm", xm * -0.5);
Set(("_root.game." + _root.projectile) + ".gravity", eval (("_root.game." + _root.projectile) + ".gravity") - 10);
this.dir.ani.gotoAndStop("hit");
_root.projectile = null;
_root.oldprojx = _x;
_root.oldprojy = _y;
ai = "off";
hitz = 1;
}
axa = 70 * _root.game.harpoon.mod;
if ((((((_root.bike == 1) and (((_root.ax + axa) + 10) > (xx - ww))) and (((_root.ax + axa) - 10) < (xx + ww))) and (yy > (_root.ay - 80))) and ((yy - hh) < _root.ay)) and (gravity >= 0)) {
health = health - 20;
xm = 4 * _root.game.harpoon.mod;
gravity = -66;
airborn = "y";
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
combos++;
combotime = 3;
_root.bikehitz++;
_root.oldbikex = _x;
}
if (airborn == "y") {
hangtime++;
ai = "off";
if ((xm >= 10) or (xm <= -10)) {
if (_root.unlock != 1) {
_root.follow = "_root.game." + _name;
}
focus = 0;
} else {
focus = 1;
}
if ((xm >= 20) or (xm <= -20)) {
_root.projectile = _name;
_root.projectilex = xx;
_root.projectiley = yy;
_root.projectilew = ww;
_root.projectilehh = hh;
} else if (_root.projectile == _name) {
_root.projectile = null;
}
_x = (_x + xm);
if ((_x < max_left) and (hangtime > 2)) {
_x = max_left;
xm = xm * -1;
} else if ((_x > max_right) and (hangtime > 2)) {
_x = max_right;
xm = xm * -1;
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
term = 0;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (((_x + ww) > floor_x1) and ((_x - ww) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
if (hangtime > 20) {
hitz = 1;
}
airborn = "n";
ani1 = "n";
floor = i;
floory = floor_y1;
floorx1 = floor_x1;
floorx2 = floor_x2;
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
hangtime = 0;
if (_x < max_left) {
dir.gotoAndStop(2);
mode = "walk";
} else if (_x > max_right) {
dir.gotoAndStop(1);
mode = "walk";
}
gravity = 0;
xm = 0;
ym = 0;
if (_root.projectile == _name) {
_root.projectile = null;
}
if ((_y != floory) and (floor > 0)) {
_y = floory;
}
if (focus != 1) {
_root.follow = "_root.game.alloy";
xm = 0;
}
focus = 1;
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
if (((_x + ww) < floor_x1) or ((_x - ww) > floor_x2)) {
airborn = "y";
gravity = 4;
this.dir.ani.gotoAndStop("fall");
}
if (health < 1) {
dir.ani.gotoAndStop("hit");
gotoAndPlay (3);
}
if (stun > 0) {
stun--;
}
}
dir.ani.airborn = airborn;
if (combotimer > 0) {
combotimer--;
}
oldhealth = health;
if (hitz == 1) {
hitz = 0;
tellTarget ("_root") {
hitz.start(0, 1);
};
}
if (((ai == "on") and (stationary > 10)) and (stun < 1)) {
if ((floorx2 - floorx1) > 164) {
if (xx < (floorx1 + 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(60);
} else if (xx > (floorx2 - 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(60);
} else if (mode == "stand") {
dir.ani.gotoAndStop("stance");
if ((timer < 1) and (looking != 0)) {
option = random(2);
if (option == 1) {
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (_root.ax > (xx + 240)) {
dir.gotoAndStop(2);
mode = "walk";
timer = 60 + random(60);
} else if (_root.ax < (xx - 240)) {
dir.gotoAndStop(1);
mode = "walk";
timer = 60 + random(60);
}
}
} else {
timer = 30 + random(60);
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (looking != 0)) {
if (((looking == -1) and (dirmod == 1)) and (_root.ax > xx)) {
dir.gotoAndStop(2);
if (mode == "stand") {
timer = 0;
}
} else if (((looking == -1) and (dirmod == -1)) and (_root.ax < xx)) {
dir.gotoAndStop(1);
if (mode == "stand") {
timer = 0;
}
}
if (random(10) < 5) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
}
} else if (mode == "walk") {
dir.ani.gotoAndStop("run");
_x = (_x + (10 * dirmod));
}
}
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (mode == "walk")) {
if ((_root.ax < (xx + 120)) and (_root.ax > (xx - 120))) {
timer = 0;
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
if (timer > 0) {
timer--;
} else {
mode = "stand";
}
if (stationary < 12) {
stationary++;
}
if (airborn == "y") {
stationary = 0;
}
Symbol 480 MovieClip Frame 2
gotoAndPlay (1);
Symbol 480 MovieClip Frame 20
_root.killed++;
ww = 0;
hh = 0;
stop();
Symbol 482 MovieClip Frame 1
exists = "y";
N = 1;
NN = 0;
while (NN == 0) {
if (eval (("_root.game.floor" + N) + ".exists") != "y") {
_name = ("floor" + N);
if (N > _root.floors) {
_root.floors = N;
}
NN = 1;
}
N++;
}
nextFrame();
Symbol 482 MovieClip Frame 2
stop();
Symbol 488 MovieClip Frame 1
Set("../../../:looking", 1);
if (../../../:stun > 0) {
gotoAndPlay (60);
}
Symbol 488 MovieClip Frame 19
checker = random(10) + 1;
if (checker > 7) {
gotoAndPlay (45);
Set("../../../:looking", -1);
} else if (checker < 4) {
gotoAndPlay(random(10) + 5);
Set("../../../:looking", 1);
}
Symbol 488 MovieClip Frame 29
Set("../../../:looking", -1);
Symbol 488 MovieClip Frame 49
checker = random(10) + 1;
if (checker > 7) {
gotoAndPlay (20);
} else if (checker < 4) {
gotoAndPlay(random(10) + 30);
Set("../../../:looking", 0);
}
Symbol 488 MovieClip Frame 59
gotoAndPlay (1);
Symbol 488 MovieClip Frame 70
if (../../../:stun > 0) {
gotoAndPlay (60);
}
Symbol 495 MovieClip Frame 12
_root.ashot = "y";
_root.ashotdmg = 5;
_root.ashotmod = ../../../:dirmod;
_root.ashotx = getProperty("../../../", _x) + (36 * _root.ashotmod);
_root.ashoty = getProperty("../../../", _y) - 60;
_root.ashotrange = 800;
Symbol 495 MovieClip Frame 16
Set("../../../:ai", "on");
tellTarget ("..") {
gotoAndStop (1);
};
Symbol 506 MovieClip Frame 4
lastgrav = ../../../:gravity;
Symbol 506 MovieClip Frame 6
if (../../../:gravity < lastgrav) {
gotoAndPlay (1);
} else if (../../../:airborn == "y") {
gotoAndPlay (5);
lastgrav = ../../../:gravity;
}
Symbol 506 MovieClip Frame 21
if (../../../:health < 1) {
stop();
}
Symbol 506 MovieClip Frame 22
if (../../../:airborn == "y") {
gotoAndPlay (5);
lastgrav = ../../../:gravity;
}
Symbol 506 MovieClip Frame 26
tellTarget ("..") {
gotoAndStop (1);
};
Symbol 513 MovieClip Frame 1
Set("../../../:stun", 10);
if (random(10) < 5) {
gotoAndPlay (8);
}
Symbol 513 MovieClip Frame 7
tellTarget ("..") {
gotoAndStop (1);
};
Symbol 517 MovieClip Frame 31
tellTarget ("..") {
gotoAndStop ("hit");
};
Symbol 519 MovieClip Frame 1
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
Symbol 519 MovieClip Frame 2
gotoAndPlay (1);
Symbol 529 MovieClip Frame 1
Set("../../:ai", "on");
stop();
Symbol 529 MovieClip Frame 3
Set("../../:ai", "off");
Symbol 529 MovieClip Frame 4
Set("../../:ai", "off");
Symbol 529 MovieClip Frame 5
Set("../../:ai", "off");
freeze = 1;
Instance of Symbol 456 MovieClip "frozen" in Symbol 529 MovieClip Frame 5
onClipEvent (unload) {
if (../:freeze == 1) {
tellTarget ("../ice") {
play();
};
Set("../:freeze", 0);
}
}
Symbol 529 MovieClip Frame 6
Set("../../:ai", "off");
Symbol 529 MovieClip Frame 7
Set("../../:ai", "off");
Symbol 529 MovieClip Frame 8
Set("../../:ai", "on");
Symbol 530 MovieClip Frame 1
Set("../:dirmod", -1);
stop();
Symbol 530 MovieClip Frame 2
Set("../:dirmod", 1);
Symbol 531 MovieClip Frame 1
if (!init) {
dir.gotoAndStop(random(2) + 1);
health = 100;
maxhealth = 100;
bodydmg = 20;
gundmg = 10;
init = 1;
name = "Hood Ratz";
pic = "Ratz2";
N = 1;
NN = 0;
_root.tenem++;
while (NN == 0) {
if (eval (("_root.game.enemy" + N) + ".health") < 1) {
_name = ("enemy" + N);
if (N > _root.enemies) {
_root.enemies = N;
}
NN = 1;
}
N++;
}
}
if (health < oldhealth) {
if (beenhit != "y") {
_root.attackz++;
}
beenhit = "y";
}
if ((beenhit == "y") and (airborn == "y")) {
hangbonus++;
} else {
if (int(hangbonus / 30) > 1) {
points = int(hangbonus / 30) * 100;
_root.game.hangtxt.hits = int(hangbonus / 30);
_root.game.hangtxt.points = points;
_root.game.hangtxt._y = _root.game.alloy._y - 64;
_root.game.hangtxt._x = _x;
_root.game.hangtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
hangbonus = 0;
beenhit = "";
}
ww = (_width / 2) - 5;
hh = _height;
xx = _x;
yy = _y;
max_right = _root.game.alloy.max_right;
max_left = _root.game.alloy.max_left;
if ((airborn != "y") and (health < 1)) {
combotime = 0;
if (_root.meattime < 2) {
_root.grinder++;
_root.meatx = _x;
}
}
if (combotime > 0) {
if ((airborn != "y") and (_root.charging != 1)) {
combotime = combotime - 1;
}
} else if (combos > 0) {
if (points > 0) {
_root.game.combotxt.hits = combos;
points = (points * combos) * 10;
_root.game.combotxt.points = points;
_root.game.combotxt._y = _root.game.alloy._y;
_root.game.combotxt._x = _x;
_root.game.combotxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
points = 0;
combos = 0;
}
if (((((((_root.game.alloy.airborn != "y") and (_root.harp == 1)) and (_root.harpooned == null)) and (_root.harpx > (xx - ww))) and (_root.harpx < (xx + ww))) and (_root.harpy > ((yy - hh) - 16))) and (_root.harpy < (yy + 16))) {
_root.harpooned = "_root.game." + _name;
ani1 = "";
airborn = "y";
_root.harppp = 1;
ai = "off";
hitz = 1;
}
if (_root.projectile != null) {
_root.projectile_time = 3;
}
if ((((_root.desperation == "y") and (_root.game.alloy._y > (yy - hh))) and (_root.game.alloy._y < (yy + 100))) and (gravity >= 0)) {
if ((_root.game.alloy._x < xx) and ((_root.game.alloy._x + 85) > (xx - ww))) {
health = health - 20;
xm = 25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
} else if ((_root.game.alloy._x > xx) and ((_root.game.alloy._x - 85) < (xx + ww))) {
health = health - 20;
xm = -25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
}
if (hitz == 1) {
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = _x;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
}
if ((((((_root.projectile != _name) and (_root.projectile != null)) and (_root.projectilex > (xx - ww))) and (_root.projectilex < (xx + ww))) and (_root.projectiley > (yy - hh))) and (_root.projectiley < yy)) {
if (_root.projectile_time > 0) {
_root.projectile_string++;
}
health = health - eval (("_root.game." + _root.projectile) + ".bodydmg");
xm = eval (("_root.game." + _root.projectile) + ".xm") * 1.05;
combos++;
combotime = 3;
gravity = -22;
airborn = "y";
_y = (_y - 11);
Set(("_root.game." + _root.projectile) + ".xm", xm * -0.5);
Set(("_root.game." + _root.projectile) + ".gravity", eval (("_root.game." + _root.projectile) + ".gravity") - 10);
this.dir.ani.gotoAndStop("hit");
_root.projectile = null;
_root.oldprojx = _x;
_root.oldprojy = _y;
ai = "off";
hitz = 1;
}
axa = 70 * _root.game.harpoon.mod;
if ((((((_root.bike == 1) and (((_root.ax + axa) + 10) > (xx - ww))) and (((_root.ax + axa) - 10) < (xx + ww))) and (yy > (_root.ay - 80))) and ((yy - hh) < _root.ay)) and (gravity >= 0)) {
health = health - 20;
xm = 4 * _root.game.harpoon.mod;
gravity = -66;
airborn = "y";
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
combos++;
combotime = 3;
_root.bikehitz++;
_root.oldbikex = _x;
}
if (airborn == "y") {
hangtime++;
ai = "off";
if ((xm >= 10) or (xm <= -10)) {
if (_root.unlock != 1) {
_root.follow = "_root.game." + _name;
}
focus = 0;
} else {
focus = 1;
}
if ((xm >= 20) or (xm <= -20)) {
_root.projectile = _name;
_root.projectilex = xx;
_root.projectiley = yy;
_root.projectilew = ww;
_root.projectilehh = hh;
} else if (_root.projectile == _name) {
_root.projectile = null;
}
_x = (_x + xm);
if ((_x < max_left) and (hangtime > 2)) {
_x = max_left;
xm = xm * -1;
} else if ((_x > max_right) and (hangtime > 2)) {
_x = max_right;
xm = xm * -1;
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
term = 0;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (((_x + ww) > floor_x1) and ((_x - ww) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
if (hangtime > 20) {
hitz = 1;
}
airborn = "n";
ani1 = "n";
floor = i;
floory = floor_y1;
floorx1 = floor_x1;
floorx2 = floor_x2;
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
hangtime = 0;
if (_x < max_left) {
dir.gotoAndStop(2);
mode = "walk";
} else if (_x > max_right) {
dir.gotoAndStop(1);
mode = "walk";
}
gravity = 0;
xm = 0;
ym = 0;
if (_root.projectile == _name) {
_root.projectile = null;
}
if ((_y != floory) and (floor > 0)) {
_y = floory;
}
if (focus != 1) {
_root.follow = "_root.game.alloy";
xm = 0;
}
focus = 1;
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
if (((_x + ww) < floor_x1) or ((_x - ww) > floor_x2)) {
airborn = "y";
gravity = 4;
this.dir.ani.gotoAndStop("fall");
}
if (health < 1) {
dir.ani.gotoAndStop("hit");
gotoAndPlay (3);
}
if (stun > 0) {
stun--;
}
}
dir.ani.airborn = airborn;
if (combotimer > 0) {
combotimer--;
}
oldhealth = health;
if (hitz == 1) {
hitz = 0;
tellTarget ("_root") {
hitz.start(0, 1);
};
}
if (((ai == "on") and (stationary > 10)) and (stun < 1)) {
if ((floorx2 - floorx1) <= 164) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
if ((_root.ay < (yy + 30)) and (_root.ay > (yy - 200))) {
dir.ani.gotoAndStop("shoot");
}
}
if ((floorx2 - floorx1) > 164) {
if (xx < (floorx1 + 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 10 + random(30);
} else if (xx > (floorx2 - 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 10 + random(30);
} else if (mode == "stand") {
dir.ani.gotoAndStop("stance");
if ((timer < 1) and (looking != 0)) {
option = random(2);
if (option == 1) {
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (_root.ax > (xx + 240)) {
dir.gotoAndStop(2);
mode = "walk";
timer = 30 + random(30);
} else if (_root.ax < (xx - 240)) {
dir.gotoAndStop(1);
mode = "walk";
timer = 30 + random(30);
}
}
} else {
timer = 10 + random(30);
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (((looking == -1) and (dirmod == 1)) and (_root.ax > xx)) {
dir.gotoAndStop(2);
if (mode == "stand") {
timer = 0;
}
} else if (((looking == -1) and (dirmod == -1)) and (_root.ax < xx)) {
dir.gotoAndStop(1);
if (mode == "stand") {
timer = 0;
}
}
if (random(10) < 5) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
}
} else if (mode == "walk") {
dir.ani.gotoAndStop("run");
_x = (_x + (13 * dirmod));
}
}
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (mode == "walk")) {
if ((_root.ax < (xx + 120)) and (_root.ax > (xx - 120))) {
timer = 0;
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
if (timer > 0) {
timer--;
} else {
mode = "stand";
}
if (stationary < 12) {
stationary++;
}
if (airborn == "y") {
stationary = 0;
}
Symbol 531 MovieClip Frame 2
gotoAndPlay (1);
Symbol 531 MovieClip Frame 20
_root.killed++;
ww = 0;
hh = 0;
stop();
Symbol 560 MovieClip Frame 4
_root.ashot = "y";
_root.ashotdmg = 20;
_root.ashotmod = ../../../:dirmod;
_root.ashotx = getProperty("../../../", _x) + (50 * _root.ashotmod);
_root.ashotrange = 80;
_root.ashoty = getProperty("../../../", _y) - 60;
Symbol 560 MovieClip Frame 15
Set("../../../:ai", "on");
Symbol 568 MovieClip Frame 1
Set("../../../:stun", 10);
Symbol 568 MovieClip Frame 22
tellTarget ("..") {
gotoAndStop ("fall");
};
Instance of Symbol 586 MovieClip in Symbol 587 MovieClip Frame 1
onClipEvent (enterFrame) {
if (../../../../:airborn != "y") {
tellTarget ("../..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 587 MovieClip Frame 31
tellTarget ("..") {
gotoAndStop ("hit");
};
Symbol 599 MovieClip Frame 11
stop();
Symbol 600 MovieClip Frame 1
Set("../../:ai", "on");
stop();
Symbol 600 MovieClip Frame 2
Set("../../:ai", "on");
Symbol 600 MovieClip Frame 3
Set("../../:ai", "off");
Instance of Symbol 551 MovieClip in Symbol 600 MovieClip Frame 3
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 600 MovieClip Frame 5
Set("../../:ai", "off");
Instance of Symbol 568 MovieClip in Symbol 600 MovieClip Frame 5
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 600 MovieClip Frame 6
Set("../../:ai", "off");
Symbol 600 MovieClip Frame 7
Set("../../:ai", "off");
freeze = 1;
Instance of Symbol 574 MovieClip in Symbol 600 MovieClip Frame 7
onClipEvent (unload) {
if (../:freeze == 1) {
tellTarget ("../ice") {
play();
};
Set("../:freeze", 0);
}
}
Symbol 600 MovieClip Frame 8
Set("../../:ai", "off");
Symbol 600 MovieClip Frame 9
Set("../../:ai", "off");
Symbol 601 MovieClip Frame 1
Set("../:dirmod", -1);
stop();
Symbol 601 MovieClip Frame 2
Set("../:dirmod", 1);
Symbol 602 MovieClip Frame 1
if (!init) {
dir.gotoAndStop(random(2) + 1);
health = 300;
maxhealth = 300;
bodydmg = 20;
gundmg = 10;
init = 1;
name = "CyberPitz";
pic = "Pitz";
N = 1;
NN = 0;
_root.tenem++;
while (NN == 0) {
if (eval (("_root.game.enemy" + N) + ".health") < 1) {
_name = ("enemy" + N);
if (N > _root.enemies) {
_root.enemies = N;
}
NN = 1;
}
N++;
}
}
if (health < oldhealth) {
if (beenhit != "y") {
_root.attackz++;
}
beenhit = "y";
}
if ((beenhit == "y") and (airborn == "y")) {
hangbonus++;
} else {
if (int(hangbonus / 30) > 1) {
points = int(hangbonus / 30) * 100;
_root.game.hangtxt.hits = int(hangbonus / 30);
_root.game.hangtxt.points = points;
_root.game.hangtxt._y = _root.game.alloy._y - 64;
_root.game.hangtxt._x = _x;
_root.game.hangtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
hangbonus = 0;
beenhit = "";
}
ww = (_width / 2) - 5;
hh = _height;
xx = _x;
yy = _y;
max_right = _root.game.alloy.max_right;
max_left = _root.game.alloy.max_left;
if ((airborn != "y") and (health < 1)) {
combotime = 0;
if (_root.meattime < 2) {
_root.grinder++;
_root.meatx = _x;
}
}
if (combotime > 0) {
if ((airborn != "y") and (_root.charging != 1)) {
combotime = combotime - 1;
}
} else if (combos > 0) {
if (points > 0) {
_root.game.combotxt.hits = combos;
points = (points * combos) * 10;
_root.game.combotxt.points = points;
_root.game.combotxt._y = _root.game.alloy._y;
_root.game.combotxt._x = _x;
_root.game.combotxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
points = 0;
combos = 0;
}
if (((((((_root.game.alloy.airborn != "y") and (_root.harp == 1)) and (_root.harpooned == null)) and (_root.harpx > (xx - ww))) and (_root.harpx < (xx + ww))) and (_root.harpy > ((yy - hh) - 16))) and (_root.harpy < (yy + 16))) {
_root.harpooned = "_root.game." + _name;
ani1 = "";
airborn = "y";
_root.harppp = 1;
ai = "off";
hitz = 1;
}
if (_root.projectile != null) {
_root.projectile_time = 3;
}
if ((((_root.desperation == "y") and (_root.game.alloy._y > (yy - hh))) and (_root.game.alloy._y < (yy + 100))) and (gravity >= 0)) {
if ((_root.game.alloy._x < xx) and ((_root.game.alloy._x + 85) > (xx - ww))) {
health = health - 20;
xm = 25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
} else if ((_root.game.alloy._x > xx) and ((_root.game.alloy._x - 85) < (xx + ww))) {
health = health - 20;
xm = -25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
}
if (hitz == 1) {
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = _x;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
}
if ((((((_root.projectile != _name) and (_root.projectile != null)) and (_root.projectilex > (xx - ww))) and (_root.projectilex < (xx + ww))) and (_root.projectiley > (yy - hh))) and (_root.projectiley < yy)) {
if (_root.projectile_time > 0) {
_root.projectile_string++;
}
health = health - eval (("_root.game." + _root.projectile) + ".bodydmg");
xm = eval (("_root.game." + _root.projectile) + ".xm") * 1.05;
combos++;
combotime = 3;
gravity = -22;
airborn = "y";
_y = (_y - 11);
Set(("_root.game." + _root.projectile) + ".xm", xm * -0.5);
Set(("_root.game." + _root.projectile) + ".gravity", eval (("_root.game." + _root.projectile) + ".gravity") - 10);
this.dir.ani.gotoAndStop("hit");
_root.projectile = null;
_root.oldprojx = _x;
_root.oldprojy = _y;
ai = "off";
hitz = 1;
}
axa = 70 * _root.game.harpoon.mod;
if ((((((_root.bike == 1) and (((_root.ax + axa) + 10) > (xx - ww))) and (((_root.ax + axa) - 10) < (xx + ww))) and (yy > (_root.ay - 80))) and ((yy - hh) < _root.ay)) and (gravity >= 0)) {
health = health - 20;
xm = 4 * _root.game.harpoon.mod;
gravity = -66;
airborn = "y";
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
combos++;
combotime = 3;
_root.bikehitz++;
_root.oldbikex = _x;
}
if (airborn == "y") {
hangtime++;
ai = "off";
if ((xm >= 10) or (xm <= -10)) {
if (_root.unlock != 1) {
_root.follow = "_root.game." + _name;
}
focus = 0;
} else {
focus = 1;
}
if ((xm >= 20) or (xm <= -20)) {
_root.projectile = _name;
_root.projectilex = xx;
_root.projectiley = yy;
_root.projectilew = ww;
_root.projectilehh = hh;
} else if (_root.projectile == _name) {
_root.projectile = null;
}
_x = (_x + xm);
if ((_x < max_left) and (hangtime > 2)) {
_x = max_left;
xm = xm * -1;
} else if ((_x > max_right) and (hangtime > 2)) {
_x = max_right;
xm = xm * -1;
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
term = 0;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (((_x + ww) > floor_x1) and ((_x - ww) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
if (hangtime > 20) {
hitz = 1;
}
airborn = "n";
ani1 = "n";
floor = i;
floory = floor_y1;
floorx1 = floor_x1;
floorx2 = floor_x2;
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
hangtime = 0;
if (_x < max_left) {
dir.gotoAndStop(2);
mode = "walk";
} else if (_x > max_right) {
dir.gotoAndStop(1);
mode = "walk";
}
gravity = 0;
xm = 0;
ym = 0;
if (_root.projectile == _name) {
_root.projectile = null;
}
if ((_y != floory) and (floor > 0)) {
_y = floory;
}
if (focus != 1) {
_root.follow = "_root.game.alloy";
xm = 0;
}
focus = 1;
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
if (((_x + ww) < floor_x1) or ((_x - ww) > floor_x2)) {
airborn = "y";
gravity = 4;
this.dir.ani.gotoAndStop("fall");
}
if (health < 1) {
dir.ani.gotoAndStop("hit");
gotoAndPlay (3);
}
if (stun > 0) {
stun--;
}
}
dir.ani.airborn = airborn;
if (combotimer > 0) {
combotimer--;
}
oldhealth = health;
if (hitz == 1) {
hitz = 0;
tellTarget ("_root") {
hitz.start(0, 1);
};
}
if (((floorx2 - floorx1) <= 164) and (airborn != "y")) {
airborn = "y";
if (_root.ax > _x) {
dirmod = 1;
dir.gotoAndStop(2);
} else {
dirmod = -1;
dir.gotoAndStop(1);
}
xm = 16 * dirmod;
gravity = -26;
dir.ani.gotoAndStop("fall");
}
if (((ai == "on") and (stationary > 10)) and (stun < 1)) {
if ((floorx2 - floorx1) > 164) {
if (xx < (floorx1 + 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(60);
} else if (xx > (floorx2 - 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(60);
} else if (mode == "stand") {
dir.ani.gotoAndStop("stance");
if ((timer < 1) and (looking != 0)) {
option = random(2);
if (option == 1) {
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (_root.ax > (xx + 100)) {
dir.gotoAndStop(2);
mode = "walk";
timer = 60 + random(60);
} else if (_root.ax < (xx - 100)) {
dir.gotoAndStop(1);
mode = "walk";
timer = 60 + random(60);
}
}
} else {
timer = 30 + random(60);
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (((looking < 1) and (dirmod == 1)) and (_root.ax > xx)) {
dir.gotoAndStop(2);
if (mode == "stand") {
timer = 0;
}
} else if (((looking < 1) and (dirmod == -1)) and (_root.ax < xx)) {
dir.gotoAndStop(1);
if (mode == "stand") {
timer = 0;
}
}
if (random(10) < 5) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
}
} else if (mode == "walk") {
dir.ani.gotoAndStop("run");
_x = (_x + (16 * dirmod));
}
}
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (mode == "walk")) {
if ((_root.ax < (xx + 96)) and (_root.ax > (xx - 96))) {
timer = 0;
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
if (timer > 0) {
timer--;
} else {
mode = "stand";
}
if (stationary < 12) {
stationary++;
}
if (airborn == "y") {
stationary = 0;
}
if (stun > 0) {
stun--;
}
Symbol 602 MovieClip Frame 2
gotoAndPlay (1);
Symbol 602 MovieClip Frame 3
dir.ani.gotoAndStop("dead");
Symbol 602 MovieClip Frame 17
_root.killed++;
ww = 0;
hh = 0;
stop();
Symbol 613 MovieClip Frame 33
if ((((getProperty("../alloy", _x) < (_x + 50)) and (getProperty("../alloy", _x) > (_x - 50))) and (getProperty("../alloy", _y) < (_y + 100))) and (getProperty("../alloy", _y) > (_y - 50))) {
gotoAndStop (40);
_root.guntime = 900;
_root.gun = 2;
}
Time++;
if (Time > 120) {
gotoAndPlay (35);
}
Symbol 613 MovieClip Frame 34
gotoAndPlay (33);
Symbol 613 MovieClip Frame 40
stop();
Symbol 614 MovieClip Frame 33
if ((((getProperty("../alloy", _x) < (_x + 50)) and (getProperty("../alloy", _x) > (_x - 50))) and (getProperty("../alloy", _y) < (_y + 100))) and (getProperty("../alloy", _y) > (_y - 50))) {
gotoAndStop (40);
_root.guntime = 900;
_root.gun = 3;
}
Time++;
if (Time > 120) {
gotoAndPlay (35);
}
Symbol 614 MovieClip Frame 34
gotoAndPlay (33);
Symbol 614 MovieClip Frame 40
stop();
Instance of Symbol 635 MovieClip in Symbol 644 MovieClip Frame 3
onClipEvent (enterFrame) {
setProperty("../../../../", _x , getProperty("../../../../", _x) + (30 * ../../../../:dirmod));
}
Symbol 644 MovieClip Frame 12
_root.ashot = "y";
_root.ashotdmg = 15;
_root.ashotmod = ../../../:dirmod;
_root.ashotx = getProperty("../../../", _x) - (30 * _root.ashotmod);
_root.ashotrange = 300;
_root.ashoty = getProperty("../../../", _y) - 60;
Symbol 644 MovieClip Frame 21
Set("../../../:ai", "on");
Symbol 652 MovieClip Frame 1
Set("../../../:stun", 10);
Symbol 652 MovieClip Frame 13
tellTarget ("..") {
gotoAndStop ("fall");
};
Instance of Symbol 654 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (../../../../:airborn != "y") {
tellTarget ("../..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 655 MovieClip Frame 31
tellTarget ("..") {
gotoAndStop ("hit");
};
Symbol 656 MovieClip Frame 11
stop();
Symbol 657 MovieClip Frame 1
Set("../../:ai", "on");
stop();
Symbol 657 MovieClip Frame 2
Set("../../:ai", "on");
Symbol 657 MovieClip Frame 3
Set("../../:ai", "off");
Instance of Symbol 634 MovieClip in Symbol 657 MovieClip Frame 3
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 657 MovieClip Frame 4
Set("../../:ai", "off");
Symbol 657 MovieClip Frame 5
Set("../../:ai", "off");
Instance of Symbol 652 MovieClip in Symbol 657 MovieClip Frame 5
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 657 MovieClip Frame 6
Set("../../:ai", "off");
Symbol 657 MovieClip Frame 7
Set("../../:ai", "off");
freeze = 1;
Instance of Symbol 574 MovieClip in Symbol 657 MovieClip Frame 7
onClipEvent (unload) {
if (../:freeze == 1) {
tellTarget ("../ice") {
play();
};
Set("../:freeze", 0);
}
}
Symbol 657 MovieClip Frame 8
Set("../../:ai", "off");
Symbol 657 MovieClip Frame 9
Set("../../:ai", "off");
Symbol 658 MovieClip Frame 1
Set("../:dirmod", -1);
stop();
Symbol 658 MovieClip Frame 2
Set("../:dirmod", 1);
Symbol 659 MovieClip Frame 1
if (!init) {
dir.gotoAndStop(random(2) + 1);
health = 300;
maxhealth = 300;
bodydmg = 20;
gundmg = 10;
init = 1;
name = "ShadowPitz";
pic = "Pitz2";
N = 1;
NN = 0;
_root.tenem++;
while (NN == 0) {
if (eval (("_root.game.enemy" + N) + ".health") < 1) {
_name = ("enemy" + N);
if (N > _root.enemies) {
_root.enemies = N;
}
NN = 1;
}
N++;
}
}
if (health < oldhealth) {
if (beenhit != "y") {
_root.attackz++;
}
beenhit = "y";
}
if ((beenhit == "y") and (airborn == "y")) {
hangbonus++;
} else {
if (int(hangbonus / 30) > 1) {
points = int(hangbonus / 30) * 100;
_root.game.hangtxt.hits = int(hangbonus / 30);
_root.game.hangtxt.points = points;
_root.game.hangtxt._y = _root.game.alloy._y - 64;
_root.game.hangtxt._x = _x;
_root.game.hangtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
hangbonus = 0;
beenhit = "";
}
ww = (_width / 2) - 5;
hh = _height;
xx = _x;
yy = _y;
max_right = _root.game.alloy.max_right;
max_left = _root.game.alloy.max_left;
if ((airborn != "y") and (health < 1)) {
combotime = 0;
if (_root.meattime < 2) {
_root.grinder++;
_root.meatx = _x;
}
}
if (combotime > 0) {
if ((airborn != "y") and (_root.charging != 1)) {
combotime = combotime - 1;
}
} else if (combos > 0) {
if (points > 0) {
_root.game.combotxt.hits = combos;
points = (points * combos) * 10;
_root.game.combotxt.points = points;
_root.game.combotxt._y = _root.game.alloy._y;
_root.game.combotxt._x = _x;
_root.game.combotxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
points = 0;
combos = 0;
}
if (((((((_root.game.alloy.airborn != "y") and (_root.harp == 1)) and (_root.harpooned == null)) and (_root.harpx > (xx - ww))) and (_root.harpx < (xx + ww))) and (_root.harpy > ((yy - hh) - 16))) and (_root.harpy < (yy + 16))) {
_root.harpooned = "_root.game." + _name;
ani1 = "";
airborn = "y";
_root.harppp = 1;
ai = "off";
hitz = 1;
}
if (_root.projectile != null) {
_root.projectile_time = 3;
}
if ((((_root.desperation == "y") and (_root.game.alloy._y > (yy - hh))) and (_root.game.alloy._y < (yy + 100))) and (gravity >= 0)) {
if ((_root.game.alloy._x < xx) and ((_root.game.alloy._x + 85) > (xx - ww))) {
health = health - 20;
xm = 25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
} else if ((_root.game.alloy._x > xx) and ((_root.game.alloy._x - 85) < (xx + ww))) {
health = health - 20;
xm = -25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
}
if (hitz == 1) {
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = _x;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
}
if ((((((_root.projectile != _name) and (_root.projectile != null)) and (_root.projectilex > (xx - ww))) and (_root.projectilex < (xx + ww))) and (_root.projectiley > (yy - hh))) and (_root.projectiley < yy)) {
if (_root.projectile_time > 0) {
_root.projectile_string++;
}
health = health - eval (("_root.game." + _root.projectile) + ".bodydmg");
xm = eval (("_root.game." + _root.projectile) + ".xm") * 1.05;
combos++;
combotime = 3;
gravity = -22;
airborn = "y";
_y = (_y - 11);
Set(("_root.game." + _root.projectile) + ".xm", xm * -0.5);
Set(("_root.game." + _root.projectile) + ".gravity", eval (("_root.game." + _root.projectile) + ".gravity") - 10);
this.dir.ani.gotoAndStop("hit");
_root.projectile = null;
_root.oldprojx = _x;
_root.oldprojy = _y;
ai = "off";
hitz = 1;
}
axa = 70 * _root.game.harpoon.mod;
if ((((((_root.bike == 1) and (((_root.ax + axa) + 10) > (xx - ww))) and (((_root.ax + axa) - 10) < (xx + ww))) and (yy > (_root.ay - 80))) and ((yy - hh) < _root.ay)) and (gravity >= 0)) {
health = health - 20;
xm = 4 * _root.game.harpoon.mod;
gravity = -66;
airborn = "y";
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
combos++;
combotime = 3;
_root.bikehitz++;
_root.oldbikex = _x;
}
if (airborn == "y") {
hangtime++;
ai = "off";
if ((xm >= 10) or (xm <= -10)) {
if (_root.unlock != 1) {
_root.follow = "_root.game." + _name;
}
focus = 0;
} else {
focus = 1;
}
if ((xm >= 20) or (xm <= -20)) {
_root.projectile = _name;
_root.projectilex = xx;
_root.projectiley = yy;
_root.projectilew = ww;
_root.projectilehh = hh;
} else if (_root.projectile == _name) {
_root.projectile = null;
}
_x = (_x + xm);
if ((_x < max_left) and (hangtime > 2)) {
_x = max_left;
xm = xm * -1;
} else if ((_x > max_right) and (hangtime > 2)) {
_x = max_right;
xm = xm * -1;
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
term = 0;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (((_x + ww) > floor_x1) and ((_x - ww) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
if (hangtime > 20) {
hitz = 1;
}
airborn = "n";
ani1 = "n";
floor = i;
floory = floor_y1;
floorx1 = floor_x1;
floorx2 = floor_x2;
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
hangtime = 0;
if (_x < max_left) {
dir.gotoAndStop(2);
mode = "walk";
} else if (_x > max_right) {
dir.gotoAndStop(1);
mode = "walk";
}
gravity = 0;
xm = 0;
ym = 0;
if (_root.projectile == _name) {
_root.projectile = null;
}
if ((_y != floory) and (floor > 0)) {
_y = floory;
}
if (focus != 1) {
_root.follow = "_root.game.alloy";
xm = 0;
}
focus = 1;
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
if (((_x + ww) < floor_x1) or ((_x - ww) > floor_x2)) {
airborn = "y";
gravity = 4;
this.dir.ani.gotoAndStop("fall");
}
if (health < 1) {
dir.ani.gotoAndStop("hit");
gotoAndPlay (3);
}
if (stun > 0) {
stun--;
}
}
dir.ani.airborn = airborn;
if (combotimer > 0) {
combotimer--;
}
oldhealth = health;
if (hitz == 1) {
hitz = 0;
tellTarget ("_root") {
hitz.start(0, 1);
};
}
if (((floorx2 - floorx1) <= 164) and (airborn != "y")) {
airborn = "y";
if (_root.ax > _x) {
dirmod = 1;
dir.gotoAndStop(2);
} else {
dirmod = -1;
dir.gotoAndStop(1);
}
xm = 16 * dirmod;
gravity = -26;
dir.ani.gotoAndStop("fall");
}
if (((ai == "on") and (stationary > 10)) and (stun < 1)) {
if ((floorx2 - floorx1) > 164) {
if (xx < (floorx1 + 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (xx > (floorx2 - 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (mode == "stand") {
dir.ani.gotoAndStop("stance");
if ((timer < 1) and (looking != 0)) {
option = random(2);
if (option == 1) {
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (_root.ax > (xx + 300)) {
dir.gotoAndStop(2);
mode = "walk";
timer = 20 + random(10);
} else if (_root.ax < (xx - 300)) {
dir.gotoAndStop(1);
mode = "walk";
timer = 20 + random(10);
}
}
} else {
timer = 30 + random(60);
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (((looking < 1) and (dirmod == 1)) and (_root.ax > xx)) {
dir.gotoAndStop(2);
if (mode == "stand") {
timer = 0;
}
} else if (((looking < 1) and (dirmod == -1)) and (_root.ax < xx)) {
dir.gotoAndStop(1);
if (mode == "stand") {
timer = 0;
}
}
if (random(10) < 5) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
}
} else if (mode == "walk") {
dir.ani.gotoAndStop("run");
_x = (_x + (12 * dirmod));
}
}
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (mode == "walk")) {
if ((_root.ax < (xx + 300)) and (_root.ax > (xx - 300))) {
timer = 0;
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
if (timer > 0) {
timer--;
} else {
mode = "stand";
}
if (stationary < 12) {
stationary++;
}
if (airborn == "y") {
stationary = 0;
}
if (stun > 0) {
stun--;
}
Symbol 659 MovieClip Frame 2
gotoAndPlay (1);
Symbol 659 MovieClip Frame 3
dir.ani.gotoAndStop("dead");
Symbol 659 MovieClip Frame 17
_root.killed++;
ww = 0;
hh = 0;
stop();
Symbol 681 MovieClip Frame 3
loopz = 0;
Instance of Symbol 635 MovieClip in Symbol 681 MovieClip Frame 7
onClipEvent (load) {
loops = 0;
gun = new Sound();
gun.attachSound("gun1");
gun.start(0, 99999);
}
onClipEvent (unload) {
_root.blood = "";
gun.stop("gun1");
}
Symbol 681 MovieClip Frame 9
_root.ashot = "y";
_root.ashotdmg = 5;
_root.ashotmod = ../../../:dirmod;
_root.ashotx = getProperty("../../../", _x) + (36 * _root.ashotmod);
_root.ashoty = getProperty("../../../", _y) - 60;
_root.ashotrange = 800;
Symbol 681 MovieClip Frame 10
loopz++;
if (loopz < 5) {
gotoAndPlay (7);
}
Symbol 681 MovieClip Frame 20
Set("../../../:ai", "on");
Symbol 687 MovieClip Frame 1
Set("../../../:stun", 4);
Symbol 687 MovieClip Frame 10
tellTarget ("..") {
gotoAndStop ("fall");
};
Instance of Symbol 690 MovieClip in Symbol 691 MovieClip Frame 1
onClipEvent (enterFrame) {
if (../../../../:airborn != "y") {
tellTarget ("../..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 691 MovieClip Frame 31
tellTarget ("..") {
gotoAndStop ("hit");
};
Symbol 693 MovieClip Frame 1
Set("../../:ai", "on");
stop();
Symbol 693 MovieClip Frame 2
Set("../../:ai", "on");
Symbol 693 MovieClip Frame 3
Set("../../:ai", "off");
Instance of Symbol 679 MovieClip in Symbol 693 MovieClip Frame 3
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 693 MovieClip Frame 4
Set("../../:ai", "off");
Symbol 693 MovieClip Frame 5
Set("../../:ai", "off");
Instance of Symbol 687 MovieClip in Symbol 693 MovieClip Frame 5
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 693 MovieClip Frame 6
Set("../../:ai", "off");
Symbol 693 MovieClip Frame 7
Set("../../:ai", "off");
freeze = 1;
Instance of Symbol 574 MovieClip in Symbol 693 MovieClip Frame 7
onClipEvent (unload) {
if (../:freeze == 1) {
tellTarget ("../ice") {
play();
};
Set("../:freeze", 0);
}
}
Symbol 693 MovieClip Frame 8
Set("../../:ai", "off");
Symbol 693 MovieClip Frame 9
Set("../../:ai", "off");
Symbol 694 MovieClip Frame 1
Set("../:dirmod", -1);
stop();
Symbol 694 MovieClip Frame 2
Set("../:dirmod", 1);
Symbol 695 MovieClip Frame 1
if (!init) {
dir.gotoAndStop(random(2) + 1);
health = 500;
maxhealth = 500;
bodydmg = 20;
gundmg = 10;
init = 1;
name = "WarPitz";
pic = "Pitz3";
N = 1;
NN = 0;
_root.tenem++;
while (NN == 0) {
if (eval (("_root.game.enemy" + N) + ".health") < 1) {
_name = ("enemy" + N);
if (N > _root.enemies) {
_root.enemies = N;
}
NN = 1;
}
N++;
}
}
if (health < oldhealth) {
if (beenhit != "y") {
_root.attackz++;
}
beenhit = "y";
}
if ((beenhit == "y") and (airborn == "y")) {
hangbonus++;
} else {
if (int(hangbonus / 30) > 1) {
points = int(hangbonus / 30) * 100;
_root.game.hangtxt.hits = int(hangbonus / 30);
_root.game.hangtxt.points = points;
_root.game.hangtxt._y = _root.game.alloy._y - 64;
_root.game.hangtxt._x = _x;
_root.game.hangtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
hangbonus = 0;
beenhit = "";
}
ww = (_width / 2) - 5;
hh = _height;
xx = _x;
yy = _y;
max_right = _root.game.alloy.max_right;
max_left = _root.game.alloy.max_left;
if ((airborn != "y") and (health < 1)) {
combotime = 0;
if (_root.meattime < 2) {
_root.grinder++;
_root.meatx = _x;
}
}
if (combotime > 0) {
if ((airborn != "y") and (_root.charging != 1)) {
combotime = combotime - 1;
}
} else if (combos > 0) {
if (points > 0) {
_root.game.combotxt.hits = combos;
points = (points * combos) * 10;
_root.game.combotxt.points = points;
_root.game.combotxt._y = _root.game.alloy._y;
_root.game.combotxt._x = _x;
_root.game.combotxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
points = 0;
combos = 0;
}
if (((((((_root.game.alloy.airborn != "y") and (_root.harp == 1)) and (_root.harpooned == null)) and (_root.harpx > (xx - ww))) and (_root.harpx < (xx + ww))) and (_root.harpy > ((yy - hh) - 16))) and (_root.harpy < (yy + 16))) {
_root.harpooned = "_root.game." + _name;
ani1 = "";
airborn = "y";
_root.harppp = 1;
ai = "off";
hitz = 1;
}
if (_root.projectile != null) {
_root.projectile_time = 3;
}
if ((((_root.desperation == "y") and (_root.game.alloy._y > (yy - hh))) and (_root.game.alloy._y < (yy + 100))) and (gravity >= 0)) {
if ((_root.game.alloy._x < xx) and ((_root.game.alloy._x + 85) > (xx - ww))) {
health = health - 20;
xm = 25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
} else if ((_root.game.alloy._x > xx) and ((_root.game.alloy._x - 85) < (xx + ww))) {
health = health - 20;
xm = -25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
}
if (hitz == 1) {
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = _x;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
}
if ((((((_root.projectile != _name) and (_root.projectile != null)) and (_root.projectilex > (xx - ww))) and (_root.projectilex < (xx + ww))) and (_root.projectiley > (yy - hh))) and (_root.projectiley < yy)) {
if (_root.projectile_time > 0) {
_root.projectile_string++;
}
health = health - eval (("_root.game." + _root.projectile) + ".bodydmg");
xm = eval (("_root.game." + _root.projectile) + ".xm") * 1.05;
combos++;
combotime = 3;
gravity = -22;
airborn = "y";
_y = (_y - 11);
Set(("_root.game." + _root.projectile) + ".xm", xm * -0.5);
Set(("_root.game." + _root.projectile) + ".gravity", eval (("_root.game." + _root.projectile) + ".gravity") - 10);
this.dir.ani.gotoAndStop("hit");
_root.projectile = null;
_root.oldprojx = _x;
_root.oldprojy = _y;
ai = "off";
hitz = 1;
}
axa = 70 * _root.game.harpoon.mod;
if ((((((_root.bike == 1) and (((_root.ax + axa) + 10) > (xx - ww))) and (((_root.ax + axa) - 10) < (xx + ww))) and (yy > (_root.ay - 80))) and ((yy - hh) < _root.ay)) and (gravity >= 0)) {
health = health - 20;
xm = 4 * _root.game.harpoon.mod;
gravity = -66;
airborn = "y";
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
combos++;
combotime = 3;
_root.bikehitz++;
_root.oldbikex = _x;
}
if (airborn == "y") {
hangtime++;
ai = "off";
if ((xm >= 10) or (xm <= -10)) {
if (_root.unlock != 1) {
_root.follow = "_root.game." + _name;
}
focus = 0;
} else {
focus = 1;
}
if ((xm >= 20) or (xm <= -20)) {
_root.projectile = _name;
_root.projectilex = xx;
_root.projectiley = yy;
_root.projectilew = ww;
_root.projectilehh = hh;
} else if (_root.projectile == _name) {
_root.projectile = null;
}
_x = (_x + xm);
if ((_x < max_left) and (hangtime > 2)) {
_x = max_left;
xm = xm * -1;
} else if ((_x > max_right) and (hangtime > 2)) {
_x = max_right;
xm = xm * -1;
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
term = 0;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (((_x + ww) > floor_x1) and ((_x - ww) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
if (hangtime > 20) {
hitz = 1;
}
airborn = "n";
ani1 = "n";
floor = i;
floory = floor_y1;
floorx1 = floor_x1;
floorx2 = floor_x2;
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
hangtime = 0;
if (_x < max_left) {
dir.gotoAndStop(2);
mode = "walk";
} else if (_x > max_right) {
dir.gotoAndStop(1);
mode = "walk";
}
gravity = 0;
xm = 0;
ym = 0;
if (_root.projectile == _name) {
_root.projectile = null;
}
if ((_y != floory) and (floor > 0)) {
_y = floory;
}
if (focus != 1) {
_root.follow = "_root.game.alloy";
xm = 0;
}
focus = 1;
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
if (((_x + ww) < floor_x1) or ((_x - ww) > floor_x2)) {
airborn = "y";
gravity = 4;
this.dir.ani.gotoAndStop("fall");
}
if (health < 1) {
dir.ani.gotoAndStop("hit");
gotoAndPlay (3);
}
if (stun > 0) {
stun--;
}
}
dir.ani.airborn = airborn;
if (combotimer > 0) {
combotimer--;
}
oldhealth = health;
if (hitz == 1) {
hitz = 0;
tellTarget ("_root") {
hitz.start(0, 1);
};
}
if (((floorx2 - floorx1) <= 164) and (airborn != "y")) {
airborn = "y";
if (_root.ax > _x) {
dirmod = 1;
dir.gotoAndStop(2);
} else {
dirmod = -1;
dir.gotoAndStop(1);
}
xm = 16 * dirmod;
gravity = -26;
dir.ani.gotoAndStop("fall");
}
if (((ai == "on") and (stationary > 10)) and (stun < 1)) {
if ((floorx2 - floorx1) > 164) {
if (xx < (floorx1 + 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (xx > (floorx2 - 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (mode == "stand") {
dir.ani.gotoAndStop("stance");
if ((timer < 1) and (looking != 0)) {
option = random(2);
if (option == 1) {
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (_root.ax > (xx + 300)) {
dir.gotoAndStop(2);
mode = "walk";
timer = 80 + random(60);
} else if (_root.ax < (xx - 300)) {
dir.gotoAndStop(1);
mode = "walk";
timer = 80 + random(60);
}
}
} else {
timer = 30 + random(60);
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (((looking < 1) and (dirmod == 1)) and (_root.ax > xx)) {
dir.gotoAndStop(2);
if (mode == "stand") {
timer = 0;
}
} else if (((looking < 1) and (dirmod == -1)) and (_root.ax < xx)) {
dir.gotoAndStop(1);
if (mode == "stand") {
timer = 0;
}
}
if (random(10) < 5) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
}
} else if (mode == "walk") {
dir.ani.gotoAndStop("run");
_x = (_x + (7 * dirmod));
}
}
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (mode == "walk")) {
if ((_root.ax < (xx + 300)) and (_root.ax > (xx - 300))) {
timer = 0;
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
if (timer > 0) {
timer--;
} else {
mode = "stand";
}
if (stationary < 12) {
stationary++;
}
if (airborn == "y") {
stationary = 0;
}
if (stun > 0) {
stun--;
}
Symbol 695 MovieClip Frame 2
gotoAndPlay (1);
Symbol 695 MovieClip Frame 3
dir.ani.gotoAndStop("dead");
Symbol 695 MovieClip Frame 17
_root.killed++;
ww = 0;
hh = 0;
stop();
Symbol 722 MovieClip Frame 10
_root.ashot = "y";
_root.ashotdmg = 20;
_root.ashotmod = ../../../:dirmod;
_root.ashotx = getProperty("../../../", _x) + (80 * _root.ashotmod);
_root.ashotrange = 140;
_root.ashoty = getProperty("../../../", _y) - 60;
Symbol 722 MovieClip Frame 23
Set("../../../:ai", "on");
Symbol 728 MovieClip Frame 1
Set("../../../:stun", 15);
Symbol 728 MovieClip Frame 13
tellTarget ("..") {
gotoAndStop ("fall");
};
Symbol 733 MovieClip Frame 8
Set("../../../:ai", "on");
tellTarget ("..") {
gotoAndStop (1);
};
Instance of Symbol 736 MovieClip in Symbol 737 MovieClip Frame 1
onClipEvent (enterFrame) {
if (../../../../:airborn != "y") {
tellTarget ("../..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 737 MovieClip Frame 31
tellTarget ("..") {
gotoAndStop ("hit");
};
Symbol 738 MovieClip Frame 11
stop();
Symbol 739 MovieClip Frame 1
Set("../../:ai", "on");
stop();
Symbol 739 MovieClip Frame 2
Set("../../:ai", "on");
Symbol 739 MovieClip Frame 3
Set("../../:ai", "off");
Instance of Symbol 715 MovieClip in Symbol 739 MovieClip Frame 3
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 739 MovieClip Frame 4
Set("../../:ai", "off");
Symbol 739 MovieClip Frame 5
Set("../../:ai", "off");
Instance of Symbol 728 MovieClip in Symbol 739 MovieClip Frame 5
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 739 MovieClip Frame 6
Set("../../:ai", "off");
Symbol 739 MovieClip Frame 7
Set("../../:ai", "off");
freeze = 1;
Symbol 739 MovieClip Frame 8
Set("../../:ai", "off");
Symbol 739 MovieClip Frame 9
Set("../../:ai", "off");
Symbol 740 MovieClip Frame 1
Set("../:dirmod", -1);
stop();
Symbol 740 MovieClip Frame 2
Set("../:dirmod", 1);
Symbol 741 MovieClip Frame 1
if (!init) {
dir.gotoAndStop(random(2) + 1);
health = 200;
maxhealth = 200;
bodydmg = 30;
gundmg = 10;
init = 1;
name = "TundraPitz";
pic = "Pitz4";
N = 1;
NN = 0;
_root.tenem++;
while (NN == 0) {
if (eval (("_root.game.enemy" + N) + ".health") < 1) {
_name = ("enemy" + N);
if (N > _root.enemies) {
_root.enemies = N;
}
NN = 1;
}
N++;
}
}
if (health < oldhealth) {
if (beenhit != "y") {
_root.attackz++;
}
beenhit = "y";
}
if ((beenhit == "y") and (airborn == "y")) {
hangbonus++;
} else {
if (int(hangbonus / 30) > 1) {
points = int(hangbonus / 30) * 100;
_root.game.hangtxt.hits = int(hangbonus / 30);
_root.game.hangtxt.points = points;
_root.game.hangtxt._y = _root.game.alloy._y - 64;
_root.game.hangtxt._x = _x;
_root.game.hangtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
hangbonus = 0;
beenhit = "";
}
ww = (_width / 2) - 5;
hh = _height;
xx = _x;
yy = _y;
max_right = _root.game.alloy.max_right;
max_left = _root.game.alloy.max_left;
if ((airborn != "y") and (health < 1)) {
combotime = 0;
if (_root.meattime < 2) {
_root.grinder++;
_root.meatx = _x;
}
}
if (combotime > 0) {
if ((airborn != "y") and (_root.charging != 1)) {
combotime = combotime - 1;
}
} else if (combos > 0) {
if (points > 0) {
_root.game.combotxt.hits = combos;
points = (points * combos) * 10;
_root.game.combotxt.points = points;
_root.game.combotxt._y = _root.game.alloy._y;
_root.game.combotxt._x = _x;
_root.game.combotxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
points = 0;
combos = 0;
}
if (((((((_root.game.alloy.airborn != "y") and (_root.harp == 1)) and (_root.harpooned == null)) and (_root.harpx > (xx - ww))) and (_root.harpx < (xx + ww))) and (_root.harpy > ((yy - hh) - 16))) and (_root.harpy < (yy + 16))) {
_root.harpooned = "_root.game." + _name;
ani1 = "";
airborn = "y";
_root.harppp = 1;
ai = "off";
hitz = 1;
}
if (_root.projectile != null) {
_root.projectile_time = 3;
}
if ((((_root.desperation == "y") and (_root.game.alloy._y > (yy - hh))) and (_root.game.alloy._y < (yy + 100))) and (gravity >= 0)) {
if ((_root.game.alloy._x < xx) and ((_root.game.alloy._x + 85) > (xx - ww))) {
health = health - 20;
xm = 25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
} else if ((_root.game.alloy._x > xx) and ((_root.game.alloy._x - 85) < (xx + ww))) {
health = health - 20;
xm = -25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
}
if (hitz == 1) {
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = _x;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
}
if ((((((_root.projectile != _name) and (_root.projectile != null)) and (_root.projectilex > (xx - ww))) and (_root.projectilex < (xx + ww))) and (_root.projectiley > (yy - hh))) and (_root.projectiley < yy)) {
if (_root.projectile_time > 0) {
_root.projectile_string++;
}
health = health - eval (("_root.game." + _root.projectile) + ".bodydmg");
xm = eval (("_root.game." + _root.projectile) + ".xm") * 1.05;
combos++;
combotime = 3;
gravity = -22;
airborn = "y";
_y = (_y - 11);
Set(("_root.game." + _root.projectile) + ".xm", xm * -0.5);
Set(("_root.game." + _root.projectile) + ".gravity", eval (("_root.game." + _root.projectile) + ".gravity") - 10);
this.dir.ani.gotoAndStop("hit");
_root.projectile = null;
_root.oldprojx = _x;
_root.oldprojy = _y;
ai = "off";
hitz = 1;
}
axa = 70 * _root.game.harpoon.mod;
if ((((((_root.bike == 1) and (((_root.ax + axa) + 10) > (xx - ww))) and (((_root.ax + axa) - 10) < (xx + ww))) and (yy > (_root.ay - 80))) and ((yy - hh) < _root.ay)) and (gravity >= 0)) {
health = health - 20;
xm = 4 * _root.game.harpoon.mod;
gravity = -66;
airborn = "y";
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
combos++;
combotime = 3;
_root.bikehitz++;
_root.oldbikex = _x;
}
if (airborn == "y") {
hangtime++;
ai = "off";
if ((xm >= 10) or (xm <= -10)) {
if (_root.unlock != 1) {
_root.follow = "_root.game." + _name;
}
focus = 0;
} else {
focus = 1;
}
if ((xm >= 20) or (xm <= -20)) {
_root.projectile = _name;
_root.projectilex = xx;
_root.projectiley = yy;
_root.projectilew = ww;
_root.projectilehh = hh;
} else if (_root.projectile == _name) {
_root.projectile = null;
}
_x = (_x + xm);
if ((_x < max_left) and (hangtime > 2)) {
_x = max_left;
xm = xm * -1;
} else if ((_x > max_right) and (hangtime > 2)) {
_x = max_right;
xm = xm * -1;
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
term = 0;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (((_x + ww) > floor_x1) and ((_x - ww) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
if (hangtime > 20) {
hitz = 1;
}
airborn = "n";
ani1 = "n";
floor = i;
floory = floor_y1;
floorx1 = floor_x1;
floorx2 = floor_x2;
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
hangtime = 0;
if (_x < max_left) {
dir.gotoAndStop(2);
mode = "walk";
} else if (_x > max_right) {
dir.gotoAndStop(1);
mode = "walk";
}
gravity = 0;
xm = 0;
ym = 0;
if (_root.projectile == _name) {
_root.projectile = null;
}
if ((_y != floory) and (floor > 0)) {
_y = floory;
}
if (focus != 1) {
_root.follow = "_root.game.alloy";
xm = 0;
}
focus = 1;
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
if (((_x + ww) < floor_x1) or ((_x - ww) > floor_x2)) {
airborn = "y";
gravity = 4;
this.dir.ani.gotoAndStop("fall");
}
if (health < 1) {
dir.ani.gotoAndStop("hit");
gotoAndPlay (3);
}
if (stun > 0) {
stun--;
}
}
dir.ani.airborn = airborn;
if (combotimer > 0) {
combotimer--;
}
oldhealth = health;
if (hitz == 1) {
hitz = 0;
tellTarget ("_root") {
hitz.start(0, 1);
};
}
if (((floorx2 - floorx1) <= 164) and (airborn != "y")) {
airborn = "y";
if (_root.ax > _x) {
dirmod = 1;
dir.gotoAndStop(2);
} else {
dirmod = -1;
dir.gotoAndStop(1);
}
xm = 16 * dirmod;
gravity = -26;
dir.ani.gotoAndStop("fall");
}
if (((ai == "on") and (stationary > 10)) and (stun < 1)) {
if ((floorx2 - floorx1) > 164) {
if (xx < (floorx1 + 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (xx > (floorx2 - 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (mode == "stand") {
dir.ani.gotoAndStop("stance");
if ((timer < 1) and (looking != 0)) {
option = random(2);
if (option == 1) {
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (_root.ax > (xx + 230)) {
dir.gotoAndStop(2);
mode = "walk";
timer = 80 + random(60);
} else if (_root.ax < (xx - 230)) {
dir.gotoAndStop(1);
mode = "walk";
timer = 80 + random(60);
}
}
} else {
timer = 30 + random(60);
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (((looking < 1) and (dirmod == 1)) and (_root.ax > xx)) {
dir.gotoAndStop(2);
if (mode == "stand") {
timer = 0;
}
} else if (((looking < 1) and (dirmod == -1)) and (_root.ax < xx)) {
dir.gotoAndStop(1);
if (mode == "stand") {
timer = 0;
}
}
if (random(10) < 5) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
}
} else if (mode == "walk") {
dir.ani.gotoAndStop("run");
_x = (_x + (26 * dirmod));
}
}
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (mode == "walk")) {
if ((_root.ax < (xx + 250)) and (_root.ax > (xx - 250))) {
timer = 0;
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
if (timer > 0) {
timer--;
} else {
mode = "stand";
}
if (stationary < 12) {
stationary++;
}
if (airborn == "y") {
stationary = 0;
}
if (stun > 0) {
stun--;
}
Symbol 741 MovieClip Frame 2
gotoAndPlay (1);
Symbol 741 MovieClip Frame 3
dir.ani.gotoAndStop("dead");
Symbol 741 MovieClip Frame 17
_root.killed++;
ww = 0;
hh = 0;
stop();
Symbol 758 MovieClip Frame 21
gotoAndPlay (1);
Symbol 766 MovieClip Frame 3
Set("../../../:airborn", "y");
Set("../../../:gravity", -33);
Set("../../../:xm", 36 * ../../../:dirmod);
Instance of Symbol 635 MovieClip in Symbol 766 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.game.alloy.aflamecnt < 1) {
tellTarget ("../../../../") {
hangtime = 0;
ashotx = _x;
ashoty = _y - 50;
_root.ashotdmg = 25;
_root.ashotmod = dirmod;
_root.ashotx = ashotx;
_root.ashotrange = 140;
_root.ashoty = ashoty;
_root.ashot = "y";
_root.aflame = "y";
if ((_x <= max_left) and (dirmod < 0)) {
xm = 0;
} else if ((_x >= max_right) and (dirmod > 0)) {
xm = 0;
}
};
}
}
Symbol 766 MovieClip Frame 26
_root.aflame = "";
Set("../../../:ai", "on");
tellTarget ("..") {
gotoAndStop (1);
};
Symbol 768 MovieClip Frame 1
Set("../../../:stun", 6);
Symbol 768 MovieClip Frame 7
tellTarget ("..") {
gotoAndStop ("fall");
};
Instance of Symbol 771 MovieClip in Symbol 772 MovieClip Frame 1
onClipEvent (enterFrame) {
if (../../../../:airborn != "y") {
tellTarget ("../..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 772 MovieClip Frame 31
tellTarget ("..") {
gotoAndStop ("hit");
};
Symbol 773 MovieClip Frame 11
stop();
Symbol 774 MovieClip Frame 1
Set("../../:ai", "on");
stop();
Symbol 774 MovieClip Frame 2
Set("../../:ai", "on");
Symbol 774 MovieClip Frame 3
Set("../../:ai", "off");
Instance of Symbol 761 MovieClip in Symbol 774 MovieClip Frame 3
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 774 MovieClip Frame 4
Set("../../:ai", "off");
Symbol 774 MovieClip Frame 5
Set("../../:ai", "off");
Instance of Symbol 768 MovieClip in Symbol 774 MovieClip Frame 5
onClipEvent (enterFrame) {
if (../../../:airborn != "y") {
tellTarget ("..") {
gotoAndStop (1);
};
airtime++;
}
}
Symbol 774 MovieClip Frame 6
Set("../../:ai", "off");
Symbol 774 MovieClip Frame 7
Set("../../:ai", "off");
freeze = 1;
Instance of Symbol 574 MovieClip in Symbol 774 MovieClip Frame 7
onClipEvent (load) {
thaw = 30;
}
onClipEvent (enterFrame) {
thaw--;
if (thaw < 1) {
tellTarget ("..") {
gotoAndStop ("run");
};
}
}
onClipEvent (unload) {
if (../:freeze == 1) {
tellTarget ("../ice") {
play();
};
Set("../:freeze", 0);
}
}
Symbol 774 MovieClip Frame 8
Set("../../:ai", "off");
Symbol 774 MovieClip Frame 9
Set("../../:ai", "off");
Symbol 775 MovieClip Frame 1
Set("../:dirmod", -1);
stop();
Symbol 775 MovieClip Frame 2
Set("../:dirmod", 1);
Symbol 776 MovieClip Frame 1
if (!init) {
dir.gotoAndStop(random(2) + 1);
health = 300;
maxhealth = 300;
bodydmg = 20;
gundmg = 10;
init = 1;
name = "FirePitz";
pic = "Pitz5";
N = 1;
NN = 0;
_root.tenem++;
while (NN == 0) {
if (eval (("_root.game.enemy" + N) + ".health") < 1) {
_name = ("enemy" + N);
if (N > _root.enemies) {
_root.enemies = N;
}
NN = 1;
}
N++;
}
}
if (health < oldhealth) {
if (beenhit != "y") {
_root.attackz++;
}
beenhit = "y";
}
if ((beenhit == "y") and (airborn == "y")) {
hangbonus++;
} else {
if (int(hangbonus / 30) > 1) {
points = int(hangbonus / 30) * 100;
_root.game.hangtxt.hits = int(hangbonus / 30);
_root.game.hangtxt.points = points;
_root.game.hangtxt._y = _root.game.alloy._y - 64;
_root.game.hangtxt._x = _x;
_root.game.hangtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
hangbonus = 0;
beenhit = "";
}
ww = (_width / 2) - 5;
hh = _height;
xx = _x;
yy = _y;
max_right = _root.game.alloy.max_right;
max_left = _root.game.alloy.max_left;
if ((airborn != "y") and (health < 1)) {
combotime = 0;
if (_root.meattime < 2) {
_root.grinder++;
_root.meatx = _x;
}
}
if (combotime > 0) {
if ((airborn != "y") and (_root.charging != 1)) {
combotime = combotime - 1;
}
} else if (combos > 0) {
if (points > 0) {
_root.game.combotxt.hits = combos;
points = (points * combos) * 10;
_root.game.combotxt.points = points;
_root.game.combotxt._y = _root.game.alloy._y;
_root.game.combotxt._x = _x;
_root.game.combotxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
points = 0;
combos = 0;
}
if (((((((_root.game.alloy.airborn != "y") and (_root.harp == 1)) and (_root.harpooned == null)) and (_root.harpx > (xx - ww))) and (_root.harpx < (xx + ww))) and (_root.harpy > ((yy - hh) - 16))) and (_root.harpy < (yy + 16))) {
_root.harpooned = "_root.game." + _name;
ani1 = "";
airborn = "y";
_root.harppp = 1;
ai = "off";
hitz = 1;
}
if (_root.projectile != null) {
_root.projectile_time = 3;
}
if ((((_root.desperation == "y") and (_root.game.alloy._y > (yy - hh))) and (_root.game.alloy._y < (yy + 100))) and (gravity >= 0)) {
if ((_root.game.alloy._x < xx) and ((_root.game.alloy._x + 85) > (xx - ww))) {
health = health - 20;
xm = 25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
} else if ((_root.game.alloy._x > xx) and ((_root.game.alloy._x - 85) < (xx + ww))) {
health = health - 20;
xm = -25;
combotime = 3;
gravity = -32 + random(15);
airborn = "y";
_y = (_y - 11);
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
}
if (hitz == 1) {
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = _x;
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
}
if ((((((_root.projectile != _name) and (_root.projectile != null)) and (_root.projectilex > (xx - ww))) and (_root.projectilex < (xx + ww))) and (_root.projectiley > (yy - hh))) and (_root.projectiley < yy)) {
if (_root.projectile_time > 0) {
_root.projectile_string++;
}
health = health - eval (("_root.game." + _root.projectile) + ".bodydmg");
xm = eval (("_root.game." + _root.projectile) + ".xm") * 1.05;
combos++;
combotime = 3;
gravity = -22;
airborn = "y";
_y = (_y - 11);
Set(("_root.game." + _root.projectile) + ".xm", xm * -0.5);
Set(("_root.game." + _root.projectile) + ".gravity", eval (("_root.game." + _root.projectile) + ".gravity") - 10);
this.dir.ani.gotoAndStop("hit");
_root.projectile = null;
_root.oldprojx = _x;
_root.oldprojy = _y;
ai = "off";
hitz = 1;
}
axa = 70 * _root.game.harpoon.mod;
if ((((((_root.bike == 1) and (((_root.ax + axa) + 10) > (xx - ww))) and (((_root.ax + axa) - 10) < (xx + ww))) and (yy > (_root.ay - 80))) and ((yy - hh) < _root.ay)) and (gravity >= 0)) {
health = health - 20;
xm = 4 * _root.game.harpoon.mod;
gravity = -66;
airborn = "y";
this.dir.ani.gotoAndStop("hit");
ai = "off";
hitz = 1;
combos++;
combotime = 3;
_root.bikehitz++;
_root.oldbikex = _x;
}
if (airborn == "y") {
hangtime++;
ai = "off";
if ((xm >= 10) or (xm <= -10)) {
if (_root.unlock != 1) {
_root.follow = "_root.game." + _name;
}
focus = 0;
} else {
focus = 1;
}
if ((xm >= 20) or (xm <= -20)) {
_root.projectile = _name;
_root.projectilex = xx;
_root.projectiley = yy;
_root.projectilew = ww;
_root.projectilehh = hh;
} else if (_root.projectile == _name) {
_root.projectile = null;
}
_x = (_x + xm);
if ((_x < max_left) and (hangtime > 2)) {
_x = max_left;
xm = xm * -1;
} else if ((_x > max_right) and (hangtime > 2)) {
_x = max_right;
xm = xm * -1;
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
term = 0;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (((_x + ww) > floor_x1) and ((_x - ww) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
if (hangtime > 20) {
hitz = 1;
}
airborn = "n";
ani1 = "n";
floor = i;
floory = floor_y1;
floorx1 = floor_x1;
floorx2 = floor_x2;
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
hangtime = 0;
if (_x < max_left) {
dir.gotoAndStop(2);
mode = "walk";
} else if (_x > max_right) {
dir.gotoAndStop(1);
mode = "walk";
}
gravity = 0;
xm = 0;
ym = 0;
if (_root.projectile == _name) {
_root.projectile = null;
}
if ((_y != floory) and (floor > 0)) {
_y = floory;
}
if (focus != 1) {
_root.follow = "_root.game.alloy";
xm = 0;
}
focus = 1;
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
if (((_x + ww) < floor_x1) or ((_x - ww) > floor_x2)) {
airborn = "y";
gravity = 4;
this.dir.ani.gotoAndStop("fall");
}
if (health < 1) {
dir.ani.gotoAndStop("hit");
gotoAndPlay (3);
}
if (stun > 0) {
stun--;
}
}
dir.ani.airborn = airborn;
if (combotimer > 0) {
combotimer--;
}
oldhealth = health;
if (hitz == 1) {
hitz = 0;
tellTarget ("_root") {
hitz.start(0, 1);
};
}
if (((floorx2 - floorx1) <= 164) and (airborn != "y")) {
airborn = "y";
if (_root.ax > _x) {
dirmod = 1;
dir.gotoAndStop(2);
} else {
dirmod = -1;
dir.gotoAndStop(1);
}
xm = 16 * dirmod;
gravity = -26;
dir.ani.gotoAndStop("fall");
}
if (((ai == "on") and (stationary > 10)) and (stun < 1)) {
if ((floorx2 - floorx1) > 164) {
if (xx < (floorx1 + 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (xx > (floorx2 - 10)) {
_x = (floorx1 + 10);
mode = "stand";
timer = 30 + random(10);
} else if (mode == "stand") {
dir.ani.gotoAndStop("stance");
if ((timer < 1) and (looking != 0)) {
option = random(2);
if (option == 1) {
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (_root.ax > (xx + 100)) {
dir.gotoAndStop(2);
mode = "walk";
timer = 20 + random(10);
} else if (_root.ax < (xx - 100)) {
dir.gotoAndStop(1);
mode = "walk";
timer = 20 + random(10);
}
}
} else {
timer = 30 + random(60);
if ((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) {
if (((looking < 1) and (dirmod == 1)) and (_root.ax > xx)) {
dir.gotoAndStop(2);
if (mode == "stand") {
timer = 0;
}
} else if (((looking < 1) and (dirmod == -1)) and (_root.ax < xx)) {
dir.gotoAndStop(1);
if (mode == "stand") {
timer = 0;
}
}
if (random(10) < 5) {
if (_root.ax > xx) {
dir.gotoAndStop(2);
} else {
dir.gotoAndStop(1);
}
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
}
} else if (mode == "walk") {
dir.ani.gotoAndStop("run");
_x = (_x + (12 * dirmod));
}
}
if (((_root.ay > (yy - hh)) and (_root.ay < (yy + 20))) and (mode == "walk")) {
if ((_root.ax < (xx + 200)) and (_root.ax > (xx - 200))) {
timer = 0;
ai = "off";
dir.ani.gotoAndStop("shoot");
}
}
}
if (timer > 0) {
timer--;
} else {
mode = "stand";
}
if (stationary < 12) {
stationary++;
}
if (airborn == "y") {
stationary = 0;
}
if (stun > 0) {
stun--;
}
Symbol 776 MovieClip Frame 2
gotoAndPlay (1);
Symbol 776 MovieClip Frame 3
dir.ani.gotoAndStop("dead");
Symbol 776 MovieClip Frame 17
_root.killed++;
ww = 0;
hh = 0;
stop();
Symbol 777 MovieClip Frame 1
Instance of Symbol 346 MovieClip "alloy" in Symbol 777 MovieClip Frame 1
onClipEvent (load) {
max_left = 72;
max_right = (_root.game._width / (_root.game._xscale / 100)) - 72;
height = _height;
swing = new Sound();
swing.attachSound("swing");
metal = new Sound();
metal.attachSound("hitzmetal");
lightining = new Sound();
lightining.attachSound("lightning");
icegun = new Sound();
icegun.attachSound("icegun");
}
onClipEvent (enterFrame) {
if (!init) {
health = 100;
maxhealth = 100;
init = 1;
}
if (ani1 != "y") {
defense = "";
}
if ((airborn == "y") and (_root.attackz > 0)) {
airtime++;
} else if (airborn != "y") {
airtimer = int(airtime / 30);
if (((_root.attackz > 0) and (airtimer > 1)) or ((_root.attackz > 1) and (airtimer > 0))) {
points = (airtimer * _root.attackz) * 100;
_root.game.airtxt.airtime = airtimer;
_root.game.airtxt.hits = _root.attackz;
_root.game.airtxt.points = points;
_root.game.airtxt._y = _y - 84;
_root.game.airtxt._x = _x;
_root.game.airtxt.gotoAndPlay(2);
_root.score = _root.score + points;
}
_root.attackz = 0;
airtime = 0;
}
if ((_root.ashot == "y") and (health > 0)) {
_root.ashot = "";
if (((_root.ashotx > _x) and ((_root.ashotx - _root.ashotrange) < _x)) and (_root.ashotmod < 0)) {
ainrange = "y";
} else if (((_root.ashotx < _x) and ((_root.ashotx + _root.ashotrange) > _x)) and (_root.ashotmod > 0)) {
ainrange = "y";
} else {
ainrange = "";
}
if (((((_y > _root.ashoty) and ((_y - height) < _root.ashoty)) and (((_x - _root.ashotx) * _root.ashotmod) > 0)) and (ainrange == "y")) and (defense != "on")) {
if (_root.ashotx > _x) {
gotoAndStop (2);
xxmm = -40;
} else {
xxmm = 40;
gotoAndStop (1);
}
_root.frozen = 0;
ani3 = 1;
this.ani.gotoAndStop("hit");
health = health - _root.ashotdmg;
ani1 = "y";
if (_root.aflame == "y") {
airborn = "y";
gravity = -45;
xm = xxmm;
aflamecnt = 15;
}
}
}
if (((_root.impx + _root.impy) > 0) and (_root.targeted != null)) {
if (_root.kickcombo == "y") {
_root.kickz++;
}
if (_root.punching == 1) {
Set(_root.targeted + ".hitz", 1);
Set(_root.targeted + ".combotime", 14);
Set(_root.targeted + ".combos", eval (_root.targeted + ".combos") + 1);
Set(_root.targeted + ".points", eval (_root.targeted + ".points") + _root.damage);
if (_root.impcharge == 3) {
_root.game.sfx3._y = _y - 60;
_root.game.sfx3._x = _x + (200 * _root.game.harpoon.mod);
_root.game.sfx3.play();
}
} else if (_root.gun != 1) {
Set(_root.targeted + ".combotime", 5);
Set(_root.targeted + ".combos", eval (_root.targeted + ".combos") + 1);
Set(_root.targeted + ".points", eval (_root.targeted + ".points") + 50);
} else {
_root.meat = 20;
_root.meattime = 0;
_root.score = _root.score + 5;
}
if ((gravity22 != 0) and (xm22 != 0)) {
gravity = gravity22;
xm = xm22;
}
gravity22 = 0;
xm22 = 0;
if (_root.blood == "y") {
_root.blood = "";
_root.game.spfx._y = _root.ay - 60;
_root.game.spfx._x = eval (_root.targeted + "._x");
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
if (_root.spark == "y") {
_root.spark = "";
_root.game.spfx2._y = _root.ay - 60;
_root.game.spfx2._x = eval (_root.targeted + "._x");
tellTarget ("_root.game") {
efx++;
duplicateMovieClip ("spfx2", "newfx" + efx, 999 + efx);
};
tellTarget ("_root.game.newfx" + efx) {
play();
};
}
if ((_root.freeze == 1) and (eval (_root.targeted + ".pic") == "Pitz4")) {
} else {
Set(_root.targeted + ".health", eval (_root.targeted + ".health") - _root.damage);
_root.damage = 0;
_root.unlock = 0;
Set(_root.targeted + ".xm", _root.impx * _root.game.harpoon.mod);
Set(_root.targeted + ".gravity", _root.impy * -1);
Set(_root.targeted + ".airborn", "y");
}
if (_root.game.harpoon.mod > 0) {
tellTarget (_root.targeted + ".dir") {
gotoAndStop ("left");
};
} else {
tellTarget (_root.targeted + ".dir") {
gotoAndStop ("right");
};
}
if (((eval (_root.targeted + ".health") < 1) and (_root.targeted != null)) and (eval (_root.targeted + ".airborn") != "y")) {
tellTarget (_root.targeted + ".dir.ani") {
gotoAndStop ("hit");
};
trm = 0;
_root.kills++;
newname = eval (_root.targeted + "._name");
Set(_root.targeted + "._name", "kill_" + _root.kills);
Set(("_root.game.enemy" + _root.enemies) + "._name", newname);
_root.targeted = null;
} else if (_root.freeze == 1) {
_root.freeze = 0;
tellTarget (_root.targeted + ".dir.ani") {
gotoAndStop ("frozen");
};
} else if (_root.zap == 1) {
_root.zap = 0;
tellTarget (_root.targeted + ".dir.ani") {
gotoAndStop ("zapped");
};
} else if (((_root.imx + _root.impy) > 20) or ((_root.targeted + ".airborn") == "y")) {
tellTarget (_root.targeted + ".dir.ani") {
gotoAndStop ("hit");
};
} else {
tellTarget (_root.targeted + ".dir.ani") {
gotoAndStop ("beatdown");
};
}
_root.impx = 0;
_root.impy = 0;
}
_root.djump = "";
if (ani1 != "y") {
_root.harpy = _y - 60;
_root.harpx = _x + (95 * _root.game.harpoon.mod);
_root.game.harpoon._y = _root.harpy;
_root.game.harpoon._x = _root.harpx;
_root.harpooned = null;
}
xx = _x;
ww = 50;
yy = _y;
hh = 120;
aw = 32;
term = 0;
dashtimer = 6;
dashdelay = 2;
dashtime = 20;
if (key.isDown(68)) {
if (phold < 13) {
phold++;
}
} else {
phold = 0;
}
if (key.isDown(65)) {
if (jhold < 13) {
jhold++;
}
} else {
jhold = 0;
}
if (_root.frozen == 1) {
this.ani.gotoAndStop("frozen");
} else if (airborn == "y") {
wait4drop = 10;
if (((((key.isDown(65) and (firstjump < 1)) and (gravity > 2)) and (gravity != 0)) and (jhold < 10)) and (ani3 != 1)) {
ani1 = "y";
jump = "y";
firstjump = 1;
this.ani.gotoAndStop(1);
_root.djump = "y";
this.ani.gotoAndStop("jump");
}
_x = (_x + xm);
if (_x < max_left) {
_x = max_left;
} else if (_x > max_right) {
_x = max_right;
}
dashingl = 0;
dashingr = 0;
if (Key.isDown(37)) {
xm = xm - 1;
} else if (Key.isDown(39)) {
xm = xm + 1;
}
if (xm > 10) {
xm = 10;
}
if (xm < -10) {
xm = -10;
}
ani1 = "y";
if (ani3 == 1) {
this.ani.gotoAndStop("hit");
jump = "n";
} else if (key.isDown(68) or (ani3 == "y")) {
this.ani.gotoAndStop("airstrike");
} else if (((key.isDown(83) or (ani2 == "y")) and (airborn == "y")) and (jump != "y")) {
this.ani.gotoAndStop("airshoot");
jump = "n";
shoot = "y";
} else {
this.ani.gotoAndStop("jump");
shoot = "n";
}
gravity = gravity + 3;
if (gravity > 50) {
gravity = 50;
}
this._y = this._y + gravity;
i = 1;
while (term != 1) {
floor_x1 = eval (("_root.game.floor" + i) + ".x1");
floor_x2 = eval (("_root.game.floor" + i) + ".x2");
floor_y1 = eval (("_root.game.floor" + i) + ".y1");
floor_y2 = eval (("_root.game.floor" + i) + ".y2");
if (gravity > 0) {
if (_y >= base_floor) {
_y = base_floor;
airborn = "n";
}
if (((_x + aw) > floor_x1) and ((_x - aw) < floor_x2)) {
if ((_y >= floor_y1) and ((_y - 50) < floor_y1)) {
_y = floor_y1;
airborn = "n";
floor = i;
if (((shoot == "y") or (ani3 == "y")) or (gravity < 8)) {
ani1 = "n";
ani3 = "n";
}
}
}
}
if (eval (("_root.game.floor" + (i + 1)) + ".exists") != "y") {
term = 1;
}
i++;
}
} else {
if (health < 1) {
ani1 = "y";
this.ani.gotoAndStop("die");
}
firstjump = 0;
if (ani1 != "y") {
if (Key.isDown(37)) {
this.gotoAndStop("left");
if (dashingr == 1) {
_x = (_x - 15);
if (_x < max_left) {
_x = max_left;
} else if (_x > max_right) {
_x = max_right;
}
}
} else if (Key.isDown(39)) {
this.gotoAndStop("right");
if (dashingl == 1) {
_x = (_x + 15);
if (_x < max_left) {
_x = max_left;
} else if (_x > max_right) {
_x = max_right;
}
}
}
if (((key.isDown(65) and (dashingl != 1)) and (dashingr != 1)) and (jhold < 10)) {
ani1 = "y";
jump = "y";
_root.hasjumped = "y";
this.ani.gotoAndStop("jump");
if (Key.isDown(37)) {
xm = -10;
} else if (Key.isDown(39)) {
xm = 10;
} else {
xm = 0;
}
} else if (((key.isDown(68) and (dashingl != 1)) and (dashingr != 1)) and (wait4drop < 5)) {
ani1 = "y";
if (key.isDown(40)) {
this.ani.gotoAndStop("desperation");
} else {
this.ani.gotoAndStop("punch");
}
} else if ((key.isDown(83) and (dashingl != 1)) and (dashingr != 1)) {
this.ani.gotoAndStop("shoot");
} else if ((dashingl == 1) or (((key.isDown(37) and (ldash > 0)) and (ldash < (dashtimer - dashdelay))) and (dash4 < dashtime))) {
ldash = dashtimer - dashdelay;
this.ani.gotoAndStop("dash");
dashingl = 1;
_x = (_x - 30);
if (_x < max_left) {
_x = max_left;
} else if (_x > max_right) {
_x = max_right;
}
dash4++;
if (dash4 >= dashtime) {
ldash = -100;
dashingl = 0;
}
} else if ((dashingr == 1) or (((key.isDown(39) and (rdash > 0)) and (rdash < (dashtimer - dashdelay))) and (dash4 < dashtime))) {
rdash = dashtimer - dashdelay;
this.ani.gotoAndStop("dash");
dashingr = 1;
_x = (_x + 30);
if (_x < max_left) {
_x = max_left;
} else if (_x > max_right) {
_x = max_right;
}
dash4++;
if (dash4 >= dashtime) {
rdash = -100;
dashingr = 0;
}
} else if (Key.isDown(37)) {
_x = (_x - 9);
this.ani.gotoAndStop("walk");
if (dash4 < 1) {
ldash = dashtimer;
} else {
dash4 = 0;
}
} else if (Key.isDown(39)) {
_x = (_x + 9);
this.ani.gotoAndStop("walk");
if (dash4 < 1) {
rdash = dashtimer;
} else {
dash4 = 0;
}
} else if (airborn != "y") {
this.ani.gotoAndStop("stand");
}
}
floor_x1 = eval (("_root.game.floor" + floor) + ".x1");
floor_x2 = eval (("_root.game.floor" + floor) + ".x2");
floor_y1 = eval (("_root.game.floor" + floor) + ".y1");
floor_y2 = eval (("_root.game.floor" + floor) + ".y2");
floor_solid = eval (("_root.game.floor" + floor) + ".solid");
if ((key.isDown(40) and (floor_solid == "n")) and (wait4drop < 1)) {
if (droptimerz > 4) {
airborn = "y";
ani1 = "";
jump = "n";
gravity = 4;
_y = (_y + 50);
} else if (key.IsDown(68) and (ani1 != "y")) {
ani1 = "y";
this.ani.gotoAndStop("desperation");
} else if (ani1 != "y") {
droptimerz++;
}
} else {
droptimerz = 0;
}
if ((((_x + aw) < floor_x1) or ((_x - aw) > floor_x2)) and (_y < base_floor)) {
airborn = "y";
gravity = 4;
wait4drop = 10;
}
}
if (ldash > 0) {
ldash--;
}
if (rdash > 0) {
rdash--;
}
if (_x < max_left) {
_x = max_left;
xm = 0;
dash4 = 0;
dashingr = 0;
dashingl = 0;
} else if (_x > max_right) {
_x = max_right;
xm = 0;
dash4 = 0;
dashingr = 0;
dashingl = 0;
_root.flag = "ON";
} else {
_root.flag = "";
}
if (wait4drop > 0) {
wait4drop--;
}
if (_root.harpoon > 0) {
_root.harpoon--;
}
if (aflamecnt > 0) {
aflamecnt--;
}
if (_root.guntime > 0) {
_root.guntime--;
} else {
_root.gun = 1;
}
_root.ax = _x;
_root.ay = _y;
if (health < 1) {
health = 0;
}
if ((_root.meattime >= 2) and (_root.grinder > 1)) {
_root.game.meattxt.hits = _root.grinder;
points = 50 + (50 * _root.grinder);
_root.score = _root.score + points;
_root.game.meattxt.points = points;
_root.game.meattxt._x = _root.meatx;
_root.game.meattxt._y = _y;
_root.game.meattxt.gotoAndPlay(2);
_root.grinder = 0;
grinder = "";
_root.meattime = 10;
}
if (!key.isDown(83)) {
_root.meattime = 10;
}
if (airborn != "y") {
_root.kickcombo = "";
}
if ((_root.kickz > 0) and (_root.kickcombo != "y")) {
if (_root.kickz > _root.records.bestkickcombo) {
_root.records.bestkickcombo = _root.kickz;
}
_root.kickz = 0;
}
if (_root.impcharge > 0) {
_root.impcharge = 0;
}
}
Instance of Symbol 373 MovieClip in Symbol 777 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!x1) and (!y1)) {
x1 = _x;
x2 = _x + _width;
y1 = _y;
y2 = _y + _width;
}
}
Symbol 777 MovieClip Frame 3
stop();
Instance of Symbol 482 MovieClip in Symbol 777 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((!x1) and (!y1)) {
x1 = _x;
x2 = _x + _width;
y1 = _y;
y2 = _y + _width;
}
}
Instance of Symbol 482 MovieClip in Symbol 777 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((!x1) and (!y1)) {
x1 = _x;
x2 = _x + _width;
y1 = _y;
y2 = _y + _width;
}
}
Instance of Symbol 482 MovieClip in Symbol 777 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((!x1) and (!y1)) {
x1 = _x;
x2 = _x + _width;
y1 = _y;
y2 = _y + _width;
}
}
Symbol 777 MovieClip Frame 5
stop();
Symbol 777 MovieClip Frame 7
stop();
Symbol 777 MovieClip Frame 9
stop();
Symbol 777 MovieClip Frame 11
stop();
Symbol 777 MovieClip Frame 13
stop();
Symbol 777 MovieClip Frame 15
stop();
Symbol 777 MovieClip Frame 17
stop();
Symbol 777 MovieClip Frame 19
stop();
Symbol 777 MovieClip Frame 21
stop();
Symbol 777 MovieClip Frame 23
stop();
Symbol 777 MovieClip Frame 25
stop();
Symbol 777 MovieClip Frame 27
stop();
Symbol 777 MovieClip Frame 29
stop();
Symbol 777 MovieClip Frame 31
stop();
Symbol 777 MovieClip Frame 33
stop();
Symbol 777 MovieClip Frame 35
stop();
Symbol 777 MovieClip Frame 37
gotoAndStop (9);
Symbol 789 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 2
stop();
Symbol 804 MovieClip Frame 1
Set("../:name", "Mini-Gun");
Symbol 804 MovieClip Frame 2
Set("../:name", "Ice Blaster");
Symbol 804 MovieClip Frame 3
Set("../:name", "Electro Gun");
Set("../:name", "Bolt Cannon");
Instance of Symbol 804 MovieClip in Symbol 805 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.gun);
}
Symbol 809 MovieClip Frame 1
if (_root.game.alloy.health > 0) {
milsecs++;
if (milsecs == 30) {
secs++;
milsecs = 0;
}
_root.records.endurance = secs;
if (!fiddythou) {
if (_root.score >= 50000) {
fiddythou = 1;
_root.records.fastestscore = secs;
}
}
if ((_root.projectile_time < 1) and (_root.projectile_string > 0)) {
_root.game.projtxt._x = _root.oldprojx;
_root.game.projtxt._y = _root.oldprojy;
_root.game.projtxt.hits = _root.projectile_string;
points = int(100 * (1.5 * _root.projectile_string));
_root.game.projtxt.points = points;
_root.score = _root.score + points;
_root.projectile_string = 0;
_root.game.projtxt.gotoAndPlay(2);
}
_root.projectile_time = _root.projectile_time - 1;
if ((_root.bike != 1) and (_root.bikehitz > 0)) {
_root.game.biketxt._x = _root.oldbikex;
_root.game.biketxt._y = _root.game.alloy._y;
_root.game.biketxt.hits = _root.bikehitz;
points = int(50 * (1.5 * _root.bikehitz));
_root.game.biketxt.points = points;
_root.score = _root.score + points;
_root.bikehitz = 0;
_root.game.biketxt.gotoAndPlay(2);
}
if (_root.usedgun != "y") {
_root.records.bestnoshoot = _root.score;
}
if (_root.hasjumped != "y") {
_root.records.bestnojump = _root.score;
}
score = int(_root.score);
}
Symbol 809 MovieClip Frame 2
gotoAndPlay (1);
Symbol 811 Button
on (keyPress "r") {
nextFrame();
}
on (keyPress "k") {
_root.game.alloy.health = 0;
}
Symbol 826 Button
on (keyPress "r") {
if (_root.gameover != "y") {
prevFrame();
}
}
Symbol 850 Button
on (release) {
if (player.length > 0) {
play();
}
}
Symbol 853 Button
on (release) {
getURL ("javascript:location.reload();");
}
Symbol 856 Button
on (release) {
gotoAndStop (3);
}
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 3
score = _root.score;
Symbol 860 MovieClip Frame 4
loadVariables ("http://www.psychogoldfish.com/alloy/sessions.php", "_root.records", "POST");
Symbol 860 MovieClip Frame 8
wait++;
if (wait > 300) {
gotoAndStop (20);
}
if (session.length < 3) {
gotoAndPlay (6);
}
Symbol 860 MovieClip Frame 10
loadVariables ("http://www.psychogoldfish.com/alloy/savescores.php", "_root.records", "POST");
wait = 0;
Symbol 860 MovieClip Frame 13
wait++;
if (wait > 300) {
gotoAndStop (20);
}
if (error.length < 1) {
gotoAndPlay (11);
}
Symbol 860 MovieClip Frame 14
getURL ("http://www.psychogoldfish.com/alloy/saved.php", "_blank", "POST");
Symbol 860 MovieClip Frame 15
stop();