Frame 1
var \t = 2;
if (!\t) {
// swfAction0xFB hexdata 0x88,0x41,0x94 // Unknown action
}
// swfAction0x59 // Unknown action
Frame 2
gotoAndPlay (33);
Frame 33
var mouse_listener = new Object();
mouse_listener.onMouseUp = function () {
if (_root._ymouse >= GAME_HEIGHT) {
return(undefined);
}
com.gamebrew.Common.SoundPlay("click.wav");
_root.getURL(_root.HOME_URL, "_blank");
};
Mouse.addListener(mouse_listener);
Frame 97
stop();
Mouse.removeListener(mouse_listener);
delete mouse_listener;
gotoAndPlay (98);
Frame 98
function PlayGame() {
com.gamebrew.Common.MusicStop();
gotoAndPlay ("play");
}
function MoreGames() {
com.gamebrew.Common.SoundPlay("scan");
_root.getURL("http://www.arcadeprehacks.com", "_blank");
}
function ShowCredits() {
gotoAndPlay ("credits");
}
function ShowControls() {
gotoAndPlay ("controls");
}
function MainMenu() {
gotoAndPlay ("menu");
}
_root._quality = "BEST";
com.gamebrew.Common.MusicSet("ambience");
com.gamebrew.Common.MusicPlay();
Instance of Symbol 504 MovieClip in Frame 117
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.PlayGame();
}
}
Instance of Symbol 506 MovieClip in Frame 122
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.ShowControls();
}
}
Instance of Symbol 508 MovieClip "mc_but_more" in Frame 127
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.ShowCredits();
}
}
Instance of Symbol 510 MovieClip in Frame 132
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MoreGames();
}
}
Frame 137
stop();
Frame 157
gotoAndPlay (239);
stop();
Frame 176
gotoAndPlay (447);
stop();
Frame 207
stop();
mc_gb_logo.onRollOver = function () {
this.useHandCursor = true;
};
Instance of Symbol 525 MovieClip in Frame 207
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu();
}
}
Frame 238
stop();
Instance of Symbol 525 MovieClip in Frame 238
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu();
}
}
Frame 239
function GameMessage(txt, sndlib) {
if (mc_screen.mc_round != undefined) {
mc_screen.removeMovieClip("mc_round");
}
var _local1 = mc_screen.attachMovie("mc_round", "mc_round", mc_screen.getNextDepthAt(DEPTH_HUD));
_local1._x = 200;
_local1._y = 140;
_local1.txt_message = txt;
}
function Game_KillEnemy(enemy) {
player.kills++;
var _local9 = player.kills;
var _local5 = 0;
var _local4 = 0;
var _local3 = 0;
var _local6 = map_actors.length;
var _local2 = 0;
while (_local2 < _local6) {
var _local1 = map_actors[_local2];
if (((_local1 == player) || (_local1.hp <= 0)) || (_local1.type_name == "fixed")) {
} else if (_local1.type_name == "weapon") {
_local3++;
} else if ((_local1.team == TEAM_ENEMY) && (_local1.type_name == "carry")) {
_local5++;
} else if (_local1.type_name == "carry") {
_local4++;
}
_local2++;
}
var _local8 = int(_local9 / AI_KILLS_PER_LEVEL);
if (level != _local8) {
level = _local8;
player.score = player.score + (level * 100);
GameMessage("level " + _local8);
ActorAppearGoto("mc_items", "heal");
if (_local4 <= 3) {
var _local11 = CARRIES[com.gamebrew.Common.RandomInteger(0, CARRIES.length - 1)];
ActorAppearGoto("mc_items", _local11);
}
if (_local3 <= 5) {
_local3++;
var _local11 = WEAPONS[Math.min(level + 1, WEAPONS.length - 1)];
ActorAppearGoto("mc_items", _local11);
}
}
level_delay = com.gamebrew.Common.NumberConfine((AI_MAX_DELAY - _local9) - AI_MIN_DELAY, AI_MIN_DELAY, AI_MAX_DELAY);
var _local10 = com.gamebrew.Common.NumberConfine(level, MIN_ENEMIES, MAX_ENEMIES);
var _local7 = _local10 - _local5;
_local2 = 0;
while (_local2 < _local7) {
a = ActorAdd("mc_smith", DEPTH_CHAR, -1, com.gamebrew.Common.RandomInteger(0, Stage.width), (-com.gamebrew.Common.RandomInteger(0, 50)) - 25);
if (_local3 <= 5) {
a.weapon_switch = WEAPONS[com.gamebrew.Common.RandomInteger(1, Math.min(level, WEAPONS.length - 1))];
}
a.CallAi = AiComputer;
a.team = TEAM_ENEMY;
a.hp = MIN_ENEMY_HP + level;
_local2++;
}
}
function Game_AttackTile(actor) {
var _local5 = actor.box_attack;
var _local3 = new flash.geom.Rectangle((actor.xp + (_local5._x * actor.face)) - ((actor.face == -1) ? (_local5._width) : 0), actor.yp + _local5._y, _local5._width, _local5._height);
var _local9 = int((_local3.y - (actor.yp - actor.last_yp)) / GRID_SIZE);
var _local8 = Math.ceil((_local3.y + _local5._height) / GRID_SIZE);
if ((actor.xs > 0) || ((actor.xs == 0) && (actor.face == 1))) {
var _local12 = _local3.x + _local5._width;
var _local11 = int((_local3.x - (actor.xp - actor.last_xp)) / GRID_SIZE);
var _local10 = int(_local12 / GRID_SIZE);
var _local6 = _local11;
while (_local6 <= _local10) {
var _local4 = _local9;
while (_local4 < _local8) {
var _local7 = map_solid[_local6 + (_local4 * GRID_WIDTH)];
if ((actor.dam_tile == 1) && (_local7 == 0)) {
} else {
var _local2 = map_ref[_local6 + (_local4 * GRID_WIDTH)];
if (((map_tile[_local2] == -1) || (map_hp[_local2] <= 0)) || (actor.check_dam_tile.contains(_local2))) {
} else {
TileBreak(_local2, _local7, int(actor.dam_hp / 2));
actor.check_dam_tile.pushUnique(_local2);
if ((actor.dam_tile == 1) && (actor.is_heavy == false)) {
actor.xp = (_local6 * GRID_SIZE) - (((_local5._x * actor.face) + _local5._width) + 1);
actor.xs = 0;
}
if (actor.dam_self_hp > 0) {
actor.hp = actor.hp - actor.dam_self_hp;
if (actor.hp < 1) {
actor.hp = 1;
}
}
if ((actor.on_contact != null) && (actor.on_contact != "_ammo")) {
actor.goto = actor.on_contact;
}
if ((_local7 > 0) && (actor.on_contact_call != null)) {
ActorAdd(actor.on_contact_call, DEPTH_FX, actor.face, _local3.x + _local5._width, _local3.y + (_local3.height / 2));
}
}
}
_local4++;
}
_local6++;
}
} else if ((actor.xs < 0) || ((actor.xs == 0) && (actor.face == -1))) {
var _local12 = _local3.x;
var _local11 = int((((_local12 + _local5._width) - 1) - (actor.xp - actor.last_xp)) / GRID_SIZE);
var _local10 = int(_local12 / GRID_SIZE);
var _local6 = _local11;
while (_local6 >= _local10) {
var _local4 = _local9;
while (_local4 < _local8) {
var _local7 = map_solid[_local6 + (_local4 * GRID_WIDTH)];
if ((actor.dam_tile == 1) && (_local7 == 0)) {
} else {
var _local2 = map_ref[_local6 + (_local4 * GRID_WIDTH)];
if (((map_tile[_local2] == -1) || (map_hp[_local2] <= 0)) || (actor.check_dam_tile.contains(_local2))) {
} else {
TileBreak(_local2, _local7, actor.dam_hp);
actor.check_dam_tile.pushUnique(_local2);
if ((actor.dam_tile == 1) && (actor.is_heavy == false)) {
actor.xp = ((_local6 + 1) * GRID_SIZE) - ((_local5._x * actor.face) - _local5._width);
actor.xs = 0;
}
if (actor.dam_self_hp > 0) {
actor.hp = actor.hp - actor.dam_self_hp;
if (actor.hp < 1) {
actor.hp = 1;
}
}
if ((actor.on_contact != null) && (actor.on_contact != "_ammo")) {
actor.goto = actor.on_contact;
}
if ((_local7 > 0) && (actor.on_contact_call != null)) {
ActorAdd(actor.on_contact_call, DEPTH_FX, actor.face, _local3.x, _local3.y + (_local3.height / 2));
}
}
}
_local4++;
}
_local6--;
}
}
}
function Game_AttackActor(actor) {
var _local9 = actor.box_attack;
var _local8 = new flash.geom.Rectangle((actor.last_xp + (_local9._x * actor.face)) - ((actor.face == -1) ? (_local9._width) : 0), actor.last_yp + _local9._y, _local9._width + Math.abs(actor.xp - actor.last_xp), _local9._height + Math.abs(actor.yp - actor.last_yp));
var _local7 = map_actors.length;
var _local5 = 0;
while (_local5 < _local7) {
var _local2 = map_actors[_local5];
if (((_local2 == actor) || (_local2 == actor.spawner)) || (_local2.hp <= 0)) {
} else if ((_local2.team == actor.team) && (actor.team != TEAM_NONE)) {
} else if ((_local2.body_type == 0) || (_local2.calc_body == null)) {
} else if (actor.check_dam_actor.contains(_local2)) {
} else {
var _local4 = _local2.calc_body.intersection(_local8);
if (_local4.isEmpty()) {
} else {
actor.check_dam_actor.pushUnique(_local2);
var _local3 = 0;
if (actor.xs >= 4) {
_local3 = 1;
} else if (actor.xs <= -4) {
_local3 = -1;
} else {
_local3 = ((actor.xp > _local2.xp) ? -1 : 1);
}
_local2.hp = _local2.hp - actor.dam_hp;
_local2.ActorHitEffect(_local3);
_local2.was_hit = true;
if (_local2.type_name != "fixed") {
_local2.xs = (actor.dam_xs * _local3) * -1;
_local2.ys = actor.dam_ys;
if (actor.type_name != "fixed") {
_local2.xs = Math.max(Math.abs(actor.xs), Math.abs(_local2.xs)) * _local3;
if (Math.abs(_local2.xs) >= (BODY_HIT_XS / 2)) {
_local2.hp = _local2.hp - int(Math.abs(_local2.xs / 2));
_local2.ys--;
}
}
}
if (actor.dam_ys < 0) {
_local2.on_ground = false;
}
if ((_local2.hp > 0) && (_local2.on_hit != null)) {
_local2.loop = actor.dam_hp;
_local2.goto = _local2.on_hit;
} else if ((_local2.hp <= 0) && (_local2.on_death != null)) {
_local2.goto = _local2.on_death;
_local2.hp = 0;
if (_local2.type_name != "fixed") {
_local2.xs = ((actor.dam_xs - 2) * _local3) * -1;
}
if (_local2 == player) {
Game_End();
} else if ((_local2.team == TEAM_ENEMY) && (_local2.type_name == "carry")) {
Game_KillEnemy(_local2);
}
}
if (actor.dam_self_hp > 0) {
actor.hp = actor.hp - actor.dam_self_hp;
if (actor.hp < 1) {
actor.hp = 1;
}
}
if (actor.spawner == undefined) {
actor.score = actor.score + actor.dam_hp;
} else {
actor.spawner.score = actor.spawner.score + actor.dam_hp;
}
if (actor.on_contact != null) {
if (actor.on_contact == "_ammo") {
actor.weapon.ammo--;
if (actor.weapon.ammo < 0) {
actor.weapon.ammo = 0;
}
} else if (!actor.is_heavy) {
actor.xs = (actor.ys = 0);
if (actor.face == 1) {
actor.xp = _local2.calc_body.x + 1;
} else {
actor.xp = (_local2.calc_body.x + _local2.calc_body.width) - 1;
}
actor.goto = actor.on_contact;
} else {
actor.goto = actor.on_contact;
}
}
actor.ActorSound(actor.on_contact_sound);
if (actor.on_contact_call != null) {
var _local6 = new flash.geom.Point(_local4.x + (_local4.width / 2), _local4.y + (_local4.height / 2));
ActorAdd(actor.on_contact_call, DEPTH_FX, actor.face, _local6.x, _local6.y);
}
}
}
_local5++;
}
}
function Game_BodyCheck(actor) {
if (actor.ys >= 0) {
var _local9 = false;
var _local22 = int((actor.last_yp + 5) / GRID_SIZE);
var _local21 = int((actor.yp + 5) / GRID_SIZE);
var _local18 = int(actor.calc_body.x / GRID_SIZE);
var _local16 = int((actor.calc_body.x + actor.box_body._width) / GRID_SIZE);
var _local4 = _local22;
while (_local4 <= _local21) {
var _local3 = _local18;
while (_local3 < _local16) {
if (map_solid[_local3 + (_local4 * GRID_WIDTH)] == 1) {
_local9 = true;
break;
}
_local3++;
}
if (_local9) {
break;
}
_local4++;
}
if (_local9) {
if (actor.on_ground == false) {
if (actor.is_heavy && (actor.ys > 6)) {
var _local5 = map_ref[_local3 + (_local4 * GRID_WIDTH)];
TileBreak(_local5, 1, int(actor.ys / 3));
ActorAdd("mc_smoke", DEPTH_FX, actor.face, actor.xp, (_local4 * GRID_SIZE) - 10);
if (actor.on_land_hard != null) {
actor.loop_land = Math.max(0, int(actor.ys / 2));
actor.goto = actor.on_land_hard;
actor.ai_tries++;
actor.ActorSound("land");
if (actor.dam_self_hp > 0) {
actor.hp = actor.hp - actor.dam_self_hp;
if (actor.hp < 1) {
actor.hp = 1;
}
}
}
} else {
actor.ActorSound("land");
if (actor.on_land != null) {
actor.goto = actor.on_land;
}
}
actor.yp = (_local4 * GRID_SIZE) - 5;
actor.ys = 0;
} else {
actor.was_blocked = true;
}
actor.on_ground = true;
} else {
if ((actor.on_fall != null) && (actor.on_ground)) {
if (actor.type_name != "fixed") {
if (actor.xs > 0) {
actor.xs = actor.xs + 1;
} else if (actor.xs < 0) {
actor.xs = actor.xs - 1;
}
actor.ys = -1;
}
actor.goto = actor.on_fall;
}
actor.on_ground = false;
}
if (((actor.ys >= BODY_HIT_YS) || (Math.abs(actor.xs) >= BODY_HIT_XS)) && (actor.is_heavy)) {
var _local25 = new flash.geom.Rectangle((actor.xp + (actor.box_body._x * actor.face)) - ((actor.face == -1) ? (actor.box_body._width) : 0), actor.yp, actor.box_body._width, 3);
var _local20 = map_actors.length;
var _local8 = 0;
while (_local8 < _local20) {
var _local2 = map_actors[_local8];
if (((_local2 == actor) || (_local2 == actor.spawner)) || (_local2.hp <= 0)) {
} else if (((_local2.body_type == 0) || (_local2.calc_body == null)) || (_local2.type_name == "fixed")) {
} else if (actor.check_dam_actor.contains(_local2)) {
} else {
var _local7 = _local2.calc_body.intersection(_local25);
if (_local7.isEmpty()) {
} else {
actor.check_dam_actor.pushUnique(_local2);
if (_local2.type_name != "fixed") {
var _local6 = 0;
if (actor.xs >= 2) {
_local6 = 1;
} else if (actor.xs <= -2) {
_local6 = -1;
} else {
_local6 = ((actor.xp > _local2.xp) ? -1 : 1);
}
_local2.xs = (-6 * _local6) * -1;
_local2.ys = -5;
_local2.on_ground = false;
}
_local2.hp = _local2.hp - (int(actor.ys / 2) + actor.dam_body);
_local2.ActorHitEffect(_local6);
_local2.was_hit = true;
if ((_local2.hp > 0) && (_local2.on_hit != null)) {
_local2.loop = actor.ys;
_local2.goto = _local2.on_hit;
} else if ((_local2.hp <= 0) && (_local2.on_death != null)) {
_local2.hp = 0;
_local2.goto = _local2.on_death;
if (_local2 == player) {
Game_End();
} else if ((_local2.team == TEAM_ENEMY) && (_local2.type_name == "carry")) {
Game_KillEnemy(_local2);
}
}
if (actor.dam_self_hp > 0) {
actor.hp = actor.hp - actor.dam_self_hp;
if (actor.hp < 1) {
actor.hp = 1;
}
}
if (actor.spawner == undefined) {
actor.score = actor.score + int(actor.ys);
} else {
actor.spawner.score = actor.spawner.score + int(actor.ys);
}
actor.ActorSound("hit_fist");
var _local10 = new flash.geom.Point(_local7.x + (_local7.width / 2), _local7.y + (_local7.height / 2));
ActorAdd("mc_hit", DEPTH_FX, actor.face, _local10.x, _local10.y);
}
}
_local8++;
}
}
} else {
var _local11 = int(actor.calc_body.y / GRID_SIZE);
var _local27 = int(actor.calc_body.x / GRID_SIZE);
var _local26 = Math.ceil((actor.calc_body.x + actor.box_body._width) / GRID_SIZE);
var _local3 = _local27;
while (_local3 < _local26) {
var _local13 = map_solid[_local3 + (_local11 * GRID_WIDTH)];
var _local12 = map_solid[_local3 + ((_local11 + 1) * GRID_WIDTH)];
if ((_local13 == 2) && (_local12 == 0)) {
actor.ys = 0;
actor.yp = ((_local11 + 1) * GRID_SIZE) + actor.box_body._height;
break;
}
_local3++;
}
}
actor.was_blocked = false;
if (actor.xs > 0) {
var _local14 = ((actor.face == 1) ? (actor.box_body._width + actor.box_body._x) : (-actor.box_body._x));
var _local28 = actor.calc_body.x + actor.box_body._width;
if (_local28 > map_screen.width) {
if (actor.can_exit == false) {
actor.was_blocked = true;
actor.xp = map_screen.width - _local14;
actor.xs = 0;
} else if (_local28 > (map_screen.width + actor.box_body._width)) {
actor.goto = "_die";
}
} else {
var _local24 = int((actor.calc_body.x - (actor.xp - actor.last_xp)) / GRID_SIZE);
var _local23 = int(_local28 / GRID_SIZE);
var _local19 = int(actor.calc_body.y / GRID_SIZE);
var _local17 = Math.ceil((actor.calc_body.y + actor.box_body._height) / GRID_SIZE);
var _local4 = _local24;
while (_local4 <= _local23) {
var _local9 = false;
var _local3 = _local19;
while (_local3 < _local17) {
if (map_solid[_local4 + (_local3 * GRID_WIDTH)] != 2) {
} else {
if (actor.on_ground) {
var _local5 = map_ref[_local4 + (_local3 * GRID_WIDTH)];
if ((tile_slice[map_tile[_local5]].op != -1) && (map_open[_local5] == false)) {
TileOpen(_local5);
actor.goto = actor.on_stand;
}
}
actor.was_blocked = true;
actor.xp = (_local4 * GRID_SIZE) - _local14;
actor.xs = 0;
_local9 = true;
break;
}
_local3++;
}
if (_local9) {
break;
}
_local4++;
}
}
} else if (actor.xs < 0) {
var _local15 = ((actor.face == 1) ? (-actor.box_body._x) : (actor.box_body._width + actor.box_body._x));
var _local28 = actor.calc_body.x;
if (_local28 < 0) {
if (actor.can_exit == false) {
actor.was_blocked = true;
actor.xp = _local15;
actor.xs = 0;
} else if (_local28 < (-actor.box_body._width)) {
actor.goto = "_die";
}
} else {
var _local24 = int((((_local28 + actor.box_body._width) - 1) - (actor.xp - actor.last_xp)) / GRID_SIZE);
var _local23 = int(_local28 / GRID_SIZE);
var _local19 = int(actor.calc_body.y / GRID_SIZE);
var _local17 = Math.ceil((actor.calc_body.y + actor.box_body._height) / GRID_SIZE);
var _local4 = _local24;
while (_local4 >= _local23) {
var _local9 = false;
var _local3 = _local19;
while (_local3 < _local17) {
if (map_solid[_local4 + (_local3 * GRID_WIDTH)] != 2) {
} else {
if (actor.on_ground) {
var _local5 = map_ref[_local4 + (_local3 * GRID_WIDTH)];
if ((tile_slice[map_tile[_local5]].op != -1) && (map_open[_local5] == false)) {
TileOpen(_local5);
actor.goto = actor.on_stand;
}
}
actor.was_blocked = true;
actor.xp = ((_local4 + 1) * GRID_SIZE) + _local15;
actor.xs = 0;
_local9 = true;
break;
}
_local3++;
}
if (_local9) {
break;
}
_local4--;
}
}
}
}
function Game() {
var _local6 = map_actors.length;
if (do_paused == true) {
if ((key_up == 80) || (mouse_button == true)) {
do_paused = false;
mouse_button = false;
key_up = 0;
mc_screen.filterClear();
com.gamebrew.Common.MusicPlay();
var _local8 = 0;
while (_local8 < _local6) {
var _local3 = map_actors[_local8];
_local3.prevFrame();
_local3.play();
_local8++;
}
_root.mc_pause.removeMovieClip();
}
return(undefined);
}
if ((key_up == 80) || (mouse_button == true)) {
do_paused = true;
mouse_button = false;
key_up = 0;
com.gamebrew.Common.MusicStop();
mc_screen.filterGrayScale();
var _local8 = 0;
while (_local8 < _local6) {
var _local3 = map_actors[_local8];
_local3.stop();
_local8++;
}
var _local10 = _root.attachMovie("mc_pause", "mc_pause", _root.getNextHighestDepth());
_local10._x = GAME_WIDTH / 2;
_local10._y = GAME_HEIGHT / 2;
return(undefined);
}
if (Key.isDown(27) && (player.hp > 0)) {
player.goto = player.on_death;
Game_End();
}
if (cam_actor.xp < (cam_x + cam_push_x1)) {
cam_x = int(cam_actor.xp) - cam_push_x1;
} else if (cam_actor.xp > (cam_x + cam_push_x2)) {
cam_x = int(cam_actor.xp) - cam_push_x2;
}
if (cam_actor.yp < (cam_y + cam_push_y1)) {
cam_y = int(cam_actor.yp) - cam_push_y1;
} else if (cam_actor.yp > (cam_y + cam_push_y2)) {
cam_y = int(cam_actor.yp) - cam_push_y2;
}
if (cam_x < 0) {
cam_x = 0;
}
if (cam_x > (map_bg.width - out_screen.width)) {
cam_x = map_bg.width - out_screen.width;
}
if (cam_y < 0) {
cam_y = 0;
}
if (cam_y > (map_bg.height - out_screen.height)) {
cam_y = map_bg.height - out_screen.height;
}
cam_box.x = cam_x;
cam_box.y = cam_y;
var _local8 = 0;
while (_local8 < _local6) {
var _local3 = map_actors[_local8];
_local3._xscale = 100 * _local3.face;
_local3._x = int(_local3.xp) - cam_x;
_local3._y = int(_local3.yp) - cam_y;
if (_local3.hue_on) {
var _local7 = _local3.transform.colorTransform.redOffset;
_local7 = int(_local7 >> 1);
if (_local7 == 0) {
_local3.hue_on = false;
}
_local3.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, _local7, 0, 0, 0);
}
if (_local3.shake_size > 0) {
if (_local3.shake_dir == 1) {
_local3._x = _local3._x + int(_local3.shake_size * _local3.shake_face);
if (_local3.shake_dir == 1) {
if (int(_local3.shake_size) != 0) {
_local3.shake_size = _local3.shake_size * 0.5;
} else {
_local3.shake_size = 0;
}
}
_local3.shake_dir = _local3.shake_dir * -1;
} else {
_local3.shake_dir = _local3.shake_dir * -1;
}
}
_local8++;
}
out_screen.copyPixels(map_screen, new flash.geom.Rectangle(cam_x, cam_y, out_screen.width, out_screen.height), PT0);
_local8 = 0;
while (_local8 < _local6) {
var _local3 = map_actors[_local8];
if ((blur_on && (_local3.is_heavy)) && (_root._quality != "LOW")) {
var _local5 = Math.abs(_local3.xs);
if (_local5 <= 5) {
_local5 = 0;
} else {
_local5 = _local5 - 5;
}
var _local4 = Math.abs(_local3.ys);
if (_local4 <= 5) {
_local4 = 0;
} else {
_local4 = _local4 - 5;
}
if ((_local5 != 0) || (_local4 != 0)) {
_local3.filters = new Array(new flash.filters.BlurFilter(_local5, _local4, 1));
} else {
_local3.filters = null;
}
} else {
_local3.filters = null;
}
if (_local3.goto != null) {
} else {
_local3.last_xp = _local3.xp;
_local3.last_yp = _local3.yp;
_local3.xp = _local3.xp + _local3.xs;
_local3.yp = _local3.yp + _local3.ys;
if ((_local3.box_body._width > 1) && (_local3.box_body._height > 1)) {
_local3.calc_body = new flash.geom.Rectangle((_local3.xp + (_local3.box_body._x * _local3.face)) - ((_local3.face == -1) ? (_local3.box_body._width) : 0), _local3.yp + _local3.box_body._y, _local3.box_body._width, _local3.box_body._height);
} else {
_local3.calc_body = null;
}
if (((_local3.box_attack._width > 1) && (_local3.box_attack._height > 1)) && (_local3.dam_type > 0)) {
if (_local3.dam_tile > 0) {
Game_AttackTile(_local3);
}
Game_AttackActor(_local3);
}
if (_local3.calc_body != null) {
Game_BodyCheck(_local3);
}
if (_local3.on_ground == false) {
_local3.ys = _local3.ys + _local3.gravity;
_local3.xs = _local3.xs * _local3.friction_air;
} else {
_local3.ys = 0;
_local3.xs = _local3.xs * _local3.friction;
}
}
_local8++;
}
_local8 = 0;
while (_local8 < _local6) {
var _local3 = map_actors[_local8];
if ((_local3.goto == "_die") && (_local3 != player)) {
ActorRemove(_local8);
_local6--;
} else {
if ((_local3.goto == null) && (_local3.CallControl != null)) {
_local3.CallControl();
}
if (_local3.CallAi != null) {
_local3.key_up = (_local3.key_down = (_local3.key_left = (_local3.key_right = false)));
_local3.key_left_double = (_local3.key_right_double = false);
_local3.key_attack = (_local3.key_pickup = false);
_local3.CallAi();
}
if (_local3.goto != null) {
if (_local3.goto == "_break") {
_local3.body_type = 0;
_local3.on_land = (_local3.on_land_hard = (_local3.on_fall = null));
_local3.ActorSound("glass");
_local3.friction_air = 0.9;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
this.onEnterFrame = null;
this._alpha = 0;
this.goto = "_die";
}
};
} else {
if (_local3.check_dam_tile.length > 0) {
_local3.check_dam_tile = new Array();
}
if (_local3.check_dam_actor.length > 0) {
_local3.check_dam_actor = new Array();
}
_local3.last_goto = _local3.goto;
}
_local3.gotoAndPlay(_local3.goto);
_local3.goto = null;
}
if ((_local3.weapon_switch != null) && (_local3.weapon != undefined)) {
_local3.weapon.gotoAndPlay(_local3.weapon_switch);
_local3.weapon_switch = null;
}
}
_local8++;
}
var _local9 = map_actors_add.length;
if (_local9 > 0) {
_local8 = 0;
while (_local8 < _local9) {
map_actors.push(map_actors_add[_local8]);
_local8++;
}
map_actors_add = new Array();
}
com.gamebrew.Common.SoundQueuePlay();
if ((tile_heal_time++) > (TILE_HEAL_DELAY - level)) {
tile_heal_time = 0;
TileRunHeal();
}
}
function Game_End() {
player.hp = 0;
player.ActorScan("Game Over");
com.gamebrew.Common.MusicStop();
Mouse.removeListener(mouse_listener);
Key.removeListener(key_listener);
_root.hs_score = player.score;
gotoAndPlay ("game_over");
}
function ActorAppearGoto(mcname, agoto) {
var _local4 = 148 + (com.gamebrew.Common.RandomInteger(0, 7) * 48);
var _local3 = FLOOR_Y[com.gamebrew.Common.RandomInteger(0, FLOOR_Y.length - 1)] - 3;
var _local2 = ActorAdd(mcname, DEPTH_ITEM, ((com.gamebrew.Common.RandomBit() == 0) ? 1 : -1), _local4, _local3);
_local2.on_ground = false;
_local2.goto = agoto;
_local2._alpha = 0;
_local2.onEnterFrame = function () {
this._alpha = this._alpha + 3;
if (this._alpha >= 100) {
this.onEnterFrame = null;
this._alpha = 100;
}
};
return(_local2);
}
function ActorHitEffect(fac) {
this.shake_size = ((this.type_name == "fixed") ? 2 : 4);
this.shake_dir = 1;
this.shake_face = fac;
if (this.can_hue && (_root._quality != "LOW")) {
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 64, 0, 0, 0);
this.hue_on = true;
}
}
function ActorAddGoto(mcname, agoto, grp, fac, xp, yp) {
var _local1 = ActorAdd(mcname, grp, fac, xp, yp);
_local1.goto = agoto;
return(_local1);
}
function ActorAdd(mcname, grp, fac, xp, yp) {
var _local2 = mc_screen.getNextDepthAt(grp);
var _local1 = new Object();
_local1 = mc_screen.attachMovie(mcname, mcname + _local2, _local2);
_local1._x = -300;
_local1._y = -300;
_local1.box_body._visible = DEBUG;
_local1.box_attack._visible = DEBUG;
_local1.team = TEAM_NONE;
_local1.face = fac;
_local1.xp = (_local1.last_xp = xp);
_local1.yp = (_local1.last_yp = yp);
_local1.xs = (_local1.ys = 0);
_local1.on_ground = true;
_local1.goto = null;
_local1.last_goto = null;
_local1.can_exit = false;
_local1.weapon_switch = "none";
_local1.key_left = (_local1.key_right = (_local1.key_up = (_local1.key_down = false)));
_local1.key_left_double = (_local1.key_right_double = false);
_local1.key_attack = (_local1.key_pickup = false);
_local1.spawner = _local1;
_local1.on_hit = null;
_local1.on_contact = null;
_local1.on_death = null;
_local1.dam_self_hp = 0;
_local1.was_blocked = false;
_local1.was_hit = false;
_local1.do_run = false;
_local1.shake_size = 0;
_local1.shake_dir = 1;
_local1.hue_on = false;
_local1.check_dam_tile = new Array();
_local1.check_dam_actor = new Array();
_local1.dam_body = 0;
_local1.scan = null;
_local1.score = 0;
_local1.kills = 0;
_local1.ai_mode = AI_MODE_DELAY;
_local1.ai_tries = 0;
_local1.ai_delay = 0;
_local1.ai_dir = 0;
_local1.ai_target_x = (_local1.ai_target_y = -1);
_local1.CallAi = null;
_local1.CallControl = null;
_local1.ControlHumanStand = ControlHumanStand;
_local1.ControlHumanCombo = ControlHumanCombo;
_local1.ActorSpawn = ActorSpawn;
_local1.ActorSound = ActorSound;
_local1.ActorScan = ActorScan;
_local1.ActorWeaponSwitch = ActorWeaponSwitch;
_local1.ActorWeaponThrow = ActorWeaponThrow;
_local1.ActorWeaponDrop = ActorWeaponDrop;
_local1.ActorHitEffect = ActorHitEffect;
map_actors_add.push(_local1);
return(_local1);
}
function ActorSpawn(lib_mc, adj_x, adj_y) {
var _local2 = ActorAdd(lib_mc, DEPTH_FX, this.face, this.xp + (adj_x * this.face), this.yp + adj_y);
_local2.spawner = this;
_local2.team = this.team;
return(_local2);
}
function ActorRemove(i) {
map_actors[i].removeMovieClip();
delete map_actors[i];
map_actors.clean();
}
function ActorSound(sndlib) {
if (sndlib == null) {
return(undefined);
}
if (cam_box.intersects(this.calc_body)) {
com.gamebrew.Common.SoundQueueAdd(sndlib);
}
return(undefined);
}
function ActorWeaponSwitch(pickup) {
if (this.weapon.weapon_type == pickup.weapon_type) {
this.weapon.ammo = this.weapon.ammo + pickup.ammo;
if (this.weapon.ammo > this.weapon.ammo_total) {
this.weapon.ammo = this.weapon.ammo_total;
}
return(undefined);
}
if (((this.weapon.weapon_type != "none") && (this.weapon.ammo > 0)) || (this.weapon.type_name == "carry")) {
var weapon = ActorAdd(this.weapon.id, ((this.weapon.id == "mc_smith") ? (DEPTH_CHAR) : (DEPTH_ITEM)), this.face * -1, this.xp, this.yp - this.box_body._height);
weapon.goto = this.weapon.weapon_type;
weapon.hp = this.weapon.hp;
weapon.ammo = this.weapon.ammo;
weapon.spawner = null;
weapon.team = ((weapon.weapon_name == "agent") ? (TEAM_ENEMY) : (TEAM_NONE));
weapon.CallAi = this.weapon.CallAi;
weapon.ys = -5;
if (this.hp <= 0) {
if (this.xs > 2) {
weapon.xs = 7;
} else if (this.xs < -2) {
weapon.xs = -7;
}
} else {
weapon.xs = this.face * -7;
}
}
if (pickup == null) {
this.weapon_switch = "none";
this.weapon.ammo = 1;
this.weapon._visible = false;
} else {
this.weapon_switch = pickup.weapon_type;
this.weapon.ammo = pickup.ammo;
this.weapon.hp = pickup.hp;
this.weapon.team = pickup.team;
this.weapon.CallAi = pickup.CallAi;
this.weapon._visible = true;
pickup.ActorWeaponDrop();
}
}
function ActorWeaponThrow(adj_xp, adj_yp, xs, ys) {
var _local2 = ActorAdd(this.weapon.id, ((this.weapon.id == "mc_smith") ? (DEPTH_CHAR) : (DEPTH_ITEM)), this.face, this.xp + (this.face * adj_xp), (this.yp - this.box_body._height) + adj_yp);
_local2.goto = this.weapon.weapon_type;
_local2.ys = ys;
_local2.xs = this.face * xs;
_local2.hp = this.weapon.hp;
_local2.ammo = this.weapon.ammo;
_local2.team = this.weapon.team;
_local2.CallAi = this.weapon.CallAi;
_local2.spawner = this;
return(_local2);
}
function ActorWeaponDrop() {
if (this.weapon.weapon_type == "none") {
return(undefined);
}
this.ActorWeaponSwitch(null);
}
function ActorRemoveFind(mc) {
var _local2 = map_actors.length;
var _local1 = 0;
while (_local1 < _local2) {
if (map_actors[_local1] == mc) {
ActorRemove(_local1);
return(undefined);
}
_local1++;
}
}
function ActorScan(txt) {
if (this.scan.txt_data != undefined) {
ActorRemoveFind(this.scan);
}
this.scan = ActorAdd("mc_scan", DEPTH_FX, 1, this.xp, (this.yp + this.box_body._y) - 10);
this.scan.txt_data = txt;
com.gamebrew.Common.SoundQueueAdd("scan");
}
function ControlHumanCombo() {
if (!this.key_attack) {
return(undefined);
}
if (this.weapon.ammo == 0) {
if (this == player) {
this.ActorSound("error");
}
this.weapon_switch = "none";
} else if (!this.on_ground) {
this.goto = this.weapon.on_use + "_air";
} else if (Math.abs(this.xs) >= 8) {
this.ActorSound("swish");
this.goto = this.weapon.on_use + "_air";
this.ys = -1;
this.xs = this.xs * 2;
this.gravity = 0.2;
this.on_ground = false;
} else if (this.weapon.on_combo == undefined) {
this.goto = this.weapon.on_use;
} else {
this.goto = this.weapon.on_combo;
}
}
function ControlHumanStand() {
if (this.key_attack) {
if (this.weapon.ammo == 0) {
if (this == player) {
this.ActorSound("error");
}
this.weapon_switch = "none";
return(undefined);
}
if (!this.on_ground) {
this.goto = this.weapon.on_use + "_air";
} else if (Math.abs(this.xs) >= 8) {
this.ActorSound("swish");
this.goto = this.weapon.on_use + "_air";
this.ys = -1;
this.xs = this.xs * 2;
this.gravity = 0.2;
this.on_ground = false;
} else {
this.goto = this.weapon.on_use;
}
return(undefined);
}
if (this.key_pickup && (this.on_ground)) {
var _local4 = map_actors.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = map_actors[_local3];
if (((((_local2 == this) || (_local2.on_ground == false)) || (_local2.hp <= 0)) || (_local2.body_type == 0)) || (_local2.calc_body.intersects(this.calc_body) == false)) {
} else {
if ((_local2.type_name == "weapon") && (this.on_pickup != null)) {
this.ActorWeaponSwitch(_local2);
if (this == player) {
this.ActorScan((_local2.weapon_name + ":") + this.weapon.ammo);
}
this.goto = this.on_pickup;
ActorRemove(_local3);
_local2.hp = 0;
_local2.goto = "_die";
return(undefined);
}
if ((_local2.type_name == "heal") && (this.on_pickup != null)) {
this.goto = this.on_pickup;
this.score = this.score + 15;
this.hp = this.hp + 15;
if (this == player) {
this.ActorScan("Heal+15");
}
_local2.goto = "heal_die";
_local2.hp = 0;
return(undefined);
}
if (((_local2.type_name == "carry") && (this.team != _local2.team)) && (this.on_carry != null)) {
this.ActorWeaponSwitch(_local2);
if (this == player) {
this.ActorScan(_local2.weapon_name);
}
this.goto = this.on_carry;
ActorRemove(_local3);
_local2.hp = 0;
_local2.goto = "_die";
return(undefined);
}
}
_local3++;
}
}
if (this.key_left) {
if (this.face != -1) {
this.last_goto = null;
this.face = -1;
} else if (this.on_ground) {
if ((((this.last_goto != this.on_walk) && (this.last_goto != "run")) && (!this.key_down)) && (!this.key_up)) {
this.goto = (this.do_run ? (this.on_run) : (this.on_walk));
}
} else {
this.xs = -4;
}
} else if (this.key_right) {
if (this.face != 1) {
this.last_goto = null;
this.face = 1;
} else if (this.on_ground) {
if ((((this.last_goto != this.on_walk) && (this.last_goto != "run")) && (!this.key_down)) && (!this.key_up)) {
this.goto = (this.do_run ? (this.on_run) : (this.on_walk));
}
} else {
this.xs = 4;
}
} else if (this.on_ground) {
if (((this.last_goto != this.on_stand) && (!this.key_down)) && (!this.key_up)) {
this.goto = this.on_stand;
}
}
if (this.on_ground) {
if (this.key_up) {
this.goto = this.on_up;
} else if (this.key_down) {
if ((int((this.yp + 5) / GRID_SIZE) < (GRID_HEIGHT - 1)) && (this.on_down != null)) {
this.goto = this.on_down;
} else if (this.last_goto != this.on_stand) {
this.goto = this.on_stand;
}
}
}
}
function AiPlayer_Push(cmd) {
var _local1 = 3;
while (_local1 > 0) {
ai_player_queue[_local1] = ai_player_queue[_local1 - 1];
_local1--;
}
ai_player_queue[0] = cmd;
}
function AiPlayer() {
var _local2 = 0;
if (Key.isDown(KEY_LEFT)) {
this.key_left = true;
_local2 = 4;
} else if (Key.isDown(KEY_RIGHT)) {
this.key_right = true;
_local2 = 2;
}
if (Key.isDown(KEY_UP)) {
this.key_up = true;
_local2 = 1;
} else if (Key.isDown(KEY_DOWN)) {
this.key_down = true;
_local2 = 3;
}
this.do_run = false;
if (this.on_ground) {
if (_local2 == 0) {
ai_player_zero++;
if (ai_player_zero >= 2) {
AiPlayer_Push(0);
ai_player_zero = 0;
}
} else if (_local2 != ai_player_queue[0]) {
AiPlayer_Push(_local2);
ai_player_zero = 0;
}
if ((((ai_player_queue[1] == 0) && (ai_player_queue[3] == 0)) && (ai_player_queue[0] != 0)) && (ai_player_queue[0] == ai_player_queue[2])) {
this.do_run = true;
}
}
if (Key.isDown(KEY_ATTACK)) {
this.key_attack = true;
} else if (Key.isDown(KEY_PICKUP)) {
this.key_pickup = true;
}
}
function AiComputer() {
if (player.hp == 0) {
return(undefined);
}
if (this.ai_mode == AI_MODE_DELAY) {
this.ai_delay = com.gamebrew.Common.RandomInteger(AI_MIN_DELAY, level_delay);
this.ai_mode = AI_MODE_DELAY_WAIT;
} else if (this.ai_mode == AI_MODE_DELAY_WAIT) {
if ((this.ai_delay--) <= 0) {
this.ai_mode = AI_MODE_TARGET;
}
} else if (this.ai_mode == AI_MODE_TARGET) {
if (this.ai_tries > AI_MAX_TRIES) {
this.ai_tries = 0;
this.ai_target_x = 148 + (com.gamebrew.Common.RandomInteger(0, 8) * 48);
if (this.xp > this.ai_target_x) {
this.ai_dir = -1;
} else {
this.ai_dir = 1;
}
if (this.on_ground && (com.gamebrew.Common.RandomBit() == 0)) {
if (this.yp >= FLOOR_Y[FLOOR_Y.length - 1]) {
this.ai_target_y = FLOOR_Y[FLOOR_Y.length - 2];
} else if (this.yp <= FLOOR_Y[0]) {
this.ai_target_y = FLOOR_Y[1];
} else {
this.ai_target_y = this.yp + ((com.gamebrew.Common.RandomBit() == 0) ? (-FLOOR_HEIGHT) : (FLOOR_HEIGHT));
}
} else {
this.ai_target_y = this.yp;
}
this.ai_mode = AI_MODE_TARGET_GO;
return(undefined);
}
if ((((this.yp == 1011) && ((this.xp < 119) || (this.xp > 525))) && (player.xp > 119)) && (player.xp < 525)) {
if (this.xp < 119) {
this.ai_target_x = 119;
this.ai_target_y = this.yp;
this.ai_dir = 1;
} else if (this.xp > 525) {
this.ai_target_x = 525;
this.ai_target_y = this.yp;
this.ai_dir = -1;
}
this.ai_mode = AI_MODE_TARGET_GO;
return(undefined);
}
if (this.weapon.weapon_type == "none") {
var _local6 = null;
var _local5 = AI_MIN_DIST_PICKUP;
var _local7 = map_actors.length;
var _local3 = 0;
while (_local3 < _local7) {
var _local2 = map_actors[_local3];
if (((_local2.team != TEAM_NONE) || (_local2.type_name == "fixed")) || (_local2.type_name == "heal")) {
} else if (((_local2.body_type == 0) || (_local2.hp <= 0)) || (!_local2.on_ground)) {
} else {
var _local4 = com.gamebrew.Common.CalcDistance(this.xp, this.yp, _local2.xp, _local2.yp);
if (_local2.type_name == "weapon") {
_local4 = _local4 / 2;
}
if (_local4 < _local5) {
_local5 = _local4;
_local6 = _local2;
}
}
_local3++;
}
if (_local6 != null) {
var _local8 = false;
if (com.gamebrew.Common.RandomInteger(0, 4) >= 1) {
var _local9 = com.gamebrew.Common.CalcDistance(this.xp, this.yp, player.xp, player.yp);
if (_local5 < _local9) {
_local8 = true;
}
} else {
_local8 = true;
}
if (_local8 == true) {
this.ai_target_x = _local6.xp;
this.ai_target_y = _local6.yp;
this.ai_dir = ((this.xp > _local6.xp) ? -1 : 1);
this.ai_mode = AI_MODE_TARGET_PICKUP;
return(undefined);
}
}
}
if ((this.xp > player.xp) && (this.face == 1)) {
this.ai_target_x = this.xp - 1;
this.ai_target_y = this.yp;
this.ai_dir = -1;
this.ai_mode = AI_MODE_TARGET_GO;
} else if ((this.xp < player.xp) && (this.face == -1)) {
this.ai_target_x = this.xp + 1;
this.ai_target_y = this.yp;
this.ai_dir = 1;
this.ai_mode = AI_MODE_TARGET_GO;
} else if (this.xp < (player.xp - this.dam_range)) {
this.ai_target_x = player.xp - this.dam_range;
if (player.on_ground) {
if (player.yp == this.yp) {
this.ai_target_y = this.yp;
} else if (com.gamebrew.Common.RandomBit() == 0) {
this.ai_target_y = player.yp;
} else {
this.ai_target_y = this.yp;
}
} else {
this.ai_target_y = this.yp;
}
this.ai_dir = 1;
this.ai_mode = AI_MODE_TARGET_GO;
} else if (this.xp > (player.xp + this.dam_range)) {
this.ai_target_x = player.xp + this.dam_range;
if (player.on_ground) {
if (player.yp == this.yp) {
this.ai_target_y = this.yp;
} else if (com.gamebrew.Common.RandomBit() == 0) {
this.ai_target_y = player.yp;
} else {
this.ai_target_y = this.yp;
}
} else {
this.ai_target_y = this.yp;
}
this.ai_dir = -1;
this.ai_mode = AI_MODE_TARGET_GO;
} else if (player.on_ground) {
this.ai_target = this.xp;
this.ai_target_y = player.yp;
this.ai_mode = AI_MODE_TARGET_GO;
} else {
this.ai_mode = AI_MODE_ATTACK;
}
} else if (this.ai_mode == AI_MODE_TARGET_GO) {
if (this.was_hit) {
this.ai_mode = AI_MODE_DELAY;
this.was_hit = false;
return(undefined);
}
if (this.was_blocked) {
this.ai_mode = AI_MODE_DELAY;
this.ai_tries++;
return(undefined);
}
if (this.ai_tries > AI_MAX_TRIES) {
this.ai_mode = AI_MODE_TARGET;
return(undefined);
}
if ((this.ai_dir == -1) && (this.xp > this.ai_target_x)) {
this.key_left = true;
} else if ((this.ai_dir == 1) && (this.xp < this.ai_target_x)) {
this.key_right = true;
}
if ((this.ai_target_y < this.yp) && (Math.abs(this.ai_target_y - this.yp) >= FLOOR_HEIGHT)) {
this.key_up = true;
this.ai_mode = AI_MODE_TARGET;
} else if ((this.ai_target_y > this.yp) && (Math.abs(this.ai_target_y - this.yp) >= FLOOR_HEIGHT)) {
this.key_down = true;
this.ai_mode = AI_MODE_TARGET;
}
if ((((!this.key_left) && (!this.key_right)) && (!this.key_up)) && (!this.key_down)) {
this.ai_mode = AI_MODE_ATTACK;
}
} else if (this.ai_mode == AI_MODE_TARGET_PICKUP) {
if (this.was_hit) {
this.ai_mode = AI_MODE_DELAY;
this.was_hit = false;
return(undefined);
}
if (this.was_blocked) {
this.key_pickup = true;
this.ai_mode = AI_MODE_DELAY;
this.ai_tries++;
return(undefined);
}
if (this.ai_tries > AI_MAX_TRIES) {
this.ai_mode = AI_MODE_TARGET;
return(undefined);
}
if ((this.ai_dir == -1) && (this.xp > this.ai_target_x)) {
this.key_left = true;
} else if ((this.ai_dir == 1) && (this.xp < this.ai_target_x)) {
this.key_right = true;
}
if ((this.ai_target_y < this.yp) && (Math.abs(this.ai_target_y - this.yp) >= FLOOR_HEIGHT)) {
this.key_up = true;
} else if ((this.ai_target_y > this.yp) && (Math.abs(this.ai_target_y - this.yp) >= FLOOR_HEIGHT)) {
this.key_down = true;
}
if (((((!this.key_left) && (!this.key_right)) && (!this.key_up)) && (!this.key_down)) && (this.on_ground)) {
this.key_pickup = true;
this.ai_mode = AI_MODE_DELAY;
}
} else if (this.ai_mode == AI_MODE_ATTACK) {
if (com.gamebrew.Common.RandomBit() == 0) {
this.ai_mode = AI_MODE_DELAY;
} else if (((Math.abs(player.xp - this.xp) < this.dam_range) && (Math.abs(player.yp - this.yp) < 35)) && (((this.xp > player.xp) && (this.face == -1)) || ((this.xp < player.xp) && (this.face == 1)))) {
this.key_attack = true;
} else {
this.ai_mode = AI_MODE_TARGET;
}
}
}
function TileOpen(ref) {
map_open[ref] = true;
map_tile[ref] = tile_slice[map_tile[ref]].op;
TileRedraw(ref);
TileSound(ref, "creak");
}
function TileBreak(ref, solid, dam) {
var _local1 = map_hp[ref];
if ((_local1 == 0) && (dam > 0)) {
return(undefined);
}
if ((_local1 == TILE_HP) && (dam < 0)) {
return(undefined);
}
var _local3 = int((TILE_HP - _local1) / 10);
_local1 = _local1 - dam;
if (_local1 < 0) {
_local1 = 0;
} else if (_local1 > TILE_HP) {
_local1 = TILE_HP;
}
map_hp[ref] = _local1;
if (_local3 != int((TILE_HP - map_hp[ref]) / 10)) {
TileRedraw(ref);
tile_heal_queue.push(ref);
if (solid > 0) {
TileSound(ref, "rocks");
}
}
}
function TileRunHeal() {
if (tile_heal_queue.length == 0) {
return(undefined);
}
var _local1 = tile_heal_queue[0];
TileBreak(_local1, 0, -10);
if (map_hp[_local1] == TILE_HP) {
tile_heal_queue[0] = null;
tile_heal_queue.clean();
}
}
function TileSound(ref, sndlib) {
var _local1 = map_tile[ref];
var _local2 = new flash.geom.Rectangle(map_ref_x[ref] * GRID_SIZE, map_ref_y[ref] * GRID_SIZE, tile_slice[_local1].w * GRID_SIZE, tile_slice[_local1].h * GRID_SIZE);
if (cam_box.intersects(_local2)) {
com.gamebrew.Common.SoundQueueAdd(sndlib);
}
}
function TileRedraw(ref) {
var _local1 = map_tile[ref];
var _local4 = map_ref_x[ref];
var _local3 = map_ref_y[ref];
var _local2 = int((TILE_HP - map_hp[ref]) / 10);
if (_local2 >= 3) {
_local2 = 3;
}
com.gamebrew.Common.DataCopyRectangle(map_solid, GRID_WIDTH, GRID_HEIGHT, _local4, _local3, tile_solid, tile_set_w, tile_set_h, tile_slice[_local1].x + (_local2 * tile_slice[_local1].w), tile_slice[_local1].y, tile_slice[_local1].w, tile_slice[_local1].h);
map_screen.copyPixels(map_bg, new flash.geom.Rectangle(_local4 * GRID_SIZE, _local3 * GRID_SIZE, tile_slice[_local1].w * GRID_SIZE, tile_slice[_local1].h * GRID_SIZE), new flash.geom.Point(_local4 * GRID_SIZE, _local3 * GRID_SIZE));
map_screen.copyPixels(tile_set, new flash.geom.Rectangle((tile_slice[_local1].x + (_local2 * tile_slice[_local1].w)) * GRID_SIZE, tile_slice[_local1].y * GRID_SIZE, tile_slice[_local1].w * GRID_SIZE, tile_slice[_local1].h * GRID_SIZE), new flash.geom.Point(_local4 * GRID_SIZE, _local3 * GRID_SIZE));
}
stop();
com.gamebrew.Common.Initialize();
_root._quality = "LOW";
var GAME_WIDTH = 400;
var GAME_HEIGHT = 300;
var MAX_TILES = 32;
var GRID_SIZE = 8;
var GRID_WIDTH = 80;
var GRID_HEIGHT = 128;
var GRID_PIXEL_WIDTH = (GRID_WIDTH * GRID_SIZE);
var GRID_PIXEL_HEIGHT = (GRID_HEIGHT * GRID_SIZE);
var TILE_HP = 40;
var PT0 = (new flash.geom.Point(0, 0));
var DEPTH_ITEM = 1000;
var DEPTH_CHAR = 2000;
var DEPTH_FX = 3000;
var DEPTH_HUD = 4000;
var PLAYER_HP = 77777;
var MIN_ENEMY_HP = 10;
var MIN_ENEMIES = 3;
var MAX_ENEMIES = 30;
var TEAM_NONE = 0;
var TEAM_PLAYER = 1;
var TEAM_ENEMY = 2;
var FLOOR_HEIGHT = 72;
var FLOOR_Y = new Array(146, 219, 363, 435, 507, 651, 795, 867, 939, 1011);
var WEAPONS = new Array("none", "staff", "pistol", "sword", "phazer", "shotgun", "grenade", "steel");
var CARRIES = new Array("desk", "chair", "chair2", "trash", "plant");
var BODY_HIT_XS = 9;
var BODY_HIT_YS = 7;
var KEY_UP = 38;
var KEY_DOWN = 40;
var KEY_LEFT = 37;
var KEY_RIGHT = 39;
var KEY_ATTACK = 65;
var KEY_PICKUP = 83;
var AI_MIN_DELAY = 7;
var AI_MAX_DELAY = 100;
var AI_MAX_LEVEL = 10;
var AI_KILLS_PER_LEVEL = 10;
var AI_MAX_TRIES = 3;
var AI_MODE_NONE = 0;
var AI_MODE_DELAY = 1;
var AI_MODE_DELAY_WAIT = 2;
var AI_MODE_TARGET = 3;
var AI_MODE_TARGET_GO = 4;
var AI_MODE_TARGET_PICKUP = 6;
var AI_MODE_ATTACK = 7;
var AI_MIN_DIST_PICKUP = 350;
_root.DEBUG = false;
var player = null;
var blur_on = true;
var out_screen = (new flash.display.BitmapData(GAME_WIDTH, GAME_HEIGHT, false, 0));
var level = 0;
var level_delay = AI_MAX_DELAY;
var do_paused = false;
var cam_x = 0;
var cam_y = 0;
var cam_push_x1 = 0;
var cam_push_x2 = 0;
var cam_push_y1 = 0;
var cam_push_y2 = 0;
var cam_actor = null;
var cam_box = (new flash.geom.Rectangle());
var map_actors = new Array();
var map_actors_add = new Array();
var map_ref = new Array(GRID_WIDTH * GRID_HEIGHT);
var map_ref_x = new Array(GRID_WIDTH * GRID_HEIGHT);
var map_ref_y = new Array(GRID_WIDTH * GRID_HEIGHT);
var map_tile = new Array(GRID_WIDTH * GRID_HEIGHT);
var map_open = new Array(GRID_WIDTH * GRID_HEIGHT);
var map_hp = new Array(GRID_WIDTH * GRID_HEIGHT);
var map_solid = new Array(GRID_WIDTH * GRID_HEIGHT);
var map_bg = flash.display.BitmapData.loadBitmap("bg_1");
var map_screen = (new flash.display.BitmapData(map_bg.width, map_bg.height, false, 0));
var map_x = 0;
var map_y = 0;
var tile_solid;
var tile_ref;
var tile_slice = new Array(MAX_TILES);
var tile_set = flash.display.BitmapData.loadBitmap("tiles");
var tile_set_w = (Math.max(tile_set.width, 400) / GRID_SIZE);
var tile_set_h = (Math.max(tile_set.height, 400) / GRID_SIZE);
var tile_heal_queue = new Array();
var tile_heal_time = 0;
var TILE_HEAL_DELAY = 100;
var mouse_button = false;
var mouse_listener = new Object();
mouse_listener.onMouseDown = function () {
var _local2 = _root._xmouse;
var _local3 = _root._ymouse;
if ((((_local2 >= 0) && (_local2 <= GAME_WIDTH)) && (_local3 >= 0)) && (_local3 <= GAME_HEIGHT)) {
mouse_button = true;
}
};
mouse_listener.onMouseUp = function () {
var _local2 = _root._xmouse;
var _local3 = _root._ymouse;
if ((((_local2 >= 0) && (_local2 <= GAME_WIDTH)) && (_local3 >= 0)) && (_local3 <= GAME_HEIGHT)) {
mouse_button = false;
}
};
Mouse.addListener(mouse_listener);
var key_up = 0;
var key_listener = new Object();
key_listener.onKeyUp = function () {
key_up = Key.getCode();
};
Key.addListener(key_listener);
var i = 0;
while (i < MAX_TILES) {
tile_slice[i] = new Object();
tile_slice[i].name = "unknown";
tile_slice[i].x = (tile_slice[i].y = 0);
tile_slice[i].w = (tile_slice[i].h = 0);
tile_slice[i].op = -1;
i++;
}
var i = 0;
while (i < (GRID_WIDTH * GRID_HEIGHT)) {
map_tile[i] = -1;
map_hp[i] = TILE_HP;
map_open[i] = false;
i++;
}
tile_solid = new Array(tile_set_w * tile_set_h);
tile_ref = new Array(tile_solid.length);
var i = 0;
while (i < tile_solid.length) {
tile_solid[i] = 0;
tile_ref[i] = -1;
i++;
}
var dat = _root.level_txt;
tile_solid = dat.tile_solid.split(",");
var i = 0;
while (i < tile_solid.length) {
tile_solid[i] = Number(tile_solid[i]);
i++;
}
var i = 0;
while (i < tile_slice.length) {
var part = dat["tile_slice_" + i].split(",", 6);
tile_slice[i].name = part[0];
tile_slice[i].x = Number(part[1]);
tile_slice[i].y = Number(part[2]);
tile_slice[i].w = Number(part[3]);
tile_slice[i].h = Number(part[4]);
tile_slice[i].op = Number(part[5]);
i++;
}
map_tile = dat.map_tile.split(",");
var i = 0;
while (i < map_tile.length) {
map_tile[i] = Number(map_tile[i]);
i++;
}
var i = 0;
while (i < tile_ref.length) {
tile_ref[i] = -1;
i++;
}
var i = 0;
while (i < tile_slice.length) {
if ((tile_slice[i].w == 0) || (tile_slice[i].h == 0)) {
} else {
var x = tile_slice[i].x;
var j = 0;
while (j < 4) {
com.gamebrew.Common.DataFillRectangle(tile_ref, tile_set_w, tile_set_h, i, x, tile_slice[i].y, tile_slice[i].w, tile_slice[i].h);
x = x + tile_slice[i].w;
j++;
}
}
i++;
}
var i = 0;
while (i < map_ref.length) {
map_ref[i] = -1;
map_ref_x[i] = -1;
map_ref_y[i] = -1;
map_solid[i] = 0;
i++;
}
var i = 0;
while (i < GRID_HEIGHT) {
var j = 0;
while (j < GRID_WIDTH) {
var tile = map_tile[j + (i * GRID_WIDTH)];
if (tile == -1) {
} else {
com.gamebrew.Common.DataFillRectangle(map_ref, GRID_WIDTH, GRID_HEIGHT, j + (i * GRID_WIDTH), j, i, tile_slice[tile].w, tile_slice[tile].h);
com.gamebrew.Common.DataFillRectangle(map_ref_x, GRID_WIDTH, GRID_HEIGHT, j, j, i, tile_slice[tile].w, tile_slice[tile].h);
com.gamebrew.Common.DataFillRectangle(map_ref_y, GRID_WIDTH, GRID_HEIGHT, i, j, i, tile_slice[tile].w, tile_slice[tile].h);
com.gamebrew.Common.DataCopyRectangle(map_solid, GRID_WIDTH, GRID_HEIGHT, j, i, tile_solid, tile_set_w, tile_set_h, tile_slice[tile].x, tile_slice[tile].y, tile_slice[tile].w, tile_slice[tile].h);
}
j++;
}
i++;
}
var WALL_COL = com.gamebrew.Common.Color(256, 200, 0);
var FLOOR_COL = com.gamebrew.Common.Color(256, 256, 0);
map_screen.copyPixels(map_bg, map_bg.rectangle, PT0);
var i = 0;
while (i < GRID_HEIGHT) {
var j = 0;
while (j < GRID_WIDTH) {
var tile = map_tile[j + (i * GRID_WIDTH)];
if (tile != -1) {
map_screen.copyPixels(tile_set, new flash.geom.Rectangle(tile_slice[tile].x * GRID_SIZE, tile_slice[tile].y * GRID_SIZE, tile_slice[tile].w * GRID_SIZE, tile_slice[tile].h * GRID_SIZE), new flash.geom.Point(j * GRID_SIZE, i * GRID_SIZE));
}
if (DEBUG) {
var solid = map_solid[j + (i * GRID_WIDTH)];
if (solid == 1) {
com.gamebrew.Common.FillRectangle(map_screen, FLOOR_COL, j * GRID_SIZE, i * GRID_SIZE, GRID_SIZE, GRID_SIZE);
} else if (solid == 2) {
com.gamebrew.Common.FillRectangle(map_screen, WALL_COL, j * GRID_SIZE, i * GRID_SIZE, GRID_SIZE, GRID_SIZE);
}
}
j++;
}
i++;
}
_root.createEmptyMovieClip("mc_screen", 0);
mc_screen.attachBitmap(out_screen, 0);
player = ActorAdd("mc_neo", DEPTH_CHAR, 1, -30, 600);
player.xs = 7;
player.CallAi = AiPlayer;
player.team = TEAM_PLAYER;
player.hp = PLAYER_HP;
var a = ActorAdd("mc_smith", DEPTH_CHAR, 1, 420, FLOOR_Y[0]);
a.weapon_switch = "sword";
a.CallAi = AiComputer;
a.team = TEAM_ENEMY;
a.hp = MIN_ENEMY_HP;
var a = ActorAdd("mc_smith", DEPTH_CHAR, -1, 410, FLOOR_Y[FLOOR_Y.length - 3]);
a.CallAi = AiComputer;
a.team = TEAM_ENEMY;
a.hp = MIN_ENEMY_HP;
var a = ActorAdd("mc_smith", DEPTH_CHAR, -1, 200, FLOOR_Y[FLOOR_Y.length - 1]);
a.weapon_switch = "pistol";
a.CallAi = AiComputer;
a.team = TEAM_ENEMY;
a.hp = MIN_ENEMY_HP;
ActorAddGoto("mc_items", "antenna", DEPTH_ITEM, 1, 230, 146);
ActorAddGoto("mc_items", "antenna", DEPTH_ITEM, -1, 410, 146);
ActorAddGoto("mc_items", "lamp", DEPTH_ITEM, 1, 60, 1011);
ActorAddGoto("mc_items", "lamp", DEPTH_ITEM, 1, 580, 1011);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, -1, 350, 1011);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, 1, 290, 1011);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, -1, 350, 795);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, 1, 290, 795);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, -1, 350, 651);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, 1, 290, 651);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, -1, 350, 507);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, 1, 290, 507);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, -1, 350, 363);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, 1, 290, 363);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, -1, 350, 219);
ActorAddGoto("mc_items", "plant", DEPTH_ITEM, 1, 290, 219);
ActorAddGoto("mc_items", "trash", DEPTH_ITEM, -1, 480, 435);
ActorAddGoto("mc_items", "trash", DEPTH_ITEM, -1, 480, 723);
ActorAddGoto("mc_items", "trash", DEPTH_ITEM, -1, 480, 1011);
ActorAddGoto("mc_items", "trash", DEPTH_ITEM, 1, 160, 291);
ActorAddGoto("mc_items", "trash", DEPTH_ITEM, 1, 160, 579);
ActorAddGoto("mc_items", "trash", DEPTH_ITEM, 1, 160, 867);
ActorAddGoto("mc_items", "desk", DEPTH_ITEM, 1, 160, 219);
ActorAddGoto("mc_items", "chair2", DEPTH_ITEM, 1, 125, 219);
ActorAddGoto("mc_items", "chair", DEPTH_ITEM, -1, 202, 219);
ActorAddGoto("mc_items", "desk", DEPTH_ITEM, 1, 160, 507);
ActorAddGoto("mc_items", "chair2", DEPTH_ITEM, 1, 125, 507);
ActorAddGoto("mc_items", "desk", DEPTH_ITEM, 1, 160, 795);
ActorAddGoto("mc_items", "chair2", DEPTH_ITEM, 1, 125, 795);
ActorAddGoto("mc_items", "desk", DEPTH_ITEM, -1, 477, 363);
ActorAddGoto("mc_items", "chair2", DEPTH_ITEM, -1, 512, 363);
ActorAddGoto("mc_items", "desk", DEPTH_ITEM, -1, 477, 651);
ActorAddGoto("mc_items", "chair2", DEPTH_ITEM, -1, 512, 651);
ActorAddGoto("mc_items", "desk", DEPTH_ITEM, -1, 477, 939);
ActorAddGoto("mc_items", "chair2", DEPTH_ITEM, -1, 512, 939);
ActorAddGoto("mc_items", "chair", DEPTH_ITEM, 1, 432, 939);
cam_actor = player;
cam_x = (cam_y = 0);
cam_push_x1 = int(GAME_WIDTH * 0.25);
cam_push_x2 = GAME_WIDTH - cam_push_x1;
cam_push_y1 = int(GAME_HEIGHT * 0.4);
cam_push_y2 = GAME_HEIGHT - cam_push_y1;
cam_box.width = out_screen.width;
cam_box.height = out_screen.height;
com.gamebrew.Common.MusicSet("music_001");
com.gamebrew.Common.MusicPlay();
mc_screen.attachMovie("mc_hud", "mc_hud", mc_screen.getNextDepthAt(DEPTH_HUD));
mc_screen.onEnterFrame = Game;
GameMessage("survive");
var ai_player_queue = new Array(4);
var ai_player_zero = 0;
var i = 0;
while (i < 4) {
ai_player_queue[i] = -1;
i++;
}
Frame 279
mc_round.swapDepths(1);
Frame 321
mc_green.swapDepths(2);
mc_green._alpha = 0;
mc_green.onEnterFrame = function () {
this._alpha = this._alpha + 5;
if (this._alpha > 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
Frame 378
stop();
mc_screen.removeMovieClip();
mc_green.removeMovieClip();
mc_round.removeMovieClip();
gotoAndPlay (379);
Frame 379
function PlayGame() {
com.gamebrew.Common.SoundPlay("scan");
if ((_root.hs_score_best > 100) && (_root.hs_score_best > _root.hs_score_submit)) {
gotoAndPlay ("submit_try");
} else {
gotoAndPlay ("end_try");
}
}
function SubmitScore() {
com.gamebrew.Common.SoundPlay("scan");
_root.do_submit = true;
gotoAndPlay ("submit_try");
}
function MoreGames() {
com.gamebrew.Common.SoundPlay("scan");
_root.getURL("http://www.arcadeprehacks.com", "_blank");
}
_root._quality = "BEST";
_root.do_submit = false;
if (_root.hs_score == undefined) {
_root.hs_score = 0;
}
if (_root.hs_score_best == undefined) {
_root.hs_score_best = 0;
}
Instance of Symbol 544 MovieClip in Frame 384
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.PlayGame();
}
}
Instance of Symbol 510 MovieClip in Frame 389
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MoreGames();
}
}
Frame 394
stop();
if (_root.hs_score > 0) {
var lc = new LocalConnection();
lc.send("gbapi", "scoreSubmit", _root.hs_score);
}
Frame 413
gotoAndPlay (98);
Frame 414
txt_input.text = _root.hs_name;
Selection.setFocus("txt_input");
Selection.setSelection(0, txt_input.text.length);
Instance of Symbol 544 MovieClip in Frame 417
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.PlayGame();
}
}
Instance of Symbol 510 MovieClip in Frame 422
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MoreGames();
}
}
Frame 427
stop();
Frame 446
if (_root.do_submit == false) {
gotoAndPlay (98);
} else {
gotoAndPlay (447);
}
Frame 447
function HiscoreShow() {
gotoAndPlay (448);
}
function MainMenu() {
com.gamebrew.Common.SoundPlay("scan");
gotoAndPlay ("hs_close");
}
function RefreshScores() {
if (_root.hs_data.name1 == undefined) {
return(undefined);
}
if (_root.hs_page == 0) {
mc_but_back.disable = true;
mc_but_next.disable = false;
mc_but_back.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 128, 128, 128, 0);
mc_but_next.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
} else if (_root.hs_page == 9) {
mc_but_back.disable = false;
mc_but_next.disable = true;
mc_but_back.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
mc_but_next.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 128, 128, 128, 0);
} else {
mc_but_back.disable = false;
mc_but_next.disable = false;
mc_but_back.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
mc_but_next.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
var _local3 = 1;
while (_local3 <= 10) {
var _local4 = _local3 + (_root.hs_page * 10);
this["hs_index_" + _local3].text = _local4 + ".";
if (_root.hs_data["name" + _local4] == undefined) {
this["hs_name_" + _local3].text = "...";
} else {
this["hs_name_" + _local3].text = _root.hs_data["name" + _local4];
}
if (_root.hs_data["score" + _local4] == undefined) {
this["hs_score_" + _local3].text = "0";
} else {
this["hs_score_" + _local3].text = com.gamebrew.Common.NumberComma(_root.hs_data["score" + _local4], 0);
}
_local3++;
}
}
stop();
_root.hs_page = 0;
_root.hs_data = new LoadVars();
_root.hs_data.onLoad = function (success) {
if (!success) {
txt_error.text = "error: could not connect to server.";
return(undefined);
}
if (this.errorMsg != "OK") {
txt_error.text = "error: " + this.errorMsg;
return(undefined);
}
HiscoreShow();
};
var sendvars = new LoadVars();
sendvars.game = _root.hs_game;
if (_root.do_submit == true) {
sendvars.name = _root.hs_name;
sendvars.score = _root.hs_score;
} else {
sendvars.name = "";
sendvars.score = 0;
}
sendvars.sendAndLoad("http://www.arcadeprehacks.com", _root.hs_data, "POST");
Instance of Symbol 551 MovieClip "mc_but_next" in Frame 447
onClipEvent (load) {
this.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 128, 128, 128, 0);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.hs_page++;
if (_root.hs_page > 9) {
_root.hs_page = 9;
} else {
_root.RefreshScores();
com.gamebrew.Common.SoundPlay("click");
}
}
}
Instance of Symbol 551 MovieClip "mc_but_back" in Frame 447
onClipEvent (load) {
this.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 128, 128, 128, 0);
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.hs_page--;
if (_root.hs_page < 0) {
_root.hs_page = 0;
} else {
_root.RefreshScores();
com.gamebrew.Common.SoundPlay("click");
}
}
}
Instance of Symbol 556 MovieClip in Frame 447
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu();
}
}
Frame 448
stop();
RefreshScores();
Frame 467
stop();
gotoAndPlay (98);
Symbol 9 MovieClip [mc_scan] Frame 1
if (init == undefined) {
init = true;
gravity = 0;
friction = 1;
friction_air = 1;
is_heavy = false;
on_stand = "stand";
time = 3;
txt_out.text = (txt_out2.text = "");
}
onEnterFrame = function () {
time--;
if (time <= 0) {
if (txt_out.text.length == txt_data.length) {
onEnterFrame = null;
goto = "_die";
} else {
txt_out.text = (txt_out2.text = txt_data.substr(0, txt_out.text.length + 1));
if (txt_out.text.length == txt_data.length) {
time = txt_data.length * 5;
} else {
time = 3;
}
}
}
};
Symbol 12 MovieClip [mc_pause] Frame 1
stop();
Symbol 16 MovieClip Frame 1
onRollOver = function () {
};
onRollOut = function () {
};
Symbol 21 MovieClip Frame 1
stop();
onPress = function () {
if (com.gamebrew.Common.MuteGet() == false) {
com.gamebrew.Common.MuteSet(true);
gotoAndStop (2);
} else {
com.gamebrew.Common.MuteSet(false);
com.gamebrew.Common.SoundPlay("click");
gotoAndStop (1);
}
};
onRollOver = function () {
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 0, 0);
};
onRollOut = function () {
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};
Symbol 22 MovieClip [mc_footer] Frame 1
function MoreGames() {
Common.SoundPlay("click");
_root.getURL("http://www.arcadeprehacks.com", "_blank");
}
Instance of Symbol 16 MovieClip in Symbol 22 MovieClip [mc_footer] Frame 1
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.MoreGames();
}
}
Symbol 32 MovieClip [mc_hud] Frame 1
onEnterFrame = function () {
var _local2 = _root.player;
if (_local2 == null) {
return(undefined);
}
val_health.text = _local2.hp;
val_score.text = com.gamebrew.Common.NumberComma(_local2.score);
val_kills.text = _local2.kills;
if ((_local2.weapon.weapon_type != "none") && (_local2.weapon.weapon_name != undefined)) {
txt_weapon.text = _local2.weapon.weapon_name;
if (_local2.weapon.type_name == "weapon") {
val_weapon.text = _local2.weapon.ammo;
} else {
val_weapon.text = "";
}
} else {
txt_weapon.text = "fist";
val_weapon.text = "";
}
};
Symbol 596 MovieClip [__Packages.com.gamebrew.Common] Frame 0
class com.gamebrew.Common
{
function Common () {
}
static function Initialize() {
Array.prototype.clean = function () {
if (this.length == 0) {
return(this);
}
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] == null) {
this.splice(_local2, 1);
_local2--;
}
_local2++;
}
return(this);
};
Array.prototype.clear = function () {
this.length = 0;
var _local2;
for (_local2 in this) {
delete this[_local2];
}
};
Array.prototype.pushUnique = function (obj) {
var _local3 = this.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this[_local2] == obj) {
return(undefined);
}
_local2++;
}
this.push(obj);
};
Array.prototype.contains = function (obj) {
var _local3 = this.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this[_local2] == obj) {
return(true);
}
_local2++;
}
return(false);
};
String.prototype.replace = function (pattern, replacement) {
return(this.split(pattern).join(replacement));
};
String.prototype.ucfirst = function () {
return(this.substring(0, 1).toUpperCase() + this.substring(1, this.length));
};
flash.geom.Rectangle.prototype.GetCenter = function () {
return(new flash.geom.Point(this.x + (this.width / 2), this.y + (this.height / 2)));
};
MovieClip.prototype.getNextDepthAt = function (group) {
var _local2 = group;
var _local3 = group + 99999;
while (_local2 < _local3) {
if (this.getInstanceAtDepth(_local2) == undefined) {
return(_local2);
}
_local2++;
}
};
MovieClip.prototype.filterGrayScale = function () {
var _local2 = [0.33, 0.33, 0.33, 0, 0, 0.33, 0.33, 0.33, 0, 0, 0.33, 0.33, 0.33, 0, 0, 0, 0, 0, 1, 0];
var _local3 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = [_local3];
};
MovieClip.prototype.filterClear = function () {
this.filters = null;
};
}
static function NumberConfine(val, min, max) {
if (val < min) {
val = min;
} else if (val > max) {
val = max;
}
return(val);
}
static function NumberComma(n) {
var _local4 = n.toString();
var _local3 = _local4.split(".");
var _local1 = "";
var _local2 = _local3[0].length;
while (_local2--) {
if ((_local2 < (_local3[0].length - 1)) && ((((_local3[0].length - _local2) - 1) % 3) == 0)) {
_local1 = "," + _local1;
}
_local1 = _local3[0].substr(_local2, 1) + _local1;
}
if (_local3.length > 1) {
_local1 = _local1 + ("." + _local3[1]);
}
return(_local1);
}
static function SoundQueueAdd(lib) {
if ((sound_volume == 0) || (do_mute)) {
return(undefined);
}
var _local1 = 0;
while (_local1 < sound_queue.length) {
if (sound_queue[_local1] == lib) {
return(undefined);
}
_local1++;
}
sound_queue.push(lib);
}
static function SoundQueuePlay() {
if (((sound_volume == 0) || (sound_queue.length == 0)) || (do_mute)) {
return(undefined);
}
var _local1 = 0;
while (_local1 < sound_queue.length) {
SoundPlay(sound_queue[_local1]);
sound_queue[_local1] = null;
_local1++;
}
sound_queue = new Array();
}
static function SoundQueueClear() {
sound_queue = new Array();
}
static function SoundPlay(lib) {
if ((sound_volume == 0) || (do_mute)) {
return(undefined);
}
var _local1 = new Sound();
_local1.attachSound(lib);
_local1.setVolume(sound_volume);
_local1.start();
return(_local1);
}
static function SoundGetVolume() {
return(sound_volume);
}
static function SoundSetVolume(vol) {
if ((sound_volume != 0) && (vol == 0)) {
sound_queue = new Array();
}
sound_volume = vol;
}
static function MusicSet(lib) {
music = lib;
}
static function MusicPlay() {
if (music_playing != null) {
MusicStop();
}
if ((music_volume == 0) || (do_mute)) {
return(undefined);
}
music_playing = new Sound();
music_playing.attachSound(music);
music_playing.setVolume(music_volume);
music_playing.start();
music_playing.onSoundComplete = function () {
this.start();
};
}
static function MusicStop() {
music_playing.onSoundComplete = null;
music_playing.stop();
delete music_playing;
music_playing = null;
}
static function MusicGetVolume() {
return(music_volume);
}
static function MusicSetVolume(vol) {
music_volume = vol;
if (music_playing != null) {
music_playing.setVolume(music_volume);
}
}
static function MuteSet(bool) {
if (bool == true) {
do_mute = true;
MusicStop();
SoundQueueClear();
_root.globalvolume = new Sound();
_root.globalvolume.setVolume(0);
} else {
do_mute = false;
_root.globalvolume = new Sound();
_root.globalvolume.setVolume(100);
MusicPlay();
}
}
static function MuteGet() {
return(do_mute);
}
static function SetCookie(nm, key, val) {
var _local1 = SharedObject.getLocal(nm);
_local1.data[key] = val;
_local1.flush();
}
static function GetCookie(nm, key, def) {
var _local2 = SharedObject.getLocal(nm);
var _local1 = _local2.data[key];
if ((_local1 == "") || (_local1 == undefined)) {
return(def);
}
return(_local1);
}
static function GetQueryString() {
var _local6 = _root._url;
var _local5 = new Object();
var _local4 = _local6.substring(_local6.lastIndexOf("?") + 1, _local6.length).split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
if (_local3[0].length == 0) {
} else {
_local5[_local3[0]] = _local3[1];
}
_local2++;
}
return(_local5);
}
static function GetHost() {
var _local3 = _root._url.split("/");
var _local2 = _local3[2];
if (_local2.indexOf("www.") == 0) {
_local2 = _local2.substr(4);
}
return(_local2);
}
static function ProtectUrl(tgturl, domains) {
var _local6 = GetHost();
var _local5 = false;
var _local3 = 0;
while (_local3 < domains.length) {
var _local2 = domains[_local3];
if (_local2.indexOf("www.") == 0) {
_local2 = _local2.substr(4);
}
if (_local6 == _local2) {
_local5 = true;
break;
}
_local3++;
}
if (_local5 == false) {
trace(("ERROR: Bad host [" + _local6) + "]");
_root.getURL(tgturl, "_top");
_root.stop();
return(false);
}
return(true);
}
static function GetUrlPath() {
var _local2 = _root._url;
_local2 = _local2.substr(0, _local2.lastIndexOf("/"));
return(_local2);
}
static function Color(r, g, b) {
if (r > 255) {
r = 255;
} else if (r < 0) {
r = 0;
}
if (g > 255) {
g = 255;
} else if (g < 0) {
g = 0;
}
if (b > 255) {
b = 255;
} else if (b < 0) {
b = 0;
}
return(((4278190080 | (r << 16)) | (g << 8)) | b);
}
static function DrawRectangle(bd, c, x, y, w, h) {
var _local1 = x;
while (_local1 < (x + w)) {
bd.setPixel(_local1, y, c);
bd.setPixel(_local1, (y + h) - 1, c);
_local1++;
}
_local1 = y;
while (_local1 < (y + h)) {
bd.setPixel(x, _local1, c);
bd.setPixel((x + w) - 1, _local1, c);
_local1++;
}
}
static function FillRectangle(bd, c, x, y, w, h) {
bd.fillRect(new flash.geom.Rectangle(x, y, w, h), c);
}
static function DrawHLine(bd, c, x, y, w) {
var _local1 = x;
while (_local1 < (x + w)) {
bd.setPixel(_local1, y, c);
_local1++;
}
}
static function DrawVLine(bd, c, x, y, h) {
var _local1 = y;
while (_local1 < (y + h)) {
bd.setPixel(x, _local1, c);
_local1++;
}
}
static function DataFillRectangle(a, aw, ah, c, x, y, w, h) {
var _local2 = y;
while (_local2 < (y + h)) {
if ((_local2 < 0) || (_local2 >= ah)) {
} else {
var _local1 = x;
while (_local1 < (x + w)) {
if ((_local1 < 0) || (_local1 >= aw)) {
} else {
a[_local1 + (_local2 * aw)] = c;
}
_local1++;
}
}
_local2++;
}
}
static function DataCopyRectangle(ta, taw, tah, tx, ty, sa, saw, sah, sx, sy, sw, sh) {
var _local3 = 0;
while (_local3 < sh) {
var _local4 = _local3 + ty;
if ((_local4 >= tah) || (_local4 < 0)) {
} else {
var _local1 = 0;
while (_local1 < sw) {
var _local2 = _local1 + tx;
if ((_local2 >= taw) || (_local2 < 0)) {
} else {
ta[_local2 + (_local4 * taw)] = sa[(_local1 + sx) + ((_local3 + sy) * saw)];
}
_local1++;
}
}
_local3++;
}
}
static function GetFps() {
if (fps_signal == true) {
fps_time = getTimer();
} else {
fps_tempo = int(1000 / (getTimer() - fps_time));
}
fps_signal = !fps_signal;
return(fps_tempo);
}
static function RandomInteger(min, max) {
if ((min == max) || (max < min)) {
return(min);
}
return(int(Math.random() * ((max - min) + 1)) + min);
}
static function RandomBit() {
return(int(Math.random() * 2));
}
static function CalcDistance(x1, y1, x2, y2) {
var _local1 = x2 - x1;
var _local2 = y2 - y1;
return(Math.sqrt((_local1 * _local1) + (_local2 * _local2)));
}
static var music = null;
static var music_playing = null;
static var sound_queue = new Array();
static var sound_volume = 100;
static var music_volume = 100;
static var do_mute = false;
static var fps_signal = false;
static var fps_time = 0;
static var fps_tempo = 0;
}
Symbol 597 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 598 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var __proto__, music;
function Game (base) {
super();
base.__proto__ = __proto__;
base.__constructor__ = Game;
this=base;//parameter overwritten
var _local4 = com.gamebrew.Common.GetQueryString();
com.gamebrew.Common.ProtectUrl("http://www.gamebrew.com", new Array("gamebrew.com", "arcadecool.com"));
music = new Sound();
music.attachSound("music_1");
}
static function main() {
trace("Main");
var _local2 = new Game(_root);
}
}
Symbol 169 MovieClip [mc_items] Frame 1
id = "mc_items";
_visible = false;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
stop();
Symbol 169 MovieClip [mc_items] Frame 2
if (weapon_type != "none") {
id = "mc_items";
type_name = null;
weapon_type = "none";
_visible = false;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
ammo_total = 1;
ammo = ammo_total;
if (_parent != null) {
_parent.dam_type = 1;
_parent.dam_hp = 2;
_parent.dam_tile = 1;
_parent.dam_xs = -1;
_parent.dam_ys = 0;
_parent.dam_range = 35;
_parent.on_contact = null;
_parent.on_contact_sound = "hit_fist";
}
}
on_use = "punch";
on_combo = "kick";
Symbol 169 MovieClip [mc_items] Frame 7
stop();
Symbol 169 MovieClip [mc_items] Frame 8
if (weapon_type != "staff") {
id = "mc_items";
type_name = "weapon";
weapon_type = "staff";
weapon_name = "Staff";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type + "_fall";
on_land = weapon_type + "_fall";
on_land_hard = weapon_type + "_fall";
on_fall = weapon_type + "_fall";
on_death = "_break";
body_type = 1;
ammo_total = 90;
if (hp == undefined) {
ammo = ammo_total;
hp = 20;
}
if (_parent != null) {
_parent.dam_type = 1;
_parent.dam_hp = 4;
_parent.dam_tile = 2;
_parent.dam_xs = -4;
_parent.dam_ys = -3.5;
_parent.dam_range = 50;
_parent.on_contact = "_ammo";
_parent.on_contact_sound = "hit_fist";
}
}
on_use = "sword";
on_combo = "stab";
Symbol 169 MovieClip [mc_items] Frame 12
stop();
Symbol 169 MovieClip [mc_items] Frame 18
stop();
Symbol 169 MovieClip [mc_items] Frame 19
_parent.ActorSound("swish");
Symbol 169 MovieClip [mc_items] Frame 32
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 33
if (weapon_type != "pistol") {
id = "mc_items";
type_name = "weapon";
weapon_type = "pistol";
weapon_name = "Pistol";
_visible = true;
box_body._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
on_death = "_break";
body_type = 1;
ammo_total = 60;
if (hp == undefined) {
ammo = ammo_total;
hp = 20;
}
if (_parent != null) {
_parent.ActorSound("reload");
_parent.dam_type = 0;
_parent.dam_xs = 0;
_parent.dam_ys = 0;
_parent.dam_range = 400;
}
}
on_use = "shoot";
on_combo = null;
Symbol 169 MovieClip [mc_items] Frame 38
stop();
Symbol 169 MovieClip [mc_items] Frame 39
on_use = null;
_parent.ActorSound("pistol");
Symbol 169 MovieClip [mc_items] Frame 40
_parent.ActorSpawn("mc_bullet", 32, -36);
ammo--;
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 41
if (weapon_type != "phazer") {
id = "mc_items";
type_name = "weapon";
weapon_type = "phazer";
weapon_name = "Phazer";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
on_death = "_break";
body_type = 1;
ammo_total = 30;
if (hp == undefined) {
ammo = ammo_total;
hp = 25;
}
if (_parent != null) {
_parent.ActorSound("reload");
_parent.dam_type = 0;
_parent.dam_xs = 0;
_parent.dam_ys = 0;
_parent.dam_range = 380;
}
}
on_use = "shoot";
on_combo = null;
Symbol 169 MovieClip [mc_items] Frame 47
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 48
on_use = null;
_parent.ActorSound("phazer");
Symbol 169 MovieClip [mc_items] Frame 49
_parent.ActorSpawn("mc_plasma", 35, -37);
ammo--;
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 50
if (weapon_type != "shotgun") {
id = "mc_items";
type_name = "weapon";
weapon_type = "shotgun";
weapon_name = "Shotgun";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
dam_type = 0;
dam_hp = 4;
dam_count = 4;
dam_tile = 2;
on_death = "_break";
body_type = 1;
ammo_total = 20;
if (hp == undefined) {
ammo = ammo_total;
hp = 22;
}
if (_parent != null) {
_parent.ActorSound("reload");
_parent.dam_type = 1;
_parent.dam_hp = 6;
_parent.dam_tile = 2;
_parent.dam_xs = -7;
_parent.dam_ys = -3.7;
_parent.dam_range = 80;
_parent.on_contact = null;
_parent.on_contact_sound = "hit_magic";
}
}
on_use = "shotgun";
on_combo = null;
Symbol 169 MovieClip [mc_items] Frame 55
stop();
Symbol 169 MovieClip [mc_items] Frame 56
on_use = null;
ammo--;
_parent.ActorSound("shotgun");
Symbol 169 MovieClip [mc_items] Frame 63
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 64
if (weapon_type != "sword") {
id = "mc_items";
type_name = "weapon";
weapon_type = "sword";
weapon_name = "Katana";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type + "_fall";
on_land = weapon_type + "_fall";
on_land_hard = weapon_type + "_fall";
on_fall = weapon_type + "_fall";
on_death = "_break";
body_type = 1;
ammo_total = 70;
if (hp == undefined) {
ammo = ammo_total;
hp = 30;
}
if (_parent != null) {
_parent.dam_type = 1;
_parent.dam_hp = 5;
_parent.dam_tile = 2;
_parent.dam_xs = -5;
_parent.dam_ys = -3.3;
_parent.dam_range = 44;
_parent.on_contact = "_ammo";
_parent.on_contact_sound = "hit_slice";
}
}
on_use = "sword";
on_combo = "stab";
Symbol 169 MovieClip [mc_items] Frame 69
stop();
Symbol 169 MovieClip [mc_items] Frame 75
stop();
Symbol 169 MovieClip [mc_items] Frame 76
_parent.ActorSound("slice");
Symbol 169 MovieClip [mc_items] Frame 89
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 90
if (weapon_type != "steel") {
id = "mc_items";
type_name = "weapon";
weapon_type = "steel";
weapon_name = "Steel";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type + "_fall";
on_land = weapon_type + "_fall";
on_land_hard = weapon_type + "_fall";
on_fall = weapon_type + "_fall";
on_death = "_break";
body_type = 1;
ammo_total = 20;
if (hp == undefined) {
ammo = ammo_total;
hp = 25;
}
if (_parent != null) {
_parent.dam_type = 1;
_parent.dam_hp = 5;
_parent.dam_tile = 2;
_parent.dam_xs = -4;
_parent.dam_ys = -3.5;
_parent.dam_range = 50;
_parent.on_contact = "_ammo";
_parent.on_contact_sound = "hit_slice";
}
}
on_use = "sword";
on_combo = "stab";
Symbol 169 MovieClip [mc_items] Frame 94
stop();
Symbol 169 MovieClip [mc_items] Frame 100
stop();
Symbol 169 MovieClip [mc_items] Frame 101
_parent.ActorSound("swish");
Symbol 169 MovieClip [mc_items] Frame 114
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 115
if (weapon_type != "post") {
id = "mc_items";
type_name = "weapon";
weapon_type = "post";
weapon_name = "Post";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type + "_fall";
on_land = weapon_type + "_fall";
on_land_hard = weapon_type + "_fall";
on_fall = weapon_type + "_fall";
on_death = "_break";
body_type = 1;
ammo_total = 15;
if (hp == undefined) {
ammo = ammo_total;
hp = 15;
}
if (_parent != null) {
_parent.dam_type = 1;
_parent.dam_hp = 5;
_parent.dam_tile = 2;
_parent.dam_xs = -4;
_parent.dam_ys = -4.5;
_parent.dam_range = 50;
_parent.on_contact = "_ammo";
_parent.on_contact_sound = "hit_fist";
}
}
on_use = "sword";
on_combo = "stab";
Symbol 169 MovieClip [mc_items] Frame 119
stop();
Symbol 169 MovieClip [mc_items] Frame 125
stop();
Symbol 169 MovieClip [mc_items] Frame 126
_parent.ActorSound("swish");
Symbol 169 MovieClip [mc_items] Frame 139
gotoAndPlay(weapon_type);
Symbol 169 MovieClip [mc_items] Frame 140
if (init == undefined) {
init = true;
id = "mc_items";
type_name = "heal";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = "heal";
on_land = null;
on_land_hard = null;
on_fall = null;
body_type = 1;
on_death = "_break";
if (hp == undefined) {
hp = 5;
}
}
Symbol 169 MovieClip [mc_items] Frame 144
stop();
Symbol 169 MovieClip [mc_items] Frame 145
this.ActorSound("ding");
body_type = 0;
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 150
stop();
Symbol 169 MovieClip [mc_items] Frame 151
if (weapon_type != "desk") {
id = "mc_items";
type_name = "carry";
weapon_type = "desk";
weapon_name = "Desk";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.8;
friction_air = 0.85;
is_heavy = true;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
on_hit = null;
on_death = weapon_type + "_die";
body_type = 1;
dam_body = 7;
if (hp == undefined) {
hp = 50;
}
if (_parent != null) {
_parent.dam_range = 95;
}
}
on_use = "throw";
Symbol 169 MovieClip [mc_items] Frame 155
stop();
Symbol 169 MovieClip [mc_items] Frame 156
ActorSound("hit_wood");
_alpha = 100;
body_type = 0;
on_land = (on_land_hard = null);
on_fall = null;
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 167
stop();
Symbol 169 MovieClip [mc_items] Frame 168
if (weapon_type != "chair") {
id = "mc_items";
type_name = "carry";
weapon_type = "chair";
weapon_name = "Chair";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.98;
friction_air = 0.85;
is_heavy = true;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
on_hit = null;
on_death = weapon_type + "_die";
body_type = 1;
dam_body = 3;
if (hp == undefined) {
hp = 20;
}
if (_parent != null) {
_parent.dam_range = 90;
}
}
on_use = "throw";
Symbol 169 MovieClip [mc_items] Frame 172
stop();
Symbol 169 MovieClip [mc_items] Frame 173
ActorSound("hit_wood");
_alpha = 100;
body_type = 0;
on_land = (on_land_hard = null);
on_fall = null;
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 184
stop();
Symbol 169 MovieClip [mc_items] Frame 185
if (weapon_type != "chair2") {
id = "mc_items";
type_name = "carry";
weapon_type = "chair2";
weapon_name = "Chair";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.85;
friction_air = 0.85;
is_heavy = true;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
on_hit = null;
on_death = weapon_type + "_die";
body_type = 1;
dam_body = 2;
if (hp == undefined) {
hp = 15;
}
if (_parent != null) {
_parent.dam_range = 90;
}
}
on_use = "throw";
Symbol 169 MovieClip [mc_items] Frame 189
stop();
Symbol 169 MovieClip [mc_items] Frame 190
ActorSound("hit_wood");
_alpha = 100;
body_type = 0;
on_land = (on_land_hard = null);
on_fall = null;
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 201
stop();
Symbol 169 MovieClip [mc_items] Frame 202
if (weapon_type != "trash") {
id = "mc_items";
type_name = "carry";
weapon_type = "trash";
weapon_name = "Trash";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.85;
friction_air = 0.85;
is_heavy = true;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
on_hit = null;
on_death = weapon_type + "_die";
body_type = 1;
if (hp == undefined) {
hp = 10;
}
if (_parent != null) {
_parent.dam_range = 90;
}
}
on_use = "throw";
Symbol 169 MovieClip [mc_items] Frame 206
stop();
Symbol 169 MovieClip [mc_items] Frame 207
ActorSound("hit_metal");
_alpha = 100;
body_type = 0;
on_land = (on_land_hard = null);
on_fall = null;
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 218
stop();
Symbol 169 MovieClip [mc_items] Frame 219
if (weapon_type != "plant") {
id = "mc_items";
type_name = "carry";
weapon_type = "plant";
weapon_name = "Plant";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.85;
friction_air = 0.85;
is_heavy = true;
on_stand = weapon_type;
on_land = weapon_type;
on_land_hard = weapon_type;
on_fall = weapon_type;
on_hit = null;
on_death = weapon_type + "_die";
body_type = 1;
if (hp == undefined) {
hp = 8;
}
if (_parent != null) {
_parent.dam_range = 90;
}
}
on_use = "throw";
Symbol 169 MovieClip [mc_items] Frame 223
stop();
Symbol 169 MovieClip [mc_items] Frame 224
ActorSound("hit_wood");
_alpha = 100;
body_type = 0;
on_land = (on_land_hard = null);
on_fall = null;
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 235
stop();
Symbol 169 MovieClip [mc_items] Frame 236
if (init == undefined) {
init = true;
id = "mc_items";
type_name = "fixed";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 0;
friction = 0;
friction_air = 0;
is_heavy = false;
on_stand = "antenna";
on_land = null;
on_land_hard = null;
on_fall = null;
on_hit = null;
on_death = on_stand + "_die";
if (hp == undefined) {
hp = 25;
}
weapon = new Object();
weapon.id = "mc_items";
weapon.weapon_type = "steel";
weapon.ammo = 15;
weapon.hp = 25;
}
Symbol 169 MovieClip [mc_items] Frame 240
stop();
Symbol 169 MovieClip [mc_items] Frame 241
ActorSound("hit_metal");
_alpha = 100;
body_type = 0;
on_land = (on_land_hard = null);
on_fall = null;
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 247
ActorWeaponDrop();
Symbol 169 MovieClip [mc_items] Frame 252
stop();
Symbol 169 MovieClip [mc_items] Frame 253
if (init == undefined) {
init = true;
id = "mc_items";
type_name = "fixed";
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 0;
friction = 0;
friction_air = 0;
is_heavy = false;
on_stand = "lamp";
on_land = null;
on_land_hard = null;
on_fall = null;
on_hit = null;
on_death = on_stand + "_die";
if (hp == undefined) {
hp = 30;
}
weapon = new Object();
weapon.id = "mc_items";
weapon.weapon_type = "post";
weapon.ammo = 10;
weapon.hp = 15;
}
Symbol 169 MovieClip [mc_items] Frame 260
goto = "lamp";
Symbol 169 MovieClip [mc_items] Frame 261
ActorSound("hit_metal");
_alpha = 100;
body_type = 0;
on_land = (on_land_hard = null);
on_fall = null;
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 267
ActorWeaponDrop();
Symbol 169 MovieClip [mc_items] Frame 272
stop();
Symbol 169 MovieClip [mc_items] Frame 273
if (weapon_type != "smith") {
id = "mc_smith";
type_name = "carry";
weapon_type = "thrown";
weapon_name = "agent";
if (_parent != null) {
_parent.dam_range = 100;
}
}
on_use = "throw";
Symbol 169 MovieClip [mc_items] Frame 278
stop();
Symbol 169 MovieClip [mc_items] Frame 279
if (weapon_type != "grenade") {
id = "mc_items";
type_name = "weapon";
weapon_type = "grenade";
weapon_name = "grenade";
_visible = true;
box_body._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
is_heavy = false;
on_stand = weapon_type;
on_death = "grenade_explode";
on_land = (on_land_hard = weapon_type);
on_fall = weapon_type;
body_type = 1;
ammo_total = 1;
if (hp == undefined) {
ammo = ammo_total;
hp = 1;
}
if (_parent != null) {
_parent.dam_type = 0;
_parent.dam_xs = 0;
_parent.dam_ys = 0;
_parent.dam_range = 100;
}
}
on_use = "toss";
Symbol 169 MovieClip [mc_items] Frame 284
stop();
Symbol 169 MovieClip [mc_items] Frame 285
_visible = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
gravity = 1.5;
friction = 0.9;
friction_air = 0.85;
on_ground = false;
is_heavy = false;
on_stand = "grenade_toss";
on_fall = null;
on_contact = (on_land = (on_land_hard = (on_death = "grenade_explode")));
body_type = 1;
dam_type = 1;
dam_hp = 1;
dam_tile = 1;
dam_xs = 0;
dam_ys = 0;
Symbol 169 MovieClip [mc_items] Frame 290
stop();
Symbol 169 MovieClip [mc_items] Frame 291
ActorSound("explode");
spawner = null;
body_type = 0;
gravity = 0;
friction = (friction_air = 1);
xs = (ys = 0);
on_stand = (on_land = (on_land_hard = (on_death = (on_fall = (on_contact = null)))));
on_ground = true;
is_heavy = false;
dam_type = 1;
dam_hp = 15;
dam_tile = 2;
dam_xs = -7.5;
dam_ys = -3.8;
Symbol 169 MovieClip [mc_items] Frame 298
_alpha = 100;
onEnterFrame = function () {
_alpha = (_alpha - 24);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 169 MovieClip [mc_items] Frame 302
stop();
Symbol 292 MovieClip [mc_neo] Frame 1
if (init == undefined) {
init = true;
if (hp == undefined) {
hp = "77777";
}
loop = 0;
id = "mc_neo";
type_name = "neo";
can_hue = true;
is_heavy = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
}
loop = 0;
body_type = 1;
gravity = 1.5;
friction = 0.3;
friction_air = 0.85;
contact_combo = 0;
on_hit = "hit";
on_death = "death";
on_fall = "jump_air";
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_run = "run";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
CallControl = ControlHumanStand;
Symbol 292 MovieClip [mc_neo] Frame 30
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 31
friction = 1;
xs = 5 * face;
Symbol 292 MovieClip [mc_neo] Frame 54
loop++;
if (loop == 1) {
goto = "run";
loop = 0;
} else {
goto = "walk";
}
Symbol 292 MovieClip [mc_neo] Frame 55
loop = 0;
xs = 8 * face;
friction = 1;
ActorSound("foot");
Symbol 292 MovieClip [mc_neo] Frame 66
goto = "run";
Symbol 292 MovieClip [mc_neo] Frame 67
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("swish");
Symbol 292 MovieClip [mc_neo] Frame 73
ys = -14.2;
on_ground = false;
goto = "jump_start";
CallControl = ControlHumanStand;
Symbol 292 MovieClip [mc_neo] Frame 79
body_type = 1;
gravity = 1.5;
CallControl = ControlHumanStand;
Symbol 292 MovieClip [mc_neo] Frame 86
goto = "jump_air";
Symbol 292 MovieClip [mc_neo] Frame 87
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("foot");
Symbol 292 MovieClip [mc_neo] Frame 93
ys = 6;
on_ground = false;
Symbol 292 MovieClip [mc_neo] Frame 95
goto = "jump_air";
Symbol 292 MovieClip [mc_neo] Frame 96
body_type = 1;
on_hit = "hit";
on_death = "death";
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
friction = 0.85;
CallControl = null;
Symbol 292 MovieClip [mc_neo] Frame 100
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 101
on_stand = "stand";
on_hit = "hit";
on_death = "death";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
body_type = 1;
CallControl = null;
friction = 0.85;
Symbol 292 MovieClip [mc_neo] Frame 102
loop_land--;
if (loop_land > 0) {
goto = "land_hard";
}
Symbol 292 MovieClip [mc_neo] Frame 106
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 107
CallControl = null;
friction = 0.85;
Symbol 292 MovieClip [mc_neo] Frame 114
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 115
CallControl = null;
friction = 0.75;
Symbol 292 MovieClip [mc_neo] Frame 117
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 292 MovieClip [mc_neo] Frame 121
CallControl = ControlHumanCombo;
Symbol 292 MovieClip [mc_neo] Frame 122
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 123
CallControl = null;
Symbol 292 MovieClip [mc_neo] Frame 125
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 292 MovieClip [mc_neo] Frame 129
gravity = 1.5;
CallControl = ControlHumanCombo;
Symbol 292 MovieClip [mc_neo] Frame 130
goto = "jump_air";
Symbol 292 MovieClip [mc_neo] Frame 131
CallControl = null;
friction = 0.75;
on_contact_call = "mc_hit";
Symbol 292 MovieClip [mc_neo] Frame 134
xs = (face * -1) * 1;
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 292 MovieClip [mc_neo] Frame 145
CallControl = ControlHumanCombo;
Symbol 292 MovieClip [mc_neo] Frame 146
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 147
CallControl = null;
on_contact_call = "mc_hit";
Symbol 292 MovieClip [mc_neo] Frame 149
xs = (face * -1) * 1;
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 292 MovieClip [mc_neo] Frame 160
gravity = 1.5;
xs = (face * -1) * 1;
CallControl = ControlHumanCombo;
Symbol 292 MovieClip [mc_neo] Frame 161
goto = "jump_air";
Symbol 292 MovieClip [mc_neo] Frame 162
CallControl = null;
on_contact_call = "mc_hit";
friction = 0.75;
dam_tile = 2;
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 292 MovieClip [mc_neo] Frame 173
CallControl = ControlHumanCombo;
Symbol 292 MovieClip [mc_neo] Frame 174
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 175
dam_tile = 1;
xs = 5 * face;
CallControl = null;
weapon.on_use = "sword";
Symbol 292 MovieClip [mc_neo] Frame 181
ActorSound("swish");
Symbol 292 MovieClip [mc_neo] Frame 186
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 187
weapon.gotoAndPlay(weapon.weapon_type + "_use");
CallControl = null;
on_contact_call = "mc_hit";
Symbol 292 MovieClip [mc_neo] Frame 200
gravity = 1.5;
CallControl = ControlHumanCombo;
Symbol 292 MovieClip [mc_neo] Frame 201
goto = "jump_air";
Symbol 292 MovieClip [mc_neo] Frame 202
CallControl = null;
friction = 0.75;
on_contact_call = "mc_hit";
dam_type = 1;
dam_hp = 2;
dam_tile = 1;
dam_xs = -1;
dam_ys = 0;
on_contact = null;
on_contact_sound = "hit_fist";
Symbol 292 MovieClip [mc_neo] Frame 204
ActorSound("swish");
Symbol 292 MovieClip [mc_neo] Frame 210
CallControl = ControlHumanCombo;
Symbol 292 MovieClip [mc_neo] Frame 211
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 212
CallControl = null;
xs = face * 2;
dam_type = 1;
dam_hp = 3;
dam_tile = 1;
dam_xs = -9;
dam_ys = -4;
on_contact = null;
on_contact_sound = "hit_kick";
Symbol 292 MovieClip [mc_neo] Frame 214
ActorSound("swish");
Symbol 292 MovieClip [mc_neo] Frame 225
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 226
CallControl = null;
on_contact_call = "mc_hit";
on_contact_sound = "hit_fist";
Symbol 292 MovieClip [mc_neo] Frame 228
ActorSound("swish");
Symbol 292 MovieClip [mc_neo] Frame 234
gravity = 1.5;
CallControl = ControlHumanStand;
Symbol 292 MovieClip [mc_neo] Frame 235
goto = "jump_air";
stop();
Symbol 292 MovieClip [mc_neo] Frame 236
gravity = 1.5;
body_type = 0;
on_fall = null;
CallControl = null;
spawner = null;
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 14, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 292 MovieClip [mc_neo] Frame 240
if (loop > 0) {
loop--;
if (loop <= 0) {
if (on_ground == true) {
goto = "stand";
} else {
goto = "jump_air";
}
body_type = 1;
loop = 0;
} else {
goto = "hit";
}
} else {
goto = "hit";
}
Symbol 292 MovieClip [mc_neo] Frame 241
gravity = 1.5;
body_type = 0;
on_fall = null;
on_land = (on_land_hard = "dead");
CallControl = null;
ActorSound("grunt");
friction = 0.65;
friction_air = 0.95;
on_ground = false;
ys = -7;
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 2, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 292 MovieClip [mc_neo] Frame 244
on_contact_sound = "land";
on_contact_call = "mc_hit";
Symbol 292 MovieClip [mc_neo] Frame 248
ActorWeaponDrop();
Symbol 292 MovieClip [mc_neo] Frame 251
stop();
Symbol 292 MovieClip [mc_neo] Frame 256
stop();
onEnterFrame = function () {
_alpha = (_alpha-1);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 292 MovieClip [mc_neo] Frame 257
body_type = 0;
friction = 0.75;
friction_air = 0.8;
on_stand = "stand_carry";
on_land = "land_carry";
on_land_hard = "land_hard_carry";
on_fall = "jump_air_carry";
on_pickup = null;
on_carry = null;
on_hit = "hit_carry";
on_death = "death_carry";
on_walk = "walk_carry";
on_run = "walk_carry";
on_up = "jump_carry";
on_down = "jump_down_carry";
CallControl = null;
Symbol 292 MovieClip [mc_neo] Frame 265
body_type = 1;
goto = "stand_carry";
Symbol 292 MovieClip [mc_neo] Frame 266
CallControl = ControlHumanStand;
body_type = 1;
friction = 0.5;
Symbol 292 MovieClip [mc_neo] Frame 295
goto = "stand_carry";
Symbol 292 MovieClip [mc_neo] Frame 296
friction = 1;
xs = 4.5 * face;
Symbol 292 MovieClip [mc_neo] Frame 320
goto = "walk_carry";
Symbol 292 MovieClip [mc_neo] Frame 321
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("swish");
Symbol 292 MovieClip [mc_neo] Frame 328
ys = -15;
on_ground = false;
goto = "jump_air_carry";
CallControl = ControlHumanStand;
Symbol 292 MovieClip [mc_neo] Frame 329
CallControl = ControlHumanStand;
Symbol 292 MovieClip [mc_neo] Frame 338
goto = "jump_air_carry";
Symbol 292 MovieClip [mc_neo] Frame 339
CallControl = null;
on_fall = "jump_air_carry";
body_type = 1;
friction = 0.85;
Symbol 292 MovieClip [mc_neo] Frame 344
goto = "stand_carry";
Symbol 292 MovieClip [mc_neo] Frame 345
body_type = 1;
CallControl = null;
friction = 0.85;
Symbol 292 MovieClip [mc_neo] Frame 346
loop_land--;
if (loop_land > 0) {
goto = "land_hard_carry";
}
Symbol 292 MovieClip [mc_neo] Frame 351
goto = "stand_carry";
Symbol 292 MovieClip [mc_neo] Frame 352
CallControl = null;
friction = 0.75;
Symbol 292 MovieClip [mc_neo] Frame 361
ActorSound("throw");
body_type = 0;
Symbol 292 MovieClip [mc_neo] Frame 362
ActorWeaponThrow(18, -3, 13, 0);
Symbol 292 MovieClip [mc_neo] Frame 363
weapon_switch = "none";
weapon.ammo = 1;
Symbol 292 MovieClip [mc_neo] Frame 364
body_type = 1;
Symbol 292 MovieClip [mc_neo] Frame 369
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 370
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("foot");
Symbol 292 MovieClip [mc_neo] Frame 376
ys = 6;
on_ground = false;
Symbol 292 MovieClip [mc_neo] Frame 378
goto = "jump_air_carry";
Symbol 292 MovieClip [mc_neo] Frame 379
gravity = 1.5;
body_type = 0;
on_fall = null;
CallControl = null;
weapon._visible = false;
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 14, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 292 MovieClip [mc_neo] Frame 383
if (loop > 0) {
loop--;
if (loop <= 0) {
if (on_ground == true) {
goto = "stand";
} else {
goto = "jump_air";
}
body_type = 1;
loop = 0;
} else {
goto = "hit_carry";
}
} else {
goto = "hit_carry";
}
Symbol 292 MovieClip [mc_neo] Frame 384
gravity = 1.5;
body_type = 0;
on_fall = null;
on_land = (on_land_hard = "dead");
CallControl = null;
ActorSound("grunt");
friction = 0.65;
friction_air = 0.95;
on_ground = false;
ys = -7;
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 2, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 292 MovieClip [mc_neo] Frame 387
on_contact_sound = "land";
on_contact_call = "mc_hit";
Symbol 292 MovieClip [mc_neo] Frame 391
ActorWeaponDrop();
Symbol 292 MovieClip [mc_neo] Frame 394
stop();
Symbol 292 MovieClip [mc_neo] Frame 395
CallControl = null;
friction = 0.75;
Symbol 292 MovieClip [mc_neo] Frame 398
ActorSound("throw");
body_type = 0;
Symbol 292 MovieClip [mc_neo] Frame 399
var wpn = ActorWeaponThrow(23, 10, 12, -2);
wpn.goto = weapon.weapon_type + "_toss";
Symbol 292 MovieClip [mc_neo] Frame 400
weapon_switch = "none";
weapon.ammo = 1;
Symbol 292 MovieClip [mc_neo] Frame 401
body_type = 1;
Symbol 292 MovieClip [mc_neo] Frame 404
goto = "stand";
Symbol 292 MovieClip [mc_neo] Frame 405
CallControl = null;
friction = 0.75;
Symbol 292 MovieClip [mc_neo] Frame 408
ActorSound("throw");
body_type = 0;
Symbol 292 MovieClip [mc_neo] Frame 409
var wpn = ActorWeaponThrow(23, 10, 12, -2);
wpn.goto = weapon.weapon_type + "_toss";
Symbol 292 MovieClip [mc_neo] Frame 410
weapon_switch = "none";
weapon.ammo = 1;
Symbol 292 MovieClip [mc_neo] Frame 411
body_type = 1;
Symbol 292 MovieClip [mc_neo] Frame 414
goto = "jump_air";
Symbol 407 MovieClip [mc_smith] Frame 1
if (init == undefined) {
init = true;
if (hp == undefined) {
hp = 100;
}
loop = 0;
id = "mc_smith";
type_name = "carry";
weapon_name = "agent";
weapon_type = "smith";
can_hue = true;
is_heavy = true;
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
}
loop = 0;
spawner = null;
body_type = 1;
gravity = 1.5;
friction = 0.3;
friction_air = 0.85;
on_hit = "hit";
on_death = "death";
on_fall = "jump_air";
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_run = "run";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 30
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 31
friction = 1;
xs = 5 * face;
Symbol 407 MovieClip [mc_smith] Frame 54
loop++;
if (loop == 1) {
goto = "run";
loop = 0;
} else {
goto = "walk";
}
Symbol 407 MovieClip [mc_smith] Frame 55
loop = 0;
xs = 8 * face;
friction = 1;
ActorSound("foot");
Symbol 407 MovieClip [mc_smith] Frame 66
goto = "run";
Symbol 407 MovieClip [mc_smith] Frame 67
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("swish");
Symbol 407 MovieClip [mc_smith] Frame 73
ys = -14.2;
on_ground = false;
goto = "jump_start";
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 79
body_type = 1;
gravity = 1.5;
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 86
goto = "jump_air";
Symbol 407 MovieClip [mc_smith] Frame 87
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("foot");
Symbol 407 MovieClip [mc_smith] Frame 93
ys = 6;
on_ground = false;
Symbol 407 MovieClip [mc_smith] Frame 95
goto = "jump_air";
Symbol 407 MovieClip [mc_smith] Frame 96
body_type = 1;
on_hit = "hit";
on_death = "death";
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
friction = 0.85;
CallControl = null;
Symbol 407 MovieClip [mc_smith] Frame 100
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 101
on_hit = "hit";
on_death = "death";
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
body_type = 1;
CallControl = null;
friction = 0.85;
Symbol 407 MovieClip [mc_smith] Frame 102
loop_land--;
if (loop_land > 0) {
goto = "land_hard";
}
Symbol 407 MovieClip [mc_smith] Frame 106
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 107
CallControl = null;
friction = 0.85;
Symbol 407 MovieClip [mc_smith] Frame 114
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 115
CallControl = null;
friction = 0.75;
Symbol 407 MovieClip [mc_smith] Frame 117
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 407 MovieClip [mc_smith] Frame 121
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 122
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 123
CallControl = null;
Symbol 407 MovieClip [mc_smith] Frame 125
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 407 MovieClip [mc_smith] Frame 129
gravity = 1.5;
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 130
goto = "jump_air";
Symbol 407 MovieClip [mc_smith] Frame 131
CallControl = null;
friction = 0.75;
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 134
xs = (face * -1) * 1;
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 407 MovieClip [mc_smith] Frame 145
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 146
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 147
CallControl = null;
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 149
xs = (face * -1) * 1;
weapon.gotoAndPlay(weapon.weapon_type + "_use");
Symbol 407 MovieClip [mc_smith] Frame 160
gravity = 1.5;
xs = (face * -1) * 1;
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 161
goto = "jump_air";
Symbol 407 MovieClip [mc_smith] Frame 162
weapon.gotoAndPlay(weapon.weapon_type + "_use");
CallControl = null;
on_contact_call = "mc_hit";
friction = 0.75;
Symbol 407 MovieClip [mc_smith] Frame 173
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 174
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 175
weapon.gotoAndPlay(weapon.weapon_type + "_use");
CallControl = null;
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 189
gravity = 1.5;
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 190
goto = "jump_air";
Symbol 407 MovieClip [mc_smith] Frame 191
CallControl = null;
friction = 0.75;
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 193
ActorSound("swish");
Symbol 407 MovieClip [mc_smith] Frame 199
dam_count = 1;
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 200
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 201
CallControl = null;
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 203
ActorSound("swish");
Symbol 407 MovieClip [mc_smith] Frame 209
gravity = 1.5;
dam_count = 1;
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 210
goto = "jump_air";
Symbol 407 MovieClip [mc_smith] Frame 211
gravity = 1.5;
body_type = 0;
on_fall = null;
CallControl = null;
spawner = null;
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 14, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 407 MovieClip [mc_smith] Frame 215
if (loop > 0) {
loop--;
if (loop <= 0) {
if (on_ground == true) {
goto = "stand";
} else {
goto = "jump_air";
}
body_type = 1;
loop = 0;
} else {
goto = "hit";
}
} else {
goto = "hit";
}
Symbol 407 MovieClip [mc_smith] Frame 216
body_type = 0;
on_fall = null;
on_land = (on_land_hard = "dead");
CallControl = null;
ActorSound("grunt");
friction = 0.65;
friction_air = 0.95;
on_ground = false;
gravity = 1.5;
ys = -7;
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 2, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 407 MovieClip [mc_smith] Frame 219
on_contact_sound = "land";
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 223
ActorWeaponDrop();
Symbol 407 MovieClip [mc_smith] Frame 226
stop();
Symbol 407 MovieClip [mc_smith] Frame 231
stop();
onEnterFrame = function () {
_alpha = (_alpha-1);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 407 MovieClip [mc_smith] Frame 232
body_type = 0;
friction = 0.75;
friction_air = 0.8;
on_stand = "stand_carry";
on_land = "land_carry";
on_land_hard = "land_hard_carry";
on_fall = "jump_air_carry";
on_pickup = null;
on_carry = null;
on_hit = "hit_carry";
on_death = "death_carry";
on_walk = "walk_carry";
on_run = "walk_carry";
on_up = "jump_carry";
on_down = "jump_down_carry";
CallControl = null;
Symbol 407 MovieClip [mc_smith] Frame 240
body_type = 1;
goto = "stand_carry";
Symbol 407 MovieClip [mc_smith] Frame 241
CallControl = ControlHumanStand;
body_type = 1;
friction = 0.5;
Symbol 407 MovieClip [mc_smith] Frame 270
goto = "stand_carry";
Symbol 407 MovieClip [mc_smith] Frame 271
friction = 1;
xs = 4.5 * face;
Symbol 407 MovieClip [mc_smith] Frame 295
goto = "walk_carry";
Symbol 407 MovieClip [mc_smith] Frame 296
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("swish");
Symbol 407 MovieClip [mc_smith] Frame 303
ys = -15;
on_ground = false;
goto = "jump_air_carry";
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 304
CallControl = ControlHumanStand;
Symbol 407 MovieClip [mc_smith] Frame 313
goto = "jump_air_carry";
Symbol 407 MovieClip [mc_smith] Frame 314
CallControl = null;
on_fall = "jump_air_carry";
body_type = 1;
friction = 0.85;
Symbol 407 MovieClip [mc_smith] Frame 319
goto = "stand_carry";
Symbol 407 MovieClip [mc_smith] Frame 320
body_type = 1;
CallControl = null;
friction = 0.85;
Symbol 407 MovieClip [mc_smith] Frame 321
loop_land--;
if (loop_land > 0) {
goto = "land_hard_carry";
}
Symbol 407 MovieClip [mc_smith] Frame 326
goto = "stand_carry";
Symbol 407 MovieClip [mc_smith] Frame 327
CallControl = null;
friction = 0.75;
Symbol 407 MovieClip [mc_smith] Frame 336
ActorSound("throw");
body_type = 0;
Symbol 407 MovieClip [mc_smith] Frame 337
ActorWeaponThrow(18, -3, 13, 0);
Symbol 407 MovieClip [mc_smith] Frame 338
weapon_switch = "none";
weapon.ammo = 1;
Symbol 407 MovieClip [mc_smith] Frame 339
body_type = 1;
Symbol 407 MovieClip [mc_smith] Frame 344
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 345
CallControl = null;
friction = 0.5;
xs = xs * 0.5;
ActorSound("foot");
Symbol 407 MovieClip [mc_smith] Frame 351
ys = 6;
on_ground = false;
Symbol 407 MovieClip [mc_smith] Frame 353
goto = "jump_air_carry";
Symbol 407 MovieClip [mc_smith] Frame 354
gravity = 1.5;
body_type = 0;
on_fall = null;
CallControl = null;
on_stand = "stand";
on_land = "land";
on_land_hard = "land_hard";
on_pickup = "pickup";
on_walk = "walk";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
on_fall = "jump_air";
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 14, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 407 MovieClip [mc_smith] Frame 358
if (loop > 0) {
loop--;
if (loop <= 0) {
if (on_ground == true) {
goto = "stand";
} else {
goto = "jump_air";
}
body_type = 1;
loop = 0;
} else {
goto = "hit_carry";
}
} else {
goto = "hit_carry";
}
Symbol 407 MovieClip [mc_smith] Frame 359
body_type = 0;
on_fall = null;
on_land = (on_land_hard = "dead");
CallControl = null;
ActorSound("grunt");
friction = 0.65;
friction_air = 0.95;
on_ground = false;
gravity = 1.5;
ys = -7;
if (weapon.type_name == "carry") {
ActorWeaponThrow(0, 2, -1, 0);
weapon_switch = "none";
weapon.ammo = 1;
}
Symbol 407 MovieClip [mc_smith] Frame 362
on_contact_sound = "land";
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 366
ActorWeaponDrop();
Symbol 407 MovieClip [mc_smith] Frame 369
stop();
Symbol 407 MovieClip [mc_smith] Frame 370
if (init == undefined) {
init = true;
if (hp == undefined) {
hp = 100;
}
loop = 0;
id = "mc_smith";
type_name = "carry";
weapon_name = "agent";
weapon_type = "smith";
is_heavy = true;
on_hit = "hit";
on_death = "death";
box_body._visible = _root.DEBUG;
box_attack._visible = _root.DEBUG;
}
loop = 0;
weapon._visible = false;
body_type = 1;
gravity = 1.5;
friction = 0.65;
friction_air = 0.95;
on_fall = null;
on_hit = "hit";
on_stand = "stand";
on_land = "fallen";
on_land_hard = "fallen";
on_pickup = "pickup";
on_walk = "walk";
on_run = "run";
on_up = "jump";
on_down = "jump_down";
on_carry = "carry";
CallControl = null;
on_ground = false;
Symbol 407 MovieClip [mc_smith] Frame 371
on_contact_sound = "land";
on_contact_call = "mc_hit";
Symbol 407 MovieClip [mc_smith] Frame 374
stop();
Symbol 407 MovieClip [mc_smith] Frame 375
weapon._visible = false;
hp = hp - 3;
if (hp < 1) {
hp = 1;
}
Symbol 407 MovieClip [mc_smith] Frame 382
stop();
goto = "land_hard";
Symbol 407 MovieClip [mc_smith] Frame 383
CallControl = null;
friction = 0.75;
Symbol 407 MovieClip [mc_smith] Frame 386
ActorSound("throw");
body_type = 0;
Symbol 407 MovieClip [mc_smith] Frame 387
var wpn = ActorWeaponThrow(23, 10, 12, -2);
wpn.goto = weapon.weapon_type + "_toss";
Symbol 407 MovieClip [mc_smith] Frame 388
weapon_switch = "none";
weapon.ammo = 1;
Symbol 407 MovieClip [mc_smith] Frame 389
body_type = 1;
Symbol 407 MovieClip [mc_smith] Frame 392
goto = "stand";
Symbol 407 MovieClip [mc_smith] Frame 393
CallControl = null;
friction = 0.75;
Symbol 407 MovieClip [mc_smith] Frame 396
ActorSound("throw");
body_type = 0;
Symbol 407 MovieClip [mc_smith] Frame 397
var wpn = ActorWeaponThrow(23, 10, 12, -2);
wpn.goto = weapon.weapon_type + "_toss";
Symbol 407 MovieClip [mc_smith] Frame 398
weapon_switch = "none";
weapon.ammo = 1;
Symbol 407 MovieClip [mc_smith] Frame 399
body_type = 1;
Symbol 407 MovieClip [mc_smith] Frame 402
goto = "jump_air";
Symbol 416 MovieClip [mc_smoke] Frame 1
if (init == undefined) {
init = true;
hp = 1;
body_type = 0;
type_name = "fx";
gravity = 0;
friction = 1;
friction_air = 1;
is_heavy = false;
can_exit = true;
on_stand = "stand";
on_land = null;
on_land_hard = null;
on_fall = null;
on_contact = null;
on_hit = null;
on_death = null;
_alpha = 75;
}
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 416 MovieClip [mc_smoke] Frame 12
stop();
Symbol 427 MovieClip [mc_plasma] Frame 1
if (init == undefined) {
init = true;
hp = 1;
body_type = 2;
type_name = "fixed";
box_body._visible = _parent.box_body._visible;
box_attack._visible = _parent.box_attack._visible;
gravity = 0;
friction = 1;
friction_air = 1;
is_heavy = false;
can_exit = true;
on_stand = "stand";
on_land = null;
on_land_hard = null;
on_fall = null;
on_contact = "die";
on_contact_call = null;
on_hit = "die";
on_death = "die";
xs = face * 12;
dam_type = 2;
dam_hp = 4;
dam_count = 2;
dam_tile = 1;
dam_xs = -2;
dam_ys = -3;
}
Symbol 427 MovieClip [mc_plasma] Frame 5
stop();
Symbol 427 MovieClip [mc_plasma] Frame 6
ActorSound("hit_magic");
_alpha = 50;
xs = (ys = 0);
onEnterFrame = function () {
_alpha = (_alpha - 3);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 427 MovieClip [mc_plasma] Frame 15
stop();
Symbol 436 MovieClip [mc_hit] Frame 1
if (init == undefined) {
init = true;
hp = 1;
body_type = 0;
type_name = "fx";
gravity = 0;
friction = 1;
friction_air = 1;
is_heavy = false;
can_exit = true;
on_stand = "stand";
on_land = null;
on_land_hard = null;
on_fall = null;
on_contact = null;
on_hit = null;
on_death = null;
_alpha = 50;
}
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 436 MovieClip [mc_hit] Frame 8
stop();
Symbol 441 MovieClip [mc_bullet] Frame 1
if (init == undefined) {
init = true;
hp = 1;
body_type = 1;
type_name = "fixed";
box_body._visible = _parent.box_body._visible;
box_attack._visible = _parent.box_attack._visible;
gravity = 0;
friction = 1;
friction_air = 1;
is_heavy = false;
can_exit = true;
on_contact = "die";
on_contact_call = null;
on_hit = "die";
on_death = "die";
on_stand = "stand";
on_land = null;
on_land_hard = null;
on_fall = null;
xs = face * 14;
dam_type = 1;
dam_hp = 2;
dam_count = 1;
dam_tile = 1;
dam_xs = -1;
dam_ys = 0;
}
Symbol 441 MovieClip [mc_bullet] Frame 5
stop();
Symbol 441 MovieClip [mc_bullet] Frame 6
_alpha = 65;
xs = (ys = 0);
ActorSound("hit_fist");
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
onEnterFrame = null;
_alpha = 0;
goto = "_die";
}
};
Symbol 441 MovieClip [mc_bullet] Frame 11
stop();
Symbol 449 MovieClip [mc_round] Frame 70
stop();
this.removeMovieClip();
Symbol 485 MovieClip Frame 1
stop();
this.mc_mask._visible = false;
this.hitArea = this.mc_mask;
Symbol 499 Button
on (release) {
_root.getURL("http://www.arcadeprehacks.com", "_blank");
}
Symbol 502 MovieClip Frame 1
this.rspeed = 1;
this._rotation = int(Math.random() * 360);
onEnterFrame = function () {
this._rotation = this._rotation + this.rspeed;
};
onRollOver = function () {
this.rspeed = 0;
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 0, 0);
};
onRollOut = function () {
this.rspeed = 1;
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};
Symbol 502 MovieClip Frame 16
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 508 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 12
stop();
Symbol 523 MovieClip Frame 1
this.rspeed = 1;
this._rotation = int(Math.random() * 360);
onEnterFrame = function () {
this._rotation = this._rotation + this.rspeed;
};
onRollOver = function () {
this.rspeed = 0;
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 0, 0);
};
onRollOut = function () {
this.rspeed = 1;
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};
Symbol 523 MovieClip Frame 16
stop();
Symbol 525 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 1
if (_root.hs_score == undefined) {
_root.hs_score = 0;
}
if (_root.hs_score_best == undefined) {
_root.hs_score_best = 0;
}
if (_root.hs_score > _root.hs_score_best) {
_root.hs_score_best = _root.hs_score;
}
txt_score.text = _root.hs_score;
txt_score_best.text = _root.hs_score_best;
Symbol 544 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 1
stop();
this.disable = false;
onRollOver = function () {
if (this.disable == false) {
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 0, 0);
}
};
onRollOut = function () {
if (this.disable == false) {
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
}
};
Symbol 552 MovieClip Frame 1
txt_input.text = _root.hs_name;
Instance of Symbol 551 MovieClip in Symbol 552 MovieClip Frame 1
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.hs_name = _parent.txt_input.text;
_root.SubmitScore();
}
}
Symbol 556 MovieClip Frame 1
stop();
onRollOver = function () {
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 0, 0);
};
onRollOut = function () {
this.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
};