Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgPrel - 2;
if (tgPrel <= 9) {
procent = "0" + tg;
trace(procent);
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 175
function setkeys(factor) {
keys = factor;
if (keys == 1) {
key_left = 65;
key_right = 68;
key_jump = 87;
key_jump2 = 32;
key_esquiv = 83;
} else if (keys == 2) {
key_left = 37;
key_right = 39;
key_jump = 38;
key_jump2 = 17;
key_esquiv = 40;
}
}
function go() {
if (diffoption._currentframe == 2) {
diffoption.gotoAndPlay(3);
if (instructions._currentframe != 1) {
instructions.gotoAndPlay(9);
}
}
}
function instruct() {
if (instructions._currentframe == 1) {
instructions.gotoAndPlay(2);
if (diffoption._currentframe != 2) {
diffoption.gotoAndPlay(11);
}
} else if (instructions._currentframe == 8) {
if (instructions.panel._currentframe == 1) {
instructions.panel.gotoAndStop(2);
} else if (instructions.panel._currentframe == 2) {
instructions.panel.gotoAndStop(1);
}
}
}
function event_transition() {
gotoAndStop (211);
}
stopAllSounds();
Mouse.show();
secondsmem = 0;
scoremem = 0;
pointmem = 1;
var imgcolor = new Color(image);
var transf = new Object();
transf = {ra:"105", rb:"0", ga:"90", gb:"0", ba:"90", bb:"0", aa:"100", ab:"0"};
imgcolor.setTransform(transf);
_quality = "HIGH";
_root.locatie = _url;
if (_root.locatie.slice(0, 30) == "http://www.freeonlinegames.com") {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
if (!keysmem) {
setkeys(1);
keysmem = 1;
}
_root.play();
Frame 199
bout_instructions.gotoAndPlay(2);
playpiton.gotoAndPlay(2);
stop();
Frame 211
stop();
Instance of Symbol 948 MovieClip "transition" in Frame 211
onClipEvent (load) {
this.gotoAndPlay("side2");
}
Frame 213
function stopsons() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
clearInterval(int_stopsons);
}
function startson(cible, sur) {
var _local2 = cible;
if (sur) {
for (var _local1 in sons) {
if (sons[_local1].position >= 200) {
sons[_local1].stop();
}
}
}
if (_local2) {
son.setPan(_local2.getPan());
son.setVolume(_local2.getVolume());
son.start();
}
}
function hitsnd(snd) {
speaker.gotoAndStop(snd);
}
function savecolor(slot) {
var _local1 = slot;
var _local2 = _root;
_local2["redf" + _local1] = red;
_local2["greenf" + _local1] = green;
_local2["bluef" + _local1] = blue;
}
function loadcolor(slot) {
var _local1 = slot;
var _local2 = _root;
if (_local2["redf" + _local1]) {
red = _local2["redf" + _local1];
green = _local2["greenf" + _local1];
blue = _local2["bluef" + _local1];
colorize();
}
}
function event_boardtank() {
_root.area_change(4);
tank.xbonus = 184;
decor.crate1.indestructible = 0;
decor.crate2.indestructible = 0;
decor.crate3.indestructible = 0;
_root.bg.indicator_tank.gotoAndStop("off");
tank.cpu = 2;
hero.driving_tank = 1;
hero.vehicule = tank;
hero.desactivate();
hero.range = hero.range_tank;
hero.setdirection(1);
hero.xdecalcible = 50;
itemratio = 0;
point = 2;
interval_event2 = setInterval(event2, 500);
}
function event2() {
foreground.tank_cover.badang.gotoAndPlay(2);
clearInterval(interval_event2);
interval_event3 = setInterval(event3, 75);
}
function event3() {
sprites.tank_driver.activate();
sprites.tank_driver._x = tank._x + tank.boardzone._x;
sprites.tank_driver._y = (tank._y + tank.boardzone._y) - 50;
sprites.tank_driver.hit(0, 0, 5, -20, 50, 0, 1);
clearInterval(interval_event3);
interval_event4 = setInterval(event4, 750);
}
function event4() {
tank.cpu = 0;
clearInterval(interval_event4);
hero.xdecaldivider = 20;
hero.xdecalcible = 220;
hero.ybase = hero.ybasetank;
tank.gotoAndPlay("transform");
hero.gotoAndPlay("driving_stand");
hero.activate();
hero.active = 0;
_root.textbox.texte = "tank";
_root.textbox.gotoAndPlay("info");
}
function event_tankboarded() {
interval_tankboarded2 = setInterval(event_tankboarded2, 1);
}
function event_tankboarded2() {
clearInterval(interval_tankboarded2);
tank._x = hero._x;
hero._y = tank._y - 180;
tank.xbonus = 184;
decor.crate1.indestructible = 0;
decor.crate2.indestructible = 0;
decor.crate3.indestructible = 0;
_root.bg.indicator_tank.gotoAndStop("off");
hero.driving_tank = 1;
hero.vehicule = tank;
hero.gotoAndPlay("driving_stand");
hero.ybase = hero.ybasetank;
hero.range = hero.range_tank;
hero.setdirection(1);
hero.activate();
hero.active = 0;
hero.xdecaldivider = 20;
hero.xdecalcible = 220;
itemratio = 0;
tank.cpu = 0;
tank.gotoAndStop("transformed");
_root.hero.camset();
}
function event_tanktransformed() {
_root.sprites.bazooka1.longranged = 1;
}
function area_change(value, deletal) {
area = value;
if (deletal) {
hero.restoredepth();
cleanall();
}
decor.gotoAndStop(area);
foreground.gotoAndStop(area);
bg.gotoAndStop(area);
sprites.gotoAndStop(area);
hero = sprites.hero;
hero.swapDepths(3000);
}
function zone_change(value) {
cleanall();
game.gotoAndStop(value);
}
function cleanall() {
var _local1 = _root;
helicrash.gotoAndStop(2);
textbox.gotoAndStop(1);
status_boss.gotoAndStop(1);
_local1.colorize_change(-tempcolor);
tempcolor = 0;
permalight = new Array();
for (var _local2 in sprites) {
if (sprites[_local2] != hero) {
removeMovieClip(sprites[_local2]);
}
}
for (var _local2 in sons) {
sons[_local2].stop();
}
sons = new Array();
sons.push(hero.son);
for (var _local2 in bg) {
removeMovieClip(bg[_local2]);
}
for (var _local2 in _local1.game) {
if (_local1.game[_local2].projectile == 1) {
removeMovieClip(_local1.game[_local2]);
}
}
}
function normcolorize_bg() {
colorchange = {rb:0, ra:100, gb:0, ga:100, bb:0, ba:100, aa:100, ab:0};
bgcolor.setTransform(colorchange);
}
function colorize() {
if (!_root.herodead) {
if (red <= 5) {
red = 5;
}
if (green <= 0) {
green = 5;
}
if (blue <= 0) {
blue = 5;
}
colorchange = {rb:0, ra:red, gb:0, ga:green, bb:0, ba:blue, aa:100, ab:0};
gamecolor.setTransform(colorchange);
if (mainbg._currentframe > 3) {
colorchange = {rb:0, ra:red + 30, gb:0, ga:green + 30, bb:0, ba:blue + 30, aa:100, ab:0};
bgcolor.setTransform(colorchange);
}
for (var _local1 in permalight) {
if (!permalight[_local1]._currentframe) {
permalight.splice(_local1, 1);
}
}
for (var _local1 in permalight) {
maxcolorize(permalight[_local1]);
}
}
}
function colorize_alarm() {
red = red + 10;
green = green - 30;
colorize();
}
function maxcolorize(cible) {
var _local1 = new Object();
_local1 = {rb:0, ra:10000 / red, gb:0, ga:10000 / green, bb:0, ba:10000 / blue, aa:100, ab:0};
var _local2 = new Color(cible);
_local2.setTransform(_local1);
}
function normcolorize(cible) {
var _local1 = new Object();
_local1 = {rb:0, ra:100, gb:0, ga:100, bb:0, ba:100, aa:100, ab:0};
var _local2 = new Color(cible);
_local2.setTransform(_local1);
}
function colorize_unalarm() {
red = red - 10;
green = green + 30;
colorize();
}
function colorize_change(factor, temp) {
var _local1 = factor;
red = red + _local1;
green = green + _local1;
blue = blue + _local1;
if (temp) {
tempcolor = tempcolor + _local1;
}
colorize();
}
function automsg(msg, time) {
automessage.message = msg;
automessage.loopsmax = time;
automessage.loops = 0;
automessage.gotoAndPlay(2);
}
function scorechange(cible, xbonus, ybonus) {
var _local1 = cible;
score = score + _local1.score;
duplicateMovieClip (game.scoremonitor, "scoremonitor" + game.n, game.n);
cur_scoremntr = game["scoremonitor" + game.n];
cur_scoremntr.score = _local1.score;
cur_scoremntr._x = (_local1._x + _local1._parent._x) + xbonus;
cur_scoremntr._y = ((_local1._y + _local1._parent._y) + _local1.middle) + ybonus;
cur_scoremntr.gotoAndPlay(2);
game.n_raise();
}
function shake(amplitude, number, loss, xfactor) {
if (shakemode && (!sw_herodead)) {
if (int(amplitude * shakeamplitude) > shaker.shakefactor) {
shaker.shakefactor = int(amplitude * shakeamplitude);
shaker.loopsmax = number;
shaker.damp = loss;
shaker.xshake = xfactor * shakeadjust;
shaker.gotoAndPlay(1);
}
}
}
function shake_die() {
shake(20, 3, 2, 0);
}
function shake_hit(factor) {
shake(factor, 2, 2, 0);
}
function shake_ground() {
shake(15, 4, 1.5, 0);
}
function die(cible) {
with (cible) {
decor = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
delete onEnterFrame;
_xscale = xscale_orig;
if ((hitter == _root.hero) && (score)) {
var score_dist = int(200 - Math.abs(hitter._x - _x));
if (score_dist < 0) {
score_dist = 0;
}
score = score + score_dist;
score = score + 100;
}
shake_die();
if (Math.random() <= itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
}
if (cible.score) {
scorechange(cible);
}
hero.misc.gotoAndPlay("life");
hero.lifechange(4 - (1 * _root.difficulty));
}
function death() {
var _local1 = _root;
red = 100;
blue = 100;
green = 100;
colorize();
status_boss.gotoAndStop(1);
retryclip.gotoAndStop(2);
lives = lives - 1;
if (lives == 0) {
defeatscene();
} else {
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
game.restoredepth();
game.gotoAndStop("dead");
}
}
function gotopoint() {
_root.retryclip.gotoAndStop(1);
game.restoredepth();
cleanall();
game.gotoAndPlay("retry");
}
function retry() {
gotopoint();
}
function continu() {
gonnaretry = 1;
pointmem = point;
scoremem = int(score / 2);
secondsmem = seconds;
timescoremem = timescore;
gotoAndStop (213);
}
function animscene() {
gotoAndPlay (223);
}
function defeatscene() {
gotoAndPlay (624);
}
function titlescene() {
gotoAndPlay (175);
}
stopAllSounds();
cleanall();
_quality = "MEDIUM";
lives = 5;
pointer.startDrag(1);
mouse.hide();
music = new Sound(tester);
sons = new Array();
son_game = new Sound(game);
son_game.setVolume(125);
son = new Sound(mainbg);
sons.push(son);
pandir = 1;
hasgrenades = 0;
grenadamnt = 0;
herodead = 0;
f1_lamp1dead = 0;
f1_lamp2dead = 0;
f1_neondead = 0;
f1_soldierdead = 0;
f1_pl1dead = 0;
f1_pl2dead = 0;
f1_sofadead = 0;
clearInterval(int_doorbad);
f0_cleared = 0;
f0_neondead = 0;
f0_neondead = 0;
haskey = 0;
seconds = secondsmem;
score = scoremem;
point = pointmem;
bl1 = 25;
bl2 = -5;
bl3 = -10;
bl4 = -10;
decor = game.decor;
sprites = game.sprites;
foreground = game.foreground;
bg = game.bg;
hero = sprites.hero;
game.n = 100;
shakemode = 1;
shakeamplitude = 0.35;
bgcolor = new Color(mainbg);
colorchange = new Object();
gamecolor = new Color(game);
stop();
Key.isDown();
Instance of Symbol 985 MovieClip "rangetest" in Frame 213
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 1772 MovieClip "game" in Frame 213
onClipEvent (load) {
function n_raise() {
n++;
if (n >= 300) {
n = 100;
}
}
function ybasechange(cible, ydiv) {
ycible = cible;
ydivcible = ydiv;
ymover.gotoAndPlay(2);
ybasemem = ydecalbase;
}
function xbasechange(cible) {
xcible = cible;
xmover.gotoAndPlay(2);
xbasemem = xdecalbase;
}
function reset() {
xdecalbase = xdecalorig;
ydecalbase = yorig;
ydecal = 0;
_y = yorig;
_xscale = 100;
_yscale = 100;
}
function restoredepth() {
sprites.swapDepths(sprites.depthorig);
foreground.swapDepths(foreground.depthorig);
decor.swapDepths(decor.depthorig);
}
ydecalorig = _y;
ydecalbase = _y;
xdecalbase = _x;
}
onClipEvent (enterFrame) {
_y = ((ydecal + ydecalbase) + ydecalshake);
}
Instance of Symbol 948 MovieClip "transition" in Frame 213
onClipEvent (load) {
this.gotoAndPlay("side2");
}
Instance of Symbol 1811 MovieClip "textbox" in Frame 213
onClipEvent (load) {
function event_afterstart() {
texte = "baseahead";
this.gotoAndPlay("info");
}
}
Instance of Symbol 1827 MovieClip "status_rot" in Frame 213
/* no clip actions */
Instance of Symbol 1829 MovieClip "status_boss" in Frame 213
onClipEvent (load) {
stop();
}
Instance of Symbol 1830 MovieClip "shaker" in Frame 213
onClipEvent (load) {
game = _root.game;
stop();
}
Instance of Symbol 1412 MovieClip "timescorer" in Frame 213
onClipEvent (load) {
function event() {
_root.seconds++;
}
}
Instance of Symbol 1843 MovieClip "grenadcounter" in Frame 213
onClipEvent (load) {
gotoAndStop (214);
}
Frame 223
stopAllSounds();
_quality = "HIGH";
Instance of Symbol 948 MovieClip "transition" in Frame 223
onClipEvent (load) {
this.gotoAndPlay("down2");
}
Frame 335
stopAllSounds();
Frame 482
stopAllSounds();
Frame 483
_root.music.attachSound("music4");
_root.music.start(0, 99999);
_root.music.setVolume(75);
Frame 555
score = score + 5000;
minutes = int(seconds / 60);
secondes = seconds - (60 * minutes);
if (secondes < 10) {
time = (minutes + " : 0") + secondes;
} else {
time = (minutes + " : ") + secondes;
}
timescore = 30000 - (15 * seconds);
if (timescore < 0) {
timescore = 0;
}
totalscore = score + timescore;
finalscore = totalscore * difficulty;
Frame 623
Mouse.show();
stop();
Frame 624
Mouse.show();
_quality = "HIGH";
stopAllSounds();
Frame 683
stop();
Frame 684
gotoAndPlay (175);
Frame 686
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
Frame 687
_root.menu.removeMovieClip();
_root.gameid = "Alias3";
_root.best = _global.scorFinal;
_global.scorFinal = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 689
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 697
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 701
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 702
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 32 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip [UpArrow] Frame 1
stop();
Symbol 33 MovieClip [UpArrow] Frame 2
stop();
Symbol 33 MovieClip [UpArrow] Frame 3
stop();
Symbol 39 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 83 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 83 MovieClip Frame 2
_parent.move();
Symbol 83 MovieClip Frame 3
gotoAndPlay (2);
Symbol 84 MovieClip [smoke] Frame 1
function move() {
_y = (_y + yspeed);
}
_visible = 0;
yspeed = -3;
Symbol 84 MovieClip [smoke] Frame 2
_visible = 1;
Symbol 84 MovieClip [smoke] Frame 21
removeMovieClip(this);
_visible = 0;
stop();
Symbol 87 MovieClip [hitbadang] Frame 1
_root.maxcolorize(this);
Symbol 87 MovieClip [hitbadang] Frame 6
removeMovieClip(this);
_visible = 0;
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
_root.maxcolorize(item);
_root.permalight.push(item);
stop();
Symbol 104 MovieClip Frame 3
_parent.bonom.lifechange(10);
_parent.bonom.misc.gotoAndPlay("life");
Symbol 104 MovieClip Frame 6
_root.maxcolorize(item);
_root.permalight.push(item);
stop();
Symbol 104 MovieClip Frame 7
_root.lives = _root.lives + 1;
_root.extralifegot = _root.extralifegot + 1;
_parent.bonom.misc.gotoAndPlay("life");
Symbol 104 MovieClip Frame 11
_root.maxcolorize(item);
_root.permalight.push(item);
stop();
Symbol 104 MovieClip Frame 12
_parent.bonom.fireratechange(1);
_parent.bonom.misc.gotoAndPlay("firerate");
Symbol 104 MovieClip Frame 16
_root.maxcolorize(item);
_root.permalight.push(item);
stop();
Symbol 104 MovieClip Frame 17
_parent.bonom.grenadechange(1);
_parent.bonom.misc.gotoAndPlay("grenade");
Symbol 106 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 106 MovieClip Frame 2
if (_parent.decor.hitTest(_parent.absx, _parent.absy + 5, true)) {
_parent.ground = 1;
} else {
_parent.ground = 0;
}
Symbol 106 MovieClip Frame 5
gotoAndPlay (2);
Symbol 107 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 107 MovieClip Frame 2
if (_parent.hitTest(_parent.bonom.hitzone)) {
_parent.itemframe = _parent.iteminside._currentframe;
_parent.gotoAndPlay("ramasse");
}
Symbol 107 MovieClip Frame 6
gotoAndPlay (2);
Symbol 108 MovieClip [object] Frame 1
function onEnterFrame() {
var _local1 = _parent;
if (yspeed != 0) {
_y = (_y + yspeed);
}
absx = (_x + _local1._x) + _local1._parent._x;
absy = (_y + _local1._y) + _local1._parent._y;
if (decor.hitTest(absx, absy, true) == 0) {
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
while (decor.hitTest(absx, ((_y + _local1._y) + _local1._parent._y) - 2, true)) {
_y = (_y - 2);
}
}
}
bonom = _parent.hero;
decor = _parent._parent.decor;
yaccel = 2;
stop();
Symbol 108 MovieClip [object] Frame 2
play();
Symbol 108 MovieClip [object] Frame 21
if (forever) {
stop();
}
Symbol 108 MovieClip [object] Frame 141
removeMovieClip(this);
Symbol 108 MovieClip [object] Frame 148
iteminside.gotoAndStop(itemframe + 1);
Symbol 108 MovieClip [object] Frame 157
removeMovieClip(this);
Symbol 123 MovieClip Frame 1
stop();
Instance of Symbol 112 MovieClip in Symbol 126 MovieClip [shot_grenade] Frame 1
onClipEvent (load) {
_y = (_y * (60 / _parent._yscale));
if (_y < -60) {
_yscale = (_yscale / (-(_y / 60)));
}
}
Symbol 126 MovieClip [shot_grenade] Frame 16
removeMovieClip(this);
_visible = 0;
_yscale = 100;
stop();
Symbol 128 MovieClip Frame 1
_visible = 0;
Symbol 133 MovieClip Frame 1
_root.maxcolorize(flame);
_root.permalight.push(flame);
Symbol 133 MovieClip Frame 5
for (a in _parent._parent) {
if (_parent.hitzone.hitTest(_parent._parent[a].hitzone) && (_parent._parent[a] != _parent)) {
_parent.gotoAndPlay(20);
}
}
Symbol 133 MovieClip Frame 8
_root.sprites.attachMovie("rocket_trail", "trail" + _parent._parent.n, _parent._parent.n);
var cur_trail = _parent._parent["trail" + _parent._parent.n];
cur_trail._rotation = _parent._rotation;
cur_trail._x = _parent._x;
cur_trail._y = _parent._y;
_parent._parent.n_raise();
for (a in _parent._parent) {
if (_parent.hitzone.hitTest(_parent._parent[a].hitzone) && (_parent._parent[a] != _parent)) {
_parent.gotoAndPlay(20);
}
}
if (_currentframe == 8) {
flame.gotoAndPlay(2);
gotoAndPlay (2);
}
Symbol 135 MovieClip [zone_square] Frame 1
_visible = 0;
Symbol 139 MovieClip [mechrocket] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
if (life > 0) {
life = life - (damagebase + int(damagerand * Math.random()));
gotoAndPlay (10);
}
}
function onEnterFrame() {
var _local1 = _root;
speed = speed + 0.2;
ennemydist_x = ennemy._x - _x;
ennemydist_y = (ennemy._y + ennemy.middle) - _y;
if (life > 0) {
if (ennemydist_y >= 0) {
rotcible = 90 + (((-Math.atan(ennemydist_x / ennemydist_y)) * 180) / Math.PI);
} else {
rotcible = -90 + (((-Math.atan(ennemydist_x / ennemydist_y)) * 180) / Math.PI);
}
rotdif = rotcible - _rotation;
if (Math.abs(rotdif) > 180) {
rotdif = ((-Math.abs(rotdif)) / rotdif) * (360 - Math.abs(rotdif));
}
if (_local1.decor.hitTest((_local1.game._x + _x) + (30 * Math.cos(_rotation / 57.3)), (_local1.game._y + _y) + (30 * Math.sin(_rotation / 57.3)), 1)) {
gotoAndPlay (20);
}
}
_rotation = (_rotation + (rotdif / 20));
_x = (_x + (speed * Math.cos(_rotation / 57.3)));
_y = (_y + (speed * Math.sin(_rotation / 57.3)));
}
life = 2;
ennemy = _root.hero;
notbashable = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
init();
delete init;
if (_currentframe == 1) {
gotoAndStop (2);
}
Symbol 139 MovieClip [mechrocket] Frame 14
if (life <= 0) {
gotoAndPlay (20);
}
Symbol 139 MovieClip [mechrocket] Frame 17
if (_currentframe == 17) {
gotoAndStop (2);
}
Symbol 139 MovieClip [mechrocket] Frame 20
_root.dieshake();
delete onEnterFrame;
life = 0;
speed = 0;
Symbol 139 MovieClip [mechrocket] Frame 21
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 139 MovieClip [mechrocket] Frame 22
setson();
_root.son.attachSound("explosion1");
_root.startson(son, 1);
_root.shake(9, 2, 2);
for (a in _parent) {
if (bangzone.hitTest(_parent[a].hitzone)) {
_parent[a].hit(owner, this, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 5, 5, 1);
}
}
for (a in _root.decor) {
if (bangzone.hitTest(_root.decor[a].hitzone)) {
_root.decor[a].hit(owner, this, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 5, 5, 1);
}
}
Symbol 139 MovieClip [mechrocket] Frame 28
life = 0;
removeMovieClip(this);
stop();
_visible = 0;
Symbol 150 MovieClip [explosion_cabane2] Frame 1
_visible = 0;
Symbol 150 MovieClip [explosion_cabane2] Frame 2
_visible = 1;
_root.maxcolorize(this);
_root.colorize_change(300);
Symbol 150 MovieClip [explosion_cabane2] Frame 4
_root.colorize_change(-300);
Symbol 150 MovieClip [explosion_cabane2] Frame 7
Symbol 150 MovieClip [explosion_cabane2] Frame 23
stop();
Symbol 156 MovieClip [explosion_cabane3] Frame 1
_visible = 0;
Symbol 156 MovieClip [explosion_cabane3] Frame 2
_visible = 1;
_root.colorize_change(300);
Symbol 156 MovieClip [explosion_cabane3] Frame 4
_root.colorize_change(-300);
Symbol 156 MovieClip [explosion_cabane3] Frame 6
Symbol 156 MovieClip [explosion_cabane3] Frame 23
stop();
Symbol 158 MovieClip Frame 1
_visible = 0;
Symbol 159 MovieClip [burnzone] Frame 7
removeMovieClip(this);
stop();
Symbol 170 MovieClip Frame 9
gotoAndPlay (1);
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip [trouillard] Frame 1
/* no clip actions */
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip [trouillard] Frame 10
onClipEvent (enterFrame) {
_x = (_x + 8);
}
Symbol 171 MovieClip [trouillard] Frame 200
removeMovieClip(this);
Instance of Symbol 170 MovieClip in Symbol 171 MovieClip [trouillard] Frame 200
onClipEvent (enterFrame) {
_x = (_x + 12);
}
Symbol 176 MovieClip Frame 4
gotoAndPlay (1);
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 18
if (_parent._currentframe != 31) {
_parent.gotoAndPlay("disappear");
} else {
gotoAndStop (1);
}
Symbol 191 MovieClip Frame 25
_root.colorize_change(25, 1);
_parent.light = _parent.light + 25;
_root.shake(5, 5, 1.2);
_parent.setson();
_parent.son.start();
Symbol 191 MovieClip Frame 28
var cibles = new Array();
bangzone._y = 0;
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(this)) {
cibles.push(_root.sprites[a]);
}
}
while (bangzone._y > -1000) {
for (var a in cibles) {
if (cibles[a].hitzone.hitTest(bangzone)) {
cibles[a].hit(_root.decor.bat, bangzone, -15, -2, 2, 1);
}
}
bangzone._y = bangzone._y - 50;
}
Symbol 191 MovieClip Frame 30
var cibles = new Array();
bangzone._y = 0;
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(this)) {
cibles.push(_root.sprites[a]);
}
}
while (bangzone._y > -1000) {
for (var a in cibles) {
if (cibles[a].hitzone.hitTest(bangzone)) {
cibles[a].hit(_root.decor.bat, bangzone, 15, -2, 2, 1);
}
}
bangzone._y = bangzone._y - 50;
}
Symbol 191 MovieClip Frame 32
call("hit");
Symbol 191 MovieClip Frame 34
Symbol 191 MovieClip Frame 36
Symbol 191 MovieClip Frame 39
_root.colorize_change(-25, 1);
_parent.light = _parent.light - 25;
Symbol 210 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
loops = 0;
Symbol 210 MovieClip Frame 2
gotoAndPlay(3 + int(10 * Math.random()));
Symbol 210 MovieClip Frame 4
_root.colorize_change(5, 1);
light = light + 5;
Symbol 210 MovieClip Frame 8
_root.colorize_change(-5, 1);
light = light - 5;
Symbol 210 MovieClip Frame 18
if (Math.random() < 0.5) {
loops++;
if (loops < 2) {
gotoAndPlay (3);
}
}
Symbol 210 MovieClip Frame 24
if (Math.random() < 0.5) {
loops++;
if (loops < 2) {
gotoAndPlay (3);
}
}
Symbol 210 MovieClip Frame 31
loops++;
if (loops < 2) {
gotoAndPlay (3);
}
Symbol 210 MovieClip Frame 36
_root.colorize_change(10, 1);
light = light + 10;
Symbol 210 MovieClip Frame 39
bangzone._y = 0;
var cibles = new Array();
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(this)) {
cibles.push(_root.sprites[a]);
}
}
while (bangzone._y < 300) {
for (var a in cibles) {
if (cibles[a].hitzone.hitTest(bangzone)) {
cibles[a].hit(this, bangzone, 15 - (30 * Math.random()), -2, 1, 1);
}
}
bangzone._y = bangzone._y + 30;
}
Symbol 210 MovieClip Frame 41
call("bangcheck");
Symbol 210 MovieClip Frame 43
call("bangcheck");
Symbol 210 MovieClip Frame 45
call("bangcheck");
Symbol 210 MovieClip Frame 51
_root.colorize_change(-10, 1);
light = light - 10;
Symbol 210 MovieClip Frame 71
loops = 0;
gotoAndPlay (3);
Symbol 210 MovieClip Frame 77
_root.colorize_change(-light);
removeMovieClip(this);
stop();
Symbol 211 MovieClip [battery_lightning] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
_root.maxcolorize(this);
_root.permalight.push(this);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
son.attachSound("laserbeam");
Symbol 211 MovieClip [battery_lightning] Frame 2
stop();
Symbol 211 MovieClip [battery_lightning] Frame 6
stop();
Symbol 211 MovieClip [battery_lightning] Frame 13
Symbol 211 MovieClip [battery_lightning] Frame 24
gotoAndPlay (3);
Symbol 211 MovieClip [battery_lightning] Frame 31
_root.colorize_change(-light);
Instance of Symbol 210 MovieClip "spark1" in Symbol 211 MovieClip [battery_lightning] Frame 31
/* no clip actions */
Instance of Symbol 210 MovieClip "spark2" in Symbol 211 MovieClip [battery_lightning] Frame 31
/* no clip actions */
Symbol 211 MovieClip [battery_lightning] Frame 75
removeMovieClip(this);
_visible = 0;
stop();
Symbol 218 MovieClip Frame 84
if (_parent._currentframe != 31) {
_parent.gotoAndPlay("disappear");
} else {
gotoAndStop (1);
}
Symbol 218 MovieClip Frame 91
_parent.gotoAndPlay("shoot");
Symbol 218 MovieClip Frame 92
_root.colorize_change(25, 1);
_parent.light = _parent.light + 25;
_root.shake(5, 5, 1.2);
Symbol 218 MovieClip Frame 94
var cibles = new Array();
bangzone._y = -100;
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(this)) {
cibles.push(_root.sprites[a]);
}
}
for (var a in _root.decor) {
if ((_root.decor[a] != _parent._parent.owner) && (_root.decor[a].hitzone.hitTest(this))) {
cibles.push(_root.decor[a]);
}
}
while (bangzone._y > -1000) {
for (var a in cibles) {
if (cibles[a].hitzone.hitTest(bangzone)) {
cibles[a].hit(_parent, bangzone, -15, -2, 2, 1);
}
}
bangzone._y = bangzone._y - 50;
}
Symbol 218 MovieClip Frame 96
var cibles = new Array();
bangzone._y = 0;
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(this)) {
cibles.push(_root.sprites[a]);
}
}
for (var a in _root.decor) {
if ((_root.decor[a] != _parent._parent.owner) && (_root.decor[a].hitzone.hitTest(this))) {
cibles.push(_root.decor[a]);
}
}
while (bangzone._y > -1000) {
for (var a in cibles) {
if (cibles[a].hitzone.hitTest(bangzone)) {
cibles[a].hit(_parent, bangzone, 15, -2, 2, 1);
}
}
bangzone._y = bangzone._y - 50;
}
Symbol 218 MovieClip Frame 98
call("hit");
Symbol 218 MovieClip Frame 100
Symbol 218 MovieClip Frame 102
Symbol 218 MovieClip Frame 105
_root.colorize_change(-25, 1);
_parent.light = _parent.light - 25;
Symbol 218 MovieClip Frame 142
if (_currentframe == 142) {
gotoAndPlay (68);
}
Symbol 221 MovieClip Frame 2
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone)) {
var rx = Math.random();
_root.sprites[a].hit(this, bangzone, 3 * int((2 * rx) / Math.abs(rx)), -7, 2, 1);
}
}
Symbol 221 MovieClip Frame 5
if (_currentframe == 5) {
gotoAndPlay (2);
}
Symbol 221 MovieClip Frame 11
_parent.setson();
_parent.son.start();
Symbol 221 MovieClip Frame 43
if (_currentframe == 43) {
gotoAndPlay (2);
}
Symbol 221 MovieClip Frame 50
_root.colorize_change(-light);
Symbol 222 MovieClip [duracel_lightning] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
_root.maxcolorize(this);
_root.permalight.push(this);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
son.attachSound("laserbeam");
Symbol 223 MovieClip [pistonzone] Frame 1
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
piston.hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful);
}
stop();
Symbol 224 MovieClip [selfdestruct_zone] Frame 1
_visible = 0;
stop();
Symbol 227 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 228 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 230 MovieClip Frame 1
_visible = 0;
Symbol 239 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 239 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 240 MovieClip Frame 1
_root.maxcolorize(fill);
_root.permalight.push(fill);
Symbol 240 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndPlay (2);
}
Symbol 250 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
gotoAndStop (2);
Symbol 250 MovieClip Frame 3
if (_currentframe == 8) {
gotoAndStop (2);
}
Symbol 250 MovieClip Frame 9
if (_currentframe == 9) {
gotoAndStop (2);
}
Symbol 250 MovieClip Frame 29
if (_currentframe == 29) {
gotoAndStop (2);
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 9
if (_currentframe == 9) {
stop();
}
Symbol 253 MovieClip Frame 19
if (_currentframe == 19) {
gotoAndStop (1);
}
Symbol 257 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 257 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 260 MovieClip Frame 1
_visible = 0;
Symbol 260 MovieClip Frame 2
gotoAndPlay(int(10 * Math.random()) + 1);
Symbol 260 MovieClip Frame 30
_root.sprites.attachMovie("smoke", "smoke" + _root.sprites.n, _root.sprites.n);
var smoke = _root.sprites["smoke" + _root.sprites.n];
smoke._x = _x + _parent.pathx;
smoke._y = _y + _parent.pathy;
smoke._xscale = _xscale;
smoke._yscale = _yscale;
_root.sprites.n_raise();
gotoAndPlay(3 + int(10 * Math.random()));
Symbol 261 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip in Symbol 261 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 260 MovieClip in Symbol 261 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 260 MovieClip in Symbol 261 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 261 MovieClip "smoke" in Symbol 262 MovieClip Frame 1
onClipEvent (enterFrame) {
pathx = (_x + _parent._x) + _parent._parent._x;
pathy = (_y + _parent._y) + _parent._parent._y;
}
Symbol 262 MovieClip Frame 5
gotoAndPlay (1);
Symbol 272 MovieClip [mech_lightning] Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 272 MovieClip [mech_lightning] Frame 2
_root.colorize_change(40, 1);
Symbol 272 MovieClip [mech_lightning] Frame 3
var cibles = new Array();
bangzone._x = 0;
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(this)) {
cibles.push(_root.sprites[a]);
}
}
while (bangzone._x < 1000) {
for (var a in cibles) {
if (cibles[a].hitzone.hitTest(bangzone)) {
cibles[a].hit(_root.mech, bangzone, -15, -6, 1, 0);
}
}
bangzone._x = bangzone._x + 50;
}
Symbol 272 MovieClip [mech_lightning] Frame 5
var cibles = new Array();
bangzone._x = 0;
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(this)) {
cibles.push(_root.sprites[a]);
}
}
while (bangzone._x < 1000) {
for (var a in cibles) {
if (cibles[a].hitzone.hitTest(bangzone)) {
cibles[a].hit(_root.mech, bangzone, 2, -6, 1, 0);
}
}
bangzone._x = bangzone._x + 50;
}
Symbol 272 MovieClip [mech_lightning] Frame 7
call("hit");
Symbol 272 MovieClip [mech_lightning] Frame 9
call("hit");
Symbol 272 MovieClip [mech_lightning] Frame 10
_root.colorize_change(-40, 1);
removeMovieClip(this);
_visible = 0;
stop();
Symbol 278 MovieClip [mechgrenade] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebasemdamagerand, powerful) {
gotoAndPlay (80);
}
function onEnterFrame() {
var _local1 = _root;
_x = (_x + xspeed);
if ((yspeed <= 0) && (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 15, 1))) {
_y = (_y - yspeed);
yspeed = yspeed * -0.8;
}
if (_local1.decor.hitTest((_x + _local1.game._x) + ((10 * xspeed) / Math.abs(xspeed)), (_y + _local1.game._y) - 10, 1)) {
_x = (_x - xspeed);
xspeed = xspeed * -0.8;
}
grenade.grenade._rotation = grenade.grenade._rotation + (3 * xspeed);
_y = (_y + yspeed);
if (!_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
yspeed = yspeed + yaccel;
} else if (_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
if ((yspeed > 0) and (yspeed < 2)) {
yspeed = 0;
} else {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
}
while ((_currentframe < 81) && (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 2, 1))) {
_y = (_y - 2);
}
}
}
yaccel = 3;
notbashable = 1;
_root.maxcolorize(this);
_root.permalight.push(this);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
Symbol 278 MovieClip [mechgrenade] Frame 81
setson();
_root.son.attachSound("explosion1");
_root.startson(son);
xspeed = 0;
yspeed = 0;
yaccel = 0;
_root.shake(9, 2, 2);
for (a in _root.sprites) {
if ((bangzone.hitTest(_root.sprites[a].hitzone) && (_root.sprites[a] != owner)) && (!_root.sprites.immuneto_grenades)) {
_root.sprites[a].hit(owner, bangzone, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 3, 3, 1);
}
}
for (a in _root.decor) {
if (bangzone.hitTest(_root.decor[a].hitzone)) {
_root.decor[a].hit(owner, bangzone, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 3, 3, 1);
}
}
Symbol 278 MovieClip [mechgrenade] Frame 84
Symbol 278 MovieClip [mechgrenade] Frame 88
removeMovieClip(this);
stop();
_visible = 0;
Symbol 281 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 281 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 283 MovieClip Frame 5
gotoAndPlay (1);
Symbol 287 MovieClip Frame 1
_visible = 0;
gotoAndStop (2);
Symbol 304 MovieClip [flame] Frame 1
loops = 0;
Symbol 304 MovieClip [flame] Frame 2
gotoAndPlay(int((10 * Math.random()) + 2));
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 304 MovieClip [flame] Frame 8
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(testzone)) {
_root.sprites[a].hit(_parent._parent, this, 0, -8, 10, 3);
}
}
for (var a in _root.decor) {
if (_root.decor[a].hitzone.hitTest(testzone)) {
_root.decor[a].hit(_parent._parent, this, 0, -8, 10, 3);
_root.decor[a].burn(this, "burnzone", _x, _y);
}
}
for (var a in _root.bg) {
if (_root.bg[a].hitzone.hitTest(testzone)) {
_root.bg[a].hit(_parent._parent, this, 0, -8, 10, 3);
_root.bg[a].burn(this, "burnzone", _x, _y);
}
}
Symbol 304 MovieClip [flame] Frame 15
loops++;
if (loops < dur) {
gotoAndPlay (3);
}
Symbol 304 MovieClip [flame] Frame 19
removeMovieClip(this);
Symbol 305 MovieClip Frame 1
x = ((_x * _parent.xadjx) + (_y * _parent.xadjy)) + _parent.fpathx;
y = ((_x * _parent.yadjx) + (_y * _parent.yadjy)) + _parent.fpathy;
gotoAndPlay (2);
Symbol 305 MovieClip Frame 2
if (_parent.burner.hitTest(_root.game._x + x, _root.game._y + y, 1)) {
gotoAndStop (4);
}
Symbol 305 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 304 MovieClip [flame] in Symbol 305 MovieClip Frame 4
onClipEvent (load) {
dur = _parent._parent.fdurbase + int(Math.random() * _parent._parent.fdurrand);
}
onClipEvent (enterFrame) {
_rotation = (-_parent._parent.toroter._rotation);
}
Symbol 305 MovieClip Frame 5
flame._x = ((_x * _parent.xadjx) + (_y * _parent.xadjy)) + _parent.fpathx;
flame._y = ((_x * _parent.yadjx) + (_y * _parent.yadjy)) + _parent.fpathy;
gotoAndPlay (4);
Symbol 308 MovieClip Frame 1
function setburn() {
var _local1 = _parent;
xadjx = Math.cos(_local1._parent._rotation / 57.3) * -1;
xadjy = (-Math.sin(_local1._parent._rotation / 57.3)) * -1;
yadjx = Math.sin(_local1._parent._rotation / 57.3);
yadjy = Math.cos(_local1._parent._rotation / 57.3);
fpathx = (((-_local1._parent._x) + (_x * xadjx)) + (_y * xadjy)) + _local1._parent._parent._x;
fpathy = ((_local1._parent._y + (_x * yadjx)) + (_y * yadjy)) + _local1._parent._parent._y;
}
function burn(ref, name, x, y) {
var _local1 = _root;
setburn();
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
gotoAndPlay (2);
_local1.colorize_change(_local1.bl1, 1);
}
fdurbase = 9;
fdurrand = 2;
toroter = _parent._parent;
setburn();
stop();
Instance of Symbol 287 MovieClip in Symbol 308 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.setburn();
}
Symbol 308 MovieClip Frame 2
event_burn();
Symbol 308 MovieClip Frame 3
_root.colorize_change(_root.bl2, 1);
Symbol 308 MovieClip Frame 6
_parent._parent._parent.owner.hamdamage = _parent._parent._parent.owner.hamdamage2;
Symbol 308 MovieClip Frame 69
_root.colorize_change(_root.bl3, 1);
Symbol 308 MovieClip Frame 75
_root.colorize_change(_root.bl4, 1);
Symbol 308 MovieClip Frame 76
stop();
Symbol 312 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 312 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 313 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
function burn(ref, name, x, y) {
divan.burn(ref, name, x, y);
}
burninside = 1;
hitzone = divan.hitzone;
gotoAndPlay (2);
Symbol 314 MovieClip Frame 5
gotoAndPlay (1);
Symbol 319 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 319 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 326 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 326 MovieClip Frame 12
stop();
Symbol 328 MovieClip Frame 1
stop();
rocket = 0;
Symbol 328 MovieClip Frame 2
count = 0;
Symbol 328 MovieClip Frame 10
if (rocket) {
gotoAndPlay ("rocket");
}
Symbol 328 MovieClip Frame 19
count++;
Symbol 328 MovieClip Frame 21
_root.sprites.attachMovie("mechgrenade", "grenade" + _root.sprites.n, _root.sprites.n);
var cur = _root.sprites["grenade" + _root.sprites.n];
cur.immuneto_grenades = 1;
cur._x = _parent._parent.owner._x - (_parent._x + shootzone._x);
cur._y = (_parent._parent.owner._y + _parent._y) + shootzone._y;
cur.xspeed = -3 - (25 * Math.random());
cur.yspeed = -10 - (5 * Math.random());
cur.owner = this;
_root.sprites.n_raise();
Symbol 328 MovieClip Frame 26
call("fire2");
Symbol 328 MovieClip Frame 31
call("fire2");
Symbol 328 MovieClip Frame 40
if (((_currentframe == 40) && (count < (_parent._parent.owner.section - 1))) && (!_parent._parent.owner.doomed)) {
gotoAndPlay ("fire");
}
Symbol 328 MovieClip Frame 52
gotoAndStop (1);
Symbol 328 MovieClip Frame 68
count++;
Symbol 328 MovieClip Frame 77
_root.sprites.attachMovie("mechrocket", "rocket" + _root.sprites.n, _root.sprites.n);
var cur = _root.sprites["rocket" + _root.sprites.n];
cur._rotation = -170 + (20 * Math.random());
cur.init = function () {
if (_root.hero._x > _root.mech._x) {
this.ennemy = 0;
}
this.life = 1;
};
cur._x = _parent._parent.owner._x - (_parent._x + shootzone._x);
cur._y = (_parent._parent.owner._y + _parent._y) + shootzone._y;
cur.speed = 4;
_root.sprites.n_raise();
Symbol 328 MovieClip Frame 94
if (((_currentframe == 94) && (count < (_parent._parent.owner.section + 1))) && (!_parent._parent.owner.doomed)) {
gotoAndPlay ("rocket");
}
Symbol 328 MovieClip Frame 97
if (_currentframe == 97) {
gotoAndPlay ("close");
}
Symbol 329 MovieClip Frame 5
gotoAndPlay (1);
Symbol 332 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 332 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 334 MovieClip Frame 5
gotoAndPlay (1);
Symbol 339 MovieClip Frame 5
gotoAndPlay (2);
Symbol 347 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 347 MovieClip Frame 2
if (_root.hero.hitzone.hitTest(bangzone)) {
_root.hero.hit(_parent.owner, bangzone, -10, -5, 2, 2);
_root.hero.xspeed = -10;
}
Symbol 347 MovieClip Frame 3
call("on");
Symbol 347 MovieClip Frame 4
call("on");
Symbol 347 MovieClip Frame 5
if (_currentframe == 5) {
gotoAndPlay (2);
}
Symbol 347 MovieClip Frame 6
_root.colorize_change(100, 1);
Symbol 347 MovieClip Frame 10
_root.colorize_change(-100, 1);
stop();
Symbol 359 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 359 MovieClip Frame 2
_root.colorize_change(50);
Symbol 359 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndPlay (3);
}
Symbol 359 MovieClip Frame 13
_root.colorize_change(-50);
stop();
Symbol 363 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 363 MovieClip Frame 2
stop();
Symbol 363 MovieClip Frame 14
if (_currentframe == 14) {
gotoAndPlay (3);
}
Symbol 369 MovieClip Frame 1
stop();
rocket = 0;
Symbol 369 MovieClip Frame 2
count = 0;
Symbol 369 MovieClip Frame 10
if (rocket) {
gotoAndPlay ("rocket");
}
Symbol 369 MovieClip Frame 22
count++;
Symbol 369 MovieClip Frame 24
_root.sprites.attachMovie("mechgrenade", "grenade" + _root.sprites.n, _root.sprites.n);
var cur = _root.sprites["grenade" + _root.sprites.n];
cur.immuneto_grenades = 1;
cur._x = _parent._parent.owner._x - (_parent._x + shootzone._x);
cur._y = (_parent._parent.owner._y + _parent._y) + shootzone._y;
cur.xspeed = -3 - (25 * Math.random());
cur.yspeed = -10 - (5 * Math.random());
cur.owner = this;
_root.sprites.n_raise();
Symbol 369 MovieClip Frame 29
call("fire2");
Symbol 369 MovieClip Frame 34
call("fire2");
Symbol 369 MovieClip Frame 43
if (((_currentframe == 43) && (count < 1)) && (!_parent._parent.owner.doomed)) {
gotoAndPlay ("fire");
}
Symbol 369 MovieClip Frame 55
gotoAndStop (1);
Symbol 369 MovieClip Frame 68
count++;
Symbol 369 MovieClip Frame 82
_root.sprites.attachMovie("mechrocket", "rocket" + _root.sprites.n, _root.sprites.n);
var cur = _root.sprites["rocket" + _root.sprites.n];
cur._rotation = -170 + (20 * Math.random());
cur.init = function () {
if (_root.hero._x > _root.mech._x) {
this.ennemy = 0;
}
this.life = 1;
};
cur._x = _parent._parent.owner._x - (_parent._x + shootzone._x);
cur._y = (_parent._parent.owner._y + _parent._y) + shootzone._y;
cur.speed = 4;
_root.sprites.n_raise();
Symbol 369 MovieClip Frame 99
if (((_currentframe == 99) && (count < (_parent._parent.owner.section + 1))) && (!_parent._parent.owner.doomed)) {
gotoAndPlay ("rocket");
}
Symbol 369 MovieClip Frame 102
if (_currentframe == 102) {
gotoAndPlay ("close");
}
Symbol 370 MovieClip Frame 5
gotoAndPlay (1);
Symbol 373 MovieClip Frame 5
gotoAndPlay (1);
Symbol 380 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 380 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 384 MovieClip Frame 4
gotoAndPlay (1);
Symbol 385 MovieClip Frame 1
_root.maxcolorize(light);
Symbol 390 MovieClip Frame 1
stop();
_root.colorize_change(-light);
Symbol 390 MovieClip Frame 23
canon.gotoAndPlay(2);
_parent._parent._parent.owner.son.attachSound("powerup");
_parent._parent._parent.owner.setson(0, 40);
_parent._parent._parent.owner.son.start();
_parent._parent._parent.owner.tracktime = 2;
Symbol 390 MovieClip Frame 36
_root.colorize_change(20, 1);
light = light + 20;
Symbol 390 MovieClip Frame 52
if (_parent._parent._parent.owner.transfo == 0) {
gotoAndPlay ("cancel");
}
Symbol 390 MovieClip Frame 54
_parent._parent._parent.owner.son.attachSound("laserbeam");
_parent._parent._parent.owner.setson();
_parent._parent._parent.owner.son.start();
_root.colorize_change(-20, 1);
light = light - 20;
_root.bg.attachMovie("mech_lightning", "mech_lightning" + _root.sprites.n, _root.sprites.n);
shot = _root.bg["mech_lightning" + _root.sprites.n];
shot._x = ((_x + _parent._x) + _parent._parent._x) + _parent._parent._parent.owner._x;
shot._y = ((_y + _parent._y) + _parent._parent._y) + _parent._parent._parent.owner._y;
shot._xscale = shot._xscale * _parent._parent._parent.owner.direction;
shot._rotation = ((_rotation + _parent._rotation) + _parent._parent._rotation) * _parent._parent._parent.owner.direction;
_root.sprites.n_raise();
Symbol 390 MovieClip Frame 59
if (_currentframe == 59) {
gotoAndStop (1);
}
Symbol 390 MovieClip Frame 66
_root.colorize_change(-10, 1);
light = light - 10;
Symbol 390 MovieClip Frame 67
_root.colorize_change(-10, 1);
light = light - 10;
Symbol 390 MovieClip Frame 76
if (_currentframe == 76) {
gotoAndStop (1);
}
Symbol 392 MovieClip Frame 5
gotoAndPlay (1);
Symbol 396 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 396 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 398 MovieClip Frame 5
gotoAndPlay (1);
Instance of Symbol 363 MovieClip "indicator" in Symbol 399 MovieClip [mech_fore] Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 392 MovieClip "canon" in Symbol 399 MovieClip [mech_fore] Frame 1
/* no clip actions */
Symbol 401 MovieClip [sofa_frame] Frame 1
_visible = 0;
stop();
Symbol 401 MovieClip [sofa_frame] Frame 2
_visible = 1;
Symbol 406 MovieClip [explosion_cabane] Frame 1
_visible = 0;
Symbol 406 MovieClip [explosion_cabane] Frame 2
_visible = 1;
_root.colorize_change(300);
Symbol 406 MovieClip [explosion_cabane] Frame 4
_root.colorize_change(-300);
Symbol 406 MovieClip [explosion_cabane] Frame 6
for (a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone) && (_root.sprites[a] != owner)) {
_root.sprites[a].hit(owner, bangzone, ((7 * Math.random()) * Math.abs(_root.sprites[a]._x - _x)) / (_root.sprites[a]._x - _x), -16 - (10 * Math.random()), 25, 10, 1);
}
}
for (a in _root.decor) {
if (bangzone.hitTest(root.decor[a].hitzone)) {
_root.decor[a].hit(owner, bangzone, ((7 * Math.random()) * Math.abs(_root.decor[a]._x - _x)) / (_root.decor[a]._x - _x), -16 - (10 * Math.random()), 25, 10, 1);
}
}
Symbol 406 MovieClip [explosion_cabane] Frame 23
stop();
Symbol 407 MovieClip [explosion] Frame 1
_visible = 0;
Symbol 407 MovieClip [explosion] Frame 2
_visible = 1;
maxcolorize(this);
_root.permalight.push(this);
_root.colorize_change(20, 1);
Symbol 407 MovieClip [explosion] Frame 5
_root.colorize_change(-20, 1);
Symbol 407 MovieClip [explosion] Frame 17
removeMovieClip(this);
stop();
_visible = 0;
Symbol 410 MovieClip [rocket_trail] Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 410 MovieClip [rocket_trail] Frame 15
removeMovieClip(this);
stop();
_visible = 0;
Symbol 419 MovieClip [explosion_burn] Frame 1
_visible = 1;
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 419 MovieClip [explosion_burn] Frame 3
_root.shake(15, 4, 2);
_root.colorize_change(30, 1);
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone) && (_root.sprites[a] != owner)) {
_root.sprites[a].hit(owner, bangzone, ((5 + (5 * Math.random())) * Math.abs(_root.sprites[a]._x - _x)) / (_root.sprites[a]._x - _x), -16 - (6 * Math.random()), 5, 5, 1);
}
}
for (var a in _root.decor) {
if (bangzone.hitTest(_root.decor[a].hitzone)) {
_root.decor[a].hit(owner, bangzone, (10 * Math.abs(_root.decor[a]._x - _x)) / (_root.decor[a]._x - _x), -12 - (4 * Math.random()), 10, 5, 1);
_root.decor[a].burn(bangzone, "burnzone", _x, _y);
}
}
for (var a in _root.bg) {
if (bangzone.hitTest(_root.bg[a].hitzone)) {
_root.bg[a].burn(bangzone, "burnzone", _x, _y);
}
}
Symbol 419 MovieClip [explosion_burn] Frame 7
_root.colorize_change(-30, 1);
Symbol 419 MovieClip [explosion_burn] Frame 16
removeMovieClip(this);
stop();
_visible = 0;
Symbol 420 MovieClip [explosion_damage2] Frame 1
_visible = 1;
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 420 MovieClip [explosion_damage2] Frame 3
_root.shake(15, 4, 2);
_root.colorize_change(30, 1);
for (a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone) && (_root.sprites[a] != owner)) {
_root.sprites[a].hit(owner, bangzone, ((5 + (5 * Math.random())) * Math.abs(_root.sprites[a]._x - _x)) / (_root.sprites[a]._x - _x), -16 - (6 * Math.random()), 5, 5, 1);
}
}
for (a in _root.decor) {
if (bangzone.hitTest(root.decor[a].hitzone)) {
_root.decor[a].hit(owner, bangzone, (10 * Math.abs(_root.decor[a]._x - _x)) / (_root.decor[a]._x - _x), -12 - (4 * Math.random()), 10, 5, 1);
}
}
Symbol 420 MovieClip [explosion_damage2] Frame 7
_root.colorize_change(-30, 1);
Symbol 420 MovieClip [explosion_damage2] Frame 16
removeMovieClip(this);
stop();
_visible = 0;
Symbol 421 MovieClip [explosion_damage] Frame 1
_visible = 0;
Symbol 421 MovieClip [explosion_damage] Frame 2
_visible = 1;
Symbol 421 MovieClip [explosion_damage] Frame 4
for (a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone) && (_root.sprites[a] != owner)) {
_root.sprites[a].hit(owner, bangzone, ((5 + (5 * Math.random())) * Math.abs(_root.sprites[a]._x - _x)) / (_root.sprites[a]._x - _x), -16 - (6 * Math.random()), 5, 5, 1);
}
}
for (a in _root.decor) {
if (bangzone.hitTest(root.decor[a].hitzone)) {
_root.decor[a].hit(owner, bangzone, (10 * Math.abs(_root.decor[a]._x - _x)) / (_root.decor[a]._x - _x), -12 - (4 * Math.random()), 5, 5, 1);
}
}
Symbol 421 MovieClip [explosion_damage] Frame 17
removeMovieClip(this);
stop();
_visible = 0;
Symbol 423 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
_root.colorize_change(15, 1);
Symbol 423 MovieClip Frame 3
_root.colorize_change(-15, 1);
Symbol 423 MovieClip Frame 15
stop();
_visible = 0;
Symbol 426 MovieClip [explosion_crate] Frame 1
_visible = 0;
Symbol 426 MovieClip [explosion_crate] Frame 2
_visible = 1;
Symbol 426 MovieClip [explosion_crate] Frame 4
Symbol 426 MovieClip [explosion_crate] Frame 17
removeMovieClip(this);
_visible = 0;
stop();
Symbol 429 MovieClip Frame 5
gotoAndPlay (1);
Symbol 432 MovieClip [tank_bullet2] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function move() {
var _local1 = _parent;
var _local2 = _root;
var _local3 = this;
_x = (_x + 30);
dist = dist + 30;
if (dist >= 390) {
gotoAndStop (15);
} else if (hitzone.hitTest(_local2.bg.bigdoor.hitzone)) {
while (hitzone.hitTest(_local2.bg.bigdoor.hitzone)) {
_x = (_x - 1);
}
gotoAndPlay (5);
} else if (_local2.decor.hitTest((_x + 45) + _local2.game._x, _y + _local2.game._y, 1) || (hitzone.hitTest(_local2.bg.bigdoor.hitzone))) {
gotoAndPlay (5);
}
for (a in _local1) {
if (((_local1[a] != _local3) && (!_local1[a].projectile)) && (_local1[a].hitzone.hitTest(hitzone))) {
gotoAndPlay (5);
}
}
}
_visible = 0;
dist = 0;
notbashable = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
Symbol 432 MovieClip [tank_bullet2] Frame 2
_visible = 1;
Symbol 432 MovieClip [tank_bullet2] Frame 5
setson();
_root.son.attachSound("explosion1");
_root.startson(son);
Symbol 432 MovieClip [tank_bullet2] Frame 7
if (_root.bg.bigdoor.hitzone.hitTest(bangzone)) {
_root.bg.bigdoor.hit();
}
for (a in _root.sprites) {
if ((_root.sprites[a] != this) && (_root.sprites[a].hitzone.hitTest(bangzone))) {
_root.sprites[a].hit(_root.hero, bangzone, 10 + (6 * Math.random()), -10 - (10 * Math.random()), 25, 10, 2);
}
}
for (a in _root.decor) {
if (_root.decor[a].hitzone.hitTest(bangzone)) {
_root.decor[a].hit(_root.hero, bangzone, 10 + (6 * Math.random()), -10 - (10 * Math.random()), 25, 10, 2);
}
}
Symbol 432 MovieClip [tank_bullet2] Frame 15
removeMovieClip(this);
_visible = 0;
stop();
Symbol 436 MovieClip [tank_bullet] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function move() {
var _local1 = _parent;
var _local2 = this;
var _local3 = _root;
_x = (_x - 30);
if (_local3.decor.hitTest((_x - 30) + _local3.game._x, _y + _local3.game._y, 1) || (_x < (_local3.hero._x - 400))) {
gotoAndPlay (5);
}
for (a in _local1) {
if ((_local1[a] != _local2) && (_local1[a].hitzone.hitTest(hitzone))) {
gotoAndPlay (5);
}
}
}
_visible = 0;
notbashable = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
Symbol 436 MovieClip [tank_bullet] Frame 2
_visible = 1;
Symbol 436 MovieClip [tank_bullet] Frame 6
setson();
_root.son.attachSound("explosion1");
_root.startson(son, 1);
Symbol 436 MovieClip [tank_bullet] Frame 7
_root.shake(15, 3, 2, 0);
for (a in _root.sprites) {
if ((_root.sprites[a] != this) && (_root.sprites[a].hitzone.hitTest(bangzone))) {
_root.sprites[a].hit(_parent, bangzone, -5 - (3 * Math.random()), -10 - (5 * Math.random()), 10, 5, 1);
}
}
for (a in _root.decor) {
if (_root.decor[a].hitzone.hitTest(bangzone)) {
_root.decor[a].hit(_parent, bangzone, -5 - (3 * Math.random()), -10 - (5 * Math.random()), 10, 5, 1);
}
}
Symbol 436 MovieClip [tank_bullet] Frame 15
removeMovieClip(this);
_visible = 0;
stop();
Symbol 445 MovieClip [plasmagrenade] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebasemdamagerand, powerful) {
gotoAndPlay (34);
}
function onEnterFrame() {
var _local1 = _root;
_x = (_x + xspeed);
if ((_currentframe < 30) && (_local1.decor.hitTest((_x + _local1.game._x) + ((10 * xspeed) / Math.abs(xspeed)), (_y + _local1.game._y) - 10, 1))) {
_rotation = ((((-Math.abs(xspeed)) / xspeed) * 90) + grenade.grenade._rotation);
gotoAndPlay (34);
}
grenade.grenade._rotation = 60 * Math.atan(yspeed / xspeed);
grenade.grenade._xscale = 75 + (2 * (Math.abs(xspeed) + Math.abs(yspeed)));
_y = (_y + yspeed);
if (!_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
yspeed = yspeed + yaccel;
} else if ((_currentframe < 30) && (_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1))) {
_rotation = ((((-Math.abs(xspeed)) / xspeed) * 90) + grenade.grenade._rotation);
gotoAndPlay (34);
while ((_currentframe < 35) && (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - ((2 * Math.abs(yspeed)) / yspeed), 1))) {
_y = (_y - ((2 * Math.abs(yspeed)) / yspeed));
}
}
}
_root.maxcolorize(this);
_root.permalight.push(this);
yaccel = 3;
notbashable = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
Symbol 445 MovieClip [plasmagrenade] Frame 34
gotoAndPlay (35);
Symbol 445 MovieClip [plasmagrenade] Frame 35
_root.colorize_change(10, 1);
setson();
_root.son.attachSound("explosion1");
_root.startson(son, 1);
xspeed = 0;
yspeed = 0;
yaccel = 0;
_root.shake(15, 3, 2);
for (var a in _root.sprites) {
if (bangzone.hitTest(_root.sprites[a].hitzone) && (_root.sprites[a] != owner)) {
_root.sprites[a].hit(owner, bangzone, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 10, 5, 1);
}
}
for (var a in _root.decor) {
if (bangzone.hitTest(_root.decor[a].hitzone)) {
_root.decor[a].hit(owner, bangzone, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 10, 5, 1);
_root.decor[a].burn(this, "burnzone", _x, _y);
}
}
for (var a in _root.bg) {
if (bangzone.hitTest(_root.bg[a].hitzone)) {
_root.bg[a].hit(owner, bangzone, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 10, 5, 1);
_root.bg[a].burn(bangzone, "burnzone", _x, _y);
}
}
Symbol 445 MovieClip [plasmagrenade] Frame 38
_root.colorize_change(-10, 1);
Symbol 445 MovieClip [plasmagrenade] Frame 45
removeMovieClip(this);
stop();
_visible = 0;
Symbol 451 MovieClip [gbomb] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit() {
xspeed = 0;
yspeed = 0;
yaccel = 0;
gotoAndPlay (67);
}
function onEnterFrame() {
var _local1 = _root;
if (yaccel > 0) {
_x = (_x + xspeed);
if (_local1.decor.hitTest((_local1.game._x + _x) + (2 * xspeed), (_local1.game._y + _y) + middle, 1)) {
xspeed = xspeed * -0.6;
}
if ((yspeed < 0) || (!_local1.decor.hitTest(_local1.game._x + _x, _local1.game._y + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
hit();
}
while ((yspeed >= 0) && (_local1.decor.hitTest(_local1.game._x + _x, (_local1.game._y + _y) - 3, 1))) {
_y = (_y - 3);
}
}
}
_visible = 0;
notbashable = 1;
middle = (-_height) / 2;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
Symbol 451 MovieClip [gbomb] Frame 2
_visible = 1;
Symbol 451 MovieClip [gbomb] Frame 67
setson();
_root.son.attachSound("explosion1");
_root.startson(son, 1);
Symbol 451 MovieClip [gbomb] Frame 68
for (a in _parent) {
if ((bangzone.hitTest(_parent[a].hitzone) && (_parent[a] != this)) && (_parent[a] != owner)) {
_parent[a].hit(this, 0, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 10, 5);
}
}
for (a in _parent._parent.decor) {
if (bangzone.hitTest(_parent._parent.decor[a])) {
_parent._parent.decor[a].hit(this, 0, (4 * (_parent[a]._x - _x)) / Math.abs(_x - _parent[a]._x), -12, 10, 5);
}
}
Symbol 451 MovieClip [gbomb] Frame 75
removeMovieClip(this);
_visible = 0;
stop();
Symbol 454 MovieClip [hrocket] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
if (life > 0) {
life = life - (damagebase + int(damagerand * Math.random()));
gotoAndPlay (10);
}
}
function onEnterFrame() {
var _local1 = _root;
speed = speed + 0.2;
ennemydist_x = ennemy._x - _x;
ennemydist_y = (ennemy._y + ennemy.middle) - _y;
if (life > 0) {
if (ennemydist_y >= 0) {
rotcible = 90 + (((-Math.atan(ennemydist_x / ennemydist_y)) * 180) / Math.PI);
} else {
rotcible = -90 + (((-Math.atan(ennemydist_x / ennemydist_y)) * 180) / Math.PI);
}
rotdif = rotcible - _rotation;
if (Math.abs(rotdif) > 180) {
rotdif = ((-Math.abs(rotdif)) / rotdif) * (360 - Math.abs(rotdif));
}
if (_local1.decor.hitTest((_local1.game._x + _x) + (30 * Math.cos(_rotation / 57.3)), (_local1.game._y + _y) + (30 * Math.sin(_rotation / 57.3)), 1)) {
gotoAndPlay (20);
}
}
_rotation = (_rotation + (rotdif / 20));
_x = (_x + (speed * Math.cos(_rotation / 57.3)));
_y = (_y + (speed * Math.sin(_rotation / 57.3)));
}
ennemy = _root.hero;
notbashable = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
if (_currentframe == 1) {
gotoAndStop (2);
}
Symbol 454 MovieClip [hrocket] Frame 14
if (life <= 0) {
gotoAndPlay (20);
}
Symbol 454 MovieClip [hrocket] Frame 17
if (_currentframe == 17) {
gotoAndStop (2);
}
Symbol 454 MovieClip [hrocket] Frame 20
_root.dieshake();
delete onEnterFrame;
life = 0;
speed = 0;
Symbol 454 MovieClip [hrocket] Frame 21
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 454 MovieClip [hrocket] Frame 22
setson();
_root.son.attachSound("explosion1");
_root.startson(son, 1);
_root.shake(9, 2, 2);
for (a in _parent) {
if (bangzone.hitTest(_parent[a].hitzone)) {
_parent[a].hit(owner, this, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 5, 5, 1);
}
}
for (a in _root.decor) {
if (bangzone.hitTest(_root.decor[a].hitzone)) {
_root.decor[a].hit(owner, this, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 5, 5, 1);
}
}
Symbol 454 MovieClip [hrocket] Frame 28
life = 0;
removeMovieClip(this);
stop();
_visible = 0;
Symbol 459 MovieClip [grenade] Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebasemdamagerand, powerful) {
gotoAndPlay (34);
}
function onEnterFrame() {
var _local1 = _root;
_x = (_x + xspeed);
if ((yspeed <= 0) && (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 15, 1))) {
_y = (_y - yspeed);
yspeed = yspeed * -0.8;
}
if (_local1.decor.hitTest((_x + _local1.game._x) + ((10 * xspeed) / Math.abs(xspeed)), (_y + _local1.game._y) - 10, 1)) {
_x = (_x - xspeed);
xspeed = xspeed * -0.8;
}
grenade.grenade._rotation = grenade.grenade._rotation + (3 * xspeed);
_y = (_y + yspeed);
if (!_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
yspeed = yspeed + yaccel;
} else if (_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
if ((yspeed > 0) and (yspeed < 2)) {
yspeed = 0;
} else {
yspeed = yspeed * -0.5;
xspeed = xspeed * 0.7;
}
while ((_currentframe < 35) && (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 2, 1))) {
_y = (_y - 2);
}
}
}
yaccel = 3;
notbashable = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
Symbol 459 MovieClip [grenade] Frame 35
setson();
_root.son.attachSound("explosion1");
_root.startson(son, 1);
xspeed = 0;
yspeed = 0;
yaccel = 0;
_root.shake(9, 2, 2);
_root.maxcolorize(this);
_root.permalight.push(this);
for (a in _root.sprites) {
if ((bangzone.hitTest(_root.sprites[a].hitzone) && (_root.sprites[a] != owner)) && (!_root.sprites.immuneto_grenades)) {
_root.sprites[a].hit(owner, bangzone, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 5, 5, 1);
}
}
for (a in _root.decor) {
if (bangzone.hitTest(_root.decor[a].hitzone)) {
_root.decor[a].hit(owner, bangzone, (10 * Math.abs(_parent[a]._x - _x)) / (_parent[a]._x - _x), -12 - (4 * Math.random()), 5, 5, 1);
}
}
Symbol 459 MovieClip [grenade] Frame 38
Symbol 459 MovieClip [grenade] Frame 42
removeMovieClip(this);
stop();
_visible = 0;
Symbol 463 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 2
play();
Symbol 468 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 469 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 469 MovieClip Frame 2
play();
Symbol 475 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
play();
Symbol 480 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 481 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 2
play();
Symbol 482 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 484 MovieClip Frame 2
_parent.gotoAndPlay(_parent.gotoframe);
Symbol 484 MovieClip Frame 3
gotoAndPlay (2);
Symbol 587 MovieClip Frame 1
_visible = 0;
Symbol 587 MovieClip Frame 2
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 20
gotoAndStop (1);
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 20
gotoAndStop (1);
Symbol 592 MovieClip Frame 1
Symbol 592 MovieClip Frame 7
if (Math.abs(_parent.rotcible - _rotation) <= 6) {
_parent.shoot();
} else {
gotoAndPlay (1);
}
Symbol 592 MovieClip Frame 9
_root.sprites.attachMovie("hrocket", "rocket" + _root.sprites.n, _root.sprites.n);
var cur_rocket = _root.sprites["rocket" + _root.sprites.n];
cur_rocket.life = 2;
_parent.rocket = cur_rocket;
cur_rocket._rotation = _rotation;
if (_parent.direction == -1) {
cur_rocket._rotation = 180 - _rotation;
}
cur_rocket._rotation = cur_rocket._rotation + (((_parent.drunk * 2) * Math.random()) - _parent.drunk);
cur_rocket._x = _parent._x + (_parent.direction * (_x + (shootzone._x * Math.cos(_rotation / 57.3))));
cur_rocket._y = (_parent._y + _y) + (shootzone._x * Math.sin(_rotation / 57.3));
cur_rocket.speed = (4 + int(3 * Math.random())) + _parent.rockspdbonus;
_parent.rocketinit();
_root.sprites.n_raise();
Symbol 592 MovieClip Frame 26
_parent.testzone_shoot.gotoAndPlay(1);
if ((!_parent.testzone_shoot.hitTest(_parent.ennemy.hitzone)) || (_parent.mobile && (Math.random() < 0.5))) {
stop();
_parent.gotoAndPlay("aim_end");
} else {
gotoAndPlay (1);
}
Symbol 593 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 593 MovieClip Frame 2
_parent.stop();
Symbol 593 MovieClip Frame 3
stop();
Symbol 645 MovieClip Frame 1
_parent.ground = 0;
_visible = 0;
gotoAndPlay (2);
Symbol 645 MovieClip Frame 2
if (_parent.decor.hitTest(_parent.game._x + _parent._x, (_parent.game._y + _parent._y) + _parent.yspeed, 1)) {
_parent.gotoAndPlay(frame);
}
Symbol 645 MovieClip Frame 3
gotoAndPlay (2);
Symbol 647 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 647 MovieClip Frame 2
_parent.gotoAndStop(_parent.gotoframe);
Symbol 647 MovieClip Frame 3
gotoAndPlay (2);
Symbol 649 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
_root.colorize_change(50, 1);
Symbol 649 MovieClip Frame 4
_root.colorize_change(-50, 1);
Symbol 649 MovieClip Frame 15
stop();
_visible = 0;
Symbol 651 MovieClip [bazooka] Frame 1
function setdirection(dir) {
direction = dir;
_xscale = (xscale_orig * direction);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = 3;
gotoAndPlay (3);
event_activate();
}
function move() {
if (!decor.hitTest((_x + game._x) + ((30 * xspeed) / Math.abs(xspeed)), (_y + game._y) - 5, 1)) {
_x = (_x + xspeed);
}
}
function move_rvol() {
_x = (_x + xspeed);
if (decor.hitTest((_x + game._x) + ((40 * xspeed) / Math.abs(xspeed)), (_y + game._y) - 5, 1)) {
xspeed = xspeed * -0.3;
}
if (decor.hitTest(game._x + _x, (game._y + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function move_slide() {
move();
xspeed = xspeed / friction;
}
function shoot() {
bazooka.gotoAndPlay("shoot");
body.gotoAndPlay("shoot");
head.gotoAndPlay("shoot");
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = rvolx;
var _local3 = powerful;
if (immunetotank && (projectile == _root.tank.bangzone)) {
} else {
hitter = attacker;
if (projectile == _root.tank.bangzone) {
immunetotank = 1;
}
var _local2 = damagebase + int(damagerand * Math.random());
life = life - _local2;
_root.shake_hit((_local2 / 5) + 4);
if (_local1 == 0) {
_local1 = 1;
}
_parent.badang(this, (((-15 * Math.abs(_local1)) / _local1) + (10 * Math.random())) - 5, (0 + (10 * Math.random())) - 5);
if ((_local3 || (Math.random() > standratio)) || (life <= 0)) {
(xspeed = _local1 / 1);
yspeed = rvoly / 2;
if (lying) {
_local3 = 0;
if (yspeed > -8) {
yspeed = -8;
}
hitframe = "hit_lying";
} else {
_local3 = 1;
if (depthswapping) {
this.swapDepths(this.getDepth() + 2000);
}
setdirection((-Math.abs(_local1)) / _local1);
yaccel = yaccel_orig;
xspeed = _local1;
yspeed = rvoly / 2;
if (yspeed > -16) {
yspeed = -16;
}
hitframe = "hit_strong";
}
gotoAndPlay (160);
} else if (((_x - attacker._x) * direction) > 0) {
gonnaflip = 1;
} else {
gonnaflip = 0;
}
if (status_aiming._x) {
body.body.gotoAndPlay(2);
head.head.gotoAndPlay(2);
bazooka.bazooka.hand_r.gotoAndPlay(2);
bazooka.bazooka.hand_l.gotoAndPlay(2);
} else {
body.gotoAndPlay(2);
head.gotoAndPlay(2);
bazooka.hand_r.gotoAndPlay(2);
bazooka.hand_.gotoAndPlay(2);
}
if (Math.abs(xspeed) > 20) {
xspeed = (20 * xspeed) / Math.abs(xspeed);
}
if (_local3) {
setson(1.5);
son.attachSound("stronghit");
} else {
setson();
son.attachSound("hit");
}
son.start();
}
}
function track() {
ciblex = direction * (ennemy._x - (_x + bazooka._x));
cibley = (ennemy._y + ennemy.middle) - (_y + bazooka._y);
if (cibley >= 0) {
rotcible = 90 + ((-Math.atan(ciblex / cibley)) * 57.3);
if (rotcible > 0) {
rotcible = 0;
}
} else {
rotcible = -90 - (Math.atan(ciblex / cibley) * 57.3);
if (rotcible < -40) {
rotcible = -40;
}
}
rotspeed = (rotcible - bazooka._rotation) / 3;
bazooka._rotation = bazooka._rotation + rotspeed;
body._rotation = body._rotation + (((rotcible / 1.1) - body._rotation) / 3);
head._rotation = head._rotation + (((rotcible / 1.1) - head._rotation) / 3.2);
x_cible = x_orig + (bazooka._rotation / 1.5);
y_cible = y_orig + (Math.abs(bazooka._rotation) / 6);
bazooka._x = bazooka._x + ((x_cible - bazooka._x) / 2);
bazooka._y = bazooka._y + ((y_cible - bazooka._y) / 2);
}
function landcheck() {
if (decor.hitTest(game._x + _x, (game._y + _y) + (yspeed * 2), 1)) {
gotoAndPlay(landframe);
}
}
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function onEnterFrame() {
var _local1 = _root;
_y = (_y + yspeed);
if (!decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
yspeed = yspeed + yaccel;
} else if (yspeed) {
yspeed = 0;
}
if (decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 50, 1)) {
gotoAndPlay (220);
} else {
while (decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 1, 1)) {
_y = (_y - 1);
}
}
}
ennemy = _root.hero;
decor = _root.decor;
sprites = _root.sprites;
game = _root.game;
bullet = game.shot_trooper;
_xscale = Math.abs(_xscale);
xscale_orig = _xscale;
middle = (-_height) / 2;
life = 50;
wallsight = 75;
dirchanging = 1;
friction = 1.4;
drunk = 5;
xspeed = 0;
yspeed = 0;
yaccel_orig = 3;
yaccel = yaccel_orig;
score = 250;
standratio = 0.99;
setdirection(1);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
init();
delete init;
Symbol 651 MovieClip [bazooka] Frame 3
immunetotank = 0;
lying = 0;
Symbol 651 MovieClip [bazooka] Frame 4
if (longranged) {
zone_farlow = testzone_farlow2;
zone_farhigh = testzone_farhigh2;
} else {
zone_farlow = testzone_farlow;
zone_farhigh = testzone_farhigh;
}
gotoframe = 0;
if (dashsteps) {
gotoframe = "dash";
} else if (paces) {
gotoframe = "walk";
paces--;
} else if (testzone_near.hitTest(ennemy.hitzone)) {
gotoframe = "attack_stand";
} else if ((fixdir && (!hasflipped)) && (direction != fixdir)) {
gotoframe = "flip";
gonnaflip = 0;
} else if (dirchanging && (!hasflipped)) {
if (gonnaflip && (testzone_behindnear.hitTest(ennemy.hitzone) || (!_root.decor.hitTest((game._x + _x) - (75 * direction), (game._y + _y) + middle, 1)))) {
gotoframe = "flip";
gonnaflip = 0;
} else if (testzone_behindnear.hitTest(ennemy.hitzone) || (_root.decor.hitTest((game._x + _x) + (75 * direction), (game._y + _y) + middle, 1))) {
gotoframe = "flip";
gonnaflip = 0;
} else if ((testzone_behind.hitTest(ennemy.hitzone) || ((!zone_farlow.hitTest(ennemy.hitzone)) && (Math.random() < 0.2))) && (!_root.decor.hitTest((game._x + _x) - (150 * direction), (game._y + _y) + middle, 1))) {
gotoframe = "flip";
gonnaflip = 0;
}
}
if (gotoframe == 0) {
if (zone_farlow.hitTest(ennemy.hitzone)) {
if ((((Math.random() < 0.6) && (mobile)) || (mobile == 2)) || (raging && (((ennemy._x - _x) * direction) > 100))) {
gotoframe = "dash";
} else if (mobile == 2) {
gotoframe = "_currentframe";
} else {
gotoframe = "aim";
}
} else if (zone_farhigh.hitTest(ennemy.hitzone)) {
gotoframe = "aim";
} else if ((Math.random() < 0.5) && (mobile)) {
gotoframe = "walk";
} else {
gotoframe = _currentframe;
}
}
hasflipped = 0;
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 4
/* no clip actions */
Symbol 651 MovieClip [bazooka] Frame 30
gotoframe = "stand_loop";
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 30
/* no clip actions */
Symbol 651 MovieClip [bazooka] Frame 34
setdirection(-direction);
gotoframe = "stand";
Symbol 651 MovieClip [bazooka] Frame 35
xspeed = 4 * direction;
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 35
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 651 MovieClip [bazooka] Frame 49
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 49
/* no clip actions */
Symbol 651 MovieClip [bazooka] Frame 55
xspeed = 9 * direction;
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 55
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 651 MovieClip [bazooka] Frame 59
if (dashsteps > 0) {
dashsteps--;
}
Symbol 651 MovieClip [bazooka] Frame 64
if (dashsteps > 0) {
dashsteps--;
}
if ((mobile != 0) || (dashsteps)) {
gotoframe = _currentframe;
} else {
gotoframe = "dash_toaim";
}
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 64
/* no clip actions */
Symbol 651 MovieClip [bazooka] Frame 69
if (dashsteps > 0) {
dashsteps--;
}
if (dashsteps) {
gotoframe = "dash_loop";
} else if (mobile == 0) {
gotoframe = "dash_toaim";
} else if (testzone_near.hitTest(ennemy.hitzone) || (_root.decor.hitTest((game._x + _x) + (75 * direction), (game._y + _y) + middle, 1))) {
gotoframe = "attack_dash";
} else {
gotoframe = "dash_loop";
}
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 69
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 75
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 651 MovieClip [bazooka] Frame 81
bazooka.gotoAndPlay(7);
Symbol 651 MovieClip [bazooka] Frame 83
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone)) {
_root.sprites[a].hit(this, bangzone, ((_root.sprites[a]._x - _x) / 8) + ((20 * Math.abs(_root.sprites[a]._x - _x)) / (_root.sprites[a]._x - _x)), -15 - (3 * Math.random()), 7, 3, 1);
}
}
for (var a in _root.decor) {
if (_root.decor[a].hitzone.hitTest(bangzone)) {
_root.decor[a].hit(this, bangzone, ((_root.decor[a]._x - _x) / 8) + ((20 * Math.abs(_root.decor[a]._x - _x)) / (_root.decor[a]._x - _x)), -15 - (3 * Math.random()), 7, 3, 1);
}
}
Symbol 651 MovieClip [bazooka] Frame 105
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 105
/* no clip actions */
Symbol 651 MovieClip [bazooka] Frame 121
gotoframe = "aiming";
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 121
/* no clip actions */
Symbol 651 MovieClip [bazooka] Frame 124
if (((ennemy._x - (_x + (50 * direction))) * direction) < 0) {
xspeed = (ennemy._x - (_x + (50 * direction))) / 5;
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 127
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 651 MovieClip [bazooka] Frame 132
gotoframe = "attack";
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 132
/* no clip actions */
Symbol 651 MovieClip [bazooka] Frame 143
if (longranged) {
testzone_shoot = zone_shoot2;
} else {
testzone_shoot = zone_shoot;
}
Instance of Symbol 287 MovieClip "status_aiming" in Symbol 651 MovieClip [bazooka] Frame 143
onClipEvent (load) {
_parent.x_orig = _parent.bazooka._x;
_parent.y_orig = _parent.bazooka._y;
_parent.track();
}
onClipEvent (enterFrame) {
_parent.track();
}
Symbol 651 MovieClip [bazooka] Frame 153
unaimed = 1;
gotoframe = "stand";
Symbol 651 MovieClip [bazooka] Frame 160
bazooka.gotoAndStop(1);
gotoframe = hitframe;
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 160
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 651 MovieClip [bazooka] Frame 163
lying = 1;
Symbol 651 MovieClip [bazooka] Frame 167
landframe = "hit_strong_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 167
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 172
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 651 MovieClip [bazooka] Frame 175
if (life <= 0) {
gotoframe = "die";
} else {
gotoframe = _currentframe;
}
Symbol 651 MovieClip [bazooka] Frame 193
lying = 0;
Symbol 651 MovieClip [bazooka] Frame 204
gotoframe = "stand";
Symbol 651 MovieClip [bazooka] Frame 207
lying = 1;
gotoframe = "stand_loop";
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 207
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 651 MovieClip [bazooka] Frame 211
landframe = "hit_strong_land";
Instance of Symbol 645 MovieClip in Symbol 651 MovieClip [bazooka] Frame 211
onClipEvent (load) {
frame = "rvol_strong_land";
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 651 MovieClip [bazooka] Frame 211
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Symbol 651 MovieClip [bazooka] Frame 213
gotoframe = "hit_strong_wait";
Symbol 651 MovieClip [bazooka] Frame 220
_root.die(this);
dieson("explosion2");
Symbol 651 MovieClip [bazooka] Frame 234
event_die();
Symbol 651 MovieClip [bazooka] Frame 252
son.stop();
delete son;
delete son;
removeMovieClip(this);
_visible = 0;
stop();
Symbol 651 MovieClip [bazooka] Frame 256
setdirection(-direction);
hasflipped = 1;
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 651 MovieClip [bazooka] Frame 256
/* no clip actions */
Symbol 654 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 660 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 661 MovieClip Frame 1
stop();
Symbol 661 MovieClip Frame 2
play();
Symbol 664 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 669 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 670 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 2
play();
Symbol 674 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 675 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 2
play();
Symbol 679 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 2
play();
Symbol 686 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 2
play();
Symbol 689 MovieClip Frame 1
_parent.afterflipframe = frame;
_visible = 0;
gotoAndPlay (2);
Symbol 689 MovieClip Frame 2
with (_parent) {
if (decor.hitTest((game._x + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (game._y + _y) - 10, 1)) {
gotoAndPlay("flip");
}
}
Symbol 689 MovieClip Frame 10
gotoAndPlay (2);
Symbol 692 MovieClip [dog] Frame 1
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscale_orig);
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
event_start();
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = rvolx;
var _local2 = attacker;
var _local3 = rvoly;
if (!immuneto_all) {
hitter = _local2;
damage = damagebase + int(Math.random() * damagerand);
_parent.badang(this);
life = life - damage;
mouth.gotoAndPlay(2);
body.gotoAndPlay(2);
foot_front.gotoAndPlay(2);
foot_back.gotoAndPlay(2);
leg_back.gotoAndPlay(2);
if (life <= 0) {
xspeed = _local1 / weight;
yspeed = -20;
hitframe = "predie";
son.attachSound("stronghit");
setson(1.5);
gotoAndPlay (175);
} else {
if ((powerful || (air._x)) || (Math.random() < 0.2)) {
yspeed = _local3 / weight;
xspeed = _local1 / weight;
move_y();
if (((_local2._x - _x) * direction) <= 0) {
hitframe = "hit_fwd_strong";
} else {
hitframe = "hit_rew_strong";
}
gotoAndPlay (175);
} else if (((_local2._x - _x) * direction) <= 0) {
hitframe = "hit_fwd";
yspeed = _local3 / weight;
xspeed = _local1 / weight;
move_y();
gotoAndPlay (175);
} else if (Math.random() < weakness) {
hitframe = "hit_rew";
yspeed = _local3 / weight;
xspeed = _local1 / weight;
move_y();
gotoAndPlay (175);
}
son.attachSound("hit");
setson();
}
son.start();
if (Math.abs(xspeed) > 20) {
xspeed = (20 * xspeed) / Math.abs(xspeed);
}
}
}
function move() {
if ((!blocked) && (!decor.hitTest((game._x + _x) + ((20 * xspeed) / Math.abs(xspeed)), (game._y + _y) - 3, 1))) {
_x = (_x + xspeed);
}
}
function move_y() {
if ((!decor.hitTest((game._x + _x) + xspeed, (game._y + _y) + (2 * middle), 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
} else {
yspeed = 0;
}
}
function move_slide() {
move();
xspeed = xspeed / friction;
}
function move_rvol() {
_x = (_x + xspeed);
if (decor.hitTest((game._x + _x) + ((20 * xspeed) / Math.abs(xspeed)), (game._y + _y) - 3, 1)) {
xspeed = xspeed * -1;
}
if (decor.hitTest(game._x + _x, (game._y + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function landcheck() {
if (decor.hitTest(game._x + _x, (game._y + _y) + (yspeed * 2), 1)) {
gotoAndPlay(landframe);
}
}
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function onEnterFrame() {
if ((yspeed < 0) || (!decor.hitTest(game._x + _x, game._y + _y, 1))) {
move_y();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (decor.hitTest(game._x + _x, (game._y + _y) - 3, 1))) {
_y = (_y - 3);
}
if (xspeed == 0) {
movedir = 0;
} else {
movedir = Math.abs(xspeed) / xspeed;
}
while (decor.hitTest((game._x + _x) + (20 * movedir), (game._y + _y) - 3, 1)) {
_x = (_x - (3 * movedir));
}
while (decor.hitTest((game._x + _x) - (20 * movedir), (game._y + _y) - 3, 1)) {
_x = (_x + (3 * movedir));
}
}
game = _root.game;
decor = _root.decor;
ennemy = _root.hero;
xspeed = 0;
yspeed = 0;
yaccel_orig = 3;
yaccel = 3;
middle = (-_height) / 2;
midadjust = _height / 4;
life = 5;
bangyfactor = 40;
walkspeed = 3;
friction = 1.4;
weight = 1;
wallsight = 50;
xscale_orig = _xscale;
score = 100;
raging = 1;
weakness = 0.5;
searchspeed = 0.8;
dashspeed = 6;
setdirection(1);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
init();
delete init;
Symbol 692 MovieClip [dog] Frame 3
Symbol 692 MovieClip [dog] Frame 4
if (raging) {
if (((((ennemy._x - _x) * direction) < 0) && (!decor.hitTest((_x + game._x) - (50 * direction), (_y + game._y) - 10, 1))) && (!decor.hitTest((_x + game._x) - (150 * direction), (_y + game._y) - 10, 1))) {
afterflipframe = "stand";
gotoframe = "flip";
} else if (((yspeed == 0) && (testzone.hitTest(ennemy.hitzone))) && (Math.abs(ennemy._x - _x) < (120 + (120 * raging)))) {
setson();
gotoframe = "bite";
} else {
gotoframe = "dash";
}
} else if (testzone.hitTest(ennemy.hitzone)) {
if (Math.abs(ennemy._x - _x) < 120) {
setson();
gotoframe = "bite";
} else {
gotoframe = "dash";
}
} else if (Math.random() < 0.5) {
gotoframe = "search";
} else if ((testzone_back.hitTest(ennemy.hitzone) || (decor.hitTest((absx + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (absy + _y) - 10, 1))) || (Math.random() < 0.2)) {
afterflipframe = "stand";
gotoframe = "flip";
} else {
gotoframe = _currentframe;
}
Symbol 692 MovieClip [dog] Frame 16
gotoframe = "stand_loop";
Symbol 692 MovieClip [dog] Frame 25
xspeed = searchspeed * direction;
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 25
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 692 MovieClip [dog] Frame 34
call("search_test");
Symbol 692 MovieClip [dog] Frame 48
if ((Math.random() < 0.2) || (testzone.hitTest(ennemy.hitzone))) {
gotoframe = "search_end";
} else if (testzone_back.hitTest(ennemy.hitzone)) {
afterflipframe = "stand";
gotoframe = "flip";
} else if (decor.hitTest((absx + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (absy + _y) - 10, 1) || (Math.random() < 0.2)) {
afterflipframe = "search_loop";
gotoframe = "flip";
} else {
gotoframe = "search_loop";
}
Symbol 692 MovieClip [dog] Frame 67
gotoframe = "stand";
Symbol 692 MovieClip [dog] Frame 81
xspeed = 5 * direction;
Instance of Symbol 689 MovieClip in Symbol 692 MovieClip [dog] Frame 81
onClipEvent (load) {
frame = "dash_loop";
}
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 81
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 692 MovieClip [dog] Frame 85
xspeed = dashspeed * direction;
if (((((ennemy._x - _x) * direction) < 0) && (!decor.hitTest((_x + game._x) - (50 * direction), (_y + game._y) - 10, 1))) && (!decor.hitTest((_x + game._x) - (150 * direction), (_y + game._y) - 10, 1))) {
afterflipframe = "stand";
gotoframe = "flip";
} else if ((yspeed == 0) && (testzone.hitTest(ennemy.hitzone) || (raging && (Math.random() < 0.4)))) {
gotoframe = "attack";
} else {
gotoframe = _currentframe;
}
Symbol 692 MovieClip [dog] Frame 95
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 97
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 692 MovieClip [dog] Frame 102
gotoframe = "stand";
Symbol 692 MovieClip [dog] Frame 107
xspeed = 5 * direction;
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 107
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 692 MovieClip [dog] Frame 111
setson();
Symbol 692 MovieClip [dog] Frame 112
xspeed = (ennemy._x - (_x + (40 * direction))) / 12;
if ((xspeed * direction) < 1) {
xspeed = direction;
}
if ((xspeed * direction) > 15) {
xspeed = (15 * Math.abs(direction)) / direction;
}
ennemyhit = 0;
yspeed = -16 - jumpbonus;
ymove();
Symbol 692 MovieClip [dog] Frame 114
if ((!ennemyhit) && (bangzone.hitTest(ennemy.hitzone))) {
ennemy.hit(this, this, int((20 * Math.random()) - 10), -10, 5, 3);
ennemyhit = 1;
}
Symbol 692 MovieClip [dog] Frame 116
call("attack_hittest");
Symbol 692 MovieClip [dog] Frame 118
call("attack_hittest");
Symbol 692 MovieClip [dog] Frame 120
call("attack_hittest");
Instance of Symbol 645 MovieClip in Symbol 692 MovieClip [dog] Frame 121
onClipEvent (load) {
frame = "attack_land";
}
Symbol 692 MovieClip [dog] Frame 122
call("attack_hittest");
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 122
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 692 MovieClip [dog] Frame 125
if (testzone.hitTest(ennemy.hitzone)) {
gotoframe = "attack_landash";
} else {
gotoframe = _currentframe;
}
Symbol 692 MovieClip [dog] Frame 130
gotoframe = "stand";
Symbol 692 MovieClip [dog] Frame 137
call("attack");
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 137
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 692 MovieClip [dog] Frame 142
gotoframe = "dash_loop";
Symbol 692 MovieClip [dog] Frame 155
xspeed = (ennemy._x - (_x + (10 * direction))) / 6;
if ((xspeed * direction) > 15) {
xspeed = (15 * Math.abs(direction)) / direction;
}
yspeed = -6;
ennemyhit = 0;
ymove();
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 155
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 692 MovieClip [dog] Frame 156
if ((ennemyhit == 0) && (bangzone.hitTest(ennemy.hitzone))) {
ennemy.hit(this, this, (ennemy._x - _x) / 14, -20, 5, 3);
ennemyhit = 1;
}
Symbol 692 MovieClip [dog] Frame 157
call("bite_hittest");
Symbol 692 MovieClip [dog] Frame 158
call("bite_hittest");
Symbol 692 MovieClip [dog] Frame 159
call("bite_hittest");
Symbol 692 MovieClip [dog] Frame 160
call("bite_hittest");
Symbol 692 MovieClip [dog] Frame 161
call("bite_hittest");
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 161
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 692 MovieClip [dog] Frame 162
call("bite_hittest");
Symbol 692 MovieClip [dog] Frame 163
call("bite_hittest");
Symbol 692 MovieClip [dog] Frame 167
gotoframe = "stand";
Symbol 692 MovieClip [dog] Frame 175
gotoframe = hitframe;
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 180
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 692 MovieClip [dog] Frame 189
gotoframe = "flip";
afterflipframe = "stand";
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 193
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 692 MovieClip [dog] Frame 201
landframe = "rvol_rewstrong_land";
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 201
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 215
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 692 MovieClip [dog] Frame 225
gotoframe = "stand";
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 232
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 692 MovieClip [dog] Frame 240
landframe = "rvol_rewstrong_land";
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 240
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 242
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 692 MovieClip [dog] Frame 248
gotoframe = "stand";
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 270
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 692 MovieClip [dog] Frame 277
landframe = "die_land";
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 277
onClipEvent (load) {
_parent.move();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move();
_parent.landcheck();
}
Instance of Symbol 287 MovieClip in Symbol 692 MovieClip [dog] Frame 278
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 692 MovieClip [dog] Frame 280
_root.die(this);
dieson("explosion2");
Symbol 692 MovieClip [dog] Frame 294
event_die();
Symbol 692 MovieClip [dog] Frame 307
removeMovieClip(this);
son.stop();
delete son;
_visible = 0;
stop();
Symbol 692 MovieClip [dog] Frame 311
setdirection(-direction);
Symbol 692 MovieClip [dog] Frame 312
gotoframe = afterflipframe;
Symbol 697 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 2
play();
Symbol 704 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
play();
Symbol 711 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 712 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 2
play();
Symbol 718 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 719 MovieClip Frame 1
stop();
Symbol 719 MovieClip Frame 2
play();
Symbol 722 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 727 MovieClip [trooper] Frame 1
function setdirection(dir) {
direction = dir;
_xscale = (xscale_orig * direction);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = 3;
gotoAndPlay (3);
event_activate();
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = powerful;
var _local3 = rvolx;
head.gotoAndPlay(2);
body.gotoAndPlay(2);
foot_r.gotoAndPlay(2);
foot_l.gotoAndPlay(2);
gun.gotoAndPlay(2);
_root.shake_hit((damage / 5) + 4);
if (!unshakable) {
hitter = attacker;
var damage = (damagebase + int(Math.random(damagerand)));
life = life - damage;
_parent.badang(this, (-10 * Math.abs(_local3)) / _local3, 0);
if (_local1 || ((Math.random() > standratio) && (!lying))) {
_local1 = 1;
xspeed = _local3;
yspeed = rvoly;
} else if ((Math.random() <= weakness) || (air)) {
var _local2 = 1;
xspeed = _local3 / weight;
yspeed = rvoly / weight;
}
if (lying || (air)) {
if (_local2 || (_local1)) {
hitframe = "hit_lying";
if (yspeed > -8) {
yspeed = -8;
}
gotoAndPlay (205);
}
} else if (_local1) {
hitframe = "hit_strong";
if (yspeed > -15) {
yspeed = -15;
}
gotoAndPlay (205);
} else if (_local2) {
hitframe = "hit_normal";
gotoAndPlay (205);
}
setdirection(Math.abs(attacker._x - _x) / (attacker._x - _x));
if (_local1) {
setson(1.5);
son.attachSound("stronghit");
} else {
setson();
son.attachSound("hit");
}
son.start();
if (Math.abs(xspeed) > 20) {
xspeed = (20 * xspeed) / Math.abs(xspeed);
}
} else {
setson();
son.attachSound("hit");
son.start();
}
}
function move() {
if (!decor.hitTest((_x + game._x) + ((30 * xspeed) / Math.abs(xspeed)), (_y + game._y) - 5, 1)) {
_x = (_x + xspeed);
}
}
function move_rvol() {
_x = (_x + xspeed);
if (decor.hitTest((_x + game._x) + ((40 * xspeed) / Math.abs(xspeed)), (_y + game._y) - 5, 1)) {
if (life > 0) {
xspeed = xspeed * -0.6;
} else {
gotoAndPlay (286);
}
}
if (decor.hitTest(game._x + _x, (game._y + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function move_slide() {
move();
xspeed = xspeed / friction;
}
function shoot(angle) {
duplicateMovieClip (bullet, "bullet" + game.n, game.n);
cur_bullet = game["bullet" + game.n];
cur_bullet._x = _x + gun._x;
cur_bullet._y = _y + gun._y;
cur_bullet._rotation = ((gun._rotation + 90) + angle) * direction;
_root.lastshot_owner = this;
game.n_raise;
}
function landcheck() {
if (decor.hitTest(game._x + _x, (game._y + _y) + (yspeed * 2), 1)) {
gotoAndPlay(landframe);
}
}
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function onEnterFrame() {
var _local1 = _root;
_y = (_y + yspeed);
if ((yspeed < 0) && (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) + (2 * middle), 1))) {
yspeed = 0;
}
if (!_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
yspeed = yspeed + yaccel;
} else if (yspeed) {
yspeed = 0;
}
while (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 1, 1)) {
_y = (_y - 1);
}
}
ennemy = _root.hero;
decor = _root.decor;
sprites = _root.sprites;
game = _root.game;
bullet = game.shot_trooper;
_xscale = Math.abs(_xscale);
xscale_orig = _xscale;
middle = (-_height) / 2;
life = 9;
wallsight = 75;
friction = 1.4;
xspeed = 0;
yspeed = 0;
weight = 1;
yaccel = 3;
score = 150;
wise = 1;
weakness = 0.5;
standratio = 0.7;
jumpratio = 0.3;
unshakable = 0;
setdirection(1);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
init();
delete init;
Symbol 727 MovieClip [trooper] Frame 3
lying = 0;
if (isNaN(priorframe) && (priorframe != 0)) {
gotoframe = priorframe;
priorframe = 0;
}
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 3
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 4
if (tipe != "stalejump") {
if (ennemy.hitzone.hitTest(testzone_back) && (!decor.hitTest((game._x + _x) - (wallsight * direction), (game._y + _y) + middle, 1))) {
afterflipframe = "stand_loop";
gotoframe = "flip";
} else if ((Math.random() < 0.6) && (testzone_far.hitTest(ennemy.hitzone))) {
gotoframe = "dash";
} else if (testzone_med.hitTest(ennemy.hitzone)) {
if ((Math.random() < 0.1) && (!decor.hitTest(game._x + _x, (game._y + _y) - 150, 1))) {
jumpspeed = ((ennemy._x - (100 * direction)) - _x) / 20;
gotoframe = "jump";
} else {
gotoframe = "shoot_med";
}
} else if ((testzone_near.hitTest(ennemy.hitzone) && (Math.random() < 0.5)) && (!decor.hitTest((game._x + _x) - (35 * direction), (game._y + _y) + middle, 1))) {
gotoframe = "roll_back";
} else if (testzone_near.hitTest(ennemy.hitzone) && (!decor.hitTest(game._x + _x, (game._y + _y) - 150, 1))) {
jumpspeed = (8 - (16 * Math.random())) * direction;
gotoframe = "jump";
} else if (testzone_high.hitTest(ennemy.hitzone)) {
gotoframe = "shoot_high";
} else if (Math.random() < 0.3) {
xspeed = 7 * direction;
gotoframe = "roll_front";
} else if (Math.random() < 0.3) {
gotoframe = "walk";
} else {
gotoframe = _currentframe;
}
} else if ((Math.abs(targetx - _x) > 50) || (((Math.random() < 0.9) && (testzone_med.hitTest(ennemy.hitzone))) && (!decor.hitTest(game._x + _x, (game._y + _y) - 150, 1)))) {
jumpspeed = (targetx - _x) / 20;
gotoframe = "jump";
} else {
gotoframe = _currentframe;
}
Symbol 727 MovieClip [trooper] Frame 14
if (((tipe != "stalejump") && ((Math.random() < 0.5) || (ennemy.hitzone.hitTest(testzone_back)))) && (!decor.hitTest((game._x + _x) - (wallsight * direction), (game._y + _y) + middle, 1))) {
afterflipframe = "stand_loop";
gotoframe = "flip";
} else {
gotoframe = _currentframe;
}
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 14
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 25
gotoframe = "stand_loop";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 25
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 30
xspeed = 4 * direction;
Instance of Symbol 689 MovieClip in Symbol 727 MovieClip [trooper] Frame 30
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 30
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 727 MovieClip [trooper] Frame 46
if (testzone_med.hitTest(ennemy.hitzone)) {
if (Math.random() < 0.3) {
jumpspeed = 6 * direction;
gotoframe = "jump";
} else {
gotoframe = "shoot_med";
}
} else if (testzone_high.hitTest(ennemy.hitzone)) {
gotoframe = "shoot_high";
} else if (testzone_back.hitTest(ennemy.hitzone)) {
afterflipframe = "stand";
gotoframe = "flip";
} else {
gotoframe = "walk";
}
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 46
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 50
xspeed = 6 * direction;
gonnaroll = 0;
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 50
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 727 MovieClip [trooper] Frame 55
if (dashsteps) {
dashsteps--;
gotoframe = _currentframe;
} else {
if (decor.hitTest((game._x + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (game._y + _y) - 10, 1)) {
if (!gonnaroll) {
gonnaroll = 1;
} else {
gotoframe = "roll_front";
gonnaroll = 0;
}
}
if ((((Math.random() < jumpratio) && (!decor.hitTest((game._x + _x) + xspeed, (game._y + _y) - 100, 1))) && (testzone_jump.hitTest(ennemy.hitzone))) && (Math.random() < 0.6)) {
jumpspeed = (3 + (8 * Math.random())) * direction;
gotoframe = "jump_dash";
} else if ((testzone_roll.hitTest(ennemy.hitzone) || (((ennemy._x - _x) * direction) < 0)) || (wise && (decor.hitTest((game._x + _x) + (50 * direction), (game._y + _y) - 5, 1)))) {
gotoframe = "roll_front";
} else {
gotoframe = "dash_loop";
}
}
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 55
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 65
gotoframe = "dash_loop";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 65
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 70
xspeed = 6 * direction;
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 70
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 76
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 727 MovieClip [trooper] Frame 80
if (testzone_med.hitTest(ennemy.hitzone)) {
gotoframe = "shoot_med";
} else if (testzone_high.hitTest(ennemy.hitzone)) {
gotoframe = "shoot_high";
} else {
gotoframe = "stand";
}
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 80
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 85
xspeed = -10 * direction;
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 85
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 91
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 727 MovieClip [trooper] Frame 95
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 95
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 100
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 727 MovieClip [trooper] Frame 105
xspeed = jumpspeed;
delete jumpspeed;
yspeed = -26;
_y = (_y + yspeed);
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 105
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 727 MovieClip [trooper] Frame 107
landframe = "jump_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 107
onClipEvent (load) {
_parent.move();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move();
_parent.landcheck();
}
Symbol 727 MovieClip [trooper] Frame 109
if (testzone_low.hitTest(ennemy.hitzone)) {
gotoframe = "shoot_jump";
} else {
gotoframe = _currentframe;
}
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 109
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 110
landframe = "jump_land";
Instance of Symbol 593 MovieClip in Symbol 727 MovieClip [trooper] Frame 110
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 112
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 113
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 727 MovieClip [trooper] Frame 115
if ((((tipe == "stalejump") && (Math.random() < 0.4)) && (testzone_low.hitTest(ennemy.hitzone))) && (!decor.hitTest(game._x + _x, (game._y + _y) - 150, 1))) {
jumpspeed = (targetx - _x) / 20;
gotoframe = "jump_2";
} else {
gotoframe = _currentframe;
}
Symbol 727 MovieClip [trooper] Frame 122
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 122
onClipEvent (load) {
_parent.gotoframe = "stand";
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 125
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 727 MovieClip [trooper] Frame 130
gotoframe = "jump_3";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 130
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 137
shoot(-5);
game.n_raise();
shoot(0);
game.n_raise();
shoot(5);
Symbol 727 MovieClip [trooper] Frame 145
gotoframe = "stand_loop";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 145
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 150
landframe = "jump_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 150
onClipEvent (load) {
_parent.move();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move();
_parent.landcheck();
}
Symbol 727 MovieClip [trooper] Frame 152
shoot(-5);
game.n_raise();
shoot(0);
game.n_raise();
shoot(5);
Symbol 727 MovieClip [trooper] Frame 160
gotoframe = "jump_wait";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 160
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 170
shoot(-5);
game.n_raise();
shoot(0);
game.n_raise();
shoot(5);
Symbol 727 MovieClip [trooper] Frame 178
if (testzone_high.hitTest(ennemy.hitzone)) {
gotoframe = "shoot_high_2";
} else {
gotoframe = _currentframe;
}
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 178
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 189
gotoframe = "stand_loop";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 189
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 205
gotoAndPlay(hitframe);
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 210
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 727 MovieClip [trooper] Frame 215
gotoframe = "jump_wait";
Instance of Symbol 484 MovieClip in Symbol 727 MovieClip [trooper] Frame 215
/* no clip actions */
Symbol 727 MovieClip [trooper] Frame 221
air = 1;
lying = 1;
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 221
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 727 MovieClip [trooper] Frame 225
landframe = "hit_strong_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 225
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 226
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 727 MovieClip [trooper] Frame 227
air = 0;
lying = 1;
Symbol 727 MovieClip [trooper] Frame 230
if (life < 0) {
gotoframe = "die";
} else {
gotoframe = _currentframe;
}
Symbol 727 MovieClip [trooper] Frame 250
lying = 0;
air = 0;
Symbol 727 MovieClip [trooper] Frame 251
Symbol 727 MovieClip [trooper] Frame 259
gotoframe = "stand";
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 264
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 727 MovieClip [trooper] Frame 265
lying = 1;
air = 1;
Symbol 727 MovieClip [trooper] Frame 271
landframe = "hit_strong_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 727 MovieClip [trooper] Frame 271
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Symbol 727 MovieClip [trooper] Frame 278
gotoframe = "hit_strong_wait";
Symbol 727 MovieClip [trooper] Frame 286
_root.die(this);
dieson("explosion2");
Symbol 727 MovieClip [trooper] Frame 300
event_die();
Symbol 727 MovieClip [trooper] Frame 320
son.stop();
delete son;
removeMovieClip(this);
stop();
_visible = 0;
Symbol 727 MovieClip [trooper] Frame 327
setdirection(-direction);
gotoframe = afterflipframe;
Symbol 731 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 732 MovieClip Frame 1
stop();
Instance of Symbol 735 MovieClip "bretelles" in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
_x = (((_root.hero._x - _parent._parent._x) / 30) * _parent._parent.direction);
_xscale = (100 - (Math.abs(_root.hero._x - _parent._parent._x) / 50));
}
onClipEvent (enterFrame) {
_x = (x_orig + (((_root.hero._x - _parent._parent._x) / 30) * _parent._parent.direction));
_xscale = (100 - (Math.abs(_root.hero._x - _parent._parent._x) / 50));
}
Symbol 740 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 741 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 746 MovieClip Frame 1
stop();
Instance of Symbol 748 MovieClip in Symbol 749 MovieClip Frame 1
onClipEvent (load) {
x_orig = _x;
y_orig = _y;
}
onClipEvent (enterFrame) {
_x = (x_orig + (((_root.hero._x - _parent._parent._x) * _parent._parent.direction) / 100));
_y = (y_orig + (((_root.hero._y - _parent._parent._y) * _parent._parent.direction) / 50));
}
Instance of Symbol 748 MovieClip in Symbol 749 MovieClip Frame 1
onClipEvent (load) {
x_orig = _x;
y_orig = _y;
}
onClipEvent (enterFrame) {
_x = (x_orig + (((_root.hero._x - _parent._parent._x) * _parent._parent.direction) / 100));
_y = (y_orig + (((_root.hero._y - _parent._parent._y) * _parent._parent.direction) / 50));
}
Symbol 753 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 754 MovieClip Frame 1
stop();
Instance of Symbol 763 MovieClip "ball" in Symbol 764 MovieClip Frame 1
onClipEvent (load) {
_rotation = _parent._parent.mem_ballrot;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + ((3 * _parent._parent.xspeed) * _parent._parent.direction));
}
Symbol 765 MovieClip [grenadier] Frame 1
function setdirection(dir) {
direction = dir;
body.body._xscale = 100 * direction;
head.head._xscale = 100 * direction;
_xscale = (xscale_orig * direction);
body.bretelles._x = ((_root.hero._x - _x) / 30) * direction;
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = 3;
gotoAndPlay (3);
event_activate();
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = rvolx;
var _local2 = _parent;
var _local3 = this;
hitter = attacker;
head.head.gotoAndPlay(2);
body.body.gotoAndPlay(2);
hand_l.gotoAndPlay(2);
hand_r.gotoAndPlay(2);
foot_l.gotoAndPlay(2);
foot_r.gotoAndPlay(2);
var damage = (damagebase + int(Math.random(damagerand)));
life = life - damage;
_root.shake_hit((damage / 5) + 4);
if (status_lying) {
_local2.badang(_local3, (-25 * Math.abs(_local1)) / _local1, 0);
mem_ballrot = ball.ball._rotation;
hitframe = "hit_lying";
status_lying = 1;
yspeed = rvoly / 3;
if (powerful) {
xspeed = xspeed + (_local1 / 2);
} else {
xspeed = xspeed + (_local1 / 2);
}
} else if (status_air) {
_local2.badang(_local3, (-25 * Math.abs(_local1)) / _local1, 0);
hitframe = "hit_air";
status_air = 1;
xspeed = _local1 / 2;
yspeed = rvoly / 8;
} else if (life <= 0) {
if (!yaccel) {
yaccel = yaccel_orig;
}
_local2.badang(_local3, (-25 * Math.abs(_local1)) / _local1, 0);
hitframe = "hit_strong";
xspeed = _local1 / 3;
yspeed = (rvoly - (15 * powerful)) / 3;
if (yspeed > -12) {
yspeed = -12;
}
powerful = 1;
} else {
if (!noretaliate) {
counter++;
}
if (yaccel) {
yspeed = rvoly / 3;
xspeed = _local1 / 3;
}
if (projectile.hitTest(hitzone_high)) {
_local2.badang(_local3, (-5 * Math.abs(_local1)) / _local1, middle * 0.75);
hitframe = "hit_high";
} else {
_local2.badang(_local3, (-25 * Math.abs(_local1)) / _local1, 0);
hitframe = "hit_low";
}
}
if (powerful) {
setson(1.5);
son.attachSound("stronghit");
} else {
setson();
son.attachSound("hit");
}
son.start();
setdirection(Math.abs(attacker._x - _x) / (attacker._x - _x));
gotoAndPlay (120);
}
function die() {
var _local2 = _root;
decor = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
score = score_base + score_time;
var _local1 = int(200 - Math.abs(hitter._x - _x));
if (_local1 < 0) {
_local1 = 0;
}
score = score + _local1;
if (hitter == ennemy) {
score = score + 100;
}
_local2.scorechange(this);
_local2.dieshake();
if (Math.random() <= _local2.itemratio) {
_parent.itemdrop(_x, _y + middle, "random");
}
}
function move() {
if (!decor.hitTest((_x + game._x) + ((30 * xspeed) / Math.abs(xspeed)), (_y + game._y) - 5, 1)) {
_x = (_x + xspeed);
}
}
function move_rvol() {
_x = (_x + xspeed);
if (decor.hitTest((_x + game._x) + ((40 * xspeed) / Math.abs(xspeed)), (_y + game._y) + 2, 1)) {
xspeed = xspeed / 1.05;
life = life - 4;
if (life < -500) {
gotoAndPlay (230);
}
}
if (decor.hitTest((_x + game._x) + ((40 * xspeed) / Math.abs(xspeed)), (_y + game._y) - 15, 1)) {
xspeed = xspeed * -0.9;
if (status_lying && (Math.abs(xspeed) >= 2)) {
gotoAndPlay (230);
}
}
}
function landcheck() {
if (decor.hitTest(game._x + _x, (game._y + _y) + (yspeed * 2), 1)) {
gotoAndPlay(landframe);
}
}
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function onEnterFrame() {
var _local1 = _root;
_y = (_y + yspeed);
if (!_local1.decor.hitTest(_x + _local1.game._x, _y + _local1.game._y, 1)) {
yspeed = yspeed + yaccel;
}
if (decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 100, 1)) {
gotoAndPlay (230);
} else {
while (_local1.decor.hitTest(_x + _local1.game._x, (_y + _local1.game._y) - 1, 1)) {
_y = (_y - 1);
}
}
}
ennemy = _root.hero;
decor = _root.decor;
sprites = _root.sprites;
game = _root.game;
grenade = _parent.grenade;
_xscale = Math.abs(_xscale);
xscale_orig = _xscale;
middle = (-_height) / 2;
mobile = 0;
counter = 0;
life = 15;
wallsight = 75;
friction = 1.2;
xspeed = 0;
yspeed = 0;
yaccel_orig = 3;
yaccel = yaccel_orig;
score = 200;
longranged = 1;
setdirection(1);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
init();
delete init;
Symbol 765 MovieClip [grenadier] Frame 4
if (longranged) {
zone_far = testzone_far2;
} else {
zone_far = testzone_far;
}
if (paces) {
gotoframe = "walk";
paces--;
} else if (testzone_near.hitTest(ennemy.hitzone)) {
gotoframe = "attack";
} else if (zone_far.hitTest(ennemy.hitzone)) {
gotoframe = "throw";
} else if (((Math.random() < 0.8) && (mobile)) && (_root.hero.active)) {
gotoframe = "walk";
} else {
gotoframe = _currentframe;
}
Symbol 765 MovieClip [grenadier] Frame 28
gotoframe = "stand_loop";
Symbol 765 MovieClip [grenadier] Frame 35
xspeed = 4 * direction;
Instance of Symbol 287 MovieClip "yarr" in Symbol 765 MovieClip [grenadier] Frame 49
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 765 MovieClip [grenadier] Frame 57
gotoframe = "stand_loop";
Symbol 765 MovieClip [grenadier] Frame 65
setdirection((ennemy._x - _x) / Math.abs(ennemy._x - _x));
Symbol 765 MovieClip [grenadier] Frame 76
_parent.attachMovie("grenade", "grenade" + _parent.n, _parent.n);
var cur_grenade = _parent["grenade" + _parent.n];
cur_grenade._x = _x + grenadezone._x;
cur_grenade._y = _y + grenadezone._y;
cur_grenade.xspeed = (ennemy._x - _x) / 25;
cur_grenade.yspeed = ((ennemy._y - _y) / 10) - (32 * Math.random());
cur_grenade.owner = this;
_parent.n_raise();
Symbol 765 MovieClip [grenadier] Frame 88
gotoframe = "stand_loop";
Symbol 765 MovieClip [grenadier] Frame 95
setdirection((ennemy._x - _x) / Math.abs(ennemy._x - _x));
Symbol 765 MovieClip [grenadier] Frame 100
for (a in sprites) {
if (bangzone.hitTest(sprites[a].hitzone) && (sprites[a] != this)) {
sprites[a].hit(this, bangzone, (5 + (5 * Math.random())) * direction, -20 - (10 * Math.random()), 5, 2, 1);
}
}
Symbol 765 MovieClip [grenadier] Frame 118
gotoframe = "stand_loop";
Symbol 765 MovieClip [grenadier] Frame 120
gotoframe = hitframe;
Symbol 765 MovieClip [grenadier] Frame 126
if (counter >= 4) {
_parent.attachMovie("grenade", "grenade" + _parent.n, _parent.n);
var cur_grenade = _parent["grenade" + _parent.n];
cur_grenade._x = _x + (direction * grenadezone._x);
cur_grenade._y = _y + grenadezone._y;
cur_grenade.xspeed = (ennemy._x - _x) / 30;
cur_grenade.yspeed = -20 * Math.random();
cur_grenade.owner = this;
counter = 0;
_parent.n_raise();
}
Symbol 765 MovieClip [grenadier] Frame 140
gotoframe = "stand_loop";
Symbol 765 MovieClip [grenadier] Frame 148
if (counter >= 4) {
_parent.attachMovie("grenade", "grenade" + _parent.n, _parent.n);
var cur_grenade = _parent["grenade" + _parent.n];
cur_grenade._x = _x + (direction * grenadezone._x);
cur_grenade._y = _y + grenadezone._y;
cur_grenade.xspeed = (ennemy._x - _x) / 40;
cur_grenade.yspeed = -20 - (10 * Math.random());
cur_grenade.owner = this;
counter = 0;
_parent.n_raise();
}
Symbol 765 MovieClip [grenadier] Frame 164
gotoframe = "stand_loop";
Instance of Symbol 287 MovieClip "yarr" in Symbol 765 MovieClip [grenadier] Frame 167
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 765 MovieClip [grenadier] Frame 169
landframe = "hit_strong_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 765 MovieClip [grenadier] Frame 169
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Symbol 765 MovieClip [grenadier] Frame 174
gotoframe = "hit_strong_wait";
Symbol 765 MovieClip [grenadier] Frame 179
status_air = 1;
Instance of Symbol 287 MovieClip "yarr" in Symbol 765 MovieClip [grenadier] Frame 179
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 765 MovieClip [grenadier] Frame 183
landframe = "hit_strong_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 765 MovieClip [grenadier] Frame 183
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 765 MovieClip [grenadier] Frame 187
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 765 MovieClip [grenadier] Frame 189
status_air = 0;
status_lying = 1;
Symbol 765 MovieClip [grenadier] Frame 192
if (noroll) {
gotoframe = "die";
} else {
gotoframe = _currentframe;
}
Symbol 765 MovieClip [grenadier] Frame 209
ball.ball.head.gotoAndPlay(2);
ball.ball.body.gotoAndPlay(2);
ball.ball.hand_l.gotoAndPlay(2);
ball.ball.hand_r.gotoAndPlay(2);
ball.ball.foot_l.gotoAndPlay(2);
ball.ball.foot_r.gotoAndPlay(2);
Symbol 765 MovieClip [grenadier] Frame 220
gotoframe = "lying";
Symbol 765 MovieClip [grenadier] Frame 224
gotoframe = "hit_strong_wait";
Symbol 765 MovieClip [grenadier] Frame 230
_root.die(this);
dieson("explosion2");
Symbol 765 MovieClip [grenadier] Frame 232
for (a in _root.sprites) {
if ((_root.sprites[a] != this) && (_root.sprites[a].hitzone.hitTest(bangzone))) {
_root.sprites[a].hit(this, bangzone, 0.2 * (_root.sprites[a]._x - _x), -30 + (Math.abs(_root.sprites[a]._x - _x) * 0.02), 10, 5, 1);
}
}
for (a in _root.decor) {
if (_root.decor[a].hitzone.hitTest(bangzone)) {
_root.decor[a].hit(this, bangzone, 0.2 * (_root.decor[a]._x - _x), -30 + (Math.abs(_root.decor[a]._x - _x) * 0.05), 50, 0, 1);
}
}
Symbol 765 MovieClip [grenadier] Frame 241
event_die();
Symbol 765 MovieClip [grenadier] Frame 260
son.stop();
delete son;
removeMovieClip(this);
stop();
_visible = 0;
Symbol 769 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 770 MovieClip Frame 1
stop();
Symbol 770 MovieClip Frame 2
play();
Symbol 774 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 775 MovieClip Frame 1
stop();
Symbol 775 MovieClip Frame 2
play();
Symbol 781 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 782 MovieClip Frame 1
stop();
Symbol 782 MovieClip Frame 2
play();
Symbol 788 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
play();
Symbol 797 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 2
play();
Symbol 802 MovieClip Frame 1
_visible = 0;
Symbol 803 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 803 MovieClip Frame 2
with (_parent) {
if (decor.hitTest((game._x + _x) + ((wallsight * xspeed) / Math.abs(xspeed)), (_root.game._y + _y) - 10, 1)) {
xspeedmem = xspeedmem * -1;
xspeed = xspeed * -1;
setdirection(-direction);
}
}
Symbol 803 MovieClip Frame 10
gotoAndPlay (2);
Symbol 804 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 804 MovieClip Frame 2
_parent.gotoAndPlay(frame);
Symbol 804 MovieClip Frame 3
gotoAndPlay (2);
Symbol 805 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 805 MovieClip Frame 2
_parent.gotoAndStop(frame);
Symbol 805 MovieClip Frame 3
gotoAndPlay (2);
Symbol 806 MovieClip Frame 1
stop();
Instance of Symbol 805 MovieClip in Symbol 806 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 807 MovieClip Frame 1
stop();
Instance of Symbol 805 MovieClip in Symbol 807 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 808 MovieClip Frame 1
stop();
Instance of Symbol 805 MovieClip in Symbol 808 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 3
_parent.setson();
_parent.shoot2();
Instance of Symbol 805 MovieClip in Symbol 810 MovieClip Frame 15
onClipEvent (load) {
frame = 1;
}
Symbol 811 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 811 MovieClip Frame 2
_parent.testzone.gotoAndPlay(1);
if (_parent.testzone.hitTest(_parent.ennemy.hitzone)) {
if (Math.abs(_parent.rotcible - _parent.gun._rotation) < 6) {
_parent.shoot();
} else {
gotoAndPlay (25);
}
} else {
_parent.gotoAndPlay("shoot_end");
}
Symbol 811 MovieClip Frame 31
gotoAndPlay (2);
Symbol 812 MovieClip [soldier] Frame 1
function setdirection(dir) {
direction = dir;
_xscale = (direction * xscale_orig);
xspeed = walkspeed * direction;
}
function spawn() {
_visible = 1;
gotoAndPlay (150);
}
function desactivate() {
_visible = 0;
yaccel = 0;
yspeed = 0;
gotoAndStop (2);
}
function activate() {
_visible = 1;
yaccel = yaccelinit;
gotoAndPlay (3);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = this;
var _local2 = powerful;
if ((immunetotank && (projectile == _root.tank.bangzone)) || (_currentframe >= 338)) {
} else {
hitter = attacker;
paces = 0;
if (dashsteps <= 1) {
dashsteps = 0;
}
var _local3 = damagebase + int(Math.random() * damagerand);
life = life - _local3;
_root.shake_hit((_local3 / 5) + 4);
if (projectile == _root.tank.bangzone) {
immunetotank = 1;
}
if ((stronghit || ((standratio < Math.random()) && (!lying))) || (life <= 0)) {
_local2 = 1;
}
if (_local2) {
yaccel = yaccel_orig;
xspeed = rvolx;
yspeed = rvoly;
} else if (yaccel) {
xspeed = rvolx / weight;
yspeed = rvoly / weight;
} else {
xspeed = 0.0001;
yspeed = 0;
}
attackdir = (attacker._x - _x) * direction;
if (lying) {
if (yspeed > -12) {
yspeed = -12;
}
_parent.badang(_local1, 0, midadjust);
hitframe = "hit_rew_strong_mid";
} else if (projectile.hitTest(hitzone.up) && (!decor.hitTest((game._x + _x) + ((20 * xspeed) / Math.abs(xspeed)), (game._y + _y) - 10, 1))) {
_parent.badang(_local1, 0, -midadjust);
if (_local2) {
yaccel = yaccel_orig;
if (depthswapping) {
_local1.swapDepths(_local1.getDepth() + 2000);
}
if (yspeed > -14) {
yspeed = -14;
}
if (attackdir <= 0) {
hitframe = "hit_fwd_strong";
} else {
hitframe = "hit_rew_strong";
}
} else if (attackdir <= 0) {
hitframe = "hit_fwd_up";
} else {
hitframe = "hit_rew_up";
}
} else {
_parent.badang(_local1);
if (_local2) {
yaccel = yaccel_orig;
if (depthswapping) {
_local1.swapDepths(_local1.getDepth() + 2000);
}
if (yspeed > -14) {
yspeed = -14;
}
if (attackdir <= 0) {
hitframe = "hit_rew_strong";
} else {
hitframe = "hit_fwd_strong";
}
} else if (attackdir <= 0) {
hitframe = "hit_fwd_down";
} else {
hitframe = "hit_rew_down";
}
}
stronghit = 0;
move_y();
if (_local2) {
son.attachSound("stronghit");
setson(1.5);
} else {
son.attachSound("hit");
setson();
}
son.start();
gotoAndPlay (145);
if (Math.abs(xspeed) > 20) {
xspeed = (20 * xspeed) / Math.abs(xspeed);
}
}
gun.arm.gotoAndPlay(2);
foot_r.gotoAndPlay(2);
foot_l.gotoAndPlay(2);
arm_r.gotoAndPlay(2);
if (_currentframe == 121) {
arm_l.arm.gotoAndPlay(2);
head.head.gotoAndPlay(2);
body.body.gotoAndPlay(2);
} else {
arm_l.gotoAndPlay(2);
body.gotoAndPlay(2);
head.gotoAndPlay(2);
}
}
function shoot() {
gun.gotoAndPlay("shoot");
body.gotoAndPlay("shoot");
head.gotoAndPlay("shoot");
arm_l.gotoAndPlay("shoot");
}
function shoot2() {
var _local1 = _parent;
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((gun._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _local1._y;
shot._rotation = ((gun._rotation + 90) + int(-3 * Math.random())) * direction;
_root.lastshot_owner = this;
_local1._parent.shoottime = 0;
game.n_raise();
}
function move() {
if (!decor.hitTest((game._x + _x) + ((20 * xspeed) / Math.abs(xspeed)), (game._y + _y) - 3, 1)) {
_x = (_x + xspeed);
}
}
function move_slide() {
move();
xspeed = xspeed / friction;
}
function move_y() {
if ((!decor.hitTest((game._x + _x) + xspeed, (game._y + _y) + middle, 1)) || (yspeed > 0)) {
_y = (_y + yspeed);
} else {
yspeed = 0;
}
}
function move_rvol() {
_x = (_x + xspeed);
if (decor.hitTest((game._x + _x) + ((20 * xspeed) / Math.abs(xspeed)), (game._y + _y) - 3, 1)) {
xspeed = xspeed * -0.4;
}
if (decor.hitTest(game._x + _x, (game._y + _y) + 5, 1)) {
xspeed = xspeed / friction;
}
}
function track() {
ciblex = direction * (cible._x - _x);
cibley = (cible._y + cible.middle) - (_y + middle);
if ((ciblex + cibley) > 50) {
if (cibley >= 0) {
rotcible = 90 - (Math.atan(ciblex / cibley) * 57.3);
if (rotcible > 35) {
rotcible = 35;
}
} else {
rotcible = -90 - (Math.atan(ciblex / cibley) * 57.3);
}
}
rotspeed = (rotcible - gun._rotation) / 6;
gun._rotation = gun._rotation + rotspeed;
if (gun._rotation < -90) {
gun._rotation = -90;
}
xcible = gunxorig + (gun._rotation / 10);
ycible = gunyorig - Math.abs(gun._rotation / 15);
gun._x = gun._x + ((xcible - gun._x) / 2);
gun._y = gun._y + ((ycible - gun._y) / 2);
body._rotation = bodyrot + (gun._rotation / 20);
body._x = bodyxorig + (body._rotation / 12);
body._y = bodyyorig - Math.abs(body._rotation / 12);
head._rotation = head._rotation + (((rotcible / 3) - head._rotation) / 4);
head._x = headxorig + (head._rotation / 5);
head._y = headyorig - Math.abs(head._rotation / 5);
arm_l._rotation = gun._rotation;
arm_l._x = (armxorig + (gun._x - gunxorig)) + (gun._rotation / 7);
arm_l._y = (armyorig + (gun._y - gunyorig)) + (gun._rotation / 3);
arm_l._xscale = 100 - (gun._rotation / 2);
}
function landcheck() {
if (decor.hitTest(game._x + _x, (game._y + _y) + (yspeed * 2), 1)) {
gotoAndPlay(landframe);
}
}
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function onEnterFrame() {
if ((yspeed < 0) || (!decor.hitTest(game._x + _x, game._y + _y, 1))) {
move_y();
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
if (decor.hitTest(_x + game._x, (_y + game._y) - 60, 1) && (decor.hitTest(_x + game._x, (_y + game._y) - 40, 1))) {
gotoAndPlay (338);
} else {
while (decor.hitTest(_x + game._x, (_y + game._y) - 3, 1)) {
_y = (_y - 3);
}
}
}
game = _root.game;
decor = _root.decor;
ennemy = _root.hero;
shots = _parent._parent.soldiershots;
cible = ennemy;
xspeed = 0;
yspeed = 0;
yaccel_orig = 3;
yaccel = 3;
life = 6;
middle = (-_height) / 2;
midadjust = _height / 4;
bangyfactor = 40;
walkspeed = 3;
friction = 1.4;
wallsight = 50;
_xscale = Math.abs(_xscale);
xscale_orig = _xscale;
score = 0;
score = 100;
standratio = 0.8;
mobile = 1;
dirchanging = 1;
shooting = 1;
solid = 1;
active = 1;
weight = 2;
immuneto_badshots = 1;
setdirection(1);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
init();
delete init;
Symbol 812 MovieClip [soldier] Frame 3
lying = 0;
Symbol 812 MovieClip [soldier] Frame 4
if (dashsteps) {
gotoframe = "dash";
} else if (paces) {
gotoframe = "walk";
} else if ((shooting && (testzone.hitTest(ennemy.hitzone))) && (!ennemy.hidden)) {
gotoframe = "shoot_st";
} else if ((backzone.hitTest(ennemy.hitzone) && (!ennemy.hidden)) && (dirchanging >= 0)) {
setdirection(-direction);
gotoframe = "stand";
} else if ((mobile == 1) && (Math.random() < 0.5)) {
gotoframe = "walk";
} else if ((dirchanging == 1) && (Math.random() < 0.4)) {
setdirection(-direction);
gotoframe = _currentframe;
} else {
gotoframe = _currentframe;
}
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 4
/* no clip actions */
Symbol 812 MovieClip [soldier] Frame 30
gotoframe = "stand_loop";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 30
/* no clip actions */
Symbol 812 MovieClip [soldier] Frame 40
xspeed = walkspeed * direction;
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 40
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 812 MovieClip [soldier] Frame 55
if (paces) {
paces--;
}
if (!mobile) {
gotoframe = "walk_end";
} else if ((!paces) && (testzone.hitTest(ennemy.hitzone) || (Math.random() < 0.2))) {
gotoframe = "walk_end";
} else {
gotoframe = "walk_loop";
}
Symbol 812 MovieClip [soldier] Frame 62
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 62
/* no clip actions */
Instance of Symbol 804 MovieClip in Symbol 812 MovieClip [soldier] Frame 82
onClipEvent (load) {
frame = "walkback_loop";
}
Symbol 812 MovieClip [soldier] Frame 87
xspeed = 10 * direction;
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 87
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 812 MovieClip [soldier] Frame 90
if (dashsteps > 0) {
dashsteps--;
}
Symbol 812 MovieClip [soldier] Frame 93
if (dashsteps > 0) {
dashsteps--;
}
if (dashsteps) {
gotoframe = _currentframe;
} else {
gotoframe = "dash_end";
}
Symbol 812 MovieClip [soldier] Frame 96
if (dashsteps) {
gotoframe = "dash_loop";
} else {
gotoframe = "dash_end";
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 102
onClipEvent (load) {
_parent.move_slide();
}
onClipEvent (enterFrame) {
_parent.move_slide();
}
Symbol 812 MovieClip [soldier] Frame 109
gotoframe = "stand";
Symbol 812 MovieClip [soldier] Frame 119
gotoframe = "shoot_pos";
Instance of Symbol 647 MovieClip in Symbol 812 MovieClip [soldier] Frame 119
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 121
onClipEvent (load) {
_parent.gunxorig = _parent.gun._x;
_parent.gunyorig = _parent.gun._y;
_parent.bodyrot = _parent.body._rotation;
_parent.bodyxorig = _parent.body._x;
_parent.bodyyorig = _parent.body._y;
_parent.headxorig = _parent.head._x;
_parent.headyorig = _parent.head._y;
_parent.armxorig = _parent.arm_l._x;
_parent.armyorig = _parent.arm_l._y;
_parent.track();
}
onClipEvent (enterFrame) {
_parent.track();
}
Symbol 812 MovieClip [soldier] Frame 139
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 139
/* no clip actions */
Symbol 812 MovieClip [soldier] Frame 145
gotoAndPlay(hitframe);
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 151
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 812 MovieClip [soldier] Frame 165
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 165
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 171
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 812 MovieClip [soldier] Frame 183
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 183
/* no clip actions */
Symbol 812 MovieClip [soldier] Frame 187
lying = 1;
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 187
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 812 MovieClip [soldier] Frame 196
landframe = "hit_fwd_strong_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 196
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Instance of Symbol 593 MovieClip in Symbol 812 MovieClip [soldier] Frame 201
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 205
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 812 MovieClip [soldier] Frame 207
lying = 1;
Symbol 812 MovieClip [soldier] Frame 211
landframe = "hit_fwd_strong_land";
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 211
onClipEvent (load) {
_parent.move_rvol();
_parent.landcheck();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
_parent.landcheck();
}
Instance of Symbol 593 MovieClip in Symbol 812 MovieClip [soldier] Frame 216
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 217
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 812 MovieClip [soldier] Frame 219
if ((life <= 0) || (fragile)) {
gotoframe = "die";
} else {
gotoframe = _currentframe;
}
Symbol 812 MovieClip [soldier] Frame 238
gotoframe = "releve";
Symbol 812 MovieClip [soldier] Frame 247
gotoframe = "hit_fwd_strong_mid";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 247
/* no clip actions */
Symbol 812 MovieClip [soldier] Frame 275
lying = 0;
Symbol 812 MovieClip [soldier] Frame 285
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 285
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 292
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 812 MovieClip [soldier] Frame 304
setdirection(-direction);
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 304
/* no clip actions */
Instance of Symbol 287 MovieClip "yarr" in Symbol 812 MovieClip [soldier] Frame 313
onClipEvent (load) {
_parent.move_rvol();
}
onClipEvent (enterFrame) {
_parent.move_rvol();
}
Symbol 812 MovieClip [soldier] Frame 325
setdirection(-direction);
gotoframe = "stand";
Instance of Symbol 484 MovieClip in Symbol 812 MovieClip [soldier] Frame 325
/* no clip actions */
Symbol 812 MovieClip [soldier] Frame 336
die();
gotoAndPlay (339);
Symbol 812 MovieClip [soldier] Frame 338
_root.die(this);
Symbol 812 MovieClip [soldier] Frame 339
dieson("explosion2");
Symbol 812 MovieClip [soldier] Frame 353
event_die();
Symbol 812 MovieClip [soldier] Frame 367
son.stop();
delete son;
removeMovieClip(this);
_visible = 0;
stop();
Symbol 814 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?Alias3", "_blank");
}
Symbol 818 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 50
stop();
_parent.play();
Symbol 861 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 886 Button
on (release) {
nextFrame();
}
Symbol 889 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?Alias3", "_blank");
}
Symbol 905 Button
on (release) {
_root.setkeys(1);
prevFrame();
}
Symbol 910 MovieClip Frame 1
gotoAndStop(_root.keys);
Symbol 911 Button
on (release) {
prevFrame();
}
Symbol 913 MovieClip Frame 1
stop();
Symbol 914 MovieClip Frame 1
stop();
Symbol 914 MovieClip Frame 8
stop();
Symbol 914 MovieClip Frame 17
gotoAndStop (1);
Symbol 921 Button
on (release) {
_root.go();
}
Symbol 922 MovieClip Frame 1
_visible = 0;
gotoAndStop (2);
Symbol 922 MovieClip Frame 2
_visible = 1;
Symbol 922 MovieClip Frame 22
stop();
Symbol 930 Button
on (release) {
_root.instruct();
}
Symbol 931 MovieClip Frame 1
_visible = 0;
gotoAndStop (2);
Symbol 931 MovieClip Frame 2
_visible = 1;
Symbol 931 MovieClip Frame 22
stop();
Symbol 933 Button
on (release) {
if ((_root.transition._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.difficulty = 1;
_root.transition.gotoAndPlay("side");
}
}
Symbol 934 Button
on (release) {
if ((_root.transition._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.difficulty = 2;
_root.transition.gotoAndPlay("side");
}
}
Symbol 935 Button
on (release) {
if ((_root.transition._currentframe == 1) && (_root.instructions._currentframe == 1)) {
_root.difficulty = 3;
_root.transition.gotoAndPlay("side");
}
}
Symbol 941 MovieClip Frame 1
gotoAndStop (2);
Symbol 941 MovieClip Frame 10
stop();
Symbol 941 MovieClip Frame 17
gotoAndStop (2);
Symbol 948 MovieClip Frame 2
gotoAndStop (1);
Symbol 948 MovieClip Frame 14
_root.event_transition();
Symbol 948 MovieClip Frame 25
if (_currentframe == 25) {
_root.event_transitionend();
gotoAndStop (1);
}
Symbol 948 MovieClip Frame 39
_root.event_transition();
Symbol 948 MovieClip Frame 50
if (_currentframe == 50) {
_root.event_transitionend();
gotoAndStop (1);
}
Symbol 948 MovieClip Frame 64
_root.event_transition();
Symbol 948 MovieClip Frame 75
if (_currentframe == 75) {
_root.event_transitionend();
gotoAndStop (1);
}
Symbol 973 Button
on (release) {
nextFrame();
}
Symbol 977 Button
on (release) {
gotoAndPlay (175);
}
Symbol 982 Button
on (release) {
if (transition._currentframe == 1) {
stopAllSounds();
event_transition = function () {
gotoAndStop (213);
};
transition.gotoAndPlay("side");
}
}
Symbol 983 Button
on (release) {
prevFrame();
}
Symbol 985 MovieClip Frame 2
stop();
Symbol 1000 MovieClip Frame 1
stop();
Symbol 1010 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1014 MovieClip Frame 15
if (_currentframe == 15) {
gotoAndPlay (1);
}
Symbol 1014 MovieClip Frame 20
_root.colorize_change(50, 1);
Symbol 1014 MovieClip Frame 22
_root.colorize_change(-50, 1);
Symbol 1014 MovieClip Frame 50
_parent._parent.helicedead = 1;
_parent._parent.status = "damaged";
stop();
Symbol 1017 MovieClip Frame 1
_visible = 0;
Symbol 1017 MovieClip Frame 2
gotoAndPlay(int(10 * Math.random()) + 1);
Symbol 1017 MovieClip Frame 15
_parent._parent.attachMovie("smoke", "smoke" + _root.sprites.n, _root.sprites.n);
var smoke = _parent._parent["smoke" + _root.sprites.n];
smoke._x = _x + _parent._x;
smoke._y = _y + _parent._y;
smoke._xscale = _xscale;
smoke._yscale = _yscale;
_root.sprites.n_raise();
gotoAndPlay(3 + int(7 * Math.random()));
Symbol 1018 MovieClip Frame 1
stop();
Instance of Symbol 1017 MovieClip "smoke_2" in Symbol 1018 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1017 MovieClip "smoke_1" in Symbol 1018 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1017 MovieClip "smoke_3" in Symbol 1018 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1017 MovieClip "smoke_5" in Symbol 1018 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1017 MovieClip "smoke_4" in Symbol 1018 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Symbol 1021 MovieClip Frame 1
gotoAndStop (2);
Symbol 1021 MovieClip Frame 2
_visible = 0;
Symbol 1021 MovieClip Frame 3
_visible = 1;
Symbol 1021 MovieClip Frame 103
_root.shake(50, 5, 2);
Symbol 1021 MovieClip Frame 126
removeMovieClip(this);
Symbol 1044 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 1044 MovieClip Frame 6
if (_currentframe == 6) {
gotoAndStop (1);
}
Symbol 1045 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1045 MovieClip Frame 6
event();
Symbol 1045 MovieClip Frame 7
gotoAndPlay (2);
Symbol 1045 MovieClip Frame 20
stop();
Symbol 1047 MovieClip Frame 1
_visible = 0;
Instance of Symbol 1045 MovieClip in Symbol 1048 MovieClip Frame 1
onClipEvent (load) {
function event() {
if (_parent._parent.xspeed < -2) {
_parent.gotoAndPlay(2);
}
}
}
Symbol 1048 MovieClip Frame 18
drop();
Symbol 1048 MovieClip Frame 24
if (_parent.xspeed < -4) {
frame = "drop_loop";
} else {
frame = "close";
}
Instance of Symbol 804 MovieClip in Symbol 1048 MovieClip Frame 24
onClipEvent (load) {
frame = _parent.frame;
}
Instance of Symbol 805 MovieClip in Symbol 1048 MovieClip Frame 41
onClipEvent (load) {
frame = 1;
}
Symbol 1048 MovieClip Frame 64
_visible = 0;
stop();
Instance of Symbol 804 MovieClip in Symbol 1049 MovieClip Frame 5
onClipEvent (load) {
frame = 1;
}
Symbol 1050 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 1050 MovieClip Frame 2
_parent.setson(1, 0, _x, _y);
if (_parent.helicelife <= 0) {
_root.son.attachSound("explosion2.as");
_root.startson(_parent.son, 1);
helice.gotoAndPlay(20);
_root.shake_die();
_parent.hitzone_helice.gotoAndStop(2);
_parent.dogtrap.gotoAndPlay(50);
_parent.smoke_1.play();
_parent.smoke_2.play();
_parent.smoke_3.play();
_parent.smoke_4.play();
_parent.smoke_5.play();
} else {
_parent.son.attachSound("hit");
_parent.son.start();
}
Symbol 1050 MovieClip Frame 7
if (_currentframe == 7) {
gotoAndStop (1);
}
Instance of Symbol 805 MovieClip in Symbol 1053 MovieClip Frame 12
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 1053 MovieClip "anim" in Symbol 1054 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = ((-_parent._parent.gun.anim.xdist) / 20);
}
Instance of Symbol 805 MovieClip in Symbol 1061 MovieClip Frame 12
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 1061 MovieClip "anim" in Symbol 1062 MovieClip Frame 1
onClipEvent (load) {
xorig = _x;
}
onClipEvent (enterFrame) {
_x = (xorig + (_parent._parent.gun.anim.xdist / 50));
_rotation = ((-_parent._parent.gun.anim.xdist) / 20);
}
Symbol 1066 MovieClip Frame 1
_visible = 0;
Symbol 1067 MovieClip Frame 3
duplicateMovieClip (_root.game.soldiershots, "shot" + _root.game.n, _root.game.n);
var cur_shot = _root.game["shot" + _root.game.n];
cur_shot._x = (((shootzone._x + _x) + _parent._x) + _parent._parent._x) + _parent._parent._parent._x;
cur_shot._y = (((shootzone._y + _y) + _parent._y) + _parent._parent._y) + _parent._parent._parent._y;
cur_shot._rotation = _rotation + 180;
_root.lastshot_owner = _parent._parent._parent;
_root.lastshot_start = -75;
_root.game.n_raise();
Instance of Symbol 805 MovieClip in Symbol 1067 MovieClip Frame 12
onClipEvent (load) {
frame = 1;
}
Instance of Symbol 1067 MovieClip "anim" in Symbol 1068 MovieClip Frame 1
onClipEvent (load) {
ennemy = _parent._parent._parent.ennemy;
}
onClipEvent (enterFrame) {
xdist = ennemy._x - ((_parent._parent._parent._x + _parent._parent._x) + _parent._x);
ydist = (ennemy._y + ennemy.middle) - ((_parent._parent._parent._y + _parent._parent._x) + _parent._y);
rotcible = ((-Math.atan(xdist / ydist)) * 180) / Math.PI;
_rotation = (_rotation + ((rotcible - _rotation) / 12));
}
Symbol 1073 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1073 MovieClip Frame 2
if (_parent.gotook == 1) {
_parent.gotoAndPlay(frame);
} else if (_parent.gotook == 2) {
_parent.gotoAndPlay(frame2);
} else if (_parent.gotook == 3) {
_parent.gotoAndPlay(frame3);
}
Symbol 1073 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 1045 MovieClip in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
function event() {
if ((_root.hero.life > 0) && (Math.abs(_parent.gun.anim.xdist) < 350)) {
_parent.shoot();
}
}
}
Symbol 1078 MovieClip Frame 2
_parent.son.attachSound("hit");
_parent.setson(1, 0, _x, _y);
_parent.son.start();
Symbol 1078 MovieClip Frame 5
gotook = 0;
if (_parent.bonomlife <= 0) {
_root.scorechange(_parent, _x, _y);
_root.hero.misc.gotoAndPlay("life");
_root.hero.lifechange(10 - _root.difficulty);
gotook = 1;
}
Instance of Symbol 1073 MovieClip in Symbol 1078 MovieClip Frame 5
onClipEvent (load) {
frame = "explode";
}
Instance of Symbol 805 MovieClip in Symbol 1078 MovieClip Frame 9
onClipEvent (load) {
frame = 1;
}
Symbol 1078 MovieClip Frame 15
_parent.setson();
_root.son.attachSound("explosion2.as");
_root.startson(_parent.son, 1);
_root.shake_die();
_root.colorize_change(30, 1);
Symbol 1078 MovieClip Frame 17
_root.colorize_change(-30, 1);
Symbol 1078 MovieClip Frame 28
_visible = 0;
_parent.status = "damaged";
_parent.hitzone_bonom.gotoAndStop(2);
stop();
Symbol 1079 MovieClip Frame 1
_visible = 0;
Symbol 1079 MovieClip Frame 2
gotoAndPlay(int(10 * Math.random()) + 1);
Symbol 1079 MovieClip Frame 30
_root.bg.attachMovie("smoke", "smoke" + _root.sprites.n, _root.sprites.n - 16000);
var smoke = _root.bg["smoke" + _root.sprites.n];
smoke._x = _x + _parent._x;
smoke._y = _y + _parent._y;
smoke._xscale = _xscale;
smoke._yscale = _yscale;
_root.sprites.n_raise();
gotoAndPlay(3 + int(10 * Math.random()));
Symbol 1080 MovieClip Frame 1
smoke_1.stop();
smoke_2.stop();
smoke_3.stop();
smoke_4.stop();
smoke_5.stop();
stop();
Instance of Symbol 1048 MovieClip "dogtrap" in Symbol 1080 MovieClip Frame 1
onClipEvent (load) {
function drop() {
var _local1 = _root;
var _local2 = _parent;
if ((!_local2.helicedead) && (!_local1.bg.hitTest(((_local1.game._x + _local2._x) + _x) - 20, ((_local1.game._y + _local2._y) + _y) + 30, 1))) {
_local1.sprites.attachMovie("gbomb", "gbomb" + _local1.sprites.n, _local1.sprites.n);
cur_gbomb = _local1.sprites["gbomb" + _local1.sprites.n];
cur_gbomb._x = (_local2._x + _x) + dropzone._x;
cur_gbomb._y = (_local2._y + _y) + dropzone._y;
cur_gbomb._rotation = 10;
cur_gbomb.xspeed = -6;
cur_gbomb.yspeed = 4;
cur_gbomb.yaccel = 3;
_local1.sprites.n_raise();
}
}
}
Instance of Symbol 1078 MovieClip "bonom" in Symbol 1080 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
var _local1 = _root;
var _local2 = _parent;
if ((((_local2.status != "damaged") && ((_y + _local2._y) < _local1.hero._y)) && (!_local1.bg.hitTest(((_local1.game._x + _local2._x) + _x) + 80, (_local1.game._y + _local2._y) + _y, 1))) && (!_local1.bg.hitTest(((_local1.game._x + _local2._x) + _x) - 80, (_local1.game._y + _local2._y) + _y, 1))) {
head.anim.gotoAndPlay("shoot");
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
}
}
}
Instance of Symbol 1079 MovieClip "smoke_2" in Symbol 1080 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1079 MovieClip "smoke_1" in Symbol 1080 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1079 MovieClip "smoke_3" in Symbol 1080 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1079 MovieClip "smoke_5" in Symbol 1080 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1079 MovieClip "smoke_4" in Symbol 1080 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Symbol 1092 MovieClip Frame 1
stop();
Symbol 1092 MovieClip Frame 6
if (_currentframe == 6) {
gotoAndStop (1);
}
Symbol 1099 MovieClip Frame 1
stop();
Symbol 1099 MovieClip Frame 17
_parent.gotoAndPlay(10);
Symbol 1102 MovieClip Frame 15
stop();
_visible = 0;
Symbol 1103 MovieClip Frame 1
stop();
Symbol 1103 MovieClip Frame 7
if (_currentframe == 7) {
gotoAndStop (1);
}
Symbol 1103 MovieClip Frame 12
_root.sprites.doorend();
Symbol 1103 MovieClip Frame 13
_root.sprites.doorend2();
Symbol 1103 MovieClip Frame 16
removeMovieClip(_root.decor.zone);
Symbol 1103 MovieClip Frame 30
_root.sprites.doorend3();
stop();
Symbol 1105 MovieClip Frame 1
stop();
Instance of Symbol 363 MovieClip "indicator_tank" in Symbol 1105 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndPlay("on");
}
Instance of Symbol 1080 MovieClip "boss_helico" in Symbol 1105 MovieClip Frame 6
onClipEvent (load) {
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function bigshake() {
_root.shake(35, 10, 2, 0);
clearInterval(interval_bigshake);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = projectile;
damage = damagebase + int(damagerand * Math.random());
if ((!_local1.hitTest(_parent.specialbg1)) && (!_local1.hitTest(_parent.specialbg2))) {
if (_local1.hitTest(hitzone_bonom) && (bonomlife > 0)) {
sprites.badang(this, bonom._x, bonom._y);
bonomlife = bonomlife - damage;
bonom.gotoAndPlay(2);
}
if (_local1.hitTest(hitzone_helice) && (helicelife > 0)) {
helicelife = helicelife - damage;
helice.gotoAndPlay(2);
dogtrap.trap.gotoAndPlay(2);
}
}
}
sprites = _parent._parent.sprites;
ennemy = sprites.hero;
hitzone_bonom = sprites.bonomzone;
hitzone_helice = sprites.helicezone;
yspeed = 5;
xspeed = 10;
score = 1500;
x_orig = _x;
y_orig = _y;
_x = (_x + 300);
_y = (_y - 200);
xspeed = 0;
yspeed = 0;
status = "start";
dead = 0;
flyspeed = -5;
bonomlife = 25 + (1 * _root.difficulty);
helicelife = 20 + (2 * _root.difficulty);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitzone_bonom.hitson = 1;
hitzone_helice.hitson = 1;
_root.sprites.helicodead = 0;
}
onClipEvent (enterFrame) {
if ((status == "damaged") && (helicedead)) {
xspeed = xspeed - 0.3;
yspeed = yspeed + ((-yspeed) / 20);
if (_x < (_root.hero._x - 250)) {
xspeed = 0;
yspeed = 0;
if (helicelife <= 0) {
_root.helicrash.gotoAndPlay(3);
}
hitzone_bonom.gotoAndStop(2);
hitzone_helice.gotoAndStop(2);
_root.game.ybasechange(_root.game.ybasemem, 20);
status = "dead";
_root.sprites.helicodead = 1;
gotoAndStop (2);
}
} else if (status == "start") {
yspeed = yspeed + ((y_orig - _y) / 1000);
xspeed = xspeed + ((x_orig - _x) / 1000);
if (_y > y_orig) {
status = "ready";
}
} else if ((status == "ready") || (!helicedead)) {
yspeed = yspeed + ((y_orig - _y) / 20);
xspeed = xspeed + ((x_orig - _x) / 600);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
hitzone_bonom._x = _x;
hitzone_bonom._y = _y;
hitzone_helice._x = _x;
hitzone_helice._y = _y;
}
Instance of Symbol 1103 MovieClip "bigdoor" in Symbol 1105 MovieClip Frame 9
onClipEvent (load) {
function hit() {
gotoAndPlay (2);
door.outline.gotoAndPlay(2);
door.nextFrame();
}
_root.decor.attachMovie("zone_square", "zone", 12000);
_root.decor.zone._x = _x - 30;
_root.decor.zone._y = _y;
}
Symbol 1108 MovieClip Frame 1
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (life > 0) {
if (guardian.life <= 0) {
life = life - (damagebase + int(damagerand * Math.random()));
}
gotoAndPlay (3);
}
}
life = 20;
Symbol 1108 MovieClip Frame 2
stop();
Symbol 1108 MovieClip Frame 10
if (life <= 0) {
event_die();
if (alt_explosion) {
gotoframe = "explode2";
} else {
gotoframe = "explode";
}
} else {
gotoframe = 11;
}
Symbol 1108 MovieClip Frame 11
gotoframe = 2;
Symbol 1108 MovieClip Frame 45
removeMovieClip(this);
_visible = 0;
stop();
Symbol 1108 MovieClip Frame 71
gotoAndStop (45);
Instance of Symbol 805 MovieClip in Symbol 1111 MovieClip Frame 42
onClipEvent (load) {
frame = 1;
}
Symbol 1115 MovieClip Frame 1
for (var a in _root.decor.ladders) {
if (!_root.decor.ladders[a]._currentframe) {
_root.decor.ladders.splice(a, 1);
}
}
_root.decor.ladders.push(this);
stop();
Symbol 1119 MovieClip Frame 9
gotoAndPlay (1);
Symbol 1122 MovieClip Frame 6
for (a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone)) {
_root.sprites[a].hit(_parent, bangzone, -3, -20, 0, 0, 1);
}
}
Symbol 1122 MovieClip Frame 10
stop();
Symbol 1123 MovieClip Frame 1
stop();
Symbol 1123 MovieClip Frame 42
_visible = 0;
stop();
Symbol 1143 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = powerful;
if (_local1) {
if (_currentframe < 10) {
if (_local1 >= 2) {
gotoAndPlay (10);
} else {
gotoAndPlay (3);
}
} else if (_currentframe < 40) {
if (_local1 >= 2) {
gotoAndPlay (42);
} else {
gotoAndPlay (32);
}
} else if (_currentframe < 60) {
if (_local1 >= 2) {
gotoAndPlay (50);
} else {
gotoAndPlay (42);
}
}
}
}
hit_able = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
if (_currentframe == 1) {
stop();
}
Symbol 1143 MovieClip Frame 2
if (_currentframe == 2) {
stop();
}
Symbol 1143 MovieClip Frame 8
if (_currentframe == 7) {
gotoAndStop (2);
}
Symbol 1143 MovieClip Frame 16
event_lower();
Symbol 1143 MovieClip Frame 23
_root.shake(20, 6, 2, 0);
Symbol 1143 MovieClip Frame 31
if (_currentframe == 31) {
stop();
}
Symbol 1143 MovieClip Frame 37
if (_currentframe == 37) {
gotoAndStop (31);
}
Symbol 1143 MovieClip Frame 47
if (_currentframe == 47) {
gotoAndStop (40);
}
Symbol 1143 MovieClip Frame 50
setson(1.5);
son.attachSound("explosion1");
surson();
_root.shake(40, 6, 2, 0);
_root.sprites.attachMovie("explosion_cabane", "explocabane" + _root.sprites.n, _root.sprites.n);
cur_explocabane = _root.sprites["explocabane" + _root.sprites.n];
_root.sprites.n_raise();
cur_explocabane._x = _x;
cur_explocabane._y = _y + cabane._y;
cur_explocabane.gotoAndPlay(2);
Symbol 1143 MovieClip Frame 54
event_die();
_visible = 0;
stop();
Symbol 1145 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
if (!indestructible) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
}
if ((life <= 0) && (_currentframe == 1)) {
life = 0;
gotoAndPlay (10);
_visible = 0;
_local1.sprites.attachMovie("explosion_crate", "explosion" + _local1.sprites.n, _local1.sprites.n);
cur_explosion = _local1.sprites["explosion" + _local1.sprites.n];
cur_explosion._x = _x;
cur_explosion._y = _y;
cur_explosion._xscale = _xscale;
cur_explosion._yscale = _xscale;
cur_explosion.gotoAndPlay(2);
cur_explosion._visible = 1;
_local1.sprites.n_raise();
}
}
life = 5 + (5 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
ennemy = _parent._parent.sprites.hero;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
stop();
Symbol 1145 MovieClip Frame 10
setson();
son.attachSound("explosion1");
surson();
explode();
event_destroy();
Symbol 1145 MovieClip Frame 14
surprise._x = spritex;
surprise._y = spritey;
surprise.activate();
event_destroy2();
stop();
Symbol 1156 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1164 MovieClip Frame 8
if (_parent.life <= 0) {
gotoframe = 10;
} else {
gotoframe = 1;
}
Symbol 1164 MovieClip Frame 10
_root.sprites.attachMovie("explosion", "explosion" + _root.sprites.n, _root.sprites.n);
var cur_explosion = _root.sprites["explosion" + _root.sprites.n];
cur_explosion._x = _parent._x + _x;
cur_explosion._y = _parent._y + _y;
cur_explosion.gotoAndPlay(2);
_root.shake_die();
_root.sprites.n_raise();
_parent.son.attachSound("explosion1");
_parent.setson();
_parent.surson();
Symbol 1166 MovieClip Frame 1
_visible = 0;
Symbol 1167 MovieClip Frame 1
_visible = 0;
Symbol 1167 MovieClip Frame 2
if (hitTest(_root.hero.hitzone)) {
event();
}
Symbol 1167 MovieClip Frame 15
gotoAndPlay (2);
Instance of Symbol 1156 MovieClip "wheel4" in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.wheel4 = this;
}
Symbol 1174 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1175 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Instance of Symbol 1045 MovieClip in Symbol 1175 MovieClip Frame 1
onClipEvent (load) {
function event() {
if (_parent.cpu == 1) {
_parent.gotoAndPlay("shoot");
} else {
gotoAndPlay (11);
}
}
}
Instance of Symbol 1167 MovieClip "boardzone" in Symbol 1175 MovieClip Frame 1
onClipEvent (load) {
function event() {
_root.event_boardtank();
gotoAndStop (20);
}
}
Symbol 1175 MovieClip Frame 2
gotoframe = 1;
Symbol 1175 MovieClip Frame 6
if (cpu == 1) {
xspeed = 15;
} else if (cpu == 0) {
xspeed = xspeed + 75;
bangcheck();
_root.hero.xdecaldivider = 6;
_root.hero.xdecalcible = -150;
}
_root.sprites.attachMovie("tank_bullet", "bullet" + _root.sprites.n, _root.sprites.n);
var cur_bullet = _root.sprites["bullet" + _root.sprites.n];
cur_bullet._x = _x + shootzone_high._x;
cur_bullet._y = _y + shootzone_high._y;
cur_bullet.gotoAndStop(2);
_root.sprites.n_raise();
_root.sprites.attachMovie("tank_bullet", "bullet" + _root.sprites.n, _root.sprites.n);
var cur_bullet = _root.sprites["bullet" + _root.sprites.n];
cur_bullet._x = _x + shootzone_low._x;
cur_bullet._y = _y + shootzone_low._y;
cur_bullet.gotoAndStop(2);
_root.sprites.n_raise();
Symbol 1175 MovieClip Frame 9
if (cpu == 0) {
_root.hero.xdecalcible = 50;
_root.hero.xdecaldivider = 20;
}
Symbol 1175 MovieClip Frame 45
if (!cpu) {
gotoframe = 1;
} else {
gotoframe = _currentframe;
}
Symbol 1175 MovieClip Frame 121
gotoframe = 1;
Symbol 1175 MovieClip Frame 142
_root.event_tanktransformed();
Symbol 1175 MovieClip Frame 153
xspeed = xspeed - 30;
_root.hero.xdecaldivider = 6;
_root.hero.xdecalcible = 270;
_root.sprites.attachMovie("tank_bullet2", "bullet" + _root.sprites.n, _root.sprites.n);
var cur_bullet = _root.sprites["bullet" + _root.sprites.n];
cur_bullet._x = _x + shootzone._x;
cur_bullet._y = _y + shootzone._y;
cur_bullet.gotoAndStop(2);
_root.sprites.n_raise();
Symbol 1175 MovieClip Frame 156
_root.hero.xdecalcible = 220;
_root.hero.xdecaldivider = 20;
Symbol 1175 MovieClip Frame 170
gotoframe = 151;
Symbol 1181 MovieClip Frame 1
stop();
Symbol 1181 MovieClip Frame 6
_parent.gotoAndPlay(21);
Symbol 1190 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 1190 MovieClip Frame 7
if (_currentframe == 7) {
gotoAndStop (1);
}
Symbol 1190 MovieClip Frame 20
event_shatter();
Symbol 1190 MovieClip Frame 36
event_die();
Symbol 1190 MovieClip Frame 37
stop();
Symbol 1192 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
var _local2 = this;
killer = attacker;
if (killer == _local1.hero) {
score = int(1.5 * _xscale);
_local1.score = _local1.score + score;
_local1.showscore(_local2);
} else if (killer.killer == _local1.hero) {
killer = _local1.hero;
score = int(1.5 * _xscale) + killer.score;
_local1.score = _local1.score + score;
_local1.showscore(_local2);
}
_local1.shake(10, 3, 2, 0);
_local1.sprites.attachMovie("explosion_burn", "explosion" + _local1.sprites.n, _local1.sprites.n);
cur_explosion = _local1.sprites["explosion" + _local1.sprites.n];
cur_explosion.owner = _local2;
cur_explosion._x = _x;
cur_explosion._y = _y;
cur_explosion.gotoAndPlay(2);
_local1.sprites.n_raise();
gotoAndStop (10);
}
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
stop();
Symbol 1192 MovieClip Frame 10
setson();
_root.son.attachSound("explosion1");
_root.startson(son, 1);
removeMovieClip(this);
_visible = 0;
stop();
Symbol 1200 MovieClip Frame 1
_visible = 0;
Symbol 1200 MovieClip Frame 2
gotoAndPlay(int(10 * Math.random()) + 1);
Symbol 1200 MovieClip Frame 30
_root.sprites.attachMovie("smoke", "smoke" + _root.sprites.n, _root.sprites.n);
var smoke = _root.sprites["smoke" + _root.sprites.n];
smoke._x = _x + _parent._x;
smoke._y = _y + _parent._y;
smoke._xscale = _xscale;
smoke._yscale = _yscale;
_root.sprites.n_raise();
gotoAndPlay(3 + int(10 * Math.random()));
Symbol 1201 MovieClip Frame 1
smoke_1.stop();
smoke_2.stop();
smoke_3.stop();
smoke_4.stop();
smoke_5.stop();
stop();
Instance of Symbol 230 MovieClip "hitzone" in Symbol 1201 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1048 MovieClip "dogtrap" in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
function drop() {
var _local1 = _root;
_local1.sprites.attachMovie("gbomb", "gbomb" + _local1.sprites.n, _local1.sprites.n);
cur_gbomb = _local1.sprites["gbomb" + _local1.sprites.n];
cur_gbomb._x = (_parent._x + _x) + dropzone._x;
cur_gbomb._y = (_parent._y + _y) + dropzone._y;
cur_gbomb._rotation = 10;
cur_gbomb.xspeed = -6;
cur_gbomb.yspeed = 4;
cur_gbomb.yaccel = 3;
_local1.sprites.n_raise();
}
}
Instance of Symbol 1078 MovieClip "bonom" in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
head.anim.gotoAndPlay("shoot");
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
}
}
Instance of Symbol 1200 MovieClip "smoke_2" in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1200 MovieClip "smoke_1" in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1200 MovieClip "smoke_3" in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1200 MovieClip "smoke_5" in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Instance of Symbol 1200 MovieClip "smoke_4" in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
path_x = _parent._x + _x;
path_y = _parent._y + _y;
}
Symbol 1202 MovieClip Frame 1
ladders = new Array();
stop();
Instance of Symbol 1108 MovieClip in Symbol 1202 MovieClip Frame 1
onClipEvent (load) {
function event_die() {
if (_root.sprites.alarm.onn) {
_root.sprites.alarm.gotoAndPlay("explode");
}
}
alt_explosion = 1;
}
Instance of Symbol 1108 MovieClip in Symbol 1202 MovieClip Frame 2
onClipEvent (load) {
function event_die() {
_root.sprites.create_grenadier1();
}
}
Instance of Symbol 1143 MovieClip "cabin_1" in Symbol 1202 MovieClip Frame 3
onClipEvent (load) {
function event_die() {
var _local1 = this;
root.sprites.attach("bazooka", "bazooka", 1, _x + 45, _y + 300);
_root.sprites.cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.mobile = 0;
_local1.longranged = 1;
_local1.dirchanging = 0;
_local1.fixdir = -1;
};
}
}
Instance of Symbol 1143 MovieClip in Symbol 1202 MovieClip Frame 3
onClipEvent (load) {
function event_die() {
var _local1 = this;
_root.sprites.attach("bazooka", "bazooka", 1, _x, _y + 300);
_root.sprites.cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.mobile = 0;
_local1.longranged = 1;
_local1.dirchanging = 0;
_local1.fixdir = -1;
};
}
gotoAndStop (31);
}
Instance of Symbol 1108 MovieClip in Symbol 1202 MovieClip Frame 3
onClipEvent (load) {
alt_explosion = 1;
}
Instance of Symbol 1145 MovieClip "crate3" in Symbol 1202 MovieClip Frame 3
onClipEvent (load) {
indestructible = 1;
}
Instance of Symbol 1145 MovieClip "crate1" in Symbol 1202 MovieClip Frame 3
onClipEvent (load) {
indestructible = 1;
}
Instance of Symbol 1145 MovieClip "crate2" in Symbol 1202 MovieClip Frame 3
onClipEvent (load) {
indestructible = 1;
}
Instance of Symbol 135 MovieClip [zone_square] in Symbol 1202 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.hero._x < _x) {
_root.hero._x = _x;
}
}
Instance of Symbol 1175 MovieClip "tank" in Symbol 1202 MovieClip Frame 3
onClipEvent (load) {
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function event_transformed() {
_root.sprites.bazooka1.longranged = 1;
}
function bangcheck() {
var _local1 = _root;
var _local3 = this;
var _local2 = xspeed;
if (_local2 < 0) {
_local2 = 0;
}
for (a in _local1.sprites) {
if (((_local1.sprites[a] != _local1.hero) && (!_local1.sprites[a].notbashable)) && (bangzone.hitTest(_local1.sprites[a].hitzone))) {
_local1.sprites[a].hit(_local1.hero, bangzone, (2 * _local2) + 4, -10 - (5 * Math.random()), 100, 0, 1);
}
}
for (a in _local1.decor) {
if (bangzone.hitTest(_local1.decor[a].hitzone) && (_local1.decor[a] != _local3)) {
_local1.decor[a].hit(_local1.hero, bangzone, (2 * _local2) + 4, -10 - (5 * Math.random()), 100, 0, 1);
}
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (life > 0) {
life = life - (damagebase + int(damagerand * Math.random()));
hitzone.gotoAndPlay("hit");
}
}
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
_root.tank = this;
cpu = 1;
xbonus = 120;
x_orig = _x;
xspeed = 0;
life = 10;
friction = 1.5;
}
onClipEvent (enterFrame) {
if (xspeed > 0) {
bangcheck();
}
if (_root.decor.hitTest((_x + _root.game._x) - 109, (_y + _root.game._y) - 20, 1)) {
xspeed = Math.abs((xspeed = xspeed * 0.6));
}
if (_root.decor.hitTest((_x + _root.game._x) + xbonus, (_y + _root.game._y) - 20, 1)) {
xspeed = -Math.abs((xspeed = xspeed * 0.6));
}
_x = (_x + xspeed);
if (_root.hero.life > 0) {
if (!cpu) {
_root.hero._x = _x + 5;
} else if (_root.hero.feetzone.hitTest(feetzone)) {
_root.hero._x = _root.hero._x + xspeed;
}
}
wheels.wheel1._rotation = wheels.wheel1._rotation + (5 * xspeed);
wheels.wheel2._rotation = wheels.wheel2._rotation + (5 * xspeed);
wheels.wheel3._rotation = wheels.wheel3._rotation + (5 * xspeed);
wheel4._rotation = wheel4._rotation + (5 * xspeed);
_root.foreground.tank_cover._x = _x;
_root.foreground.tank_cover._y = _y;
xspeed = xspeed / friction;
if (cpu == 1) {
if (_x <= x_orig) {
xspeed = 0;
} else if (xspeed > -6) {
xspeed = xspeed - 0.2;
}
if (_root.hero._x > (_x + 50)) {
_root.hero._x = _x + 50;
}
} else if (cpu == 0) {
if ((_currentframe == 151) && (key.isDown(_root.hero.key_down))) {
gotoAndPlay (153);
}
if (Key.isDown(_root.hero.key_left)) {
if (_x > x_min) {
if (xspeed > -20) {
xspeed = xspeed - 2.2;
}
} else {
xspeed = 0;
}
} else if (Key.isDown(_root.hero.key_right)) {
if (xspeed < 20) {
xspeed = xspeed + 2.2;
}
}
}
}
Instance of Symbol 1143 MovieClip in Symbol 1202 MovieClip Frame 4
onClipEvent (load) {
function event_die() {
var _local1 = _root;
_local1.bg.attachMovie("trouillard", "trouillard", _local1.sprites.n);
_local1.bg.trouillard._x = _x;
_local1.bg.trouillard._y = _y + 325;
_local1.sprites.n_raise();
}
}
Instance of Symbol 1145 MovieClip in Symbol 1202 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 1190 MovieClip in Symbol 1202 MovieClip Frame 5
onClipEvent (load) {
function hit(owner, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (powerful) {
if (powerful >= 2) {
if ((slate._currentframe < 5) || (_root.sprites.helicodead)) {
slate.nextFrame();
}
}
if (_currentframe < 20) {
gotoAndPlay (2);
}
}
}
}
Instance of Symbol 1108 MovieClip in Symbol 1202 MovieClip Frame 5
onClipEvent (load) {
alt_explosion = 1;
}
Instance of Symbol 1192 MovieClip in Symbol 1202 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 1192 MovieClip in Symbol 1202 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 1145 MovieClip in Symbol 1202 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 1190 MovieClip in Symbol 1202 MovieClip Frame 5
onClipEvent (load) {
function hit(owner, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (powerful) {
if (powerful >= 2) {
slate.nextFrame();
}
if (_currentframe < 20) {
gotoAndPlay (2);
}
}
}
function event_die() {
_root.sprites.create_grenadier2();
}
}
Instance of Symbol 1143 MovieClip in Symbol 1202 MovieClip Frame 6
onClipEvent (load) {
function event_die() {
var _local1 = this;
root.sprites.attach("grenadier", "gren", 1, _x + 20, _y + 300);
_root.sprites.cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.mobile = 0;
_local1.longranged = 1;
_local1.dirchanging = 0;
};
}
gotoAndStop (31);
}
Instance of Symbol 1108 MovieClip in Symbol 1202 MovieClip Frame 7
onClipEvent (load) {
alt_explosion = 1;
}
Instance of Symbol 1143 MovieClip in Symbol 1202 MovieClip Frame 7
onClipEvent (load) {
function event_die() {
var _local1 = _root;
_local1.bg.attachMovie("trouillard", "trouillard", _local1.sprites.n);
_local1.bg.trouillard._x = _x;
_local1.bg.trouillard._y = _y + 323;
_local1.sprites.n_raise();
}
}
Instance of Symbol 1143 MovieClip in Symbol 1202 MovieClip Frame 8
onClipEvent (load) {
function event_lower() {
_root.sprites.create_baz5();
}
function event_die() {
var _local1 = _root;
_local1.bg.attachMovie("trouillard", "trouillard", _local1.sprites.n);
_local1.bg.trouillard._x = _x;
_local1.bg.trouillard._y = _y + 323;
_local1.sprites.n_raise();
}
}
Instance of Symbol 587 MovieClip "zone_safe" in Symbol 1202 MovieClip Frame 10
onClipEvent (load) {
stop();
}
Instance of Symbol 587 MovieClip "zone_safe" in Symbol 1202 MovieClip Frame 18
onClipEvent (load) {
stop();
}
Instance of Symbol 1201 MovieClip "boss_helico" in Symbol 1202 MovieClip Frame 18
onClipEvent (load) {
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function bigshake() {
_root.shake(35, 10, 2, 0);
clearInterval(interval_bigshake);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
damage = damagebase + int(damagerand * Math.random());
if (projectile.hitTest(hitzone_bonom) && (bonomlife > 0)) {
_root.hero.son.stop();
sprites.bandang(this, bonom._x, bonom._y);
bonomlife = bonomlife - damage;
son.start();
bonom.gotoAndPlay(2);
}
if (projectile.hitTest(hitzone_helice) && (helicelife > 0)) {
_root.hero.son.stop();
helicelife = helicelife - damage;
helice.gotoAndPlay(2);
dogtrap.trap.gotoAndPlay(2);
}
}
sprites = _parent._parent.sprites;
ennemy = sprites.hero;
yspeed = 5;
xspeed = 10;
score = 1500;
x_orig = _x;
y_orig = _y;
_x = (_x + 300);
_y = (_y - 200);
xspeed = 0;
yspeed = 0;
status = "start";
dead = 0;
flyspeed = -5;
bonomlife = 5 + (1 * _root.difficulty);
helicelife = 30 + (2 * _root.difficulty);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
son.attachSound("hit");
}
onClipEvent (enterFrame) {
if ((status == "damaged") && (helicedead)) {
xspeed = xspeed - 0.3;
yspeed = yspeed + ((-yspeed) / 20);
if (_x < (_root.hero._x - 200)) {
xspeed = 0;
yspeed = 0;
_root.helicrash.gotoAndPlay(3);
_root.game.ybasechange(_root.game.ybasemem, 20);
_root.sprites.helicoend();
_root.sw_helicodead = 1;
status = "dead";
gotoAndStop (2);
}
} else if (status == "ready") {
yspeed = yspeed + ((y_orig - _y) / 20);
xspeed = xspeed + ((x_orig - _x) / 600);
} else if (status == "start") {
yspeed = yspeed + ((y_orig - _y) / 1000);
xspeed = xspeed + ((x_orig - _x) / 1000);
if (_y > y_orig) {
status = "ready";
}
} else if (status == "damaged") {
status = "ready";
}
_y = (_y + yspeed);
_x = (_x + xspeed);
}
Symbol 1204 MovieClip Frame 1
_visible = 0;
Symbol 1205 MovieClip Frame 1
_visible = 0;
Symbol 1208 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 1208 MovieClip Frame 13
removeMovieClip(this);
_visible = 0;
gotoAndStop (1);
Symbol 1209 MovieClip Frame 1
Symbol 1209 MovieClip Frame 15
stop();
Symbol 1210 MovieClip Frame 1
projectile = 1;
Instance of Symbol 1205 MovieClip "testzone" in Symbol 1210 MovieClip Frame 1
onClipEvent (load) {
owner = _root.lastshot_owner;
var mindist = 750;
if (_root.lastshot_start) {
_y = _root.lastshot_start;
}
_root.lastshot_start = 0;
var rot = (_parent._rotation / 57.3);
var brake = 0;
var cible = 0;
var parentx = (_root.game._x + _parent._x);
var parenty = (_root.game._y + _parent._y);
var cibles = new Array();
var decorcibles = new Array();
_parent._yscale = 100;
for (a in _root.sprites) {
if (((!_root.sprites[a].immuneto_badshots) && (_root.sprites[a] != owner)) && (_root.sprites[a].hitzone.hitTest(_parent.testline))) {
cibles.push(_root.sprites[a]);
}
}
for (a in _root.decor) {
if ((_root.decor[a] != owner) && (_root.decor[a].hitzone.hitTest(_parent.testline))) {
decorcibles.push(_root.decor[a]);
}
}
do {
if (!((!_root.decor.hitTest((parentx + (_x * Math.cos(rot))) - (_y * Math.sin(rot)), (parenty + (_x * Math.sin(rot))) + (_y * Math.cos(rot)), 1)) && (_y > -750))) {
break;
}
_y = (_y - 30);
for (a in cibles) {
if (hitTest(cibles[a].hitzone)) {
dist = Math.sqrt(((cibles[a]._x - owner._x) * (cibles[a]._x - owner._x)) + ((cibles[a]._y - owner._y) * (cibles[a]._y - owner._y)));
if (dist < mindist) {
mindist = dist;
cible = cibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 1, 2);
brake = 1;
}
}
}
} while (!brake);
for (a in decorcibles) {
if (hitTest(decorcibles[a].hitzone)) {
cible = decorcibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 3, 3);
}
}
_parent._yscale = _parent._yscale * (0.32 * ((-_y) / _parent._yscale));
if (_y <= -750) {
_parent.badang._visible = 0;
}
_parent.gotoAndPlay(3);
}
Instance of Symbol 1208 MovieClip "badang" in Symbol 1210 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_rotation + ((10 * Math.random()) - 5));
_xscale = (_xscale * (25 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Instance of Symbol 1209 MovieClip "explosion" in Symbol 1210 MovieClip Frame 1
onClipEvent (load) {
_y = (_y * (75 / _parent._yscale));
_xscale = (_xscale * (40 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Instance of Symbol 112 MovieClip in Symbol 1210 MovieClip Frame 3
onClipEvent (load) {
_y = (_y * (60 / _parent._yscale));
if (_y < -60) {
_yscale = (_yscale / (-(_y / 60)));
}
}
Symbol 1210 MovieClip Frame 18
removeMovieClip(this);
_visible = 0;
_yscale = 100;
stop();
Symbol 1213 MovieClip Frame 1
projectile = 1;
Instance of Symbol 1205 MovieClip "testzone" in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
var mindist = 400;
owner = _root.lastshot_owner;
if (_root.lastshot_start) {
_y = _root.lastshot_start;
}
_root.lastshot_start = 0;
var rot = (_parent._rotation / 57.3);
var brake = 0;
var cible = 0;
var parentx = (_root.game._x + _parent._x);
var parenty = (_root.game._y + _parent._y);
var cibles = new Array();
var decorcibles = new Array();
_parent._yscale = 100;
for (a in _root.sprites) {
if ((_root.sprites[a] != owner) && (_root.sprites[a].hitzone.hitTest(_parent.testline))) {
cibles.push(_root.sprites[a]);
}
}
for (a in _root.decor) {
if ((_root.decor[a] != owner) && (_root.decor[a].hitzone.hitTest(_parent.testline))) {
decorcibles.push(_root.decor[a]);
}
}
do {
if (!((!_root.decor.hitTest((parentx + (_x * Math.cos(rot))) - (_y * Math.sin(rot)), (parenty + (_x * Math.sin(rot))) + (_y * Math.cos(rot)), 1)) && (_y > -600))) {
break;
}
_y = (_y - 30);
for (a in cibles) {
if (hitTest(cibles[a].hitzone)) {
dist = Math.sqrt(((cibles[a]._x - owner._x) * (cibles[a]._x - owner._x)) + ((cibles[a]._y - owner._y) * (cibles[a]._y - owner._y)));
if (dist < mindist) {
mindist = dist;
cible = cibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 1, 2);
brake = 1;
}
}
}
} while (!brake);
for (a in decorcibles) {
if (hitTest(decorcibles[a].hitzone)) {
cible = decorcibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, 3, 3);
}
}
_parent._yscale = _parent._yscale * (0.32 * ((-_y) / _parent._yscale));
_parent.gotoAndPlay(3);
if (_y >= -600) {
_parent.badang._visible = 0;
}
}
Instance of Symbol 1208 MovieClip "badang" in Symbol 1213 MovieClip Frame 3
onClipEvent (load) {
_rotation = (_rotation + ((10 * Math.random()) - 5));
_xscale = (_xscale * (15 / _parent._xscale));
_yscale = (_yscale * (20 / _parent._yscale));
}
Symbol 1213 MovieClip Frame 18
removeMovieClip(this);
_visible = 0;
_yscale = 100;
stop();
Symbol 1217 MovieClip Frame 1
_visible = 0;
Symbol 1217 MovieClip Frame 2
_visible = 1;
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1217 MovieClip Frame 20
removeMovieClip(this);
_visible = 0;
stop();
Symbol 1218 MovieClip Frame 1
projectile = 1;
Instance of Symbol 1205 MovieClip "testzone" in Symbol 1218 MovieClip Frame 1
onClipEvent (load) {
owner = _root.lastshot_owner;
owner.hashit = 0;
_root.rangetest.gotoAndPlay(1);
while (hitTest(_root.rangetest)) {
_y = (_y - 30);
}
var range = int(-_y);
_y = -30;
var mindist = range;
if (_root.lastshot_start) {
_y = _root.lastshot_start;
}
_root.lastshot_start = 0;
var rot = (_parent._rotation / 57.3);
var brake = 0;
var cible = 0;
var parentx = (_root.game._x + _parent._x);
var parenty = (_root.game._y + _parent._y);
var cibles = new Array();
var decorcibles = new Array();
_parent._yscale = 100;
for (a in _root.sprites) {
if ((_root.sprites[a] != owner) && (_root.sprites[a].hitzone.hitTest(_parent.testline))) {
cibles.push(_root.sprites[a]);
}
}
for (a in _root.decor) {
if ((_root.decor[a] != owner) && (_root.decor[a].hitzone.hitTest(_parent.testline))) {
decorcibles.push(_root.decor[a]);
}
}
var cible = 0;
do {
if (!((!_root.decor.hitTest((parentx + (_x * Math.cos(rot))) - (_y * Math.sin(rot)), (parenty + (_x * Math.sin(rot))) + (_y * Math.cos(rot)), 1)) && (_y > (-range)))) {
break;
}
_y = (_y - 30);
for (var a in cibles) {
if (hitTest(cibles[a].hitzone)) {
dist = Math.sqrt(((cibles[a]._x - owner._x) * (cibles[a]._x - owner._x)) + ((cibles[a]._y - owner._y) * (cibles[a]._y - owner._y)));
if (dist < mindist) {
mindist = dist;
cible = cibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, owner.power, owner.power);
brake = 1;
}
}
}
} while (!brake);
if (cible.hitson) {
owner.hashit = 1;
}
for (a in decorcibles) {
if (hitTest(decorcibles[a].hitzone)) {
cible = decorcibles[a];
cible.hit(owner, this, ((5 * Math.random()) + 5) * owner.direction, -5, owner.power * 2, owner.power * 2);
}
}
if (cible.hitson) {
owner.hashit = 1;
}
_parent._yscale = _parent._yscale * (0.32 * ((-_y) / _parent._yscale));
if (_y <= (-range)) {
_parent.badang._visible = 0;
}
if (!owner.hashit) {
owner.son.attachSound("shot");
owner.son.setVolume(30);
owner.son.start();
}
_parent.gotoAndPlay(3);
}
Instance of Symbol 1208 MovieClip "badang" in Symbol 1218 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_rotation + ((10 * Math.random()) - 5));
_xscale = (_xscale * (25 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Instance of Symbol 1209 MovieClip "explosion" in Symbol 1218 MovieClip Frame 1
onClipEvent (load) {
_y = (_y * (75 / _parent._yscale));
_xscale = (_xscale * (40 / _parent._xscale));
_yscale = (_yscale * (40 / _parent._yscale));
}
Instance of Symbol 112 MovieClip in Symbol 1218 MovieClip Frame 3
onClipEvent (load) {
_y = (_y * (60 / _parent._yscale));
if (_y < -60) {
_yscale = (_yscale / (-(_y / 60)));
}
}
Symbol 1218 MovieClip Frame 17
removeMovieClip(this);
_visible = 0;
_yscale = 100;
stop();
Symbol 1219 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1219 MovieClip Frame 2
if (hitTest(_root.hero.hitzone)) {
event();
}
Symbol 1219 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1219 MovieClip Frame 20
_visible = 0;
Symbol 1223 MovieClip Frame 6
event_hit();
Instance of Symbol 805 MovieClip in Symbol 1223 MovieClip Frame 18
onClipEvent (load) {
frame = 1;
}
Symbol 1223 MovieClip Frame 24
event_hit();
Instance of Symbol 805 MovieClip in Symbol 1223 MovieClip Frame 37
onClipEvent (load) {
frame = 1;
}
Symbol 1227 MovieClip Frame 1
stop();
Symbol 1227 MovieClip Frame 8
if (_parent._parent.life <= 0) {
_parent._parent.gotoAndPlay("explode");
}
if (_currentframe == 9) {
gotoAndStop (1);
}
Symbol 1228 MovieClip Frame 1
stop();
Symbol 1228 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndPlay (2);
}
Symbol 1228 MovieClip Frame 17
if (_parent.life <= 0) {
_parent.gotoAndPlay("explode");
}
if (_currentframe == 17) {
gotoAndStop (1);
}
Symbol 1231 MovieClip Frame 7
gotoAndPlay (1);
Symbol 1234 MovieClip Frame 1
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (!invincible) {
if (((life > 0) && (_currentframe <= 11)) and (_currentframe >= 3)) {
life = life - (damagebase + int(Math.random(damagerand)));
alarm.gotoAndPlay("hit");
}
}
}
onn = 0;
gotoAndStop (2);
Instance of Symbol 1228 MovieClip "alarm" in Symbol 1234 MovieClip Frame 1
/* no clip actions */
Symbol 1234 MovieClip Frame 2
life = 10;
gotoframe = "alarm_loop";
Symbol 1234 MovieClip Frame 3
onn = 1;
_root.colorize_alarm();
Symbol 1234 MovieClip Frame 15
onn = 0;
Symbol 1234 MovieClip Frame 21
_root.colorize_unalarm();
life = 0;
Symbol 1234 MovieClip Frame 120
if (_currentframe == 120) {
stop();
}
Symbol 1241 MovieClip Frame 1
stop();
Symbol 1241 MovieClip Frame 20
gotoAndStop ("stand");
Symbol 1242 MovieClip Frame 1
rotfactor = 4;
translatefactor = -10;
Instance of Symbol 1241 MovieClip "anim" in Symbol 1242 MovieClip Frame 1
/* no clip actions */
Symbol 1243 MovieClip Frame 1
_parent._parent.grenadok = 1;
stop();
Symbol 1243 MovieClip Frame 6
_parent._parent.expression("fire");
Symbol 1243 MovieClip Frame 17
_parent._parent.expression("normal");
Symbol 1243 MovieClip Frame 20
gotoAndStop ("stand");
Symbol 1243 MovieClip Frame 26
if (_currentframe == 26) {
_parent._parent.expression("artfire");
}
Symbol 1243 MovieClip Frame 31
if (_currentframe == 31) {
_parent._parent.expression("artillery");
}
Symbol 1243 MovieClip Frame 35
if (_currentframe == 35) {
if (_parent._parent.gonnagrenad && (_parent._parent.grenadtime)) {
_parent._parent.grenadshoot();
}
}
Symbol 1243 MovieClip Frame 37
Symbol 1243 MovieClip Frame 42
if (_currentframe == 42) {
if (_parent._parent.gonnagrenad && (_parent._parent.grenadtime)) {
_parent._parent.grenadshoot();
} else {
gotoAndStop ("stand");
}
}
Symbol 1244 MovieClip Frame 1
rotfactor = 1.1;
translatefactor = 10;
Instance of Symbol 1243 MovieClip "anim" in Symbol 1244 MovieClip Frame 1
/* no clip actions */
Symbol 1246 MovieClip Frame 1
_visible = 0;
Symbol 1251 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 1252 MovieClip Frame 1
_parent._parent.shootok = 1;
stop();
Symbol 1252 MovieClip Frame 7
_parent._parent.shoot2();
_root.shake_hit(2);
Symbol 1252 MovieClip Frame 9
if (_parent._parent.firerate >= 4) {
call("shootok");
}
Symbol 1252 MovieClip Frame 10
if (_parent._parent.firerate >= 3) {
call("shootok");
}
Symbol 1252 MovieClip Frame 11
if (_parent._parent.firerate >= 2) {
call("shootok");
}
Symbol 1252 MovieClip Frame 12
if (_parent._parent.firerate >= 1) {
call("shootok");
}
Symbol 1252 MovieClip Frame 13
if (_parent._parent.shoottime) {
_parent._parent.shootok = 1;
if (_parent._parent.gonnashoot) {
_parent._parent.shoot();
}
}
Symbol 1252 MovieClip Frame 20
gotoAndStop ("stand");
Symbol 1253 MovieClip Frame 1
rotfactor = 1;
translatefactor = -15;
Instance of Symbol 1252 MovieClip "anim" in Symbol 1253 MovieClip Frame 1
/* no clip actions */
Symbol 1259 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1259 MovieClip Frame 2
_parent._parent.move_slide();
Symbol 1259 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1260 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1260 MovieClip Frame 2
_parent._parent.move();
Symbol 1260 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1261 MovieClip Frame 1
Instance of Symbol 804 MovieClip in Symbol 1261 MovieClip Frame 5
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 804 MovieClip in Symbol 1261 MovieClip Frame 25
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Instance of Symbol 804 MovieClip in Symbol 1261 MovieClip Frame 47
onClipEvent (load) {
frame = "walk_rew_loop";
}
Instance of Symbol 1269 MovieClip in Symbol 1270 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._parent._xscale < 0) {
_xscale = ((100 * _parent._parent._parent._xscale) / _parent._parent._parent.xscaleorig);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._parent._xscale < 0) {
_xscale = ((100 * _parent._parent._parent._xscale) / _parent._parent._parent.xscaleorig);
}
}
Symbol 1285 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
gotoAndStop (2);
Symbol 1285 MovieClip Frame 2
if (_currentframe == 2) {
_visible = 0;
stop();
}
Symbol 1285 MovieClip Frame 5
_visible = 1;
_root.maxcolorize(this);
Symbol 1285 MovieClip Frame 14
if (_currentframe == 14) {
gotoAndStop (2);
}
Symbol 1285 MovieClip Frame 20
_visible = 1;
_root.maxcolorize(this);
Symbol 1285 MovieClip Frame 44
if (_currentframe == 44) {
gotoAndStop (2);
}
Symbol 1285 MovieClip Frame 50
_visible = 1;
_root.maxcolorize(this);
Symbol 1285 MovieClip Frame 75
if (_currentframe == 75) {
gotoAndStop (2);
}
Symbol 1285 MovieClip Frame 80
_visible = 1;
_root.maxcolorize(this);
Symbol 1285 MovieClip Frame 107
if (_currentframe == 107) {
gotoAndStop (2);
}
Symbol 1285 MovieClip Frame 110
_visible = 1;
_root.maxcolorize(this);
Symbol 1285 MovieClip Frame 123
if (_currentframe == 123) {
gotoAndStop (2);
}
Symbol 1285 MovieClip Frame 127
_visible = 1;
_root.maxcolorize(this);
Symbol 1285 MovieClip Frame 154
if (_currentframe == 154) {
gotoAndStop (2);
}
Symbol 1285 MovieClip Frame 161
_visible = 1;
_root.maxcolorize(this);
Symbol 1285 MovieClip Frame 172
if (_currentframe == 172) {
gotoAndStop (2);
}
Symbol 1288 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 1288 MovieClip Frame 4
if (_currentframe == 4) {
gotoAndStop (1);
}
Instance of Symbol 1253 MovieClip "gun" in Symbol 1288 MovieClip Frame 6
/* no clip actions */
Symbol 1289 MovieClip Frame 1
_visible = 0;
Symbol 1291 MovieClip Frame 1
_parent.ground = 0;
_visible = 0;
gotoAndPlay (2);
Symbol 1291 MovieClip Frame 2
if (_parent.yspeed > 12) {
_parent.groundcheck();
var ladered = 0;
for (a in _parent.decor.ladders) {
if (_parent.decor.ladders[a].hitzone.hitTest(_parent.climbzone)) {
_parent.ladder = _parent.decor.ladders[a];
_parent.gotoAndPlay("climbdown_st");
ladered = 1;
}
}
if ((!_parent.ground) && (!ladered)) {
_parent.saveparts();
_parent.gotoAndStop("falling2");
}
_parent.jumpxspeed = _parent.xspeed;
}
Symbol 1291 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1293 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1293 MovieClip Frame 2
if (Key.isDown(_parent.key_left)) {
_parent.dirkey = _parent.key_left;
_parent.otherdirkey = _parent.key_right;
if (_parent.direction == 1) {
_parent.gotoAndPlay("walk_rew");
} else {
_parent.gotoAndPlay("walk_fwd");
}
} else if (Key.isDown(_parent.key_right)) {
_parent.dirkey = _parent.key_right;
_parent.otherdirkey = _parent.key_left;
if (_parent.direction == 1) {
_parent.gotoAndPlay("walk_fwd");
} else {
_parent.gotoAndPlay("walk_rew");
}
} else if (Key.isDown(_parent.key_esquiv)) {
_parent.gotoAndPlay("crouch");
}
Symbol 1293 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1295 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1295 MovieClip Frame 2
if ((_parent._xmouse < 0) and _parent.active) {
_parent.movedirection = _parent.movedirection * -1;
_parent.direction = _parent.direction * -1;
_parent._xscale = _parent._xscale * -1;
_parent.maing.swapDepths(_parent.gun);
if (_parent.gunanirot <= -60) {
_parent.rotate();
} else {
_parent.flip.gotoAndPlay(2);
}
}
Symbol 1295 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1296 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1296 MovieClip Frame 2
if (Key.isDown(_parent.key_jump) || (Key.isDown(_parent.key_jump2))) {
_parent.groundcheck();
var ladered = 0;
for (var a in _parent.decor.ladders) {
if (_parent.decor.ladders[a].hitzone.hitTest(_parent.climbzone) && (_parent.decor.ladders[a].hitzone.hitTest(_parent.hitzone))) {
_parent.ladder = _parent.decor.ladders[a];
_parent.gotoAndPlay("climb_st");
ladered = 1;
}
}
for (var a in _root.bg.elevators) {
if (_root.bg.elevators[a].closezone.hitTest(_parent.hitzone) && (!_root.bg.elevators[a].locked)) {
ladered = 1;
_parent.desactivate();
_root.bg.elevators[a].gotoAndPlay("close");
_parent.gotoAndPlay("dumbstance");
}
}
if (_parent.ground && (!ladered)) {
_parent.gotoAndPlay("jump");
}
}
Symbol 1296 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1298 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1298 MovieClip Frame 2
if (_parent._xmouse < 0) {
_parent.direction = _parent.direction * -1;
_parent._xscale = _parent._xscale * -1;
_parent.head.anim.rotate();
_parent.maing.swapDepths(_parent.gun);
if (_parent.gunanirot <= -60) {
_parent.rotate();
} else {
_parent.flip.gotoAndPlay(2);
}
_parent.rotcible = _parent.gun._rotation;
_parent.footchange = 1;
_parent.gotoAndPlay(_parent.dirchangeframe);
}
Symbol 1298 MovieClip Frame 6
gotoAndPlay (2);
Symbol 1300 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1300 MovieClip Frame 2
_parent.xspeed = _parent.xspeed + ((_parent.origxspeed - _parent.xspeed) / 2);
Symbol 1300 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1301 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1301 MovieClip Frame 2
if ((key.isDown(_parent.key_esquiv) && (_parent.rolltime)) && (_parent.esquivframe != 0)) {
_parent.gotoAndPlay(_parent.esquivframe);
}
Symbol 1301 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1302 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1302 MovieClip Frame 2
if (key.isDown(_parent.dirkey)) {
} else {
if (key.isDown(_parent.otherdirkey)) {
if (_parent.movedirection == 1) {
_parent.foots.gotoAndPlay("walk_rew2");
} else {
_parent.foots.gotoAndPlay("walk_fwd2");
}
_parent.xspeed = _parent.xspeed * -1;
} else if (!_parent.footchange) {
_parent.foots.gotoAndPlay("stand");
_parent.xspeed = 0;
}
_parent.gotoAndPlay(_parent.endframe);
}
Symbol 1302 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1303 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1303 MovieClip Frame 2
if (key.isDown(_parent.dirkey) && (_parent.active)) {
_parent.gotoAndPlay(_parent.loopframe);
} else {
if (key.isDown(_parent.otherdirkey)) {
if (_parent.movedirection == 1) {
_parent.foots.gotoAndPlay("walk_rew2");
} else {
_parent.foots.gotoAndPlay("walk_fwd2");
}
_parent.xspeed = _parent.xspeed * -1;
_parent.call(_parent.dirchangeframe);
} else if (!_parent.footchange) {
_parent.foots.gotoAndPlay("stand");
_parent.xspeed = 0;
}
_parent.gotoAndPlay(_parent.endframe);
}
Symbol 1303 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1304 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1304 MovieClip Frame 2
_parent.move();
_parent.xspeed = _parent.xspeed / _parent.friction;
Symbol 1304 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1305 MovieClip Frame 1
_visible = 0;
dirchange = 0;
gotoAndPlay (2);
Symbol 1305 MovieClip Frame 2
if (_parent.active) {
if (key.isDown(_parent.key_left)) {
if (_parent.jumpxspeed >= 0) {
_parent.xspeed = _parent.xspeed - 1.5;
if (dirchange == 0) {
_parent.movedirection = -_parent.direction;
_parent.dirkey = _parent.key_left;
dirchange = 1;
}
}
} else if (key.isDown(_parent.key_right)) {
if (_parent.jumpxspeed <= 0) {
_parent.xspeed = _parent.xspeed + 1.5;
if (dirchange == 0) {
_parent.movedirection = _parent.direction;
_parent.dirkey = _parent.key_right;
dirchange = 1;
}
}
}
}
Symbol 1305 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1306 MovieClip Frame 1
_parent.ground = 0;
_visible = 0;
gotoAndPlay (2);
Symbol 1306 MovieClip Frame 2
_parent.groundcheck();
if (_parent.ground == 1) {
_parent.saveparts();
_parent.landyspeed = _parent.yspeed;
if (_parent.yspeed >= 50) {
_parent.gotoAndPlay(frame2);
} else {
_parent.gotoAndPlay(frame);
}
}
Symbol 1306 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1307 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1307 MovieClip Frame 2
for (a in _parent.decor.ladders) {
if (_parent.decor.ladders[a].hitzone.hitTest(_parent.climbzone) && (_parent.decor.ladders[a].hitzone.hitTest(_parent.hitzone))) {
_parent.ladder = _parent.decor.ladders[a];
_parent.gotoAndPlay("climb_st");
}
}
Symbol 1307 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1308 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1308 MovieClip Frame 2
if (key.isDown(_parent.key_esquiv)) {
if ((key.isDown(_parent.key_right) && (_parent.direction == 1)) || (key.isDown(_parent.key_left) && (_parent.direction == -1))) {
_parent.gotoAndPlay("roll_fwd");
} else if ((key.isDown(_parent.key_right) && (_parent.direction == -1)) || (key.isDown(_parent.key_left) && (_parent.direction == 1))) {
_parent.gotoAndPlay("roll_rew");
} else {
_parent.gotoAndPlay("crouched");
}
}
Symbol 1308 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1309 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1309 MovieClip Frame 2
if (_parent.foots._currentframe < 10) {
if (key.isDown(_parent.key_left)) {
if (_parent.direction == 1) {
_parent.foots.gotoAndPlay("walk_rew");
_parent.xspeed = _parent.backwalkspeed * _parent.direction;
_parent.esquivframe = "roll_rew";
} else {
_parent.foots.gotoAndPlay("walk_fwd");
_parent.xspeed = _parent.walkspeed * _parent.direction;
_parent.esquivframe = "roll_fwd";
}
} else if (key.isDown(_parent.key_right)) {
if (_parent.direction == -1) {
_parent.foots.gotoAndPlay("walk_rew");
_parent.xspeed = _parent.backwalkspeed * _parent.direction;
_parent.esquivframe = "roll_rew";
} else {
_parent.foots.gotoAndPlay("walk_fwd");
_parent.xspeed = _parent.walkspeed * _parent.direction;
_parent.esquivframe = "roll_fwd";
}
}
}
Symbol 1309 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1312 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1312 MovieClip Frame 2
_parent.camxmove();
Symbol 1312 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1313 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1313 MovieClip Frame 2
if ((_parent._xmouse < 0) and _parent.active) {
_parent.movedirection = _parent.movedirection * -1;
_parent.direction = _parent.direction * -1;
_parent._xscale = _parent._xscale * -1;
_parent.climbzone._xscale = _parent.climbzone._xscale * -1;
_parent.foot_r._xscale = _parent.foot_r._xscale * -1;
_parent.foot_l._xscale = _parent.foot_l._xscale * -1;
_parent.maing.swapDepths(_parent.gun);
_parent.head.anim.rotate();
_parent.gun.anim.rotate();
}
Symbol 1313 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1314 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1314 MovieClip Frame 2
if (key.isDown(_parent.key_up) && (!_parent.decor.hitTest((_parent.game._x + _parent._x) + (10 * ((_parent.direction * _parent.foot_r._xscale) / 100)), (_parent.game._y + _parent._y) + (2 * _parent.middle), 1))) {
if (_parent.ladder.hitzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climb_reloop");
} else {
_parent.yaccel = _parent.yaccel_orig;
_parent.xspeed = 4 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
}
} else if ((Key.isDown(_parent.key_left) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == 1)) || (Key.isDown(_parent.key_right) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == -1))) {
_parent.yaccel = _parent.yaccel_orig;
_parent.xspeed = -6 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.move();
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
} else if (Key.isDown(_parent.key_down)) {
if (_parent.ladder.upzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climbdown_reloop");
} else {
_parent.xspeed = -2 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.gotoAndPlay("climb_end");
}
}
Symbol 1314 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1315 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1315 MovieClip Frame 2
_parent.ymove();
Symbol 1315 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1316 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1316 MovieClip Frame 2
if (key.isDown(_parent.key_up) && (!_parent.decor.hitTest((_parent.game._x + _parent._x) + (10 * ((_parent.direction * _parent.foot_r._xscale) / 100)), (_parent.game._y + _parent._y) + (2 * _parent.middle), 1))) {
if (_parent.ladder.hitzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climb_reloop2");
} else {
_parent.yaccel = _parent.yaccel_orig;
_parent.xspeed = 4 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
}
} else if ((Key.isDown(_parent.key_left) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == 1)) || (Key.isDown(_parent.key_right) && ((_parent.direction * (_parent.foot_r._xscale / 100)) == -1))) {
_parent.yaccel = _parent.yaccel_orig;
_parent.xspeed = -6 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.move();
_parent.yspeed = -16;
_parent.gotoAndPlay("jump_st3");
} else if (key.isDown(_parent.key_down)) {
if (_parent.ladder.upzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climbdown_reloop2");
} else {
_parent.xspeed = -2 * (_parent.direction * (_parent.foot_r._xscale / 100));
_parent.gotoAndPlay("climb_end2");
}
}
Symbol 1316 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1317 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1317 MovieClip Frame 2
if (!_parent.ladder.hitzone.hitTest(_parent.climbzone)) {
_parent.gotoAndPlay("climb_end");
}
Symbol 1317 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1323 MovieClip Frame 1
_root.maxcolorize(this);
Symbol 1323 MovieClip Frame 8
stop();
Symbol 1334 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1334 MovieClip Frame 2
_root.game.xspeed = (_root.game.xcible - _root.game._x) / _root.game.divider;
_parent.xdecal = _parent.xdecal - _root.game.xspeed;
Symbol 1334 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1335 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1335 MovieClip Frame 2
_parent.camxmove2();
Symbol 1335 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1336 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1336 MovieClip Frame 2
if (!key.isDown(_parent.key_esquiv)) {
_parent.gotoAndPlay("crouch_end");
} else if (_parent.rolltime) {
if (key.isDown(_parent.key_left)) {
if (_parent.direction == 1) {
_parent.gotoAndPlay("roll_rew");
} else {
_parent.gotoAndPlay("roll_fwd");
}
} else if (key.isDown(_parent.key_right)) {
if (_parent.direction == -1) {
_parent.gotoAndPlay("roll_rew");
} else {
_parent.gotoAndPlay("roll_fwd");
}
}
}
Symbol 1336 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1337 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1337 MovieClip Frame 2
if ((_parent._xmouse < 0) and _parent.active) {
_parent.movedirection = _parent.movedirection * -1;
_parent.direction = _parent.direction * -1;
_parent._xscale = _parent._xscale * -1;
_parent.maing.swapDepths(_parent.gun);
}
Symbol 1337 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1338 MovieClip Frame 1
tracktime = 0;
shoottime = 0;
Instance of Symbol 1237 MovieClip "maing" in Symbol 1338 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1253 MovieClip "gun" in Symbol 1338 MovieClip Frame 1
/* no clip actions */
Symbol 1338 MovieClip Frame 2
colorize(100, 100, 100);
updateparts();
expression("normal");
if (key.isDown(key_esquiv) && ((!key.isDown(key_left)) || (!key.isDown(key_right)))) {
} else if ((active && (gonnashoot)) && (!tracktime)) {
tracktime = 1;
if (_xmouse < 0) {
movedirection = movedirection * -1;
direction = direction * -1;
_xscale = (_xscale * -1);
maing.swapDepths(gun);
rotate();
}
gunanirot = rotcible;
updateparts();
}
if (active && (_currentframe == 2)) {
tracktime = 1;
shoottime = 1;
if (_xmouse < 0) {
movedirection = movedirection * -1;
direction = direction * -1;
_xscale = (_xscale * -1);
maing.swapDepths(gun);
rotate();
}
if (gonnashoot) {
shoot();
}
}
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 29
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 1338 MovieClip Frame 34
movedirection = 1;
origxspeed = walkspeed * direction;
xspeed = walkspeed * direction;
loopframe = "walk_fwd_loop";
endframe = "walk_fwd_end";
dirchangeframe = "walk_rew";
esquivframe = "roll_fwd";
if ((foots._currentframe < 10) || (footchange)) {
foots.gotoAndPlay("walk_fwd");
footchange = 0;
}
Instance of Symbol 1302 MovieClip in Symbol 1338 MovieClip Frame 37
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Instance of Symbol 1303 MovieClip in Symbol 1338 MovieClip Frame 45
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Symbol 1338 MovieClip Frame 47
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 51
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 58
movedirection = -1;
origxspeed = backwalkspeed * direction;
xspeed = backwalkspeed * direction;
loopframe = "walk_rew_loop";
endframe = "walk_rew_end";
dirchangeframe = "walk_fwd";
esquivframe = "roll_rew";
if ((foots._currentframe < 10) || (footchange)) {
foots.gotoAndPlay("walk_rew");
footchange = 0;
}
Instance of Symbol 1302 MovieClip in Symbol 1338 MovieClip Frame 61
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Instance of Symbol 1303 MovieClip in Symbol 1338 MovieClip Frame 69
onClipEvent (load) {
frame = "walk_fwd_loop";
}
Symbol 1338 MovieClip Frame 71
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 74
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 81
if (key.isDown(key_right)) {
xspeed = walkspeed;
} else if (key.isDown(key_left)) {
xspeed = -walkspeed;
}
if (active) {
jumpxspeed = xspeed;
}
Symbol 1338 MovieClip Frame 82
yspeed = -23;
if (active) {
if (key.isDown(key_right)) {
jumpxspeed = walkspeed;
} else if (key.isDown(key_left)) {
jumpxspeed = -walkspeed;
}
}
xspeed = 1.4 * jumpxspeed;
ymove();
Symbol 1338 MovieClip Frame 83
if (object_attached) {
object_attached = 0;
}
if (hidden) {
hidden = 0;
}
Symbol 1338 MovieClip Frame 86
Instance of Symbol 1306 MovieClip in Symbol 1338 MovieClip Frame 86
onClipEvent (load) {
frame = "land";
frame2 = "land";
}
Symbol 1338 MovieClip Frame 89
targetparts();
loadparts();
div = 4 - (landyspeed / 15);
if (div < 1.2) {
div = 1.2;
}
moveparts();
updateparts();
Instance of Symbol 287 MovieClip "yarr" in Symbol 1338 MovieClip Frame 89
onClipEvent (enterFrame) {
_parent.moveparts();
}
Symbol 1338 MovieClip Frame 91
saveparts();
gotoframe = "landed";
Symbol 1338 MovieClip Frame 93
targetparts();
loadparts();
div = 2.5;
moveparts();
updateparts();
xspeed = xspeed / 2;
if (!active) {
event_inactiveland();
gotoAndPlay ("roll_fwd");
}
Symbol 1338 MovieClip Frame 97
Symbol 1338 MovieClip Frame 98
xspeed = 0;
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 98
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 103
targetparts();
loadparts();
div = 3;
updateparts();
Instance of Symbol 593 MovieClip "yarr" in Symbol 1338 MovieClip Frame 103
onClipEvent (enterFrame) {
_parent.moveparts();
}
Instance of Symbol 1306 MovieClip in Symbol 1338 MovieClip Frame 103
onClipEvent (load) {
frame = "land";
frame2 = "land";
}
Symbol 1338 MovieClip Frame 105
targetparts();
loadparts();
moveparts();
updateparts();
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 107
onClipEvent (load) {
frame = "landed";
}
Symbol 1338 MovieClip Frame 110
yaccel = 0;
yspeed = 0;
xspeed = 0;
Instance of Symbol 1310 MovieClip "foot_l" in Symbol 1338 MovieClip Frame 110
onClipEvent (load) {
gotoAndStop(_parent._currentframe - 109);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._currentframe - 109);
}
Instance of Symbol 1311 MovieClip "foot_r" in Symbol 1338 MovieClip Frame 110
onClipEvent (load) {
gotoAndStop(_parent._currentframe - 109);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._currentframe - 109);
}
Symbol 1338 MovieClip Frame 114
yspeed = 0;
Symbol 1338 MovieClip Frame 115
yspeed = climbspeed;
Symbol 1338 MovieClip Frame 120
yspeed = 0;
Symbol 1338 MovieClip Frame 121
yspeed = climbspeed;
Symbol 1338 MovieClip Frame 126
gotoAndPlay ("climb_loop");
Instance of Symbol 805 MovieClip in Symbol 1338 MovieClip Frame 126
onClipEvent (load) {
frame = "climb_loop";
}
Symbol 1338 MovieClip Frame 128
yaccel = yaccel_orig;
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 132
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 134
yaccel = yaccel_orig;
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 139
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 142
yaccel = 0;
xspeed = 0;
Symbol 1338 MovieClip Frame 144
yspeed = 0;
Symbol 1338 MovieClip Frame 146
yspeed = 0;
Instance of Symbol 593 MovieClip in Symbol 1338 MovieClip Frame 146
onClipEvent (load) {
frame = "climb_loop";
}
Symbol 1338 MovieClip Frame 147
yspeed = -climbspeed;
Symbol 1338 MovieClip Frame 152
yspeed = 0;
Instance of Symbol 593 MovieClip in Symbol 1338 MovieClip Frame 152
onClipEvent (load) {
frame = "climb_loop";
}
Symbol 1338 MovieClip Frame 153
yspeed = -climbspeed;
Instance of Symbol 805 MovieClip in Symbol 1338 MovieClip Frame 158
onClipEvent (load) {
frame = "climbdown_loop";
}
Symbol 1338 MovieClip Frame 170
if (head.anim._currentframe >= 20) {
head.anim.gotoAndStop(1);
}
grenadtime = 0;
expression("ouch");
colorize(150, 50, 50);
yaccel = yaccel_orig;
tracktime = 1;
shoottime = 1;
Symbol 1338 MovieClip Frame 174
colorize(100, 100, 100);
Symbol 1338 MovieClip Frame 177
Instance of Symbol 1306 MovieClip in Symbol 1338 MovieClip Frame 177
onClipEvent (load) {
frame = "rvol_resume";
}
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 180
onClipEvent (load) {
frame = "stand";
}
Instance of Symbol 1242 MovieClip "body" in Symbol 1338 MovieClip Frame 183
/* no clip actions */
Symbol 1338 MovieClip Frame 184
tracktime = 0;
shoottime = 0;
grenadtime = 0;
rolltime = 0;
esquivframe = 0;
rotbar.gotoAndPlay(2);
xspeed = rollspeed * direction;
gun.anim.gotoAndStop(1);
head.anim.gotoAndStop(1);
expression("normal");
hanix = 0;
haniy = 0;
hanirot = 0;
banix = 0;
baniy = 0;
banirot = 0;
gunanix = 0;
gunaniy = 0;
gunanirot = 0;
updateparts();
Symbol 1338 MovieClip Frame 193
if (active && (_xmouse < 0)) {
flip.gotoAndPlay(2);
}
Symbol 1338 MovieClip Frame 194
if (active) {
if (_xmouse < 0) {
setdirection(-direction);
}
} else {
event_inactiveroll();
}
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 194
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 205
tracktime = 0;
shoottime = 0;
grenadtime = 0;
rolltime = 0;
esquivframe = 0;
rotbar.gotoAndPlay(2);
xspeed = (-rollspeed) * direction;
gun.anim.gotoAndStop(1);
head.anim.gotoAndStop(1);
expression("normal");
hanix = 0;
haniy = 0;
hanirot = 0;
banix = 0;
baniy = 0;
banirot = 0;
gunanix = 0;
gunaniy = 0;
gunanirot = 0;
updateparts();
Symbol 1338 MovieClip Frame 214
if (_xmouse < 0) {
flip.gotoAndPlay(2);
}
Symbol 1338 MovieClip Frame 215
if (_xmouse < 0) {
setdirection(-direction);
}
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 215
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 226
for (a in _parent) {
if (_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) {
_parent[a].hit(this, this, 10 * direction, -20, 5, 3);
}
}
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 237
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 240
hanirot = 0;
hanix = 0;
haniy = 0;
updateparts();
Symbol 1338 MovieClip Frame 241
call("shortrange2");
Symbol 1338 MovieClip Frame 242
call("shortrange2");
Symbol 1338 MovieClip Frame 243
call("shortrange2");
Symbol 1338 MovieClip Frame 244
call("shortrange2");
Symbol 1338 MovieClip Frame 245
var hited = 0;
for (a in _parent) {
if (_parent[a].hitzone.hitTest(bangzone) && (_parent[a] != this)) {
_parent[a].hit(this, bangzone, (5 + (2 * Math.random())) * direction, -20 - (3 * Math.random()), 3 * power, power, 1);
hited = 1;
}
}
if (hited) {
_root.shake_hit(10);
} else {
bashbang._visible = 0;
}
hanix = 0;
haniy = 0;
hanirot = 0;
banix = 0;
baniy = 0;
banirot = 0;
gunanix = 0;
gunaniy = 0;
gunanirot = 0;
updateparts();
tracktime = 0;
Symbol 1338 MovieClip Frame 250
tracktime = 1;
Instance of Symbol 804 MovieClip in Symbol 1338 MovieClip Frame 255
onClipEvent (load) {
frame = "stand";
}
Symbol 1338 MovieClip Frame 270
foots._visible = 0;
maing._visible = 0;
gun._visible = 0;
head._visible = 0;
body._visible = 0;
Symbol 1338 MovieClip Frame 297
foots._visible = 1;
maing._visible = 1;
gun._visible = 1;
head._visible = 1;
body._visible = 1;
Symbol 1338 MovieClip Frame 304
_root.textbox.gotoAndPlay("start");
gotoAndPlay ("stand");
Symbol 1338 MovieClip Frame 332
gotook = 0;
if (readytoactivate) {
activate();
gotook = 2;
} else {
gotook = 1;
}
Instance of Symbol 1073 MovieClip in Symbol 1338 MovieClip Frame 332
onClipEvent (load) {
frame = "dumbstance_loop";
frame2 = "stand";
}
Symbol 1338 MovieClip Frame 339
activate();
Symbol 1338 MovieClip Frame 345
expression("normal");
Symbol 1338 MovieClip Frame 360
gotoframe = "driving_stand";
Instance of Symbol 484 MovieClip in Symbol 1338 MovieClip Frame 360
/* no clip actions */
Symbol 1338 MovieClip Frame 371
expression("ouch");
colorize(150, 50, 50);
yaccel = yaccel_orig;
yspeed = -3;
xspeed = 0;
tracktime = 1;
shoottime = 1;
Symbol 1338 MovieClip Frame 374
colorize(100, 100, 100);
Symbol 1338 MovieClip Frame 378
gotoaaaaaaaaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmfaaaaaaaaaaaarawddddmddddddddddedaaadaaaaaaaaa = "ddddddddddddriviaaaaaaaasaadddddddddddddddaaaadddddddddaaangsaaaaddddddddddaassdd_stand";
Instance of Symbol 484 MovieClip in Symbol 1338 MovieClip Frame 378
/* no clip actions */
Symbol 1338 MovieClip Frame 382
if (_currentframe == 382) {
tracktime = 2;
shoottime = 0;
}
gun.anim.gotoAndStop(1);
Symbol 1338 MovieClip Frame 383
if (_currentframe == 383) {
tracktime = 2;
shoottime = 0;
gun.anim.gotoAndStop(1);
}
Symbol 1338 MovieClip Frame 384
if (_currentframe == 384) {
tracktime = 2;
shoottime = 0;
gun.anim.gotoAndStop(1);
if (_root.hasgrenades) {
expression("artillery");
}
}
Symbol 1338 MovieClip Frame 386
if (_currentframe == 386) {
crouched = 1;
grenadtime = 1;
if (gonnagrenad) {
grenadshoot();
}
gun.anim.gotoAndStop(1);
}
Symbol 1338 MovieClip Frame 407
gotoframe = "crouch_loop";
Symbol 1338 MovieClip Frame 411
expression("normal");
Symbol 1338 MovieClip Frame 412
if (_currentframe == 412) {
tracktime = 1;
grenadtime = 0;
shoottime = 1;
if (gonnashoot) {
shoot();
}
}
Symbol 1338 MovieClip Frame 415
gotoframe = "stand";
Symbol 1338 MovieClip Frame 419
shoottime = 0;
tracktime = 0;
gunanirot = 0;
hanirot = 0;
banirot = 0;
updateparts();
yspeed = 0;
gun.anim.gotoAndStop(1);
body.anim.gotoAndStop(1);
head.anim.gotoAndStop(1);
misc.gotoAndPlay("smash");
Symbol 1338 MovieClip Frame 443
tracktime = 1;
Symbol 1338 MovieClip Frame 450
gotoframe = "stand";
Symbol 1338 MovieClip Frame 468
die();
Symbol 1338 MovieClip Frame 498
_root.death();
stop();
Symbol 1340 MovieClip Frame 1
stop();
Symbol 1340 MovieClip Frame 6
stop();
Symbol 1341 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1341 MovieClip Frame 2
if (hitTest(_root.hero.hitzone)) {
event();
}
Symbol 1341 MovieClip Frame 6
gotoAndPlay (2);
Symbol 1341 MovieClip Frame 22
_visible = 0;
Symbol 1342 MovieClip Frame 1
_visible = 0;
Symbol 1342 MovieClip Frame 2
if (hitTest(_root.hero.hitzone)) {
event();
}
Symbol 1342 MovieClip Frame 15
gotoAndPlay (2);
Symbol 1345 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
setson();
son.start();
xspeed = rvolx;
direction = xspeed / Math.abs(xspeed);
}
function onEnterFrame() {
var _local1 = _root;
if ((yspeed < 0) || (!_local1.decor.hitTest(_local1.game._x + _x, _local1.game._y + _y, 1))) {
_y = (_y + yspeed);
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((yspeed >= 0) && (_local1.decor.hitTest(_local1.game._x + _x, (_local1.game._y + _y) - 2, 1))) {
_y = (_y - 1);
}
_x = (_x + xspeed);
if (_local1.decor.hitTest((_local1.game._x + _x) + (20 * direction), (_local1.game._y + _y) - 5, 1)) {
xspeed = xspeed * -1;
direction = direction * -1;
}
if (_local1.decor.hitTest(_local1.game._x + _x, (_local1.game._y + _y) + 5, 1)) {
xspeed = xspeed / 1.3;
}
}
yspeed = 0;
yaccel = 3;
xspeed = 0;
direction = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
son.attachSound("ricochet");
stop();
Instance of Symbol 1342 MovieClip in Symbol 1345 MovieClip Frame 1
onClipEvent (load) {
function event() {
_parent.gotoAndPlay(3);
}
}
Instance of Symbol 128 MovieClip "hitzone" in Symbol 1345 MovieClip Frame 1
/* no clip actions */
Symbol 1345 MovieClip Frame 26
setson();
son.attachSound("explosion1");
surson();
_root.sprites.attachMovie("explosion_damage2", "explosion" + _root.sprites.n, _root.sprites.n);
var cur_explosion = _root.sprites["explosion" + _root.sprites.n];
cur_explosion.owner = this;
cur_explosion._x = _x;
cur_explosion._y = _y;
cur_explosion.gotoAndPlay(2);
_root.sprites.n_raise();
delete son;
removeMovieClip(this);
_visible = 0;
stop();
Symbol 1346 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1346 MovieClip Frame 15
event();
Symbol 1346 MovieClip Frame 16
gotoAndPlay (2);
Symbol 1346 MovieClip Frame 20
stop();
Symbol 1353 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1353 MovieClip Frame 5
if (_currentframe == 5) {
gotoAndPlay (2);
}
Symbol 1354 MovieClip Frame 4
gotoAndPlay (1);
Symbol 1354 MovieClip Frame 7
lamp.gotoAndStop(7);
Symbol 1356 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1356 MovieClip Frame 2
if (_parent.gotook == 1) {
_parent.gotoAndStop(frame);
} else if (_parent.gotook == 2) {
_parent.gotoAndStop(frame2);
}
Symbol 1356 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1357 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1357 MovieClip Frame 11
removeMovieClip(this);
_visible = 0;
stop();
Symbol 1358 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = rvolx;
if (life > 0) {
if (!invincible) {
damage = damagebase + int(Math.random() * damagerand);
damage = int(damage / armor);
life = life - damage;
}
setson();
son.start();
if (_local1 > 0) {
gotoAndPlay (30);
} else if (_local1 < 0) {
gotoAndPlay (50);
}
_root.hitshake(damage);
xspeed = _local1 / 16;
yspeed = rvoly;
}
}
function onEnterFrame() {
var _local1 = _parent;
var _local2 = _root;
if (falling) {
parentx = _local1._x + _local1._parent._x;
parenty = _local1._y + _local1._parent._y;
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
_x = (_x + xspeed);
anim.model._rotation = anim.model._rotation - xspeed;
explosion._y = explosion._y - yspeed;
explosion._x = explosion._x - xspeed;
if (_local1._parent.decor.hitTest(parentx + _x, (parenty + _y) + 10, 1)) {
yspeed = 0;
falling = 0;
_rotation = 0;
_local2.score = _local2.score + score;
_local2.showscore(this);
_local2.groundshake();
gotoAndPlay (85);
}
}
}
life = 6;
armor = 1;
yaccel = 3;
yspeed = 0;
falling = 0;
score = 100;
notbashable = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
son.attachSound("hit");
Instance of Symbol 804 MovieClip in Symbol 1358 MovieClip Frame 21
onClipEvent (load) {
frame = "stand";
}
Symbol 1358 MovieClip Frame 32
gotook = 0;
if (life <= 0) {
gotook = 1;
}
Instance of Symbol 1356 MovieClip in Symbol 1358 MovieClip Frame 32
onClipEvent (load) {
frame = "drop_r";
}
Instance of Symbol 804 MovieClip in Symbol 1358 MovieClip Frame 48
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 1358 MovieClip Frame 52
gotook = 0;
if (life <= 0) {
gotook = 1;
}
Instance of Symbol 1356 MovieClip in Symbol 1358 MovieClip Frame 52
onClipEvent (load) {
frame = "drop_l";
}
Instance of Symbol 804 MovieClip in Symbol 1358 MovieClip Frame 68
onClipEvent (load) {
frame = "stand_loop";
}
Symbol 1358 MovieClip Frame 75
anim.model.gotoAndStop("drop");
_parent.attach("explosion", "explo", 1, _x, _y - 30);
_parent.cur._yscale = _parent.cur._yscale * -1;
falling = 1;
Symbol 1358 MovieClip Frame 80
call("drop_r");
Symbol 1358 MovieClip Frame 85
_root.shake_ground();
_root.colorize_change(50, 1);
setson();
son.attachSound("explosion1");
surson();
for (var a in _parent._parent.decor) {
if (_parent._parent.decor[a].hitzone.hitTest(testzone)) {
_parent._parent.decor[a].hit(owner, this, 0, -15, 10, 10, 1);
_parent._parent.decor[a].burn(this, "burnzone", _x, _y - 20);
}
}
Symbol 1358 MovieClip Frame 88
event_die();
_root.colorize_change(-50, 1);
if (_root.mainbg._currentframe > 3) {
if (lightloss) {
_root.colorize_change(-lightloss);
} else {
_root.colorize_change(-20);
}
}
_visible = 1;
for (a in _parent) {
if (_parent[a].hitzone.hitTest(testzone)) {
_parent[a].hit(owner, this, 0.2 * (_parent[a]._x - _x), -15, 10, 5, 1);
}
}
Symbol 1358 MovieClip Frame 97
removeMovieClip(this);
_visible = 0;
stop();
Symbol 1359 MovieClip Frame 1
stop();
Symbol 1360 MovieClip Frame 1
stop();
Symbol 1365 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = _root;
if (!indestructible) {
damage = damagebase + (damagerand * Math.random());
life = life - damage;
}
if (life <= 0) {
life = 0;
gotoAndPlay (10);
_visible = 0;
_local1.sprites.attachMovie("explosion_crate", "explosion" + _local1.sprites.n, _local1.sprites.n);
cur_explosion = _local1.sprites["explosion" + _local1.sprites.n];
cur_explosion._x = _x;
cur_explosion._y = _y;
cur_explosion._xscale = _xscale * 1.2;
cur_explosion._yscale = _xscale * 1.2;
cur_explosion.gotoAndPlay(2);
cur_explosion._visible = 1;
_local1.sprites.n_raise();
}
}
life = 10 + (10 * Math.random());
surprise = _parent._parent.sprites[_name + "_surprise"];
ennemy = _parent._parent.sprites.hero;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
stop();
Symbol 1365 MovieClip Frame 10
setson();
son.attachSound("explosion1");
surson();
explode();
event_destroy();
Symbol 1365 MovieClip Frame 14
surprise._x = spritex;
surprise._y = spritey;
surprise.activate();
stop();
Symbol 1366 MovieClip Frame 1
function attach(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
var _local3 = nom;
if (dept) {
var _local2 = dept;
} else {
var _local2 = n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
attachMovie(_local1, _local3 + n, _local2);
cur = this[_local3 + n];
} else {
attachMovie(_local1, _local3, _local2);
cur = this[_local3];
}
cur.distinction = distinction;
cur._x = x;
cur._y = y;
n_raise();
_local1._xscale = xscaleorig;
}
function duplicate(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
if (dept) {
var _local3 = dept;
} else {
var _local3 = n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
duplicateMovieClip (_local1, nom + n, _local3);
var _local2 = this[nom + n];
} else {
duplicateMovieClip (_local1, nom, _local3);
var _local2 = this[nom];
}
_local2.distinction = distinction;
_local2._x = x;
_local2._y = y;
n_raise();
_local1._xscale = xscaleorig;
}
function badang(cible, bangx, bangy, style) {
var _local1 = cible;
attachMovie("hitbadang", "hitbadang" + n, n + 3000);
bang = this["hitbadang" + n];
_local1.bang = bang;
bang._rotation = int(180 * Math.random());
bang._x = _local1._x + bangx;
bang._y = (_local1._y + _local1.middle) + bangy;
n_raise();
}
function itemdrop(x, y, kind, stay, yfac) {
var _local1 = kind;
var _local3 = yfac;
attachMovie("object", "object" + n, n);
item = this["object" + n];
item._x = x;
item._y = y;
if (!_local3) {
_local3 = -1;
}
item.yspeed = 6 * _local3;
item.forever = stay;
if (_local1 == "random") {
var _local2 = Math.random();
if ((_local2 <= _root.liferatio) || (!_root.hasgrenades)) {
_local1 = "life";
} else {
_local1 = "grenade";
}
}
if (_local1 == "extralife") {
item.gotoAndPlay(20);
} else {
item.gotoAndPlay(2);
}
item.iteminside.gotoAndStop(_local1);
n_raise();
}
function n_raise() {
n++;
if (n >= 12000) {
n = 100;
}
}
if (_root.point == 1) {
hero.gotoAndPlay(270);
}
n = 100;
stop();
Instance of Symbol 128 MovieClip "zone_antibush" in Symbol 1366 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitzone.hitTest(this) and _root.hero.hidden) {
_root.hero.object_attached.gotoAndStop(10);
_root.hero.object_attached._x = _x - 80;
_root.hero.object_attached = 0;
_root.hero.hidden = 0;
}
}
Instance of Symbol 1219 MovieClip in Symbol 1366 MovieClip Frame 1
onClipEvent (load) {
function event() {
_root.decor.door_entrance.gotoAndPlay("close");
_parent.alarm.gotoAndPlay("alarm");
_root.area_change(2);
gotoAndStop (20);
}
}
Instance of Symbol 1219 MovieClip "zone_spikes" in Symbol 1366 MovieClip Frame 1
onClipEvent (enterFrame) {
function event() {
_root.hero.hit(this, this, -3, -20, 10, 0, 0);
}
}
Instance of Symbol 1223 MovieClip "bell" in Symbol 1366 MovieClip Frame 1
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
setson();
if (attacker._x > _x) {
gotoAndPlay (20);
} else {
gotoAndPlay (2);
}
}
function event_hit() {
if (!dooropened) {
dooropened = 1;
_root.decor.door_entrance.gotoAndPlay("open");
}
}
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
dooropened = 0;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
}
Instance of Symbol 812 MovieClip [soldier] "sniper1" in Symbol 1366 MovieClip Frame 1
onClipEvent (load) {
function init() {
setdirection(-1);
mobile = 0;
life = 1;
dirchanging = 0;
}
}
Instance of Symbol 1338 MovieClip "hero" in Symbol 1366 MovieClip Frame 1
onClipEvent (load) {
function setkeys() {
var _local1 = _root;
key_left = _local1.key_left;
key_right = _local1.key_right;
key_jump = _local1.key_jump;
key_up = _local1.key_jump;
key_jump2 = _local1.key_jump2;
key_esquiv = _local1.key_esquiv;
key_down = _local1.key_esquiv;
}
function level() {
armor = 1.3 - (0.3 * _root.difficulty);
power = 1.9 - (0.3 * _root.difficulty);
}
function colorize(r, g, b) {
colorchange = {rb:0, ra:r, gb:0, ga:g, bb:0, ba:b, aa:100, ab:0};
couleur.setTransform(colorchange);
}
function restoredepth() {
this.swapDepths(depthorig);
}
function setdirection(dir) {
if (direction != dir) {
maing.swapDepths(gun);
}
direction = dir;
_xscale = (direction * xscale_orig);
}
function fireratechange(factor) {
firerate = firerate + factor;
}
function desactivate() {
active = 0;
gun.anim.gotoAndStop(1);
tracktime = 0;
shoottime = 0;
key_left = 2000;
key_right = 2001;
key_down = 2005;
key_jump = 2002;
key_jump2 = 2003;
key_esquiv = 2004;
}
function activate() {
active = 1;
tracktime = 1;
shoottime = 1;
fixtrack = 0;
setkeys();
}
function expression(frame) {
head.anim.model.gotoAndStop(frame);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if ((life > 0) && (active || (driving_tank))) {
damage = damagebase + int(Math.random() * damagerand);
_root.shake_hit(damage);
damage = int(damage / armor);
if (powerful == "smash") {
lifechange(-damage);
if (life > 0) {
gotoAndPlay (419);
}
} else {
if (!driving_tank) {
xspeed = rvolx / 4;
}
if (Math.abs(xspeed) > 12) {
xspeed = (12 * Math.abs(xspeed)) / xspeed;
}
yspeed = rvoly;
lifechange(-damage);
_parent.badang(this);
if (life > 0) {
grenadtime = 0;
if (driving_tank) {
gotoAndPlay (371);
} else {
move_y();
gotoAndPlay (170);
}
}
}
}
}
function lifechange(factor) {
life = life + factor;
if (life > lifemax) {
life = lifemax;
} else if (life < 0) {
life = 0;
}
lifebar._xscale = (life / lifemax) * 100;
if ((life <= 0) && (!_root.winner)) {
gotoAndPlay (467);
}
}
function die() {
var _local1 = _root;
var _local2 = _parent;
xspeed = 0;
yspeed = 0;
yaccel = 0;
tracktime = 0;
shoottime = 0;
_local1.dieshake();
_local1.red = 100;
_local1.blue = 100;
_local1.green = 100;
_local1.colorize();
_local1.herodead = 1;
ycam = 0;
this.swapDepths(16000);
_local2._parent.foreground._visible = 0;
_local2.diescreen._x = (-game._x) + game.xdecalorig;
_local2.diescreen._y = -game._y;
_local2.diescreen.gotoAndPlay(2);
_local2.diescreen.swapDepths(15000);
active = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
}
function shoot() {
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
shootok = 0;
}
function shoot2() {
if ((yaccel != 0) && (!status_driving)) {
xspeed = xspeed - (((2 * (90 + gun.anim._rotation)) / 90) * direction);
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
_root.lastshot_owner = this;
shot._x = (((gun._x * _xscale) / 100) + _x) + _parent._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _parent._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
game.n_raise();
}
function grenadshoot() {
var _local1 = _parent;
if ((_root.grenadamnt > 0) && (crouched)) {
grenadechange(-1);
head.anim.gotoAndPlay("grenade");
grenadok = 0;
_local1.attachMovie(grenades, "grenade" + _local1.n, _local1.n);
grenade = _local1["grenade" + _local1.n];
grenade._x = (((head._x * _xscale) / 100) + _x) + ((direction * 10) * Math.sin(head.anim._rotation / 57.3));
grenade._y = (((head._y * _yscale) / 100) + _y) + (10 * (-Math.cos(head.anim._rotation / 57.3)));
grenade.xspeed = (direction * 30) * Math.sin(head.anim._rotation / 57.3);
grenade.yspeed = 30 * (-Math.cos(head.anim._rotation / 57.3));
grenade.grenade.grenade._rotation = head.anim._rotation - 90;
grenade.owner = this;
_local1._parent.shoottime = 0;
_local1.n_raise();
game.attachMovie("shot_grenade", "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((head._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((head._y * _yscale) / 100) + _y) + _local1._y;
shot._xscale = 50;
shot._yscale = 50;
shot._rotation = direction * head.anim._rotation;
game.n_raise();
}
}
function grenadechange(factor) {
var _local1 = _root;
_local1.grenadamnt = _local1.grenadamnt + factor;
if (_local1.grenadamnt > 20) {
_local1.grenadamnt = 20;
} else if (_local1.grenadamnt < 0) {
_local1.grenadamnt = 0;
}
}
function groundcheck() {
ground = 0;
if ((yspeed >= 0) && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
ground = 1;
}
}
function camxmove() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
}
function camset() {
game._x = ((-game.cameradiv) * _x) + game.xdecalbase;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecalcible;
if ((_x + xdecal) > game.camxmax) {
game._x = ((-game.cameradiv) * game.camxmax) + game.xdecalbase;
} else if ((_x + xdecal) < game.camxmin) {
game._x = ((-game.cameradiv) * game.camxmin) + game.xdecalbase;
} else {
game._x = ((-game.cameradiv) * _x) + game.xdecalbase;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecalcible;
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
game.ydecal = (-_y) + ybase;
}
function camxmove2() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game.xcible = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
game._x = game._x + ((game.xcible - game._x) / 6);
}
}
function move() {
if ((!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + xspeed);
object_attached._x = object_attached._x + xspeed;
}
camxmove();
}
function xchange(factor) {
var _local1 = factor;
if ((!decor.hitTest((game._x + _x) + ((20 * _local1) / Math.abs(_local1)), (game._y + _y) - 3, 1)) && (!decor.hitTest((game._x + _x) + _local1, (game._y + _y) + (middle * 1.5), 1))) {
_x = (_x + _local1);
}
camxmove();
}
function move_slide() {
move();
xspeed = xspeed / friction;
}
function track() {
if (tracktime == 1) {
if (!fixtrack) {
rotcible = ((Math.abs(gun._ymouse) / gun._ymouse) * 90) - (Math.atan(gun._xmouse / gun._ymouse) * 57.3);
if (rotcible > 25) {
rotcible = 25;
} else if (isNaN(rotcible)) {
rotcible = 0;
}
}
rotspeed = (rotcible - gunanirot) / 3;
headspeed = ((rotcible / 1.1) - hanirot) / 2.5;
bodyspeed = ((rotcible / 4) - banirot) / 2.5;
gunanirot = gunanirot + rotspeed;
if (gunanirot < -90) {
gunanirot = -90;
}
hanirot = hanirot + headspeed;
if (head.anim.rot < -90) {
head.anim.rot = -90;
}
banirot = banirot + bodyspeed;
rot = gunanirot;
gunanix = rot / -60;
gunaniy = -Math.abs(rot / 25);
headxcible = rot / 18;
hanix = hanix + ((headxcible - hanix) / 3);
haniy = -Math.abs(rot / 60);
banix = rot / -90;
baniy = -Math.abs(rot / 60);
} else if (tracktime == 2) {
rotcible2 = head._xmouse / 10;
if (rotcible2 > 60) {
rotcible2 = 60;
} else if (rotcible2 < 8) {
rotcible2 = 8;
} else if (isNaN(rotcible2)) {
rotcible2 = 0;
}
hanirot = hanirot + ((rotcible2 - hanirot) / 2);
gunanirot = gunanirot + ((-gunanirot) / 3);
banirot = banirot + ((-banirot) / 3);
}
}
function rotate() {
if (gunanirot > 0) {
gunanirot = -90;
} else {
gunanirot = -90 + (-90 - gunanirot);
gunanix = -gunanix;
}
if (hanirot > 0) {
hanirot = -90;
} else {
hanirot = -90 + (-90 - hanirot);
hanix = -hanix;
}
track();
updateparts();
}
function updateparts() {
head.anim._x = hanix;
head.anim._y = haniy;
head.anim._rotation = hanirot;
body.anim._x = banix;
body.anim._y = baniy;
body.anim._rotation = banirot;
gun._rotation = gun_control._rotation;
gun._x = gun_control._x;
gun._y = gun_control._y;
gun._xscale = gun_control._xscale;
gun._yscale = gun_control._yscale;
gun.anim._x = gunanix;
gun.anim._y = gunaniy;
gun.anim._rotation = gunanirot;
maing._rotation = (gun._rotation + gun.anim._rotation) + gun.anim.gun._rotation;
maing._x = gun._x + gun.anim._x;
maing._y = gun._y + gun.anim._y;
maing.anim._x = gun.anim.gun._x + 25;
maing.anim._xscale = (80 - (Math.abs(xspeed) * movedirection)) - (gun.anim._rotation / 3);
maing.anim._rotation = (0.3 * (gun._y + (gun.anim._rotation / 1.5))) + 10;
maing.anim._y = gun.anim.gun._y;
maing._xscale = gun._xscale;
maing._yscale = gun._yscale;
}
function saveparts() {
hx = head._x;
hy = head._y;
hr = head._rotation;
bx = body._x;
by = body._y;
br = body._rotation;
gx = gun_control._x;
gy = gun_control._y;
gr = gun_control._rotation;
}
function targetparts() {
hxc = head._x;
hyc = head._y;
hrc = head._rotation;
bxc = body._x;
byc = body._y;
brc = body._rotation;
gxc = gun_control._x;
gyc = gun_control._y;
grc = gun_control._rotation;
}
function loadparts() {
head._x = hx;
head._y = hy;
head._rotation = hr;
body._x = bx;
body._y = by;
body._rotation = br;
gun_control._x = gx;
gun_control._y = gy;
gun_control._rotation = gr;
}
function moveparts() {
head._x = head._x + ((hxc - head._x) / div);
head._y = head._y + ((hyc - head._y) / div);
head._rotation = head._rotation + ((hrc - head._rotation) / div);
body._x = body._x + ((bxc - body._x) / div);
body._y = body._y + ((byc - body._y) / div);
body._rotation = body._rotation + ((brc - body._rotation) / div);
gun_control._x = gun_control._x + ((gxc - gun_control._x) / div);
gun_control._y = gun_control._y + ((gyc - gun_control._y) / div);
gun_control._rotation = gun_control._rotation + ((grc - gun_control._rotation) / div);
}
decor = _root.decor;
game = _root.game;
shots = _parent._parent.shots;
grenades = "plasmagrenade";
lifebar = _root.status.lifebar;
rotbar = _root.status_rot;
xdecal = 0;
yspeed = 0;
xspeed = 0;
yaccel = 3;
yaccel_orig = 3;
xdecaldivider_orig = 6;
xdecaldivider = xdecaldivider_orig;
sonoff = 0;
active = 1;
ycam = 1;
x_orig = _x;
y_orig = _y;
middle = (-_height) / 3;
lifemax = 100;
life = lifemax;
lifebar._xscale = (life / lifemax) * 100;
waitingland = 0;
setkeys();
footchange = 0;
xscale_orig = _xscale;
direction = 1;
movedirection = 1;
friction = 1.4;
climbspeed = -3;
walkspeed = 6;
rollspeed = 10;
backwalkspeed = -6;
range_orig = 400;
range_tank = 500;
range = 400;
ybasetank = 0;
ybase = ybaseorig;
ym = 50;
ycam = 1;
depthorig = this.getDepth();
this.swapDepths(3000);
son = new Sound(this);
_root.sons.push(son);
couleur = new Color(this);
colorchange = new Object();
level();
colorize(100, 100, 100);
_root.herodead = 0;
tracktime = 1;
rolltime = 1;
firerate = _root.herofirerate;
fireratemax = 4;
grenadamnt = 10;
_root.permalight.push(misc);
setdirection(1);
camset();
xorig = _x;
yorig = _y;
owner = _parent._parent;
init();
delete init;
if (_root.gonnaretry) {
_root.gonnaretry = 0;
_root.retry();
}
}
onClipEvent (enterFrame) {
absx = game._x;
absy = game._y;
_root.cframe = _currentframe;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecal + ((xdecalcible - xdecal) / xdecaldivider);
_y = (_y + yspeed);
if (ycam) {
game.yspeed = game.yspeed + (((-game.ydecal) - (_y - ybase)) / 1.5);
game.yspeed = game.yspeed / 12;
game.ydecal = game.ydecal + game.yspeed;
}
if ((yspeed < 0) && (!decor.hitTest(game._x + _x, ((game._y + _y) + (2 * middle)) + (yspeed / 3), 1))) {
yspeed = yspeed + yaccel;
} else if ((yspeed >= 0) && (!decor.hitTest(game._x + _x, game._y + _y, 1))) {
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((life > 0) && (decor.hitTest(game._x + _x, (game._y + _y) - 2, 1))) {
_y = (_y - 1);
}
while ((life > 0) && (decor.hitTest((game._x + _x) + 12, (game._y + _y) - 3, 1))) {
_x = (_x - 3);
}
while ((life > 0) && (decor.hitTest((game._x + _x) - 12, (game._y + _y) - 3, 1))) {
_x = (_x + 3);
}
track();
updateparts();
}
onClipEvent (mouseDown) {
punchok = 0;
gonnashoot = 1;
gonnagrenad = 1;
if (grenadtime && (grenadok)) {
grenadshoot();
} else {
if (shoottime) {
for (a in _parent) {
if ((_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) && (!_parent[a].notbashable)) {
punchok = 1;
}
}
}
if (((!status_driving) && (punchok)) && (decor.hitTest(game._x + _x, ((game._y + _y) + (yspeed / 2)) + 2, 1))) {
tracktime = 0;
shoottime = 0;
gun.anim._rotation = 0;
gotoAndPlay (240);
} else if (shoottime && (shootok)) {
shoot();
}
}
}
onClipEvent (mouseUp) {
gonnagrenad = 0;
gonnashoot = 0;
}
onClipEvent (load) {
xorig = 122.75;
yorig = 165.9;
}
Symbol 1366 MovieClip Frame 2
function create_grenadier1() {
var _local1 = this;
attach("grenadier", "grenadier2", 0, zone_grenadier._x, zone_grenadier._y, n);
cur.init = function () {
var _local1 = this;
_local1.yaccel = 0;
_local1.life = 3;
_local1.setdirection(-1);
};
}
Instance of Symbol 1341 MovieClip "zone_1" in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function event() {
_parent.creator.create();
gotoAndStop (20);
}
}
Instance of Symbol 1219 MovieClip "zone_bridge" in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function event() {
_root.decor.bridge.gotoAndPlay("explode");
gotoAndStop (20);
}
}
Instance of Symbol 1341 MovieClip "zone_change1" in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function event() {
_root.area_change(3);
gotoAndStop (20);
}
}
Instance of Symbol 287 MovieClip "creator" in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function create() {
var _local1 = _parent;
if (stock > 0) {
_local1.duplicate(_local1.trooper1, "tr_", 1, _x, _y);
stock--;
clearInterval(_local1.interval_create);
}
}
stock = 1;
}
Instance of Symbol 1341 MovieClip in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function event() {
if (_parent.alarm.onn) {
_parent.alarm.gotoAndPlay("explode");
gotoAndStop (20);
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function event() {
_root.area_change(3);
gotoAndStop (20);
}
}
Instance of Symbol 765 MovieClip [grenadier] "grenadier1" in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function init() {
setdirection(-1);
paces = 5;
mobile = 0;
}
}
Instance of Symbol 727 MovieClip [trooper] "trooper1" in Symbol 1366 MovieClip Frame 2
onClipEvent (load) {
function event_die() {
if (_name != "trooper1") {
_parent.creator.create();
}
}
function init() {
setdirection(-1);
this.gotoAndPlay("dash");
}
}
Symbol 1366 MovieClip Frame 3
_root.event_tankcustom = function () {
_root.area_change(4);
delete _root.event_tankcustom;
};
Instance of Symbol 692 MovieClip [dog] "dog_1" in Symbol 1366 MovieClip Frame 3
onClipEvent (load) {
function init() {
raging = 0;
life = 12;
}
}
Instance of Symbol 692 MovieClip [dog] in Symbol 1366 MovieClip Frame 3
onClipEvent (load) {
function init() {
raging = 0;
life = 12;
}
}
Instance of Symbol 692 MovieClip [dog] in Symbol 1366 MovieClip Frame 3
onClipEvent (load) {
function init() {
raging = 0;
life = 12;
}
}
Instance of Symbol 1341 MovieClip "zone_change3" in Symbol 1366 MovieClip Frame 4
onClipEvent (load) {
function event() {
_root.decor.tank.x_min = 6550;
_root.area_change(5);
_parent.creator1.gotoAndPlay(14);
gotoAndStop (20);
}
}
Instance of Symbol 1346 MovieClip "creator1" in Symbol 1366 MovieClip Frame 4
onClipEvent (load) {
function event() {
var _local1 = _parent;
if (stock > 0) {
duplicateMovieClip (_local1.t_1, "t_" + _local1.n, _local1.n);
var _local2 = _local1["t_" + _local1.n];
_local2._x = _x;
_local2._y = _y;
_local1.n_raise();
stock--;
} else {
gotoAndStop (20);
}
}
stock = 4;
gotoAndStop (20);
}
Instance of Symbol 812 MovieClip [soldier] "sniper2" in Symbol 1366 MovieClip Frame 4
onClipEvent (load) {
function init() {
setdirection(-1);
mobile = 0;
dirchanging = 0;
}
}
Instance of Symbol 765 MovieClip [grenadier] in Symbol 1366 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 651 MovieClip [bazooka] "bazooka1" in Symbol 1366 MovieClip Frame 4
onClipEvent (load) {
function init() {
setdirection(-1);
dirchanging = 0;
fixdir = -1;
mobile = 0;
}
}
Instance of Symbol 727 MovieClip [trooper] "tank_driver" in Symbol 1366 MovieClip Frame 4
onClipEvent (load) {
function init() {
desactivate();
setdirection(-1);
}
}
Instance of Symbol 812 MovieClip [soldier] "soldier1" in Symbol 1366 MovieClip Frame 4
onClipEvent (load) {
function init() {
function event_activate() {
setdirection(-1);
}
setdirection(-1);
if (_name == "soldier2") {
stronghit = 1;
yaccel = 0;
activate();
}
mobile = 0;
dirchanging = 0;
}
}
Symbol 1366 MovieClip Frame 5
function create_grenadier2() {
}
Instance of Symbol 1341 MovieClip "zone_change4" in Symbol 1366 MovieClip Frame 5
onClipEvent (load) {
function event() {
var _local1 = _root;
_local1.game.ybasechange(350, 20);
_local1.decor.tank.x_min = 7500;
_local1.area_change(6);
gotoAndStop (20);
}
}
Instance of Symbol 1341 MovieClip in Symbol 1366 MovieClip Frame 5
onClipEvent (load) {
function event() {
var _local1 = _parent;
duplicateMovieClip (_local1.soldier1, "soldier2", _local1.n);
_local1.soldier2._x = _local1.zone_soldier._x;
_local1.soldier2._y = _local1.zone_soldier._y;
_local1.n_raise();
_local1.bazooka1.activate();
_local1.creator2.gotoAndPlay(14);
gotoAndStop (20);
}
}
Instance of Symbol 1346 MovieClip "creator2" in Symbol 1366 MovieClip Frame 5
onClipEvent (load) {
function event() {
var _local1 = _parent;
if (stock > 0) {
duplicateMovieClip (_local1.t_1, "t_" + _local1.n, _local1.n);
var _local2 = _local1["t_" + _local1.n];
_local2._x = _x;
_local2._y = _y;
_local1.n_raise();
stock--;
} else {
gotoAndStop (20);
}
}
stock = 2;
gotoAndStop (20);
}
Instance of Symbol 727 MovieClip [trooper] "t_1" in Symbol 1366 MovieClip Frame 5
onClipEvent (load) {
function init() {
if (_name == "t_1") {
desactivate();
} else {
priorframe = "dash";
setdirection(-1);
activate();
}
}
}
Instance of Symbol 765 MovieClip [grenadier] "grenadier1" in Symbol 1366 MovieClip Frame 5
onClipEvent (load) {
function init() {
longranged = 1;
if (_name == "grenadier2") {
setdirection(-1);
paces = 10;
} else {
life = 1;
}
}
}
Instance of Symbol 1358 MovieClip in Symbol 1366 MovieClip Frame 5
onClipEvent (load) {
function init() {
life = 1;
}
}
Instance of Symbol 651 MovieClip [bazooka] "bazooka1" in Symbol 1366 MovieClip Frame 5
onClipEvent (load) {
function init() {
var _local1 = _parent;
function event_die() {
var _local1 = _parent;
if ((_name == "bazooka1") && (!_root.decor.tank.hitTest(_local1.zone_change4))) {
duplicateMovieClip (this, "bazooka2", _local1.n);
_local1.bazooka2._x = x_orig;
_local1.bazooka2._y = y_orig;
_local1.n_raise();
}
}
x_orig = _x;
y_orig = _y;
setdirection(-1);
mobile = 0;
longranged = 1;
dirchanging = 0;
fixdir = -1;
if (_name == "bazooka1") {
desactivate();
}
}
}
Instance of Symbol 1341 MovieClip "zone_change5" in Symbol 1366 MovieClip Frame 6
onClipEvent (load) {
function event() {
_root.area_change(7);
gotoAndStop (20);
}
}
Instance of Symbol 1359 MovieClip "bonomzone" in Symbol 1366 MovieClip Frame 6
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
boss.hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand);
}
notbashable = 1;
boss = _root.bg.boss_helico;
}
Instance of Symbol 1360 MovieClip "helicezone" in Symbol 1366 MovieClip Frame 6
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
boss.hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand);
}
notbashable = 1;
boss = _root.bg.boss_helico;
}
Symbol 1366 MovieClip Frame 7
function create_baz26() {
duplicate(baz_1, "baz_2", 0, zone_bazooka2._x, zone_bazooka2._y);
duplicate(baz_1, "baz_6", 0, zone_bazooka6._x, zone_bazooka6._y);
}
function create_baz34() {
duplicate(baz_1, "baz_3", 0, zone_bazooka3._x, zone_bazooka3._y);
duplicate(baz_1, "baz_4", 0, zone_bazooka3._x - 50, zone_bazooka3._y + 200);
}
function create_custom(object, x, y) {
duplicate(object, "custom_", 1, x, y);
}
_root.point = 3;
_root.decor.tank.x_min = 8300;
_root.point = 3;
Instance of Symbol 1341 MovieClip in Symbol 1366 MovieClip Frame 7
onClipEvent (load) {
function event() {
_parent.create_baz34();
_root.area_change(8);
gotoAndStop (20);
}
}
Instance of Symbol 651 MovieClip [bazooka] "baz_1" in Symbol 1366 MovieClip Frame 7
onClipEvent (load) {
function init() {
setdirection(-1);
mobile = 0;
dirchanging = 0;
fixdir = -1;
longranged = 1;
}
}
Instance of Symbol 765 MovieClip [grenadier] "gren_1" in Symbol 1366 MovieClip Frame 7
/* no clip actions */
Symbol 1366 MovieClip Frame 8
function create_baz5() {
var _local1 = this;
attach("bazooka", "baz", 1, zone_bazooka3._x + 50, zone_bazooka3._y - 200);
cur.init = function () {
var _local1 = this;
_local1.mobile = 0;
_local1.dirchanging = 0;
_local1.setdirection(-1);
_local1.fixdir = -1;
};
}
_root.decor.tank.x_min = 9200;
Instance of Symbol 1341 MovieClip "zone_change6" in Symbol 1366 MovieClip Frame 8
onClipEvent (load) {
function event() {
_root.area_change(9);
gotoAndStop (20);
}
}
Symbol 1366 MovieClip Frame 9
function attach_soldier(number, sorte) {
var _local1 = this;
var _local2 = _root;
if (sorte) {
var baddie = sorte;
} else if ((Math.random() < 0.65) || (bazookacount >= 1)) {
var baddie = "soldier";
} else {
var baddie = "bazooka";
}
if (number == 1) {
var _local3 = -90;
} else {
var _local3 = 0;
}
attach(baddie, "soldier" + number, 1, _local1["creator" + number]._x + (30 * _local1["freespace" + number]), _local1["creator" + number]._y, n + _local3);
cur.kind = baddie;
_local2.sprites[cur.kind + "count"]++;
cur.init = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.kind == "bazooka") {
_local1.rocketinit = function () {
this.rocket.immuneto_badshots = 1;
};
}
_local1.normdieson = 1;
_local1.setdirection(-1);
_local1.dirchanging = 0;
if (baddie == "bazooka") {
_local1.fixdir = -1;
}
_local1.mobile = 0;
_local1.longranged = 1;
_local1.distinction = number;
_local1.pos = _local2.sprites["freespace" + _local1.distinction];
_local2.sprites["freespace" + _local1.distinction] = _local2.sprites["freespace" + _local1.distinction] * -1;
_local1.standratio = 1;
_local1.dashsteps = 7;
_local1.depthswapping = 1;
_local1.yaccel = 0;
_local1.life = 7 + int(2 * Math.random());
_local1.immuneto_badshots = 1;
_local1.score = 0;
_local1.event_die = function () {
var _local1 = this;
var _local2 = _root;
_local2.sprites[_local1.kind + "count"]--;
_local2.sprites["freespace" + _local1.distinction] = _local1.pos;
_local2.sprites["soldiercount" + _local1.distinction]--;
};
};
}
function doorend() {
_root.shake(50, 5, 2, 0);
clearInterval(interval_create1);
clearInterval(interval_create2);
soldiercount1 = 12;
soldiercount2 = 12;
}
function doorend2() {
var _local1 = this;
for (var _local2 in _local1) {
if ((_local1[_local2].distinction > 0) && (_local1[_local2].life > 0)) {
_local1[_local2].hit(0, 0, 3, -14, 0, 0, 1);
}
}
}
function doorend3() {
_root.area_change(10);
}
_root.tank.x_min = 10650;
soldiercount1 = 1;
soldiercount2 = 0;
soldiercount = 1;
bazookacount = 0;
freespace1 = -1;
freespace2 = -1;
_root.point = 4;
attach_soldier(1, "soldier");
_root.point = 4;
Instance of Symbol 287 MovieClip "creator1" in Symbol 1366 MovieClip Frame 9
onClipEvent (load) {
function create() {
var _local1 = _parent;
if (((_local1.soldiercount1 < 2) && ((_local1.soldiercount1 + _local1.soldiercount2) < 3)) && (Math.random() < 0.5)) {
_local1.attach_soldier(1);
_local1.soldiercount1++;
}
}
function startcreate() {
_parent.interval_create1 = setInterval(create, 500);
clearInterval(interval_startcreate);
}
interval_startcreate = setInterval(startcreate, 250);
}
Instance of Symbol 287 MovieClip "creator2" in Symbol 1366 MovieClip Frame 9
onClipEvent (load) {
function create() {
var _local1 = _parent;
if (((_local1.soldiercount2 < 2) && ((_local1.soldiercount1 + _local1.soldiercount2) < 3)) && (Math.random() < 0.5)) {
_local1.attach_soldier(2);
_local1.soldiercount2++;
}
}
_parent.interval_create2 = setInterval(create, 500);
}
Symbol 1366 MovieClip Frame 10
function event_unboardtank() {
var _local1 = _root;
hero.gotoAndPlay("jump");
hero.jumpxspeed = 5;
hero.shoottime = 0;
_local1.tank.cpu = 2;
hero.driving_tank = 0;
hero.ybase = hero.ybaseorig;
_local1.itemratio = _local1.itemratioorig;
_local1.tank.gotoAndStop("abandonned");
clearInterval(interval_unboardtank);
}
function event_doorclosed() {
var _local1 = _root;
_local1.point = 5;
_local1.event_transition = function () {
_root.gotopoint();
};
_local1.event_transitionend = function () {
var _local1 = _root;
_local1.textbox.texte = "baseenter";
_local1.textbox.gotoAndPlay("info");
delete _local1.event_transitionend;
};
_local1.transition.gotoAndPlay("side");
}
function event_dooropened() {
attach("bazooka", "bazooka", 1, zone_doorclose._x, zone_doorclose._y + 50);
cur.init = function () {
this.setdirection(-1);
this.paces = 2;
};
cur.event_die = function () {
if (alarm.life > 0) {
alarm.gotoAndPlay("explode");
}
count--;
};
}
count = 2;
Instance of Symbol 1341 MovieClip "zone_unboard" in Symbol 1366 MovieClip Frame 10
onClipEvent (load) {
function event() {
var _local1 = _parent;
_local1.interval_unboardtank = setInterval(_local1.event_unboardtank, 300);
_local1.hero.desactivate();
_local1.hero.tracktime = 1;
_local1.hero.shoottime = 1;
gotoAndStop (20);
}
}
Instance of Symbol 1341 MovieClip "zone_doorclose" in Symbol 1366 MovieClip Frame 10
onClipEvent (load) {
function event() {
if (_parent.count < 0) {
_root.hero.desactivate();
_root.foreground.door.gotoAndPlay("close");
gotoAndStop (20);
}
}
}
Instance of Symbol 1341 MovieClip "zone_attach" in Symbol 1366 MovieClip Frame 10
onClipEvent (load) {
function event() {
var _local1 = _parent;
var _local2 = this;
var _local3 = _root;
_local1.attach("trooper", "trooper", 1, _x + 75, -275);
_local1.cur.init = function () {
this.setdirection(-1);
this.gotoAndStop("jump_wait");
};
_local1.cur.event_die = function () {
_parent.count--;
if (!_parent.count) {
_root.foreground.door.gotoAndPlay("open");
_root.decor.zone_safe.gotoAndStop(2);
}
};
_local1.attach("trooper", "trooper", 1, _x + 125, -325);
_local1.cur.init = function () {
this.setdirection(-1);
this.gotoAndStop("jump_wait");
};
_local1.cur.event_die = function () {
_parent.count--;
if (!_parent.count) {
_root.foreground.door.gotoAndPlay("open");
_root.decor.zone_safe.gotoAndStop(2);
}
};
_local1.alarm.gotoAndPlay("alarm");
gotoAndStop (20);
}
}
Instance of Symbol 1341 MovieClip in Symbol 1366 MovieClip Frame 10
onClipEvent (load) {
function event() {
_parent.hero.activate();
_parent.zone_noback.active = 1;
gotoAndStop (20);
}
}
Instance of Symbol 287 MovieClip "zone_noback" in Symbol 1366 MovieClip Frame 10
onClipEvent (enterFrame) {
if (active && (_root.hero._x < _x)) {
_root.hero._x = _x;
}
}
Instance of Symbol 287 MovieClip in Symbol 1372 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Math.abs(_parent._x - _root.hero._x) < 10) && (Math.abs(_parent._y - _root.hero._y) < 10)) {
_parent._x = _root.hero._x;
_root.hero.object_attached = _parent;
_root.hero.hidden = 1;
if (_root.hero.xspeed) {
_parent.gotoAndPlay("move");
}
}
}
Symbol 1372 MovieClip Frame 8
gotoAndStop (1);
Instance of Symbol 287 MovieClip in Symbol 1372 MovieClip Frame 10
onClipEvent (enterFrame) {
if (((Math.abs(_root.hero.xspeed) > 0.5) && (Math.abs(_parent._x - _root.hero._x) < 10)) && (Math.abs(_parent._y - _root.hero._y) < 10)) {
_parent.gotoAndPlay(11);
}
}
Symbol 1372 MovieClip Frame 16
gotoAndStop (10);
Symbol 1378 MovieClip Frame 1
stop();
Symbol 1387 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1390 MovieClip Frame 13
event_opened();
stop();
Symbol 1390 MovieClip Frame 28
event_closed();
gotoAndStop (1);
Symbol 1392 MovieClip Frame 1
stop();
Instance of Symbol 1372 MovieClip "buisson" in Symbol 1392 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1390 MovieClip "door" in Symbol 1392 MovieClip Frame 10
onClipEvent (load) {
function event_opened() {
_root.sprites.event_dooropened();
}
function event_closed() {
_root.sprites.event_doorclosed();
}
}
Symbol 1393 MovieClip Frame 1
_visible = 0;
stop();
Symbol 1393 MovieClip Frame 2
_parent.ydecalbase = _parent.ydecalbase + ((_parent.ycible - _parent.ydecalbase) / 10);
Symbol 1393 MovieClip Frame 3
call("move");
Symbol 1393 MovieClip Frame 4
call("move");
Symbol 1393 MovieClip Frame 5
call("move");
Symbol 1393 MovieClip Frame 6
call("move");
Symbol 1393 MovieClip Frame 7
call("move");
Symbol 1393 MovieClip Frame 8
call("move");
Symbol 1393 MovieClip Frame 9
call("move");
Symbol 1393 MovieClip Frame 10
call("move");
Symbol 1393 MovieClip Frame 11
call("move");
Symbol 1393 MovieClip Frame 12
call("move");
Symbol 1393 MovieClip Frame 13
call("move");
Symbol 1393 MovieClip Frame 14
call("move");
Symbol 1393 MovieClip Frame 15
call("move");
Symbol 1393 MovieClip Frame 16
call("move");
Symbol 1393 MovieClip Frame 17
call("move");
Symbol 1393 MovieClip Frame 18
call("move");
Symbol 1393 MovieClip Frame 19
call("move");
Symbol 1393 MovieClip Frame 20
call("move");
Symbol 1393 MovieClip Frame 21
call("move");
Symbol 1393 MovieClip Frame 22
call("move");
Symbol 1393 MovieClip Frame 23
call("move");
Symbol 1393 MovieClip Frame 24
call("move");
Symbol 1393 MovieClip Frame 25
call("move");
Symbol 1393 MovieClip Frame 26
call("move");
Symbol 1393 MovieClip Frame 27
call("move");
Symbol 1393 MovieClip Frame 28
call("move");
Symbol 1393 MovieClip Frame 29
call("move");
Symbol 1393 MovieClip Frame 30
call("move");
Symbol 1393 MovieClip Frame 31
call("move");
Symbol 1393 MovieClip Frame 32
call("move");
Symbol 1393 MovieClip Frame 33
call("move");
Symbol 1393 MovieClip Frame 34
call("move");
Symbol 1393 MovieClip Frame 35
call("move");
Symbol 1393 MovieClip Frame 36
call("move");
Symbol 1393 MovieClip Frame 37
call("move");
Symbol 1393 MovieClip Frame 38
call("move");
Symbol 1393 MovieClip Frame 39
call("move");
Symbol 1393 MovieClip Frame 40
call("move");
Symbol 1393 MovieClip Frame 41
call("move");
Symbol 1393 MovieClip Frame 42
call("move");
Symbol 1393 MovieClip Frame 43
call("move");
Symbol 1393 MovieClip Frame 44
call("move");
Symbol 1393 MovieClip Frame 45
call("move");
Symbol 1393 MovieClip Frame 46
call("move");
Symbol 1393 MovieClip Frame 47
call("move");
Symbol 1393 MovieClip Frame 48
call("move");
Symbol 1393 MovieClip Frame 49
call("move");
Symbol 1393 MovieClip Frame 50
call("move");
Symbol 1393 MovieClip Frame 51
call("move");
Symbol 1393 MovieClip Frame 52
call("move");
Symbol 1393 MovieClip Frame 53
call("move");
Symbol 1393 MovieClip Frame 54
call("move");
Symbol 1393 MovieClip Frame 55
call("move");
Symbol 1393 MovieClip Frame 56
call("move");
Symbol 1393 MovieClip Frame 57
call("move");
Symbol 1393 MovieClip Frame 58
call("move");
Symbol 1393 MovieClip Frame 59
call("move");
Symbol 1393 MovieClip Frame 60
call("move");
Symbol 1393 MovieClip Frame 61
call("move");
Symbol 1393 MovieClip Frame 62
call("move");
Symbol 1393 MovieClip Frame 63
call("move");
Symbol 1393 MovieClip Frame 64
call("move");
Symbol 1393 MovieClip Frame 65
call("move");
Symbol 1393 MovieClip Frame 66
call("move");
Symbol 1393 MovieClip Frame 67
call("move");
Symbol 1393 MovieClip Frame 68
call("move");
Symbol 1393 MovieClip Frame 69
call("move");
Symbol 1393 MovieClip Frame 70
call("move");
Symbol 1393 MovieClip Frame 71
if (_currentframe == 71) {
gotoAndStop (1);
}
Symbol 1394 MovieClip Frame 1
_visible = 0;
stop();
Symbol 1394 MovieClip Frame 2
_parent.xdecalbase = _parent.xdecalbase + ((_parent.xcible - _parent.xdecalbase) / 10);
Symbol 1394 MovieClip Frame 3
call("move");
Symbol 1394 MovieClip Frame 4
call("move");
Symbol 1394 MovieClip Frame 5
call("move");
Symbol 1394 MovieClip Frame 6
call("move");
Symbol 1394 MovieClip Frame 7
call("move");
Symbol 1394 MovieClip Frame 8
call("move");
Symbol 1394 MovieClip Frame 9
call("move");
Symbol 1394 MovieClip Frame 10
call("move");
Symbol 1394 MovieClip Frame 11
call("move");
Symbol 1394 MovieClip Frame 12
call("move");
Symbol 1394 MovieClip Frame 13
call("move");
Symbol 1394 MovieClip Frame 14
call("move");
Symbol 1394 MovieClip Frame 15
call("move");
Symbol 1394 MovieClip Frame 16
call("move");
Symbol 1394 MovieClip Frame 17
call("move");
Symbol 1394 MovieClip Frame 18
call("move");
Symbol 1394 MovieClip Frame 19
call("move");
Symbol 1394 MovieClip Frame 20
call("move");
Symbol 1394 MovieClip Frame 21
call("move");
Symbol 1394 MovieClip Frame 22
call("move");
Symbol 1394 MovieClip Frame 23
call("move");
Symbol 1394 MovieClip Frame 24
call("move");
Symbol 1394 MovieClip Frame 25
call("move");
Symbol 1394 MovieClip Frame 26
call("move");
Symbol 1394 MovieClip Frame 27
call("move");
Symbol 1394 MovieClip Frame 28
call("move");
Symbol 1394 MovieClip Frame 29
call("move");
Symbol 1394 MovieClip Frame 30
call("move");
Symbol 1394 MovieClip Frame 31
call("move");
Symbol 1394 MovieClip Frame 32
call("move");
Symbol 1394 MovieClip Frame 33
call("move");
Symbol 1394 MovieClip Frame 34
call("move");
Symbol 1394 MovieClip Frame 35
call("move");
Symbol 1394 MovieClip Frame 36
call("move");
Symbol 1394 MovieClip Frame 37
call("move");
Symbol 1394 MovieClip Frame 38
call("move");
Symbol 1394 MovieClip Frame 39
call("move");
Symbol 1394 MovieClip Frame 40
call("move");
Symbol 1394 MovieClip Frame 41
call("move");
Symbol 1394 MovieClip Frame 42
call("move");
Symbol 1394 MovieClip Frame 43
call("move");
Symbol 1394 MovieClip Frame 44
call("move");
Symbol 1394 MovieClip Frame 45
call("move");
Symbol 1394 MovieClip Frame 46
call("move");
Symbol 1394 MovieClip Frame 47
call("move");
Symbol 1394 MovieClip Frame 48
call("move");
Symbol 1394 MovieClip Frame 49
call("move");
Symbol 1394 MovieClip Frame 50
call("move");
Symbol 1394 MovieClip Frame 51
call("move");
Symbol 1394 MovieClip Frame 52
call("move");
Symbol 1394 MovieClip Frame 53
call("move");
Symbol 1394 MovieClip Frame 54
call("move");
Symbol 1394 MovieClip Frame 55
call("move");
Symbol 1394 MovieClip Frame 56
call("move");
Symbol 1394 MovieClip Frame 57
call("move");
Symbol 1394 MovieClip Frame 58
call("move");
Symbol 1394 MovieClip Frame 59
call("move");
Symbol 1394 MovieClip Frame 60
call("move");
Symbol 1394 MovieClip Frame 61
call("move");
Symbol 1394 MovieClip Frame 62
call("move");
Symbol 1394 MovieClip Frame 63
call("move");
Symbol 1394 MovieClip Frame 64
call("move");
Symbol 1394 MovieClip Frame 65
call("move");
Symbol 1394 MovieClip Frame 66
call("move");
Symbol 1394 MovieClip Frame 67
call("move");
Symbol 1394 MovieClip Frame 68
call("move");
Symbol 1394 MovieClip Frame 69
call("move");
Instance of Symbol 805 MovieClip in Symbol 1394 MovieClip Frame 70
onClipEvent (load) {
frame == 1;
}
Symbol 1398 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1399 MovieClip Frame 1
_root.colorize_change(10);
Symbol 1411 MovieClip Frame 1
if (_parent.label == "no") {
_visible = 0;
}
Symbol 1412 MovieClip Frame 1
_visible = 0;
Symbol 1412 MovieClip Frame 30
event();
Symbol 1412 MovieClip Frame 31
if (_currentframe == 31) {
gotoAndPlay (2);
}
Symbol 1412 MovieClip Frame 35
stop();
Symbol 1419 Button
on (release) {
if (_parent.flour != 0) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(4, 1);
};
if (_parent.flour > 0) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1420 Button
on (release) {
if (_parent.flour != 1) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(1, 1);
};
if (_parent.flour > 1) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1421 Button
on (release) {
if (_parent.flour != 2) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(5, 1);
};
if (_parent.flour > 2) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1428 Button
on (release) {
if (_parent.flour != 3) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(6, 1);
};
if (_parent.flour > 3) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1429 Button
on (release) {
if (_parent.flour != 4) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(7, 1);
};
if (_parent.flour > 4) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1430 Button
on (release) {
if (_parent.flour != 5) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(8, 1);
};
if (_parent.flour > 5) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1431 Button
on (release) {
if (_parent.flour != 6) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(9, 1);
};
if (_parent.flour > 6) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1437 Button
on (release) {
if (_parent.flour != 7) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(10, 1);
};
if (_parent.flour > 7) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1438 Button
on (release) {
if (_parent.flour != 8) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(11, 1);
};
if (_parent.flour > 8) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1439 Button
on (release) {
if (_parent.flour != 9) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(12, 1);
};
if (_parent.flour > 9) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1440 Button
on (release) {
if (_parent.flour != 10) {
_root.event_transition = function () {
_root.savecolor(_parent.flour);
_root.area_change(13, 1);
};
if (_parent.flour > 10) {
_root.transition.gotoAndPlay("down");
} else {
_root.transition.gotoAndPlay("up");
}
} else {
_parent.gotoAndPlay("open");
}
}
Symbol 1441 MovieClip Frame 1
gotoAndStop(_parent.id);
curfloor._x = this["bout" + _parent.flour]._x;
curfloor._y = this["bout" + _parent.flour]._y;
if (_parent.auto) {
_visible = 0;
_root.transition.gotoAndPlay("up");
_root.event_transition = function () {
_root.area_change(_root.area + 1, 1);
};
}
Symbol 1441 MovieClip Frame 30
var event = this["bout" + (_parent.flour + 1)].onRelease();
event();
Symbol 1442 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
_parent.elevators.push(this);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
son.attachSound("dooropen");
_root.maxcolorize(this);
_root.permalight.push(this);
Instance of Symbol 1411 MovieClip in Symbol 1442 MovieClip Frame 1
onClipEvent (load) {
_x = (_x * _parent.side);
}
Symbol 1442 MovieClip Frame 2
stop();
herothere = 0;
Instance of Symbol 1341 MovieClip "openzone" in Symbol 1442 MovieClip Frame 2
onClipEvent (load) {
function event() {
if (!_parent.locked) {
_parent.gotoAndPlay("open");
}
}
if (_root.hero.zone.hitTest(this)) {
event();
}
}
Instance of Symbol 1412 MovieClip in Symbol 1442 MovieClip Frame 2
onClipEvent (load) {
function event() {
}
}
Symbol 1442 MovieClip Frame 7
if (!_root.hero._visible) {
_root.hero._visible = 1;
_root.hero.gotoAndPlay("stand");
_root.hero.activate();
}
event_opened();
Symbol 1442 MovieClip Frame 18
if (broken) {
gotoAndPlay ("break");
}
Symbol 1442 MovieClip Frame 19
Symbol 1442 MovieClip Frame 30
if (_root.hero.hitzone.hitTest(closezone2)) {
gotoAndPlay ("opened");
}
Symbol 1442 MovieClip Frame 50
gotoAndStop ("closed");
Symbol 1442 MovieClip Frame 53
if (locked) {
gotoAndPlay ("opened");
} else if (_root.hero.zone.hitTest(closezone)) {
_root.hero.xdecalcible = 0;
herothere = 1;
}
setson();
surson();
Symbol 1442 MovieClip Frame 54
if (herothere) {
_root.hero.xchange((_x - _root.hero._x) / 3);
}
Symbol 1442 MovieClip Frame 55
call("heroplace");
Symbol 1442 MovieClip Frame 56
call("heroplace");
Symbol 1442 MovieClip Frame 57
if (herothere) {
_root.hero._visible = 0;
}
Symbol 1442 MovieClip Frame 67
if (hero._visible) {
gotoAndStop ("closed");
} else {
stop();
}
Symbol 1442 MovieClip Frame 92
stop();
Symbol 1443 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
stop();
Symbol 1443 MovieClip Frame 8
stop();
Symbol 1443 MovieClip Frame 15
stop();
Symbol 1472 MovieClip Frame 1
stop();
Symbol 1472 MovieClip Frame 11
stop();
Symbol 1472 MovieClip Frame 31
gotoAndStop (1);
Symbol 1472 MovieClip Frame 47
stop();
event_smashed();
Symbol 1476 MovieClip Frame 1
stop();
Symbol 1486 MovieClip Frame 1
loops = 0;
Symbol 1486 MovieClip Frame 10
if (loops < 2) {
loops++;
gotoAndPlay (2);
}
Symbol 1486 MovieClip Frame 19
_parent.gotoAndPlay(2);
Symbol 1486 MovieClip Frame 25
loops = 0;
Symbol 1486 MovieClip Frame 31
if (loops < 5) {
gotoAndPlay (27);
loops++;
} else {
_parent.gotoAndPlay(8);
}
Symbol 1486 MovieClip Frame 38
gotoAndPlay (32);
Symbol 1486 MovieClip Frame 60
if (_currentframe == 60) {
gotoAndPlay (50);
}
Symbol 1486 MovieClip Frame 76
gotoAndPlay (70);
Symbol 1486 MovieClip Frame 87
if (_currentframe == 87) {
gotoAndPlay ("drive");
}
Symbol 1488 MovieClip Frame 28
stop();
Symbol 1488 MovieClip Frame 36
stop();
Symbol 1489 MovieClip Frame 1
stop();
Symbol 1489 MovieClip Frame 7
stop();
Symbol 1489 MovieClip Frame 42
_parent.porte.gotoAndPlay("open");
Symbol 1489 MovieClip Frame 54
_parent.porte.gotoAndPlay("close");
Instance of Symbol 1341 MovieClip in Symbol 1489 MovieClip Frame 54
onClipEvent (load) {
function event() {
_parent.key.gotoAndStop("grab");
_root.hero.misc.gotoAndPlay("key");
_root.haskey = 1;
delete event;
gotoAndStop (20);
}
}
Symbol 1489 MovieClip Frame 66
_root.decor.alarm.gotoAndPlay("alarm");
Symbol 1489 MovieClip Frame 78
_root.hero.ycam = 1;
_root.hero.activate();
Symbol 1489 MovieClip Frame 87
stop();
Symbol 1494 MovieClip Frame 1
stop();
Symbol 1494 MovieClip Frame 22
event_opened();
stop();
Symbol 1498 MovieClip Frame 1
_visible = 0;
stop();
Symbol 1498 MovieClip Frame 2
_visible = 1;
Symbol 1504 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1505 MovieClip Frame 1
stop();
Symbol 1505 MovieClip Frame 10
event_opened();
Symbol 1505 MovieClip Frame 18
if (stayopen) {
stop();
}
Symbol 1505 MovieClip Frame 37
gotoAndStop (1);
Symbol 1507 MovieClip Frame 1
_visible = 0;
stop();
Symbol 1507 MovieClip Frame 2
_visible = 1;
Symbol 1515 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1515 MovieClip Frame 4
gotoAndPlay (2);
Symbol 1527 MovieClip Frame 1
stop();
Instance of Symbol 1341 MovieClip in Symbol 1527 MovieClip Frame 2
onClipEvent (load) {
function event() {
_root.bg.nextarea();
delete event;
gotoAndStop (20);
}
}
Symbol 1529 MovieClip Frame 1
x = ((_x * _parent.xadjx) + (_y * _parent.xadjy)) + _parent.fpathx;
y = ((_x * _parent.yadjx) + (_y * _parent.yadjy)) + _parent.fpathy;
gotoAndPlay (2);
Symbol 1529 MovieClip Frame 2
if (_parent.burner.hitTest(_root.game._x + x, _root.game._y + y, 1)) {
_root.sprites.attach("flame", "flame", 1, x, y);
_root.sprites.cur.dur = _parent.fdurbase + int(Math.random(_parent.fdurrand));
gotoAndStop (4);
}
Symbol 1529 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1539 MovieClip Frame 1
function burn(ref, name, x, y) {
var _local1 = _root;
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
burner._x = x;
burner._y = y;
_local1.colorize_change(_local1.bl1, 1);
gotoAndPlay (2);
}
fpathx = _x;
fpathy = _y;
fdurbase = 2;
fdurrand = 1;
xadjx = (Math.cos(_rotation / 57.3) * _xscale) / 100;
xadjy = ((-Math.sin(_rotation / 57.3)) * _yscale) / 100;
yadjx = (Math.sin(_rotation / 57.3) * _xscale) / 100;
yadjy = (Math.cos(_rotation / 57.3) * _yscale) / 100;
stop();
Symbol 1539 MovieClip Frame 2
event_burn();
_root.colorize_change(_root.bl2, 1);
Symbol 1539 MovieClip Frame 30
_root.colorize_change(_root.bl3, 1);
Symbol 1539 MovieClip Frame 38
_root.colorize_change(_root.bl4, 1);
Symbol 1539 MovieClip Frame 39
afterburn();
stop();
Symbol 1542 MovieClip Frame 1
stop();
Symbol 1553 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
stop();
Symbol 1553 MovieClip Frame 30
gotoAndPlay (5);
Symbol 1558 MovieClip Frame 60
gotoAndPlay (1);
Symbol 1561 MovieClip Frame 1
_root.permalight.push(this);
_root.maxcolorize(this);
gotoAndStop(_parent._currentframe);
Symbol 1564 MovieClip Frame 1
_visible = 0;
Symbol 1564 MovieClip Frame 35
event();
Symbol 1564 MovieClip Frame 36
gotoAndPlay (2);
Symbol 1564 MovieClip Frame 40
stop();
Symbol 1571 MovieClip Frame 1
stop();
Symbol 1571 MovieClip Frame 2
color.gotoAndStop(_currentframe);
Instance of Symbol 1564 MovieClip in Symbol 1571 MovieClip Frame 2
onClipEvent (load) {
function event() {
_parent.gotoAndStop("v");
}
}
Symbol 1571 MovieClip Frame 4
color.gotoAndStop(_currentframe);
Instance of Symbol 1564 MovieClip in Symbol 1571 MovieClip Frame 4
onClipEvent (load) {
function event() {
_parent.gotoAndStop("r");
}
}
Symbol 1571 MovieClip Frame 6
_parent.priority = 3;
Symbol 1571 MovieClip Frame 8
if (_parent.facing.priority == 1) {
_parent.priority = 0;
} else {
_parent.priority = 4;
}
Symbol 1572 MovieClip Frame 1
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if ((life > 0) && (_currentframe <= 9)) {
var _local1 = damagebase + int(damagerand * Math.random());
life = life - _local1;
if (life > 0) {
gotoAndPlay ("hit");
} else {
gotoAndPlay ("done");
}
}
}
_root.decor.attachMovie("pistonzone", _name, _parent.n);
zone = _root.decor[_name];
zone._x = _parent._x;
zone._y = _parent._y;
zone._rotation = _rotation;
hitzone = zone.hitzone;
_parent.n++;
zone.piston = this;
piston.gotoAndStop(pistonframe);
done = 0;
lifemax = 2;
life = lifemax;
gotoAndStop (2);
Symbol 1572 MovieClip Frame 9
if (_currentframe == 9) {
gotoAndStop (2);
}
Symbol 1572 MovieClip Frame 17
done = 1;
piston.gotoAndStop(piston._currentframe + 1);
_parent.pistonsdone++;
if (piston._currentframe == 3) {
if (!_parent.reseting) {
_parent.countdown.gotoAndPlay("reset");
}
} else {
_parent.countdown.indic.gotoAndPlay("v");
if (_parent.pistonsdone == 1) {
_parent.countdown.gotoAndPlay("start");
}
}
if ((!_parent.reseting) && (_parent.pistonsdone >= 8)) {
_parent.rotspeedmax = 10;
_root.bg.puzzledone();
_parent.gotoAndStop(2);
} else {
_parent.rotspeedmax = _parent.rotspeedmax + (0.2 + (0.1 * _root.difficulty));
}
Symbol 1572 MovieClip Frame 23
if (_currentframe == 23) {
stop();
}
Symbol 1572 MovieClip Frame 32
piston.gotoAndStop(pistonframe);
done = 0;
Symbol 1572 MovieClip Frame 43
if (_currentframe == 43) {
gotoAndStop (2);
life = lifemax;
}
Symbol 1576 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 1576 MovieClip Frame 2
_root.colorize_change(25, 1);
Symbol 1576 MovieClip Frame 5
_root.colorize_change(-25, 1);
Symbol 1576 MovieClip Frame 6
if (_currentframe == 6) {
gotoAndStop (1);
}
Symbol 1576 MovieClip Frame 14
if (_currentframe == 6) {
gotoAndStop (1);
}
Symbol 1588 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 1588 MovieClip Frame 401
_parent.reseting = 1;
Symbol 1588 MovieClip Frame 450
if (_currentframe == 450) {
gotoAndStop ("off");
_parent.popall();
}
Symbol 1588 MovieClip Frame 511
stop();
Symbol 1596 MovieClip Frame 17
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1596 MovieClip Frame 48
gotoAndPlay (33);
Symbol 1598 MovieClip Frame 17
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1598 MovieClip Frame 48
gotoAndPlay (33);
Symbol 1599 MovieClip Frame 1
function popall() {
var _local1 = this;
reseting = 0;
for (var _local2 in _local1) {
rotspeedmax = 2;
if (_local1[_local2].done && (_local1[_local2]._currentframe >= 17)) {
_local1[_local2].gotoAndPlay("pop");
pistonsdone = pistonsdone - 1;
}
}
}
_root.maxcolorize(countdown);
_root.permalight.push(countdown);
rotorig = 2;
rotdir = 1;
rotspeed = 0;
reseting = 0;
pistonsdone = 0;
rotspeedmax = 2;
n = 100;
_root.decor.attachMovie("selfdestruct_zone", _name, n);
zone = _root.decor[_name];
zone._x = _x;
zone._y = _y;
n++;
this.onEnterFrame = function () {
var _local1 = this;
if (rotspeed < rotspeedmax) {
rotspeed = rotspeed + 0.1;
}
if (rotspeed > rotspeedmax) {
rotspeed = rotspeedmax;
}
_rotation = (_rotation + (rotspeed * rotdir));
countdown._rotation = -_rotation;
contour._rotation = -2 * _rotation;
for (var _local2 in _local1) {
_local1[_local2].zone._rotation = _local1[_local2].zone._rotation + (rotspeed * rotdir);
}
};
stop();
Instance of Symbol 1572 MovieClip "piston1" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "r";
facing = _parent.piston5;
}
Instance of Symbol 1572 MovieClip "piston8" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "v";
facing = _parent.piston4;
}
Instance of Symbol 1572 MovieClip "piston2" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "v";
facing = _parent.piston6;
}
Instance of Symbol 1572 MovieClip "piston3" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "r";
facing = _parent.piston7;
}
Instance of Symbol 1572 MovieClip "piston4" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "v";
facing = _parent.piston8;
}
Instance of Symbol 1572 MovieClip "piston5" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "r";
facing = _parent.piston1;
}
Instance of Symbol 1572 MovieClip "piston6" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "v";
facing = _parent.piston2;
}
Instance of Symbol 1572 MovieClip "piston7" in Symbol 1599 MovieClip Frame 1
onClipEvent (load) {
pistonframe = "r";
facing = _parent.piston3;
}
Symbol 1599 MovieClip Frame 2
countdown.gotoAndPlay("win");
Symbol 1600 MovieClip Frame 1
elevators = new Array();
_root.mainbg.gotoAndStop(4);
_root.loadcolor(1);
_root.point = 5;
stop();
Instance of Symbol 1341 MovieClip in Symbol 1600 MovieClip Frame 1
onClipEvent (load) {
function event() {
var _local1 = _root;
_local1.event_transition = function () {
_root.savecolor(1);
_root.area_change(2, 1);
};
_local1.transition.gotoAndPlay("down");
delete event;
gotoAndStop (20);
}
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 1
onClipEvent (load) {
flour = 1;
id = 2;
label = "1";
side = 1;
}
Symbol 1600 MovieClip Frame 2
_root.loadcolor(0);
_root.mainbg.gotoAndStop(5);
Instance of Symbol 1341 MovieClip in Symbol 1600 MovieClip Frame 2
onClipEvent (load) {
function event() {
if (_root.haskey) {
_parent.cadnas.gotoAndPlay(2);
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 1341 MovieClip "grenadezone" in Symbol 1600 MovieClip Frame 2
onClipEvent (load) {
function event() {
var _local1 = _root;
if (_local1.grenadesthere) {
_parent.grenades.gotoAndPlay("grab");
_local1.hero.misc.gotoAndPlay("newweapon");
_local1.hero.grenadamnt = 10;
delete _local1.grenadesthere;
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 1341 MovieClip "grenadezone" in Symbol 1600 MovieClip Frame 2
onClipEvent (load) {
function event() {
var _local1 = _root;
if (_local1.grenadesthere) {
_local1.hasgrenades = 1;
_local1.grenadcounter.gotoAndStop(1);
_parent.grenades.gotoAndPlay("grab");
_local1.hero.misc.gotoAndPlay("newweapon");
_local1.hero.grenadechange(20);
_local1.grenadesthere = 0;
_local1.hero.desactivate();
_local1.textbox.texte = "text1";
_local1.textbox.gotoAndPlay("pop");
_local1.textbox.event_afterunpop = function () {
_root.hero.activate();
};
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 1341 MovieClip "renfortszone" in Symbol 1600 MovieClip Frame 2
onClipEvent (load) {
function opendoor() {
_parent.porte.gotoAndPlay("open");
clearInterval(int_opendoor);
int_closedoor = setInterval(closedoor, 1650);
delete opendoor;
}
function closedoor() {
var _local1 = _root;
for (var _local2 in _local1.sprites) {
if (_local1.sprites[_local2].unshakable) {
_local1.sprites[_local2].unshakable = 0;
}
}
_parent.porte.gotoAndPlay("close");
_local1.decor.doorzone.gotoAndStop(1);
clearInterval(int_closedoor);
delete closedoor;
}
function event() {
var _local1 = _root;
if (_local1.hasgrenades) {
_local1.sprites.doorbaddies();
_local1.decor.doorzone.gotoAndStop(2);
int_opendoor = setInterval(opendoor, 200);
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1600 MovieClip Frame 2
onClipEvent (load) {
function event() {
if (_root.hasgrenades) {
_root.decor.doorzone2.gotoAndStop(1);
_parent.porte2.gotoAndPlay("close");
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 287 MovieClip "limiter" in Symbol 1600 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero._x > _x) {
_root.hero._x = _x;
}
}
Instance of Symbol 1443 MovieClip "grenades" in Symbol 1600 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 1472 MovieClip "porte" in Symbol 1600 MovieClip Frame 2
onClipEvent (load) {
}
Instance of Symbol 1494 MovieClip "cadnas" in Symbol 1600 MovieClip Frame 2
onClipEvent (load) {
function event_opened() {
_parent.porte2.gotoAndPlay("open");
_root.decor.doorzone2.gotoAndStop(2);
delete event_opened;
}
}
Symbol 1600 MovieClip Frame 3
_root.mainbg.gotoAndStop(5);
Instance of Symbol 1472 MovieClip "porte" in Symbol 1600 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (47);
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 3
onClipEvent (load) {
id = 1;
flour = 0;
label = "B";
side = 1;
}
Symbol 1600 MovieClip Frame 4
_root.loadcolor(0);
_root.mainbg.gotoAndStop(5);
Symbol 1600 MovieClip Frame 5
_root.loadcolor(2);
_root.mainbg.gotoAndStop(6);
_root.point = 6;
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 5
onClipEvent (load) {
flour = 2;
id = 3;
label = "2";
side = 1;
broken = 1;
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 5
onClipEvent (load) {
flour = 2;
side = -1;
id = 4;
label = "2";
auto = 1;
}
Symbol 1600 MovieClip Frame 6
_root.loadcolor(3);
_root.mainbg.gotoAndStop(7);
_root.point = 7;
Instance of Symbol 1505 MovieClip "walldoor" in Symbol 1600 MovieClip Frame 6
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor1();
}
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 6
onClipEvent (load) {
flour = 3;
id = 6;
label = "3";
side = 1;
auto = 1;
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 6
onClipEvent (load) {
flour = 3;
side = -1;
id = 5;
label = "3";
broken = 1;
}
Symbol 1600 MovieClip Frame 7
_root.loadcolor(4);
_root.mainbg.gotoAndStop(8);
_root.point = 8;
Instance of Symbol 1505 MovieClip "walldoor2" in Symbol 1600 MovieClip Frame 7
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor(this);
}
}
Instance of Symbol 1505 MovieClip "walldoor3" in Symbol 1600 MovieClip Frame 7
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor(this);
}
}
Instance of Symbol 1505 MovieClip "walldoor4" in Symbol 1600 MovieClip Frame 7
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor(this);
}
}
Instance of Symbol 1505 MovieClip "walldoor1" in Symbol 1600 MovieClip Frame 7
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor(this);
}
}
Instance of Symbol 1505 MovieClip "walldoor5" in Symbol 1600 MovieClip Frame 7
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor(this);
}
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 7
onClipEvent (load) {
flour = 4;
id = 7;
label = "4";
side = 1;
broken = 1;
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 7
onClipEvent (load) {
flour = 4;
side = -1;
id = 8;
label = "4";
auto = 1;
}
Symbol 1600 MovieClip Frame 8
_root.loadcolor(5);
_root.mainbg.gotoAndStop(9);
_root.point = 9;
Instance of Symbol 210 MovieClip "spark2" in Symbol 1600 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop (75);
}
Instance of Symbol 210 MovieClip "spark4" in Symbol 1600 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop (75);
}
Instance of Symbol 210 MovieClip "spark3" in Symbol 1600 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop (75);
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 8
onClipEvent (load) {
flour = 5;
id = 10;
label = "5";
side = 1;
auto = 1;
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 8
onClipEvent (load) {
flour = 5;
side = -1;
id = 9;
label = "5";
broken = 1;
}
Symbol 1600 MovieClip Frame 9
_root.loadcolor(6);
_root.mainbg.gotoAndStop(10);
_root.point = 10;
Instance of Symbol 1505 MovieClip "walldoor" in Symbol 1600 MovieClip Frame 9
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor();
}
stayopen = 1;
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 9
onClipEvent (load) {
flour = 6;
id = 11;
label = "6";
side = 1;
broken = 1;
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 9
onClipEvent (load) {
flour = 6;
side = -1;
id = 12;
label = "6";
auto = 1;
}
Symbol 1600 MovieClip Frame 10
_root.loadcolor(7);
_root.mainbg.gotoAndStop(11);
_root.point = 11;
Instance of Symbol 1505 MovieClip "walldoor" in Symbol 1600 MovieClip Frame 10
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor();
}
}
Instance of Symbol 1505 MovieClip "walldoor2" in Symbol 1600 MovieClip Frame 10
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor2();
}
}
Instance of Symbol 210 MovieClip "spark2" in Symbol 1600 MovieClip Frame 10
/* no clip actions */
Instance of Symbol 210 MovieClip "spark3" in Symbol 1600 MovieClip Frame 10
/* no clip actions */
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 10
onClipEvent (load) {
flour = 7;
id = 15;
label = "7";
side = 1;
auto = 1;
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 10
onClipEvent (load) {
flour = 7;
side = -1;
id = 14;
label = "7";
broken = 1;
}
Symbol 1600 MovieClip Frame 11
function rooffall() {
_root.decor.roof.play();
_root.foreground.roof.play();
}
function nextarea() {
var _local1 = _root;
specialbg1.swapDepths(specialbg1.depthorig);
specialbg2.swapDepths(specialbg2.depthorig);
walldoor.swapDepths(walldoor.depthorig);
elevator.swapDepths(elevator.depthorig);
elevator2.swapDepths(elevator2.depthorig);
_local1.event_transition = function () {
_root.area_change(14, 1);
};
_local1.transition.gotoAndPlay("up");
}
_root.mainbg.gotoAndStop(2);
_root.loadcolor(8);
_root.normcolorize_bg();
_parent.camxmin = -450;
_parent.camxmax = 1400;
_root.point = 12;
rooflevel = 0;
Instance of Symbol 1523 MovieClip "specialbg2" in Symbol 1600 MovieClip Frame 11
onClipEvent (load) {
depthorig = this.getDepth();
this.swapDepths(10);
}
Instance of Symbol 1527 MovieClip "specialbg1" in Symbol 1600 MovieClip Frame 11
onClipEvent (load) {
depthorig = this.getDepth();
this.swapDepths(0);
}
Instance of Symbol 1505 MovieClip "walldoor" in Symbol 1600 MovieClip Frame 11
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor();
}
depthorig = this.getDepth();
this.swapDepths(50);
}
Instance of Symbol 1539 MovieClip "pl5" in Symbol 1600 MovieClip Frame 11
onClipEvent (load) {
function afterburn() {
_parent.rooffall();
_parent.rooflevel = _parent.rooflevel + 2;
}
}
Instance of Symbol 1539 MovieClip "pl7" in Symbol 1600 MovieClip Frame 11
onClipEvent (load) {
function afterburn() {
_parent.rooffall();
_parent.rooflevel = _parent.rooflevel + 1;
}
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 11
onClipEvent (load) {
flour = 8;
id = 16;
label = "no";
side = 1;
broken = 1;
depthorig = this.getDepth();
this.swapDepths(150);
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 11
onClipEvent (load) {
function event_opened() {
_root.sprites.elevator2();
}
flour = 8;
side = -1;
id = 17;
label = "no";
broken = 1;
locked = 1;
depthorig = this.getDepth();
this.swapDepths(100);
}
Instance of Symbol 1080 MovieClip "boss_helico" in Symbol 1600 MovieClip Frame 12
onClipEvent (load) {
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function bigshake() {
_root.shake(35, 10, 2, 0);
clearInterval(interval_bigshake);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
var _local1 = projectile;
damage = damagebase + int(damagerand * Math.random());
if ((!_local1.hitTest(_parent.specialbg1)) && (!_local1.hitTest(_parent.specialbg2))) {
if (_local1.hitTest(hitzone_bonom) && (bonomlife > 0)) {
sprites.badang(this, bonom._x, bonom._y);
bonomlife = bonomlife - damage;
bonom.gotoAndPlay(2);
}
if (_local1.hitTest(hitzone_helice) && (helicelife > 0)) {
helicelife = helicelife - damage;
helice.gotoAndPlay(2);
dogtrap.trap.gotoAndPlay(2);
}
}
}
sprites = _parent._parent.sprites;
ennemy = sprites.hero;
hitzone_bonom = sprites.bonomzone;
hitzone_helice = sprites.helicezone;
yspeed = 5;
xspeed = 10;
score = 1500;
x_orig = _x;
y_orig = _y;
_x = (_x + 300);
_y = (_y - 200);
xspeed = 0;
yspeed = 0;
status = "start";
dead = 0;
flyspeed = -5;
bonomlife = 25 + (1 * _root.difficulty);
helicelife = 20 + (2 * _root.difficulty);
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitzone_bonom.hitson = 1;
hitzone_helice.hitson = 1;
}
onClipEvent (enterFrame) {
if (status == "damaged") {
xspeed = xspeed - 0.3;
yspeed = yspeed + ((-yspeed) / 20);
if (_x < (_root.hero._x - 600)) {
xspeed = 0;
yspeed = 0;
if (helicelife <= 0) {
_root.helicrash.gotoAndPlay(3);
}
_root.area_change(13);
hitzone_bonom.gotoAndStop(2);
hitzone_helice.gotoAndStop(2);
status = "dead";
gotoAndStop (2);
}
} else if (status == "ready") {
yspeed = yspeed + ((y_orig - _y) / 20);
xspeed = xspeed + ((ennemy._x - _x) / 1200);
xspeed = xspeed / 1.005;
} else if (status == "start") {
yspeed = yspeed + ((y_orig - _y) / 1000);
xspeed = xspeed + ((x_orig - _x) / 1000);
if (_y > y_orig) {
status = "ready";
}
}
_y = (_y + yspeed);
_x = (_x + xspeed);
hitzone_bonom._x = _x;
hitzone_bonom._y = _y;
hitzone_helice._x = _x;
hitzone_helice._y = _y;
}
Symbol 1600 MovieClip Frame 14
_root.loadcolor(9);
_root.mainbg.gotoAndStop(12);
_parent.camxmin = -450;
_parent.camxmax = 1400;
_root.point = 13;
Instance of Symbol 210 MovieClip "spark1" in Symbol 1600 MovieClip Frame 14
/* no clip actions */
Instance of Symbol 210 MovieClip "spark3" in Symbol 1600 MovieClip Frame 14
/* no clip actions */
Instance of Symbol 210 MovieClip "spark2" in Symbol 1600 MovieClip Frame 14
/* no clip actions */
Instance of Symbol 1505 MovieClip "walldoor" in Symbol 1600 MovieClip Frame 14
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor();
}
stayopen = 1;
}
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 14
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor2();
}
flour = 9;
id = 19;
label = "9";
side = 1;
locked = 0;
broken = 0;
auto = 1;
}
Instance of Symbol 1442 MovieClip "elevator2" in Symbol 1600 MovieClip Frame 14
onClipEvent (load) {
flour = 9;
side = -1;
id = 18;
label = "9";
broken = 1;
gotoAndStop (92);
}
Symbol 1600 MovieClip Frame 15
_root.loadcolor(10);
_root.mainbg.gotoAndStop(13);
_root.point = 14;
Instance of Symbol 1442 MovieClip "elevator" in Symbol 1600 MovieClip Frame 15
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor2();
}
flour = 10;
id = 20;
label = "10";
side = 1;
locked = 0;
broken = 1;
}
Instance of Symbol 210 MovieClip "spark1" in Symbol 1600 MovieClip Frame 16
/* no clip actions */
Instance of Symbol 210 MovieClip "spark2" in Symbol 1600 MovieClip Frame 16
/* no clip actions */
Instance of Symbol 1472 MovieClip "porte" in Symbol 1600 MovieClip Frame 17
onClipEvent (load) {
gotoAndStop (11);
}
Instance of Symbol 1505 MovieClip "walldoor" in Symbol 1600 MovieClip Frame 17
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor();
}
}
Instance of Symbol 1505 MovieClip "walldoor2" in Symbol 1600 MovieClip Frame 17
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor2();
}
}
Instance of Symbol 1505 MovieClip "walldoor3" in Symbol 1600 MovieClip Frame 17
onClipEvent (load) {
function event_opened() {
_root.sprites.walldoor3();
}
}
Symbol 1600 MovieClip Frame 19
function puzzledone() {
_root.hero.desactivate();
_root.decor.elevator.gotoAndPlay(2);
}
_root.loadcolor(10);
_root.mainbg.gotoAndStop(13);
Symbol 1600 MovieClip Frame 20
_root.loadcolor(102);
Symbol 1604 MovieClip Frame 1
_visible = 0;
Symbol 1605 MovieClip Frame 1
_visible = 0;
x = ((_x * _parent._xscale) / 100) + _parent.fpathx;
y = ((_y * _parent._yscale) / 100) + _parent.fpathy;
gotoAndPlay (2);
Symbol 1605 MovieClip Frame 2
if (_parent.burner.hitTest(_root.game._x + x, _root.game._y + y, 1)) {
_root.sprites.attach("flame", "flame", 1, x, y);
_root.sprites.cur.dur = _parent.fdurbase + int(Math.random(_parent.fdurrand));
gotoAndStop (4);
}
Symbol 1605 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1607 MovieClip Frame 1
function burn(ref, name, x, y) {
var _local1 = _root;
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
gotoAndPlay (2);
_local1.colorize_change(_local1.bl1, 1);
}
fpathx = _x;
fpathy = _y;
fdurbase = 3;
fdurrand = 1;
stop();
Symbol 1607 MovieClip Frame 3
event_burn();
_root.colorize_change(_root.bl2, 1);
Symbol 1607 MovieClip Frame 23
_root.colorize_change(_root.bl3, 1);
Symbol 1607 MovieClip Frame 29
_root.colorize_change(_root.bl4, 1);
Symbol 1607 MovieClip Frame 30
_root.bg[_name]._x = _x;
_root.bg[_name]._y = _y;
_root.bg[_name]._xscale = _xscale;
_root.bg[_name]._yscale = _yscale;
_root.bg[_name].gotoAndStop(2);
event_destroy();
stop();
Symbol 1607 MovieClip Frame 31
_root.bg[_name]._x = _x;
_root.bg[_name]._y = _y;
_root.bg[_name]._xscale = _xscale;
_root.bg[_name]._yscale = _yscale;
_root.bg[_name].gotoAndStop(2);
stop();
Symbol 1610 MovieClip Frame 1
stop();
Symbol 1614 MovieClip Frame 1
Symbol 1614 MovieClip Frame 10
if (_currentframe == 10) {
gotoAndPlay (2);
}
Symbol 1614 MovieClip Frame 17
if (_parent.life <= 0) {
_parent.gotoAndPlay("explode");
}
if (_currentframe == 16) {
gotoAndStop (1);
}
Symbol 1616 MovieClip Frame 1
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (!invincible) {
if (((life > 0) && (_currentframe <= 11)) and (_currentframe >= 3)) {
life = life - (damagebase + int(Math.random(damagerand)));
alarm.alarm.gotoAndPlay(2);
}
}
}
onn = 0;
alarm2.stop();
gotoAndStop (2);
Symbol 1616 MovieClip Frame 2
life = 20;
gotoframe = "alarm_loop";
Symbol 1616 MovieClip Frame 3
_root.permalight.push(alarm);
_root.red = _root.red + 10;
_root.blue = _root.blue - 5;
_root.green = _root.green - 5;
onn = 1;
alarm.gotoAndPlay(2);
_root.colorize();
_root.maxcolorize(alarm);
Symbol 1616 MovieClip Frame 15
onn = 0;
alarm2.gotoAndStop(1);
Symbol 1616 MovieClip Frame 21
_root.red = _root.red - 10;
_root.blue = _root.blue + 5;
_root.green = _root.green + 5;
_root.colorize();
Symbol 1616 MovieClip Frame 120
if (_currentframe == 120) {
stop();
}
Symbol 1621 MovieClip Frame 1
stop();
Symbol 1621 MovieClip Frame 5
if (_currentframe == 5) {
gotoAndStop (1);
}
Symbol 1625 MovieClip Frame 1
stop();
Symbol 1625 MovieClip Frame 13
_parent.gotoAndPlay("explode");
Symbol 1627 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
damage = damage + (damagebase + int(Math.random(damagerand)));
if (damage > 13) {
damage = 13;
}
line.gotoAndPlay(2);
cracks.gotoAndStop(int(damage));
}
function burn(ref, name, x, y) {
var _local1 = _root;
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
gotoAndPlay (2);
_local1.colorize_change(_local1.bl1, 1);
}
fpathx = _x;
fpathy = _y;
fdurbase = 2;
fdurrand = 1;
damage = 0;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
stop();
Symbol 1627 MovieClip Frame 3
event_burn();
_root.colorize_change(_root.bl2, 1);
Symbol 1627 MovieClip Frame 21
_root.colorize_change(_root.bl3, 1);
Symbol 1627 MovieClip Frame 27
_root.colorize_change(_root.bl4, 1);
Symbol 1627 MovieClip Frame 28
setson();
son.attachSound("explosion3");
surson();
_root.bg[_name]._x = _x;
_root.bg[_name]._y = _y;
_root.bg[_name]._xscale = _xscale;
_root.bg[_name]._yscale = _yscale;
_root.bg[_name].gotoAndStop(2);
_root.sprites.attach("explosion_damage2", "explosion", 1, _x, _y);
_root.sprites.cur._xscale = 125;
_root.sprites.cur._yscale = 125;
event_destroy();
stop();
Symbol 1630 MovieClip Frame 1
function burn(ref, name, x, y) {
var _local1 = _root;
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
gotoAndPlay (2);
_local1.colorize_change(_local1.bl1, 1);
}
fpathx = _x;
fpathy = _y;
fdurbase = 3;
fdurrand = 1;
stop();
Symbol 1630 MovieClip Frame 3
event_burn();
_root.colorize_change(_root.bl2, 1);
Symbol 1630 MovieClip Frame 25
_root.colorize_change(_root.bl3, 1);
Symbol 1630 MovieClip Frame 31
_root.colorize_change(_root.bl4, 1);
Symbol 1630 MovieClip Frame 32
_root.bg[_name]._x = _x;
_root.bg[_name]._y = _y;
_root.bg[_name]._xscale = _xscale;
_root.bg[_name]._yscale = _yscale;
_root.bg[_name].gotoAndStop(2);
stop();
Symbol 1630 MovieClip Frame 33
_root.bg[_name]._x = _x;
_root.bg[_name]._y = _y;
_root.bg[_name]._xscale = _xscale;
_root.bg[_name]._yscale = _yscale;
_root.bg[_name].gotoAndStop(2);
stop();
Symbol 1634 MovieClip Frame 1
function setburn() {
xadjx = (Math.cos(_rotation / 57.3) * _xscale) / 100;
xadjy = ((-Math.sin(_rotation / 57.3)) * _yscale) / 100;
yadjx = (Math.sin(_rotation / 57.3) * _xscale) / 100;
yadjy = (Math.cos(_rotation / 57.3) * _yscale) / 100;
}
function burn(ref, name, x, y) {
var _local1 = _root;
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
gotoAndPlay (2);
_local1.colorize_change(_local1.bl1, 1);
}
if (_parent.burninside) {
fpathx = ((_x * _parent._xscale) / 100) + _parent._x;
fpathy = ((_y * _parent._yscale) / 100) + _parent._y;
} else {
fpathx = _x;
fpathy = _y;
}
fdurbase = 9;
fdurrand = 2;
setburn();
stop();
Symbol 1634 MovieClip Frame 3
event_burn();
_root.colorize_change(_root.bl2, 1);
Symbol 1634 MovieClip Frame 108
_root.colorize_change(_root.bl3, 1);
Symbol 1634 MovieClip Frame 114
_root.colorize_change(_root.bl4, 1);
Symbol 1634 MovieClip Frame 115
_root.bg[_name]._x = _x;
_root.bg[_name]._y = _y;
_root.bg[_name].gotoAndStop(2);
event_destroy();
stop();
Symbol 1641 MovieClip Frame 1
if (_currentframe == 1) {
light = 0;
stop();
}
Symbol 1641 MovieClip Frame 2
_root.colorize_change(25, 1);
light = light + 25;
_root.maxcolorize(this);
Symbol 1641 MovieClip Frame 4
_root.colorize_change(-light, 1);
light = 0;
_root.maxcolorize(this);
Symbol 1641 MovieClip Frame 6
if (_currentframe == 6) {
gotoAndStop (1);
}
Symbol 1643 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1643 MovieClip Frame 56
_parent._parent.shoot();
Symbol 1647 MovieClip Frame 1
count.stop();
stop();
Symbol 1648 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function shoot() {
var _local1 = _root;
if (Math.random() < 0.1) {
lightning.shot._y = -30;
lightning.shot._rotation = -90;
lightning.shot.gotoAndPlay(2);
} else {
lightning.shot._y = (-150 * Math.random()) - 35;
lightning.shot._rotation = -90 + ((direction * Math.atan(((_local1.hero._y + _local1.hero.middle) - (lightning._y + lightning.shot._y)) / (_local1.hero._x - (lightning._x + (lightning.shot._x * direction))))) * 57.3);
lightning.shot.gotoAndPlay(2);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = _root;
var _local1 = damagebase + int(Math.random(damagerand));
life = life - _local1;
setson();
if (life > 0) {
son.attachSound("hit");
son.start();
_local2.shake(10, 3, 2);
bat.line.gotoAndPlay(2);
} else {
_local2.son.attachSound("explosion1");
_local2.startson(son, 1);
gotoAndPlay ("explode");
}
}
stop();
_root.bg.attachMovie("battery_lightning", _name + "lightning", _root.sprites.n);
lightning = _root.bg[_name + "lightning"];
lightning._x = _x;
lightning._y = _y;
lightning.owner = this;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
if (direction == -1) {
lightning._xscale = lightning._xscale * -1;
} else {
direction = 1;
}
_root.sprites.n_raise();
life = 200;
Symbol 1648 MovieClip Frame 6
_root.shake(35, 5, 2, 0);
bat.gotoAndStop(2);
Symbol 1648 MovieClip Frame 16
lightning.gotoAndPlay("appear");
_root.colorize_change(25);
Symbol 1648 MovieClip Frame 19
bat.count.play();
Symbol 1648 MovieClip Frame 25
gotoframe = "stand_loop";
Symbol 1648 MovieClip Frame 30
lightning._y = _y;
lightning.gotoAndPlay("explode");
_root.sprites.attach("explosion_cabane3", "explosion", 1, _x, _y);
_root.shake(50, 5, 1.5);
Symbol 1648 MovieClip Frame 34
_root.colorize_change(-25);
Symbol 1648 MovieClip Frame 36
event_die();
Symbol 1648 MovieClip Frame 37
stop();
Symbol 1651 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1656 MovieClip Frame 1
stop();
Symbol 1656 MovieClip Frame 13
_parent.gotoAndPlay("explode");
Symbol 1659 MovieClip Frame 1
stop();
Symbol 1659 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 1659 MovieClip Frame 5
if (_currentframe == 5) {
gotoAndStop (1);
}
Symbol 1661 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (cracks._currentframe == 1) {
event_firsthit();
event_firsthit = function () {
};
}
damage = damage + (damagebase + int(Math.random(damagerand)));
if (damage > 13) {
damage = 13;
}
line.gotoAndPlay(2);
cracks.gotoAndStop(int(damage));
}
function burn(ref, name, x, y) {
var _local1 = _root;
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
gotoAndPlay (2);
_local1.colorize_change(_local1.bl1, 1);
}
fpathx = _x;
fpathy = _y;
fdurbase = 2;
fdurrand = 1;
damage = 0;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
stop();
Symbol 1661 MovieClip Frame 2
event_burn();
event_firsthit();
Symbol 1661 MovieClip Frame 3
_root.colorize_change(_root.bl2, 1);
Symbol 1661 MovieClip Frame 21
_root.colorize_change(_root.bl3, 1);
Symbol 1661 MovieClip Frame 27
_root.colorize_change(_root.bl4, 1);
Symbol 1661 MovieClip Frame 28
setson();
son.attachSound("explosion3");
surson();
_root.bg[_name]._x = _x;
_root.bg[_name]._y = _y;
_root.bg[_name]._xscale = _xscale;
_root.bg[_name]._yscale = _yscale;
_root.bg[_name].gotoAndStop(2);
_root.sprites.attach("explosion_damage2", "explosion", 1, _x, _y);
_root.sprites.cur._xscale = 125;
_root.sprites.cur._yscale = 125;
event_destroy();
stop();
Symbol 1663 MovieClip Frame 1
x = ((_x * _parent.xadjx) + (_y * _parent.xadjy)) + _parent.fpathx;
y = ((_x * _parent.yadjx) + (_y * _parent.yadjy)) + _parent.fpathy;
gotoAndPlay (2);
Symbol 1663 MovieClip Frame 2
if (_parent.burner.hitTest(_root.game._x + x, _root.game._y + y, 1)) {
_root.sprites.attach("flame", "flame", 1, x, y);
flame = _root.sprites.cur;
flame.dur = _parent.fdurbase + int(Math.random(_parent.fdurrand));
gotoAndPlay (4);
}
Symbol 1663 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1663 MovieClip Frame 5
flame._x = ((_x * _parent.xadjx) + (_y * _parent.xadjy)) + _parent.fpathx;
flame._y = ((_x * _parent.yadjx) + (_y * _parent.yadjy)) + _parent.fpathy;
gotoAndPlay (4);
Symbol 1664 MovieClip Frame 1
function setburn() {
xadjx = (Math.cos(_rotation / 57.3) * _xscale) / 100;
xadjy = ((-Math.sin(_rotation / 57.3)) * _yscale) / 100;
yadjx = (Math.sin(_rotation / 57.3) * _xscale) / 100;
yadjy = (Math.cos(_rotation / 57.3) * _yscale) / 100;
}
function burn(ref, name, x, y) {
var _local1 = _root;
setburn();
_local1.sprites.attach(name, name, 1, x, y);
burner = _local1.sprites.cur;
gotoAndPlay (2);
_local1.colorize_change(_local1.bl1, 1);
}
fdurbase = 9;
fdurrand = 2;
if (_parent.burninside) {
fpathx = ((_x * _parent._xscale) / 100) + _parent._x;
fpathy = ((_y * _parent._yscale) / 100) + _parent._y;
} else {
fpathx = _x;
fpathy = _y;
}
setburn();
stop();
Instance of Symbol 287 MovieClip in Symbol 1664 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent.setburn();
}
Symbol 1664 MovieClip Frame 3
event_burn();
_root.colorize_change(_root.bl2, 1);
Symbol 1664 MovieClip Frame 108
_root.colorize_change(_root.bl3, 1);
Symbol 1664 MovieClip Frame 114
_root.colorize_change(_root.bl4, 1);
Symbol 1664 MovieClip Frame 115
_root.bg[_name]._x = fpathx;
_root.bg[_name]._y = fpathy;
_root.bg[_name]._rotation = _rotation;
_root.bg[_name].gotoAndStop(2);
stop();
Symbol 1665 MovieClip Frame 1
function burn(ref, name, x, y) {
divan.burn(ref, name, x, y);
if (_currentframe < 15) {
hit(this, this, 0, 0, 100, 0, 0);
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (_currentframe < 15) {
var _local1 = damagebase + int(damagerand * Math.random());
life = life - _local1;
if (life > 0) {
gotoAndPlay (3);
} else {
gotoAndPlay (15);
}
}
}
burninside = 1;
life = 30;
hitzone = divan.hitzone;
stop();
Symbol 1665 MovieClip Frame 13
if (_currentframe == 13) {
gotoAndStop (2);
}
Symbol 1665 MovieClip Frame 26
_root.shake(25, 4, 2, 0);
Symbol 1665 MovieClip Frame 35
stop();
Symbol 1667 MovieClip Frame 1
for (var a in _root.decor.ladders) {
if (!_root.decor.ladders[a]._currentframe) {
_root.decor.ladders.splice(a, 1);
}
}
_root.decor.ladders.push(this);
stop();
Symbol 1671 MovieClip Frame 1
for (var a in _root.decor.ladders) {
if (!_root.decor.ladders[a]._currentframe) {
_root.decor.ladders.splice(a, 1);
}
}
_root.decor.ladders.push(this);
stop();
Symbol 1674 MovieClip Frame 1
stop();
Symbol 1674 MovieClip Frame 4
_root.shake(25, 4, 2);
Symbol 1674 MovieClip Frame 8
if (_root.bg.rooflevel < 2) {
stop();
}
Symbol 1674 MovieClip Frame 11
call("shake");
Symbol 1674 MovieClip Frame 15
if (_root.bg.rooflevel < 3) {
stop();
}
Symbol 1674 MovieClip Frame 18
call("shake");
Symbol 1674 MovieClip Frame 22
Symbol 1674 MovieClip Frame 24
_root.shake(15, 5, 2);
Symbol 1674 MovieClip Frame 36
if (_currentframe == 36) {
gotoAndPlay (32);
}
Symbol 1674 MovieClip Frame 38
for (var a in _root.sprites) {
if (_root.sprites[a].hitzone.hitTest(bangzone)) {
_root.sprites[a].gotoAndPlay("die");
}
}
Symbol 1674 MovieClip Frame 39
_root.shake(80, 10, 1.1);
_root.bg.specialbg1.gotoAndStop(2);
Symbol 1674 MovieClip Frame 43
stop();
Symbol 1677 MovieClip Frame 1
stop();
Symbol 1679 MovieClip Frame 1
stop();
Symbol 1686 MovieClip Frame 1
if (_currentframe == 1) {
light = 0;
stop();
}
Symbol 1686 MovieClip Frame 2
_root.colorize_change(15, 1);
light = light + 15;
_root.maxcolorize(this);
Symbol 1686 MovieClip Frame 4
_root.colorize_change(-light, 1);
light = 0;
_root.maxcolorize(this);
Symbol 1688 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local2 = _root;
if (!invincible) {
var _local1 = damagebase + int(damagerand * Math.random());
life = life - _local1;
}
setson();
if (life > 0) {
son.start();
_local2.shake(5, 3, 2);
duracel.line.gotoAndPlay(2);
} else {
upstack.invincible = 1;
_local2.son.attachSound("explosion1");
_local2.startson(son, 1);
gotoAndPlay (80);
}
}
life = 60;
invinc_def = 0;
gonnafall = 0;
hitzone = duracel.hitzone;
_root.bg.attachMovie("duracel_lightning", _name + "light", _root.sprites.n);
lightning = _root.bg[_name + "light"];
lightning._x = _x;
lightning._y = _y;
lightning.lightning._rotation = duracel._rotation;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
son.attachSound("hit");
if (decalage) {
lightning.lightning.shot.gotoAndPlay(decalage);
}
if (direction == -1) {
_xscale = (_xscale * -1);
lightning._xscale = lightning._xscale * -1;
} else {
direction = 1;
}
if (lightoff) {
lightning.lightning.gotoAndStop("off");
}
delete lightoff;
lightning.owner = this;
_root.sprites.n_raise();
Symbol 1688 MovieClip Frame 2
stop();
Symbol 1688 MovieClip Frame 6
lightning.lightning._rotation = duracel._rotation;
Symbol 1688 MovieClip Frame 7
call("rot");
Symbol 1688 MovieClip Frame 8
call("rot");
Symbol 1688 MovieClip Frame 9
call("rot");
Symbol 1688 MovieClip Frame 10
call("rot");
Symbol 1688 MovieClip Frame 11
call("rot");
Symbol 1688 MovieClip Frame 12
call("rot");
Symbol 1688 MovieClip Frame 13
call("rot");
_root.shake(15, 4, 2);
Symbol 1688 MovieClip Frame 14
call("rot");
Symbol 1688 MovieClip Frame 15
call("rot");
Symbol 1688 MovieClip Frame 16
call("rot");
Symbol 1688 MovieClip Frame 17
call("rot");
Symbol 1688 MovieClip Frame 18
call("rot");
Symbol 1688 MovieClip Frame 19
if (_currentframe == 19) {
if (invincible == 1) {
invincible = 0;
}
if ((pos - lowstack.pos) >= 2) {
gotoAndPlay ("refall");
} else {
stop();
}
}
Symbol 1688 MovieClip Frame 35
lightning.lightning.gotoAndStop("off");
invincible = 1;
Symbol 1688 MovieClip Frame 46
_root.shake(20, 4, 2);
Symbol 1688 MovieClip Frame 54
if (_currentframe == 54) {
invincible = invinc_def;
gotoAndPlay (18);
lightning.lightning._rotation = duracel._rotation;
lightning._x = _x;
lightning._y = _y;
lightning.lightning.gotoAndPlay("reload");
lightning.lightning.shot.gotoAndPlay(40 + decalage);
}
Symbol 1688 MovieClip Frame 60
invincible = 1;
Symbol 1688 MovieClip Frame 61
lightning._x = _x + duracel._x;
lightning._y = _y + duracel._y;
Symbol 1688 MovieClip Frame 62
call("repos");
upstack.gonnafall++;
if (upstack._currentframe < 60) {
upstack.gotoAndPlay("refall");
}
Symbol 1688 MovieClip Frame 63
call("repos");
Symbol 1688 MovieClip Frame 64
call("repos");
Symbol 1688 MovieClip Frame 65
call("repos");
Symbol 1688 MovieClip Frame 66
call("repos");
Symbol 1688 MovieClip Frame 67
call("repos");
Symbol 1688 MovieClip Frame 68
call("repos");
Symbol 1688 MovieClip Frame 69
call("repos");
Symbol 1688 MovieClip Frame 70
call("repos");
if (_currentframe == 70) {
pos--;
gotoAndPlay (18);
_y = (_y + 51.9);
invincible = invinc_def;
}
Symbol 1688 MovieClip Frame 80
event_die();
lightning.lightning.gotoAndStop("explode");
_root.sprites.attach("explosion_cabane2", "explosion", 1, _x - (70 * direction), _y);
_root.shake(20, 5, 1.5);
Symbol 1688 MovieClip Frame 83
event_die2();
if (upstack._currentframe < 60) {
upstack.gotoAndPlay("refall");
}
upstack.lowstack = lowstack;
lowstack.upstack = upstack;
removeMovieClip(this);
_visible = 0;
stop();
Symbol 1694 MovieClip Frame 2
stop();
Symbol 1694 MovieClip Frame 39
model._visible = 0;
Instance of Symbol 287 MovieClip in Symbol 1694 MovieClip Frame 39
onClipEvent (load) {
_root.hero._y = _parent._y + _parent.model._y;
_parent.elevator._y = _parent.model._y;
}
onClipEvent (enterFrame) {
_root.hero._y = _parent._y + _parent.model._y;
_parent.elevator._y = _parent.model._y;
}
Symbol 1694 MovieClip Frame 57
model._visible = 0;
Symbol 1694 MovieClip Frame 63
event_rising();
Symbol 1694 MovieClip Frame 68
_root.hero.gotoAndPlay("jump_st2");
Instance of Symbol 287 MovieClip in Symbol 1694 MovieClip Frame 70
onClipEvent (load) {
_parent.elevator._y = _parent.model._y;
}
onClipEvent (enterFrame) {
_parent.elevator._y = _parent.model._y;
}
Symbol 1694 MovieClip Frame 100
event_rise();
stop();
Symbol 1697 MovieClip Frame 1
stop();
Symbol 1702 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1702 MovieClip Frame 2
_parent.ymove();
Symbol 1702 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1703 MovieClip Frame 1
function ymove() {
gear._rotation = gear._rotation - (3 * yspeed);
if (lift.feetzone.hitTest(hero.feetzone)) {
hero._y = hero._y + yspeed;
}
lift._y = lift._y + yspeed;
if ((lift._y + yspeed) > ymax) {
lift._y = ymax;
yspeed = yspeed * -1;
gotoAndPlay (3);
} else if ((lift._y + yspeed) < ymin) {
lift._y = ymin;
yspeed = yspeed * -1;
gotoAndPlay (3);
}
}
ymax = lift._y;
ymin = _parent[_name + "_ymin"]._y - _y;
_parent[_name + "_ymin"].gotoAndStop(2);
yspeedinit = -3;
yspeed = yspeedinit;
hero = _root.hero;
Symbol 1703 MovieClip Frame 2
stop();
Symbol 1703 MovieClip Frame 3
if (sensitive) {
stop();
}
Symbol 1703 MovieClip Frame 30
gotoAndStop ("move");
Symbol 1705 MovieClip Frame 10
stop();
Symbol 1708 MovieClip Frame 1
stop();
Symbol 1708 MovieClip Frame 16
stop();
Symbol 1709 MovieClip Frame 1
ladders = new Array();
stop();
Instance of Symbol 1607 MovieClip "sofa3" in Symbol 1709 MovieClip Frame 1
onClipEvent (load) {
function event_burn() {
_root.f1_sofadead = 1;
}
function event_destroy() {
_root.sprites.itemdrop(_x, _y - 30, "extralife", 1);
}
if (_root.f1_sofadead) {
gotoAndStop (115);
}
}
Instance of Symbol 1539 MovieClip "pl1" in Symbol 1709 MovieClip Frame 1
onClipEvent (load) {
function event_burn() {
_root.f1_pl1dead = 1;
}
if (_root.f1_pl1dead) {
gotoAndStop (39);
}
}
Instance of Symbol 1539 MovieClip "pl2" in Symbol 1709 MovieClip Frame 1
onClipEvent (load) {
function event_burn() {
_root.f1_pl2dead = 1;
}
if (_root.f1_pl2dead) {
gotoAndStop (39);
}
}
Instance of Symbol 1610 MovieClip "holecover" in Symbol 1709 MovieClip Frame 1
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (powerful) {
gotoAndStop (3);
_root.foreground.hole.gotoAndStop(2);
}
}
if (_root.f1_lamp2dead) {
gotoAndStop (3);
}
}
Instance of Symbol 1145 MovieClip "c2" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
function event_destroy2() {
_parent.c3.hit(0, 0, 0, 0, 100);
}
}
Instance of Symbol 1145 MovieClip "c3" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
function event_destroy2() {
_root.sprites.itemdrop(_x, _y - 25, "life");
}
}
Instance of Symbol 1145 MovieClip "c4" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
function event_destroy2() {
_parent.c5.hit(0, 0, 0, 0, 100);
_root.sprites.itemdrop(_x, _y - 25, "life");
}
}
Instance of Symbol 1145 MovieClip "c5" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
function event_destroy2() {
_parent.c6.hit(0, 0, 0, 0, 100);
}
}
Instance of Symbol 1145 MovieClip "c6" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
function event_destroy2() {
_root.sprites.itemdrop(_x, _y - 25, "life");
}
}
Instance of Symbol 1365 MovieClip "csecret" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
function event_destroy() {
var _local1 = _root;
_local1.bg.grenades._y = _y;
_local1.bg.grenades._x = _x;
_local1.bg.grenadezone._y = _y;
_local1.bg.grenadezone._x = _x;
_local1.bg.grenades.gotoAndPlay(2);
_local1.grenadesthere = 1;
delete event_destroy;
}
}
Instance of Symbol 1616 MovieClip "alarm" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
invincible = 1;
}
Instance of Symbol 587 MovieClip "doorzone" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 587 MovieClip "doorzone2" in Symbol 1709 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 1607 MovieClip "sofa" in Symbol 1709 MovieClip Frame 5
onClipEvent (load) {
function event_burn() {
_root.sprites.sofaburnt();
}
_xscale = -100;
}
Instance of Symbol 1627 MovieClip "tv" in Symbol 1709 MovieClip Frame 5
onClipEvent (load) {
function event_destroy() {
_root.sprites.itemdrop(_x, _y - 25, "grenade");
}
}
Instance of Symbol 1630 MovieClip "sofa2" in Symbol 1709 MovieClip Frame 5
onClipEvent (load) {
_xscale = -100;
}
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 6
onClipEvent (load) {
function event_destroy2() {
_root.sprites.itemdrop(_x, _y - 25, "life");
}
}
Instance of Symbol 1634 MovieClip "divan" in Symbol 1709 MovieClip Frame 6
onClipEvent (load) {
function event_destroy() {
var _local1 = _root;
_local1.sprites.itemdrop(_x - 50, _y - 30, "life");
_local1.sprites.itemdrop(_x - 100, _y - 30, "life");
_local1.sprites.itemdrop(_x - 150, _y - 30, "life");
}
}
Instance of Symbol 587 MovieClip "zone_porte" in Symbol 1709 MovieClip Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 587 MovieClip "zone_porte2" in Symbol 1709 MovieClip Frame 7
onClipEvent (load) {
stop();
}
Instance of Symbol 587 MovieClip "zone_porte22" in Symbol 1709 MovieClip Frame 7
/* no clip actions */
Symbol 1709 MovieClip Frame 8
cpudestroyed = 0;
Instance of Symbol 1648 MovieClip "bat" in Symbol 1709 MovieClip Frame 8
onClipEvent (load) {
function event_die() {
var _local1 = _root;
_local1.bg.spark2.gotoAndPlay("on");
_local1.bg.spark3.gotoAndPlay("on");
_local1.bg.spark4.gotoAndPlay("on");
_local1.sprites.itemdrop(_x - 20, _y - 100, "grenade");
_local1.sprites.itemdrop(_x - 60, _y - 100, "grenade");
_local1.sprites.itemdrop(_x + 60, _y - 100, "grenade");
_local1.sprites.itemdrop(_x + 20, _y - 100, "grenade");
}
}
Instance of Symbol 1661 MovieClip in Symbol 1709 MovieClip Frame 8
onClipEvent (load) {
function event_firsthit() {
_root.foreground.scient.scient.gotoAndPlay("wah");
_parent.cpudestroyed = 1;
}
}
Instance of Symbol 287 MovieClip in Symbol 1709 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((!_parent.cpudestroyed) && (_root.hero._x > _x)) {
_root.hero._x = _x;
}
}
Instance of Symbol 1607 MovieClip "sofa" in Symbol 1709 MovieClip Frame 9
onClipEvent (load) {
_xscale = -100;
}
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 9
/* no clip actions */
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 10
onClipEvent (load) {
function event_destroy2() {
_parent.crate.hit(0, 0, 0, 0, 100);
}
}
Instance of Symbol 1145 MovieClip "crate" in Symbol 1709 MovieClip Frame 10
onClipEvent (load) {
function event_destroy2() {
_root.sprites.itemdrop(_x, _y - 25, "life");
}
}
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 10
onClipEvent (load) {
function event_destroy2() {
_root.sprites.itemdrop(_x, _y - 25, "grenade");
}
}
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 10
onClipEvent (load) {
function event_destroy2() {
_root.sprites.itemdrop(_x, _y - 25, "life");
}
}
Instance of Symbol 587 MovieClip "zone_porte" in Symbol 1709 MovieClip Frame 10
onClipEvent (load) {
stop();
}
Instance of Symbol 1677 MovieClip "destroyable" in Symbol 1709 MovieClip Frame 14
onClipEvent (load) {
function destroy() {
var _local1 = _root;
gotoAndStop (2);
_parent.zone_ground.gotoAndStop(2);
_parent.pipe.gotoAndStop(2);
_local1.bg.pipe.gotoAndStop(2);
_local1.foreground.patch.gotoAndStop(2);
_local1.sprites.patch.gotoAndStop(2);
_local1.sprites.dog1.immuneto_all = 0;
_local1.sprites.dog2.immuneto_all = 0;
_local1.sprites.dog3.immuneto_all = 0;
_local1.sprites.dog4.immuneto_all = 0;
}
function burn() {
}
stop();
}
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 14
onClipEvent (load) {
function event_destroy2() {
if (_parent.duracel.life > 0) {
_parent.duracel.gotoAndPlay("fall");
}
}
}
Instance of Symbol 1688 MovieClip "duracel" in Symbol 1709 MovieClip Frame 14
onClipEvent (load) {
function event_die() {
_parent.destroyable.destroy();
}
invincible = 2;
}
Instance of Symbol 1192 MovieClip in Symbol 1709 MovieClip Frame 14
/* no clip actions */
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 14
/* no clip actions */
Instance of Symbol 587 MovieClip "zone_porte" in Symbol 1709 MovieClip Frame 14
onClipEvent (load) {
function hit(attacker) {
if ((attacker == _parent.duracel.lightning.lightning) && (_root.bg.porte._currentframe == 1)) {
_root.bg.porte.gotoAndPlay(38);
_parent.duracel.invincible = 0;
gotoAndStop (2);
}
}
stop();
hitzone = this;
}
Instance of Symbol 587 MovieClip "zone_ground" in Symbol 1709 MovieClip Frame 14
onClipEvent (load) {
stop();
}
Instance of Symbol 1648 MovieClip "bat" in Symbol 1709 MovieClip Frame 15
onClipEvent (load) {
function event_die() {
var _local1 = _root;
_local1.sprites.itemdrop(_x - 20, _y - 100, "grenade");
_local1.sprites.itemdrop(_x - 60, _y - 100, "grenade");
_local1.sprites.itemdrop(_x + 60, _y - 100, "grenade");
_local1.sprites.itemdrop(_x + 20, _y - 100, "grenade");
_local1.area_change(16);
}
direction = -1;
}
Instance of Symbol 1694 MovieClip "elevator" in Symbol 1709 MovieClip Frame 15
onClipEvent (load) {
function event_rising() {
var _local1 = _root;
_local1.point = 15;
_local1.event_transition = function () {
_root.gotopoint();
};
_local1.transition.gotoAndPlay("up");
}
}
Instance of Symbol 1688 MovieClip "duracel" in Symbol 1709 MovieClip Frame 16
onClipEvent (load) {
function event_die2() {
_root.area_change(17);
}
direction = -1;
invincible = 1;
decalage = 10;
}
Instance of Symbol 1145 MovieClip in Symbol 1709 MovieClip Frame 16
onClipEvent (load) {
function event_destroy2() {
var _local1 = _root;
_local1.sprites.itemdrop(_x, _y - 25, "life");
_local1.sprites.itemdrop(_x - 15, _y - 25, "life");
_local1.sprites.itemdrop(_x + 15, _y - 25, "life");
_local1.sprites.itemdrop(_x - 30, _y - 25, "life");
_local1.sprites.itemdrop(_x + 30, _y - 25, "life");
}
}
Instance of Symbol 1688 MovieClip "duracel2" in Symbol 1709 MovieClip Frame 16
onClipEvent (load) {
function event_die2() {
var _local1 = _parent;
if ((_local1.duracel.life > 0) && (_local1.duracel._currentframe <= 2)) {
_local1.duracel.gotoAndPlay("fall");
}
}
direction = -1;
gotoAndStop (18);
}
Symbol 1709 MovieClip Frame 17
function duradie() {
duracount--;
if (duracount <= 0) {
liftcanrise = 1;
}
}
duracount = 3;
Instance of Symbol 1703 MovieClip "lift1" in Symbol 1709 MovieClip Frame 17
onClipEvent (load) {
sensitive = 1;
stop();
}
Instance of Symbol 1688 MovieClip "duracel3" in Symbol 1709 MovieClip Frame 17
onClipEvent (load) {
function event_die2() {
_parent.duradie();
}
direction = -1;
lightoff = 1;
upstack = _parent.duracel4;
lowstack = _parent.bat2;
_parent.bat2.pos = 0;
decalage = 5;
pos = 1;
gotoAndPlay (35);
}
Instance of Symbol 1688 MovieClip "duracel4" in Symbol 1709 MovieClip Frame 17
onClipEvent (load) {
function event_die2() {
_parent.duradie();
}
direction = -1;
lightoff = 1;
upstack = _parent.duracel5;
lowstack = _parent.duracel3;
pos = 2;
gotoAndPlay (28);
}
Instance of Symbol 1688 MovieClip "duracel5" in Symbol 1709 MovieClip Frame 17
onClipEvent (load) {
function event_die2() {
_parent.duradie();
_root.sprites.itemdrop(_x + 60, _y - 20, "grenade");
}
direction = -1;
lightoff = 1;
lowstack = _parent.duracel4;
pos = 3;
gotoAndPlay (20);
}
Instance of Symbol 1703 MovieClip "lift3" in Symbol 1709 MovieClip Frame 19
onClipEvent (load) {
sensitive = 1;
stop();
}
Instance of Symbol 1703 MovieClip "lift2" in Symbol 1709 MovieClip Frame 19
onClipEvent (load) {
sensitive = 1;
stop();
}
Symbol 1716 MovieClip Frame 1
Symbol 1716 MovieClip Frame 3
gotoAndPlay (1);
Symbol 1716 MovieClip Frame 8
gotoAndPlay (1);
Symbol 1718 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = (damagebase = damagerand);
life = life - _local1;
if (life > 0) {
neon.gotoAndPlay(4);
} else {
setson();
son.attachSound("explosion1");
surson();
gotoAndPlay (2);
}
}
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
if (_currentframe == 1) {
life = 6;
_root.permalight.push(neon);
_root.maxcolorize(neon);
}
stop();
Symbol 1718 MovieClip Frame 2
_root.colorize_change(60, 1);
Symbol 1718 MovieClip Frame 7
event_die();
_root.colorize_change(-60, 1);
if (lightloss) {
_root.colorize_change(-lightloss);
} else {
_root.colorize_change(-25);
}
Symbol 1718 MovieClip Frame 16
stop();
Symbol 1719 MovieClip Frame 1
_visible = 0;
gotoAndPlay (2);
Symbol 1719 MovieClip Frame 2
if (hitTest(_root.hero.hitzone)) {
event();
}
event2();
Symbol 1719 MovieClip Frame 30
gotoAndPlay (2);
Symbol 1721 MovieClip Frame 1
stop();
Symbol 1722 MovieClip Frame 1
function attach(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
var _local3 = nom;
if (dept) {
var _local2 = dept;
} else {
var _local2 = n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
attachMovie(_local1, _local3 + n, _local2);
cur = this[_local3 + n];
} else {
attachMovie(_local1, _local3, _local2);
cur = this[_local3];
}
cur.distinction = distinction;
cur._x = x;
cur._y = y;
n_raise();
_local1._xscale = xscaleorig;
}
function duplicate(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
if (dept) {
var _local3 = dept;
} else {
var _local3 = n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
duplicateMovieClip (_local1, nom + n, _local3);
var _local2 = this[nom + n];
} else {
duplicateMovieClip (_local1, nom, _local3);
var _local2 = this[nom];
}
_local2.distinction = distinction;
_local2._x = x;
_local2._y = y;
n_raise();
_local1._xscale = xscaleorig;
}
function badang(cible, bangx, bangy, style) {
var _local1 = cible;
attachMovie("hitbadang", "hitbadang" + n, n + 3000);
bang = this["hitbadang" + n];
_local1.bang = bang;
bang._rotation = int(180 * Math.random());
bang._x = _local1._x + bangx;
bang._y = (_local1._y + _local1.middle) + bangy;
n_raise();
}
function itemdrop(x, y, kind, stay, yfac) {
var _local1 = kind;
var _local3 = yfac;
attachMovie("object", "object" + n, n);
item = this["object" + n];
item._x = x;
item._y = y;
if (!_local3) {
_local3 = -1;
}
item.yspeed = 6 * _local3;
item.forever = stay;
if (_local1 == "random") {
var _local2 = Math.random();
if ((_local2 <= _root.liferatio) || (!_root.hasgrenades)) {
_local1 = "life";
} else {
_local1 = "grenade";
}
}
if (_local1 == "extralife") {
item.gotoAndPlay(20);
} else {
item.gotoAndPlay(2);
}
item.iteminside.gotoAndStop(_local1);
n_raise();
}
function n_raise() {
n++;
if (n >= 12000) {
n = 100;
}
}
n = 100;
stop();
Instance of Symbol 1358 MovieClip "lamp2" in Symbol 1722 MovieClip Frame 1
onClipEvent (load) {
function event_die() {
_root.f1_lamp2dead = 1;
}
lightloss = 15;
if (_root.f1_lamp2dead) {
gotoAndStop (97);
}
}
Instance of Symbol 1358 MovieClip "lamp1" in Symbol 1722 MovieClip Frame 1
onClipEvent (load) {
function event_die() {
_root.f1_lamp1dead = 1;
_root.sprites.itemdrop(_x, _y - 25, "life");
}
lightloss = 15;
if (_root.f1_lamp1dead) {
gotoAndStop (97);
}
}
Instance of Symbol 812 MovieClip [soldier] "soldier" in Symbol 1722 MovieClip Frame 1
onClipEvent (load) {
function event_die() {
_root.f1_soldierdead = 1;
}
function init() {
setdirection(-1);
mobile = 0;
dirchanging = 0;
shooting = 0;
if (_root.f1_soldierdead) {
gotoAndStop (363);
}
}
}
Instance of Symbol 1718 MovieClip "neon" in Symbol 1722 MovieClip Frame 1
onClipEvent (load) {
function event_die() {
_root.f1_neondead = 1;
_root.sprites.itemdrop(_x, _y + 10, "life", 0, -0.2);
}
lightloss = 15;
if (_root.f1_neondead) {
gotoAndStop (16);
}
}
Instance of Symbol 1338 MovieClip "hero" in Symbol 1722 MovieClip Frame 1
onClipEvent (load) {
function setkeys() {
var _local1 = _root;
key_left = _local1.key_left;
key_right = _local1.key_right;
key_jump = _local1.key_jump;
key_up = _local1.key_jump;
key_jump2 = _local1.key_jump2;
key_esquiv = _local1.key_esquiv;
key_down = _local1.key_esquiv;
}
function level() {
armor = 1.3 - (0.3 * _root.difficulty);
power = 1.9 - (0.3 * _root.difficulty);
}
function colorize(r, g, b) {
colorchange = {rb:0, ra:r, gb:0, ga:g, bb:0, ba:b, aa:100, ab:0};
couleur.setTransform(colorchange);
}
function restoredepth() {
this.swapDepths(depthorig);
}
function setdirection(dir) {
if (direction != dir) {
maing.swapDepths(gun);
}
direction = dir;
_xscale = (direction * xscale_orig);
}
function fireratechange(factor) {
firerate = firerate + factor;
}
function desactivate() {
active = 0;
gun.anim.gotoAndStop(1);
tracktime = 0;
shoottime = 0;
key_left = 2000;
key_right = 2001;
key_down = 2005;
key_jump = 2002;
key_jump2 = 2003;
key_esquiv = 2004;
}
function activate() {
active = 1;
tracktime = 1;
shoottime = 1;
fixtrack = 0;
setkeys();
}
function expression(frame) {
head.anim.model.gotoAndStop(frame);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if ((life > 0) && (active || (driving_tank))) {
damage = damagebase + int(Math.random() * damagerand);
_root.shake_hit(damage);
damage = int(damage / armor);
if (powerful == "smash") {
lifechange(-damage);
if (life > 0) {
gotoAndPlay (419);
}
} else {
if (!driving_tank) {
xspeed = rvolx / 4;
}
if (Math.abs(xspeed) > 12) {
xspeed = (12 * Math.abs(xspeed)) / xspeed;
}
yspeed = rvoly;
lifechange(-damage);
_parent.badang(this);
if (life > 0) {
grenadtime = 0;
if (driving_tank) {
gotoAndPlay (371);
} else {
move_y();
gotoAndPlay (170);
}
}
}
}
}
function lifechange(factor) {
life = life + factor;
if (life > lifemax) {
life = lifemax;
} else if (life < 0) {
life = 0;
}
lifebar._xscale = (life / lifemax) * 100;
if ((life <= 0) && (!_root.winner)) {
gotoAndPlay (467);
}
}
function die() {
var _local1 = _root;
var _local2 = _parent;
xspeed = 0;
yspeed = 0;
yaccel = 0;
tracktime = 0;
shoottime = 0;
_local1.dieshake();
_local1.red = 100;
_local1.blue = 100;
_local1.green = 100;
_local1.colorize();
_local1.herodead = 1;
ycam = 0;
this.swapDepths(16000);
_local2._parent.foreground._visible = 0;
_local2.diescreen._x = (-game._x) + game.xdecalorig;
_local2.diescreen._y = -game._y;
_local2.diescreen.gotoAndPlay(2);
_local2.diescreen.swapDepths(15000);
active = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
}
function shoot() {
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
shootok = 0;
}
function shoot2() {
if ((yaccel != 0) && (!status_driving)) {
xspeed = xspeed - (((2 * (90 + gun.anim._rotation)) / 90) * direction);
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
_root.lastshot_owner = this;
shot._x = (((gun._x * _xscale) / 100) + _x) + _parent._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _parent._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
game.n_raise();
}
function grenadshoot() {
var _local1 = _parent;
if ((_root.grenadamnt > 0) && (crouched)) {
grenadechange(-1);
head.anim.gotoAndPlay("grenade");
grenadok = 0;
_local1.attachMovie(grenades, "grenade" + _local1.n, _local1.n);
grenade = _local1["grenade" + _local1.n];
grenade._x = (((head._x * _xscale) / 100) + _x) + ((direction * 10) * Math.sin(head.anim._rotation / 57.3));
grenade._y = (((head._y * _yscale) / 100) + _y) + (10 * (-Math.cos(head.anim._rotation / 57.3)));
grenade.xspeed = (direction * 30) * Math.sin(head.anim._rotation / 57.3);
grenade.yspeed = 30 * (-Math.cos(head.anim._rotation / 57.3));
grenade.grenade.grenade._rotation = head.anim._rotation - 90;
grenade.owner = this;
_local1._parent.shoottime = 0;
_local1.n_raise();
game.attachMovie("shot_grenade", "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((head._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((head._y * _yscale) / 100) + _y) + _local1._y;
shot._xscale = 50;
shot._yscale = 50;
shot._rotation = direction * head.anim._rotation;
game.n_raise();
}
}
function grenadechange(factor) {
var _local1 = _root;
_local1.grenadamnt = _local1.grenadamnt + factor;
if (_local1.grenadamnt > 20) {
_local1.grenadamnt = 20;
} else if (_local1.grenadamnt < 0) {
_local1.grenadamnt = 0;
}
}
function groundcheck() {
ground = 0;
if ((yspeed >= 0) && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
ground = 1;
}
}
function camxmove() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
}
function camset() {
game._x = ((-game.cameradiv) * _x) + game.xdecalbase;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecalcible;
if ((_x + xdecal) > game.camxmax) {
game._x = ((-game.cameradiv) * game.camxmax) + game.xdecalbase;
} else if ((_x + xdecal) < game.camxmin) {
game._x = ((-game.cameradiv) * game.camxmin) + game.xdecalbase;
} else {
game._x = ((-game.cameradiv) * _x) + game.xdecalbase;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecalcible;
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
game.ydecal = (-_y) + ybase;
}
function camxmove2() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game.xcible = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
game._x = game._x + ((game.xcible - game._x) / 6);
}
}
function move() {
if ((!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + xspeed);
object_attached._x = object_attached._x + xspeed;
}
camxmove();
}
function xchange(factor) {
var _local1 = factor;
if ((!decor.hitTest((game._x + _x) + ((20 * _local1) / Math.abs(_local1)), (game._y + _y) - 3, 1)) && (!decor.hitTest((game._x + _x) + _local1, (game._y + _y) + (middle * 1.5), 1))) {
_x = (_x + _local1);
}
camxmove();
}
function move_slide() {
move();
xspeed = xspeed / friction;
}
function track() {
if (tracktime == 1) {
if (!fixtrack) {
rotcible = ((Math.abs(gun._ymouse) / gun._ymouse) * 90) - (Math.atan(gun._xmouse / gun._ymouse) * 57.3);
if (rotcible > 25) {
rotcible = 25;
} else if (isNaN(rotcible)) {
rotcible = 0;
}
}
rotspeed = (rotcible - gunanirot) / 3;
headspeed = ((rotcible / 1.1) - hanirot) / 2.5;
bodyspeed = ((rotcible / 4) - banirot) / 2.5;
gunanirot = gunanirot + rotspeed;
if (gunanirot < -90) {
gunanirot = -90;
}
hanirot = hanirot + headspeed;
if (head.anim.rot < -90) {
head.anim.rot = -90;
}
banirot = banirot + bodyspeed;
rot = gunanirot;
gunanix = rot / -60;
gunaniy = -Math.abs(rot / 25);
headxcible = rot / 18;
hanix = hanix + ((headxcible - hanix) / 3);
haniy = -Math.abs(rot / 60);
banix = rot / -90;
baniy = -Math.abs(rot / 60);
} else if (tracktime == 2) {
rotcible2 = head._xmouse / 10;
if (rotcible2 > 60) {
rotcible2 = 60;
} else if (rotcible2 < 8) {
rotcible2 = 8;
} else if (isNaN(rotcible2)) {
rotcible2 = 0;
}
hanirot = hanirot + ((rotcible2 - hanirot) / 2);
gunanirot = gunanirot + ((-gunanirot) / 3);
banirot = banirot + ((-banirot) / 3);
}
}
function rotate() {
if (gunanirot > 0) {
gunanirot = -90;
} else {
gunanirot = -90 + (-90 - gunanirot);
gunanix = -gunanix;
}
if (hanirot > 0) {
hanirot = -90;
} else {
hanirot = -90 + (-90 - hanirot);
hanix = -hanix;
}
track();
updateparts();
}
function updateparts() {
head.anim._x = hanix;
head.anim._y = haniy;
head.anim._rotation = hanirot;
body.anim._x = banix;
body.anim._y = baniy;
body.anim._rotation = banirot;
gun._rotation = gun_control._rotation;
gun._x = gun_control._x;
gun._y = gun_control._y;
gun._xscale = gun_control._xscale;
gun._yscale = gun_control._yscale;
gun.anim._x = gunanix;
gun.anim._y = gunaniy;
gun.anim._rotation = gunanirot;
maing._rotation = (gun._rotation + gun.anim._rotation) + gun.anim.gun._rotation;
maing._x = gun._x + gun.anim._x;
maing._y = gun._y + gun.anim._y;
maing.anim._x = gun.anim.gun._x + 25;
maing.anim._xscale = (80 - (Math.abs(xspeed) * movedirection)) - (gun.anim._rotation / 3);
maing.anim._rotation = (0.3 * (gun._y + (gun.anim._rotation / 1.5))) + 10;
maing.anim._y = gun.anim.gun._y;
maing._xscale = gun._xscale;
maing._yscale = gun._yscale;
}
function saveparts() {
hx = head._x;
hy = head._y;
hr = head._rotation;
bx = body._x;
by = body._y;
br = body._rotation;
gx = gun_control._x;
gy = gun_control._y;
gr = gun_control._rotation;
}
function targetparts() {
hxc = head._x;
hyc = head._y;
hrc = head._rotation;
bxc = body._x;
byc = body._y;
brc = body._rotation;
gxc = gun_control._x;
gyc = gun_control._y;
grc = gun_control._rotation;
}
function loadparts() {
head._x = hx;
head._y = hy;
head._rotation = hr;
body._x = bx;
body._y = by;
body._rotation = br;
gun_control._x = gx;
gun_control._y = gy;
gun_control._rotation = gr;
}
function moveparts() {
head._x = head._x + ((hxc - head._x) / div);
head._y = head._y + ((hyc - head._y) / div);
head._rotation = head._rotation + ((hrc - head._rotation) / div);
body._x = body._x + ((bxc - body._x) / div);
body._y = body._y + ((byc - body._y) / div);
body._rotation = body._rotation + ((brc - body._rotation) / div);
gun_control._x = gun_control._x + ((gxc - gun_control._x) / div);
gun_control._y = gun_control._y + ((gyc - gun_control._y) / div);
gun_control._rotation = gun_control._rotation + ((grc - gun_control._rotation) / div);
}
decor = _root.decor;
game = _root.game;
shots = _parent._parent.shots;
grenades = "plasmagrenade";
lifebar = _root.status.lifebar;
rotbar = _root.status_rot;
xdecal = 0;
yspeed = 0;
xspeed = 0;
yaccel = 3;
yaccel_orig = 3;
xdecaldivider_orig = 6;
xdecaldivider = xdecaldivider_orig;
sonoff = 0;
active = 1;
ycam = 1;
x_orig = _x;
y_orig = _y;
middle = (-_height) / 3;
lifemax = 100;
life = lifemax;
lifebar._xscale = (life / lifemax) * 100;
waitingland = 0;
setkeys();
footchange = 0;
xscale_orig = _xscale;
direction = 1;
movedirection = 1;
friction = 1.4;
climbspeed = -3;
walkspeed = 6;
rollspeed = 10;
backwalkspeed = -6;
range_orig = 400;
range_tank = 500;
range = 400;
ybasetank = 0;
ybase = ybaseorig;
ym = 50;
ycam = 1;
depthorig = this.getDepth();
this.swapDepths(3000);
son = new Sound(this);
_root.sons.push(son);
couleur = new Color(this);
colorchange = new Object();
level();
colorize(100, 100, 100);
_root.herodead = 0;
tracktime = 1;
rolltime = 1;
firerate = _root.herofirerate;
fireratemax = 4;
grenadamnt = 10;
_root.permalight.push(misc);
setdirection(1);
camset();
xorig = _x;
yorig = _y;
owner = _parent._parent;
init();
delete init;
if (_root.gonnaretry) {
_root.gonnaretry = 0;
_root.retry();
}
}
onClipEvent (enterFrame) {
absx = game._x;
absy = game._y;
_root.cframe = _currentframe;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecal + ((xdecalcible - xdecal) / xdecaldivider);
_y = (_y + yspeed);
if (ycam) {
game.yspeed = game.yspeed + (((-game.ydecal) - (_y - ybase)) / 1.5);
game.yspeed = game.yspeed / 12;
game.ydecal = game.ydecal + game.yspeed;
}
if ((yspeed < 0) && (!decor.hitTest(game._x + _x, ((game._y + _y) + (2 * middle)) + (yspeed / 3), 1))) {
yspeed = yspeed + yaccel;
} else if ((yspeed >= 0) && (!decor.hitTest(game._x + _x, game._y + _y, 1))) {
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((life > 0) && (decor.hitTest(game._x + _x, (game._y + _y) - 2, 1))) {
_y = (_y - 1);
}
while ((life > 0) && (decor.hitTest((game._x + _x) + 12, (game._y + _y) - 3, 1))) {
_x = (_x - 3);
}
while ((life > 0) && (decor.hitTest((game._x + _x) - 12, (game._y + _y) - 3, 1))) {
_x = (_x + 3);
}
track();
updateparts();
}
onClipEvent (mouseDown) {
punchok = 0;
gonnashoot = 1;
gonnagrenad = 1;
if (grenadtime && (grenadok)) {
grenadshoot();
} else {
if (shoottime) {
for (a in _parent) {
if ((_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) && (!_parent[a].notbashable)) {
punchok = 1;
}
}
}
if (((!status_driving) && (punchok)) && (decor.hitTest(game._x + _x, ((game._y + _y) + (yspeed / 2)) + 2, 1))) {
tracktime = 0;
shoottime = 0;
gun.anim._rotation = 0;
gotoAndPlay (240);
} else if (shoottime && (shootok)) {
shoot();
}
}
}
onClipEvent (mouseUp) {
gonnagrenad = 0;
gonnashoot = 0;
}
onClipEvent (load) {
xorig = 122.75;
yorig = 165.9;
}
Symbol 1722 MovieClip Frame 2
function doorbaddies2() {
var _local1 = _root;
var _local2 = this;
_local1.decor.doorzone.gotoAndStop(2);
_local1.bg.porte.gotoAndPlay("smash");
_local1.bg.limiter._x = 1300;
attach("bazooka", "baz", 1, yarrzone._x + 75, yarrzone._y);
cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.paces = 3;
_local1.mobile = 2;
};
cur.event_die = function () {
var _local1 = _root;
_local1.decor.alarm.gotoAndPlay("explode");
_local1.f0_cleared = 1;
_local1.textbox.texte = "elevator";
_local1.textbox.gotoAndPlay("info");
_local1.area_change(3);
};
}
function doorbaddies() {
var _local1 = this;
var _local2 = _root;
clearInterval(int_doorbad);
if (count < 2) {
attach("trooper", "tro", 1, yarrzone._x, yarrzone._y);
cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.dashsteps = 3;
_local1.gotoAndPlay("dash");
_local1.unshakable = 1;
};
cur.event_die = function () {
var _local1 = _root;
var _local2 = this;
_local1.sprites.diecount++;
if (_local1.sprites.diecount >= 2) {
_local1.sprites.doorbaddies2();
} else {
attach("trooper", "tro", 1, startzone._x, startzone._y);
cur.init = function () {
var _local1 = this;
_local1.setdirection(Math.abs(_root.hero._x - _local1._x) / (_root.hero._x - _local1._x));
_local1.priorframe = "jump_wait";
};
}
};
count++;
int_doorbad = setInterval(doorbaddies, 1000);
}
}
hero.xspeed = 0;
hero._x = startzone._x;
hero._y = startzone._y;
_root.hero.ycam = 0;
_root.game.ydecal = 0;
hero.setdirection(1);
hero.gotoAndStop("falling");
if (_root.f0_cleared) {
_root.area_change(3);
} else {
hero.desactivate();
hero.xdecalcible = 25;
hero.xdecal = 25;
count = 0;
}
Instance of Symbol 287 MovieClip "yarrzone" in Symbol 1722 MovieClip Frame 2
/* no clip actions */
Instance of Symbol 1718 MovieClip "neon2" in Symbol 1722 MovieClip Frame 2
onClipEvent (load) {
function event_die() {
_root.f0_neondead = 1;
_root.sprites.itemdrop(_x, _y + 10, "life", 0, 1);
}
if (_root.f0_neondead) {
gotoAndStop (16);
}
}
Instance of Symbol 1718 MovieClip "neon1" in Symbol 1722 MovieClip Frame 2
onClipEvent (load) {
function event_die() {
_root.f0_neondead = 1;
_root.sprites.itemdrop(_x, _y + 10, "life", 0, 1);
}
if (_root.f0_neondead) {
gotoAndStop (16);
}
}
Symbol 1722 MovieClip Frame 5
function sofaburnt() {
var _local1 = this;
attach("grenadier", "gre", 1, zone_gre._x, zone_gre._y);
cur.init = function () {
var _local1 = this;
_local1.paces = 0;
_local1.mobile = 1;
_local1.noretaliate = 1;
};
cur.event_die = function () {
count--;
};
trooper.tipe = "normal";
blocker.inactive = 1;
delete sofaburnt;
}
function dropdog() {
if (count < 3) {
attach("dog", "dog", 1, zone_dog._x, zone_dog._y);
cur.init = function () {
this.gotoAndPlay(193);
};
cur.event_die = function () {
count--;
};
count++;
dogcount++;
}
}
count = 2;
dogcount = 0;
Instance of Symbol 287 MovieClip "zone_gre" in Symbol 1722 MovieClip Frame 5
onClipEvent (load) {
if (_root.f2_grendead == -1) {
_parent.sofaburnt();
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 5
onClipEvent (load) {
function event() {
var _local1 = _parent;
if ((!_local1.alarm.onn) && (_local1.alarm.life > 0)) {
_local1.alarm.gotoAndPlay("alarm");
}
}
function event2() {
var _local1 = _parent;
if (_local1.alarm.onn) {
if (_local1.dogcount < 3) {
_local1.dropdog();
} else {
_local1.alarm.gotoAndPlay("explode");
gotoAndStop (35);
}
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 5
/* no clip actions */
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 5
onClipEvent (load) {
function event() {
if (_parent.alarm.onn) {
_parent.alarm.gotoAndPlay("explode");
}
}
}
Instance of Symbol 287 MovieClip "blocker" in Symbol 1722 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((!inactive) && (_root.hero._x < _x)) {
_root.hero._x = _x;
}
}
Instance of Symbol 727 MovieClip [trooper] "trooper" in Symbol 1722 MovieClip Frame 5
onClipEvent (load) {
function init() {
tipe = "stalejump";
targetx = _x;
weakness = 2;
life = 2;
}
function event_die() {
_parent.count--;
}
}
Instance of Symbol 1358 MovieClip "lamp1" in Symbol 1722 MovieClip Frame 5
onClipEvent (load) {
lightloss = 15;
}
Instance of Symbol 1358 MovieClip in Symbol 1722 MovieClip Frame 5
onClipEvent (load) {
function event_die() {
_root.sprites.itemdrop(_x, _y - 25, "life");
}
lightloss = 15;
}
Symbol 1722 MovieClip Frame 6
function dropdog() {
if (count < 3) {
attach("dog", "dog", 1, zone_dog._x, zone_dog._y);
cur.init = function () {
this.gotoAndPlay(193);
};
cur.event_die = function () {
count--;
};
count++;
dogcount++;
}
}
function walldoor1() {
attach("bazooka", "baz", 1, _root.bg.walldoor._x, _root.bg.walldoor._y);
cur.init = function () {
this.mobile = 2;
this.setdirection(-1);
};
cur.event_die = function () {
count--;
};
}
count = 2;
dogcount = 0;
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 6
onClipEvent (load) {
function event() {
var _local1 = _parent;
if ((!_local1.alarm2.onn) && (_local1.alarm2.life > 0)) {
_local1.alarm2.gotoAndPlay("alarm");
}
}
function event2() {
var _local1 = _parent;
if (_local1.alarm2.onn) {
if (_local1.dogcount < 8) {
_local1.dropdog();
} else {
_local1.alarm2.gotoAndPlay("explode");
gotoAndStop (35);
}
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 6
onClipEvent (load) {
function event() {
_root.bg.walldoor.gotoAndPlay("open");
delete event;
gotoAndStop (20);
}
}
Instance of Symbol 1718 MovieClip in Symbol 1722 MovieClip Frame 6
onClipEvent (load) {
function event_die() {
_root.sprites.itemdrop(_x, _y + 10, "life", 0, 1);
}
}
Instance of Symbol 651 MovieClip [bazooka] in Symbol 1722 MovieClip Frame 6
onClipEvent (load) {
function init() {
mobile = 2;
}
function event_die() {
_parent.count--;
}
}
Symbol 1722 MovieClip Frame 7
function walldoor(door) {
var _local1 = this;
var _local2 = _root;
var _local3 = door;
totcount++;
count++;
if (totcount == 8) {
attach("grenadier", "gre", 1, _local3._x, _local3._y);
cur.init = function () {
var _local1 = this;
_local1.setdirection((_root.hero._x - _local1._x) / Math.abs(_root.hero._x - _local1._x));
};
} else {
attach("trooper", "tr", 1, _local3._x, _local3._y);
cur.init = function () {
var _local1 = this;
var _local2 = _root;
_local1.setdirection((_local2.hero._x - _local1._x) / Math.abs(_local2.hero._x - _local1._x));
if (Math.abs(_local1._x - _local2.hero._x) >= 100) {
_local1.gotoAndPlay("dash");
}
_local1.life = 2;
};
}
cur.event_die = function () {
var _local1 = _root;
count--;
_local1.sprites.creator.event2();
if ((count == 0) && (totcount >= 14)) {
_local1.bg.porte.gotoAndPlay("open");
_local1.decor.zone_porte.gotoAndStop(2);
}
};
}
count = 0;
totcount = 0;
onn = 0;
Instance of Symbol 1719 MovieClip "creator" in Symbol 1722 MovieClip Frame 7
onClipEvent (load) {
function event2() {
var _local1 = _parent;
if (_local1.onn) {
if (_local1.totcount < 14) {
if (_local1.count < 2) {
if (_local1.totcount == 7) {
var _local2 = _root.bg.walldoor5;
} else {
var _local2 = _root.bg["walldoor" + int((4 * Math.random()) + 1)];
}
if (_local2._currentframe == 1) {
_local2.gotoAndPlay("open");
}
}
} else {
delete event2;
gotoAndStop (35);
}
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 7
onClipEvent (load) {
function event() {
_root.bg.porte2.gotoAndPlay("open");
_root.decor.zone_porte2.gotoAndStop(2);
delete event;
gotoAndStop (20);
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 7
onClipEvent (load) {
function event() {
_root.bg.porte2.gotoAndPlay("close");
_root.decor.zone_porte22.gotoAndStop(1);
_parent.onn = 1;
delete event;
gotoAndStop (20);
}
}
Instance of Symbol 1718 MovieClip in Symbol 1722 MovieClip Frame 7
onClipEvent (load) {
function event_die() {
_root.sprites.itemdrop(_x + 20, _y + 10, "life", 0, 1);
_root.sprites.itemdrop(_x - 20, _y + 10, "life", 0, 1);
}
lightloss = 15;
}
Instance of Symbol 1358 MovieClip in Symbol 1722 MovieClip Frame 7
onClipEvent (load) {
lightloss = 15;
}
Instance of Symbol 1358 MovieClip in Symbol 1722 MovieClip Frame 7
onClipEvent (load) {
lightloss = 15;
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 8
onClipEvent (load) {
function event() {
_root.decor.bat.gotoAndPlay(2);
delete event;
gotoAndStop (20);
}
}
Symbol 1722 MovieClip Frame 9
function dropdog() {
if (count < 3) {
attach("dog", "dog", 1, zone_dog._x, zone_dog._y);
cur.init = function () {
this.gotoAndPlay(193);
};
cur.event_die = function () {
count--;
};
count++;
dogcount++;
}
}
function walldoor() {
attach("trooper", "tr", 1, _root.bg.walldoor._x, _root.bg.walldoor._y);
cur.init = function () {
count++;
this.setdirection(-1);
};
cur.event_die = function () {
count--;
};
}
count = 2;
dogcount = 0;
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 9
onClipEvent (load) {
function event() {
var _local1 = _parent;
var _local2 = this;
_local1.attach("soldier", "sol", 1, _local1.zone_trooper._x, _local1.zone_trooper._y);
_local1.cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.dirchanging = -1;
_local1.mobile = 0;
};
_local1.attach("trooper", "tr", 1, _local1.zone_trooper2._x, _local1.zone_trooper2._y);
gotoAndStop (20);
delete event;
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 9
onClipEvent (load) {
function event() {
var _local1 = _parent;
if ((!_local1.alarm.onn) && (_local1.alarm.life > 0)) {
_local1.alarm.gotoAndPlay("alarm");
}
}
function event2() {
var _local1 = _parent;
if (_local1.alarm.onn) {
if (_local1.dogcount < 6) {
_local1.dropdog();
} else {
_local1.alarm.gotoAndPlay("explode");
gotoAndStop (35);
}
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 9
onClipEvent (load) {
function event() {
var _local1 = _root;
if (_local1.bg.walldoor._currentframe == 1) {
_local1.bg.walldoor.gotoAndPlay("open");
} else if ((_local1.bg.walldoor._currentframe == 18) && (_parent.count < 3)) {
_parent.walldoor();
_local1.bg.walldoor.stayopen = 0;
_local1.bg.walldoor.play();
delete event;
gotoAndStop (35);
}
}
}
Instance of Symbol 1718 MovieClip in Symbol 1722 MovieClip Frame 9
onClipEvent (load) {
function event_die() {
_root.sprites.itemdrop(_x, _y + 10, "life", 0, 1);
}
lightloss = 18;
}
Instance of Symbol 765 MovieClip [grenadier] in Symbol 1722 MovieClip Frame 9
onClipEvent (load) {
function event_die() {
_parent.count--;
}
}
Instance of Symbol 1358 MovieClip in Symbol 1722 MovieClip Frame 9
onClipEvent (load) {
lightloss = 18;
}
Symbol 1722 MovieClip Frame 10
function walldoor() {
var _local1 = _root;
count++;
trcount++;
attach("trooper", "tr", 1, _local1.bg.walldoor._x, _local1.bg.walldoor._y);
cur.init = function () {
this.gotoAndPlay("dash");
};
cur.event_die = function () {
count--;
if ((count <= 0) && (trcount == 2)) {
_root.bg.porte.gotoAndPlay("open");
_root.decor.zone_porte.gotoAndStop(2);
}
};
}
function walldoor2() {
count++;
attach("grenadier", "gr", 1, _root.bg.walldoor2._x, _root.bg.walldoor2._y);
cur.init = function () {
this.immuneto_badshots = 1;
};
cur.event_die = function () {
count--;
};
}
function dropdog() {
if (count < 3) {
attach("dog", "dog", 1, zone_dog._x, zone_dog._y);
cur.init = function () {
this.gotoAndPlay(193);
this.jumpbonus = 2;
};
cur.event_die = function () {
count--;
};
count++;
dogcount++;
}
}
count = 1;
dogcount = 0;
trcount = 0;
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 10
onClipEvent (load) {
function event() {
var _local1 = _root;
if (_local1.bg.walldoor._currentframe == 1) {
_local1.bg.walldoor.stayopen = 1;
_local1.bg.walldoor.gotoAndPlay("open");
} else if (_local1.bg.walldoor._currentframe == 18) {
_local1.bg.walldoor.stayopen = 0;
_parent.walldoor();
_local1.bg.walldoor.play();
delete event;
gotoAndStop (35);
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 10
onClipEvent (load) {
function event() {
var _local1 = _parent;
if ((!_local1.alarm.onn) && (_local1.alarm.life > 0)) {
_local1.alarm.gotoAndPlay("alarm");
}
}
function event2() {
var _local1 = _parent;
if (_local1.alarm.onn) {
if (_local1.dogcount < 6) {
_local1.dropdog();
} else {
_local1.alarm.gotoAndPlay("explode");
gotoAndStop (35);
}
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 10
onClipEvent (load) {
function event() {
var _local1 = _parent;
var _local2 = this;
if ((_local1.count <= 0) && (_local1.trcount == 2)) {
_root.bg.walldoor2.gotoAndPlay("open");
_local1.count++;
_local1.attach("soldier", "sol", 1, _local1.zone_soldier._x, _local1.zone_soldier._y);
_local1.cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.mobile = 0;
_local1.dirchanging = 0;
};
_local1.cur.event_die = function () {
_parent.count--;
};
delete event;
gotoAndStop (20);
}
}
function init() {
setdirection(-1);
mobile = 0;
dirchanging = 0;
}
function event_die() {
_parent.count--;
}
}
Instance of Symbol 812 MovieClip [soldier] in Symbol 1722 MovieClip Frame 10
onClipEvent (load) {
function init() {
mobile = 0;
}
function event_die() {
var _local1 = _parent;
_local1.count--;
if ((_local1.count <= 0) && (_local1.trcount == 2)) {
_root.bg.porte.gotoAndPlay("open");
_root.decor.zone_porte.gotoAndStop(2);
}
}
}
Instance of Symbol 1718 MovieClip in Symbol 1722 MovieClip Frame 10
onClipEvent (load) {
function event_die() {
_root.sprites.itemdrop(_x, _y + 10, "life", 0, 1);
}
}
Symbol 1722 MovieClip Frame 11
function walldoor() {
var _local1 = this;
count++;
bazcount++;
attach("bazooka", "baz", 1, _root.bg.walldoor._x, _root.bg.walldoor._y);
cur.init = function () {
var _local1 = this;
_local1.life = 10;
_local1.raging = 1;
_local1.setdirection(-1);
_local1.longranged = 1;
_local1.mobile = 1;
};
cur.event_die = function () {
count--;
};
}
function walldoor2() {
var _local1 = this;
count++;
bazcount++;
attach("bazooka", "baz", 1, _root.bg.walldoor._x, _root.bg.walldoor._y);
cur.init = function () {
var _local1 = this;
_local1.life = 30;
_local1.setdirection(-1);
_local1.paces = 2;
_local1.longranged = 1;
_local1.mobile = 2;
_local1.gotoAndPlay("dash");
};
cur.event_die = function () {
count--;
};
}
function bazook() {
var _local1 = this;
count++;
bazcount++;
attach("bazooka", "baz", 1, zone_baz._x, zone_baz._y);
cur.init = function () {
var _local1 = this;
_local1.life = 30;
_local1.setdirection(1);
_local1.longranged = 1;
_local1.mobile = 0;
};
cur.event_die = function () {
count--;
};
}
bazcount = 0;
count = 0;
Instance of Symbol 1346 MovieClip in Symbol 1722 MovieClip Frame 11
onClipEvent (load) {
function event() {
var _local1 = _parent;
var _local3 = this;
for (var _local2 in _local1) {
if (((_local1[_local2]._y > _y) && (_local1[_local2] != _local3)) && (_local1[_local2].life > -10000)) {
_local1[_local2].gotoAndPlay("die");
_local1[_local2].life = -10000;
}
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 11
onClipEvent (load) {
function event() {
if (_parent.count <= 1) {
_root.area_change(12);
delete event;
gotoAndStop (35);
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 11
onClipEvent (load) {
function event() {
_root.bg.walldoor.gotoAndPlay("open");
delete event;
gotoAndStop (20);
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 11
onClipEvent (load) {
function event() {
if (_parent.count <= 1) {
_parent.bazook();
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 287 MovieClip "zone_baz" in Symbol 1722 MovieClip Frame 11
onClipEvent (load) {
function init() {
desactivate();
}
function event_activate() {
setdirection(1);
drunk = 45;
rockspdbonus = 4;
mobile = 1;
longranged = 1;
gotoAndPlay ("dash");
}
function event_die() {
var _local1 = _parent;
_local1.count--;
if ((_local1.count <= 0) && (_local1.bazcount >= 2)) {
_root.area_change(12);
}
}
}
Symbol 1722 MovieClip Frame 12
function elevator2() {
count++;
bazcount++;
attach("bazooka", "baz", 1, _root.bg.elevator2._x, _root.bg.elevator2._y + 65);
cur.init = function () {
this.paces = 1;
};
cur.event_die = function () {
count--;
};
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 12
onClipEvent (load) {
function event() {
if (_parent.count <= 0) {
_root.bg.elevator2.gotoAndPlay("open");
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 12
onClipEvent (load) {
function event() {
var _local1 = _root;
if (_local1.decor.roof._currentframe > 25) {
_local1.foreground.roof.gotoAndPlay("fall");
_local1.decor.roof.gotoAndPlay("fall");
if ((_local1.bg.boss_helico.status != "damaged") && (_local1.bg.boss_helico.status != "dead")) {
_local1.bg.boss_helico.status = "damaged";
}
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 1359 MovieClip "bonomzone" in Symbol 1722 MovieClip Frame 12
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
boss.hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand);
}
notbashable = 1;
boss = _root.bg.boss_helico;
}
Instance of Symbol 1360 MovieClip "helicezone" in Symbol 1722 MovieClip Frame 12
onClipEvent (load) {
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand) {
boss.hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand);
}
notbashable = 1;
boss = _root.bg.boss_helico;
}
Symbol 1722 MovieClip Frame 13
Symbol 1722 MovieClip Frame 14
function dogdie() {
count--;
if (count == 1) {
_root.bg.walldoor.gotoAndPlay("open");
}
}
function walldoor() {
var _local1 = _root;
attach("trooper", "tr", 1, _local1.bg.walldoor._x, _local1.bg.walldoor._y);
cur.init = function () {
this.gotoAndPlay("dash");
};
cur.event_die = function () {
count--;
if (count <= -3) {
_root.bg.elevator.locked = 0;
}
};
_local1.bg.elevator.gotoAndPlay("open");
int_walldoor3 = setInterval(walldoor3, 1000);
}
function walldoor2() {
var _local1 = _root;
attach("trooper", "tr", 1, _local1.bg.elevator._x, _local1.bg.elevator._y);
cur.init = function () {
this.setdirection(-1);
this.gotoAndPlay("dash");
};
cur.event_die = function () {
count--;
if (count <= -3) {
_root.bg.elevator.locked = 0;
}
};
delete walldoor2;
}
function walldoor3() {
var _local1 = _root;
var _local2 = this;
attach("bazooka", "baz", 1, _local1.bg.walldoor._x, _local1.bg.walldoor._y);
cur.init = function () {
var _local1 = this;
_local1.gotoAndPlay("dash");
_local1.mobile = 2;
_local1.raging = 1;
};
cur.event_die = function () {
count--;
if (count <= -3) {
_root.bg.elevator.locked = 0;
}
};
_local1.bg.walldoor.stayopen = 0;
_local1.bg.walldoor.gotoAndPlay("opened");
clearInterval(int_walldoor3);
}
count = 4;
Instance of Symbol 692 MovieClip [dog] "dog1" in Symbol 1722 MovieClip Frame 14
onClipEvent (load) {
function init() {
life = 25;
immuneto_all = 1;
}
function event_die() {
_parent.dogdie();
}
}
Instance of Symbol 692 MovieClip [dog] "dog2" in Symbol 1722 MovieClip Frame 14
onClipEvent (load) {
function init() {
life = 25;
immuneto_all = 1;
}
function event_die() {
_parent.dogdie();
}
}
Instance of Symbol 692 MovieClip [dog] "dog4" in Symbol 1722 MovieClip Frame 14
onClipEvent (load) {
function init() {
life = 25;
immuneto_all = 1;
}
function event_die() {
_parent.dogdie();
}
}
Instance of Symbol 692 MovieClip [dog] "dog3" in Symbol 1722 MovieClip Frame 14
onClipEvent (load) {
function init() {
life = 25;
immuneto_all = 1;
}
function event_die() {
_parent.dogdie();
}
}
Instance of Symbol 1358 MovieClip in Symbol 1722 MovieClip Frame 14
onClipEvent (load) {
function event_die() {
_root.sprites.itemdrop(_x, _y - 25, "life");
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 15
onClipEvent (load) {
function event() {
_root.decor.bat.gotoAndPlay(2);
delete event;
gotoAndStop (20);
}
}
Instance of Symbol 1358 MovieClip "explolamp" in Symbol 1722 MovieClip Frame 17
onClipEvent (load) {
invincible = 1;
}
Instance of Symbol 1616 MovieClip "alarm" in Symbol 1722 MovieClip Frame 17
onClipEvent (load) {
invincible = 1;
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 17
onClipEvent (load) {
function event() {
if (_root.decor.liftcanrise) {
_root.decor.lift1.gotoAndStop("move");
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 17
onClipEvent (load) {
function event() {
if (_root.decor.lift1.yspeed > 0) {
_root.decor.lift1.gotoAndStop("move");
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 17
onClipEvent (load) {
function event() {
if (_root.decor.lift1.yspeed > 0) {
_root.decor.lift1.gotoAndStop("move");
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 17
onClipEvent (load) {
function event() {
var _local1 = _root;
_local1.bg.batlightning.spark1.gotoAndStop("explode");
_local1.bg.batlightning.spark2.gotoAndStop("explode");
_local1.bg.spark1.gotoAndStop("explode");
_local1.bg.spark2.gotoAndStop("explode");
removeMovieClip(_local1.bg.batlightning);
_local1.loadcolor(10);
_local1.area_change(18);
}
}
Symbol 1722 MovieClip Frame 18
function walldoor() {
var _local1 = this;
var _local2 = _root;
count++;
totcount++;
var _local3 = Math.random();
if (_local3 < 0.8) {
attach("trooper", "tr", 1, _local2.bg.walldoor._x, _local2.bg.walldoor._y);
cur.init = function () {
this.setdirection(-1);
this.gotoAndPlay("dash");
};
} else if (_local3 < 0.9) {
attach("soldier", "sol", 1, _local2.bg.walldoor._x, _local2.bg.walldoor._y);
cur.init = function () {
this.setdirection(-1);
this.dashsteps = 1;
};
} else {
attach("bazooka", "baz", 1, _local2.bg.walldoor._x, _local2.bg.walldoor._y);
cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.gotoAndPlay("dash");
_local1.mobile = 2;
_local1.raging = 1;
};
}
cur.event_die = function () {
door1free = 1;
count--;
if ((count <= 0) && (totcount >= 20)) {
alarm.gotoAndPlay("explode");
_root.area_change(19);
}
};
}
function walldoor2() {
var _local1 = this;
var _local2 = _root;
count++;
totcount++;
door2free = 0;
var _local3 = Math.random();
if (_local3 < 0.8) {
attach("trooper", "tr", 1, _local2.bg.walldoor2._x, _local2.bg.walldoor2._y);
cur.init = function () {
this.setdirection(-1);
this.gotoAndPlay("dash");
};
} else if (_local3 < 0.9) {
attach("grenadier", "gren", 1, _local2.bg.walldoor2._x, _local2.bg.walldoor2._y);
cur.init = function () {
var _local1 = this;
_local1.setdirection(-1);
_local1.mobile = 0;
_local1.paces = 1;
_local1.life = 10;
_local1.noroll = 1;
};
} else {
attach("soldier", "sol", 1, _local2.bg.walldoor2._x, _local2.bg.walldoor2._y);
cur.init = function () {
this.setdirection(-1);
this.paces = 1;
};
}
cur.event_die = function () {
count--;
door2free = 1;
if ((count <= 0) && (totcount >= 20)) {
alarm.gotoAndPlay("explode");
_root.area_change(19);
}
};
}
function walldoor3() {
var _local1 = this;
var _local2 = _root;
count++;
totcount++;
door3free = 0;
var _local3 = Math.random();
if (_local3 < 0.8) {
attach("trooper", "tr", 1, _local2.bg.walldoor3._x, _local2.bg.walldoor3._y);
cur.init = function () {
this.setdirection(1);
this.gotoAndPlay("dash");
};
} else if (_local3 < 0.9) {
attach("grenadier", "gren", 1, _local2.bg.walldoor3._x, _local2.bg.walldoor3._y);
cur.init = function () {
var _local1 = this;
_local1.setdirection(1);
_local1.mobile = 0;
_local1.paces = 1;
_local1.life = 10;
_local1.noroll = 1;
};
} else {
attach("soldier", "sol", 1, _local2.bg.walldoor3._x, _local2.bg.walldoor3._y);
cur.init = function () {
this.setdirection(1);
this.paces = 1;
};
}
cur.event_die = function () {
count--;
door3free = 1;
if ((count <= 0) && (totcount >= 20)) {
alarm.gotoAndPlay("explode");
_root.area_change(19);
}
};
}
_root.bg.porte.gotoAndPlay("close");
_root.bg.walldoor.gotoAndPlay("open");
alarm.gotoAndPlay("alarm");
count = 0;
explolamp.invincible = 0;
totcount = 0;
door1free = 1;
door2free = 1;
door3free = 1;
Instance of Symbol 1412 MovieClip in Symbol 1722 MovieClip Frame 18
onClipEvent (load) {
function event() {
var _local1 = _root;
var _local2 = _parent;
if (_local2.count < 3) {
if (_local2.totcount < 20) {
var _local3 = int((3 * Math.random()) + 1);
if (_local3 == 1) {
if ((_local1.bg.walldoor._currentframe == 1) && (_local2.door1free)) {
_local1.bg.walldoor.gotoAndPlay("open");
} else {
_local3 = Math.random();
if (((_local3 < 0.5) && (_local1.bg.walldoor2._currentframe == 1)) && (_local2.door2free)) {
_local1.bg.walldoor2.gotoAndPlay("open");
} else if ((_local1.bg.walldoor3._currentframe == 1) && (_local2.door3free)) {
_local1.bg.walldoor3.gotoAndPlay("open");
}
}
} else if (_local3 == 2) {
if ((_local1.bg.walldoor2._currentframe == 1) && (_local2.door2free)) {
_local1.bg.walldoor2.gotoAndPlay("open");
} else {
_local3 = Math.random();
if (((_local3 < 0.5) && (_local1.bg.walldoor3._currentframe == 1)) && (_local2.door3free)) {
_local1.bg.walldoor3.gotoAndPlay("open");
} else if ((_local1.bg.walldoor._currentframe == 1) && (_local2.door1free)) {
_local1.bg.walldoor.gotoAndPlay("open");
}
}
} else if ((_local1.bg.walldoor3._currentframe == 1) && (_local2.door3free)) {
_local1.bg.walldoor3.gotoAndPlay("open");
} else {
_local3 = Math.random();
if (((_local3 < 0.5) && (_local1.bg.walldoor._currentframe == 1)) && (_local2.door1free)) {
_local1.bg.walldoor.gotoAndPlay("open");
} else if ((_local1.bg.walldoor2._currentframe == 1) && (_local2.door2free)) {
_local1.bg.walldoor2.gotoAndPlay("open");
}
}
} else {
gotoAndStop (35);
}
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 19
onClipEvent (load) {
function event() {
if (_root.decor.lift2._currentframe != 2) {
_root.decor.lift2.gotoAndStop("move");
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 19
onClipEvent (load) {
function event() {
if (_root.decor.lift2.yspeed > 0) {
_root.decor.lift2.gotoAndStop("move");
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 19
onClipEvent (load) {
function event() {
if (_root.decor.lift2.yspeed > 0) {
_root.decor.lift2.gotoAndStop("move");
}
}
}
Instance of Symbol 1341 MovieClip in Symbol 1722 MovieClip Frame 19
onClipEvent (load) {
function event() {
var _local1 = _root;
if ((_local1.decor.lift3._currentframe != 2) && (_local1.decor.lift3.yspeed > 0)) {
_local1.hero.ybase = 120;
_local1.area_change(20);
delete event;
gotoAndStop (20);
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 19
onClipEvent (load) {
function event() {
if (_root.decor.lift3._currentframe != 2) {
_root.decor.lift3.gotoAndStop(2);
}
}
}
Instance of Symbol 1719 MovieClip in Symbol 1722 MovieClip Frame 19
onClipEvent (load) {
function event() {
var _local1 = _root;
if ((_local1.decor.lift3._currentframe != 2) && (_local1.decor.lift3.yspeed > 0)) {
_local1.decor.lift3.gotoAndStop(2);
}
}
}
Symbol 1725 MovieClip Frame 1
stop();
wahloops = 5;
scient.gotoAndPlay(50);
Symbol 1725 MovieClip Frame 7
stop();
Symbol 1725 MovieClip Frame 23
Symbol 1725 MovieClip Frame 26
Symbol 1725 MovieClip Frame 63
stop();
Symbol 1729 MovieClip Frame 1
stop();
Symbol 1729 MovieClip Frame 4
call("shake");
Symbol 1729 MovieClip Frame 8
if (_root.bg.rooflevel < 2) {
stop();
}
Symbol 1729 MovieClip Frame 11
call("shake");
Symbol 1729 MovieClip Frame 15
if (_root.bg.rooflevel < 3) {
stop();
}
Symbol 1729 MovieClip Frame 18
call("shake");
Symbol 1729 MovieClip Frame 22
Symbol 1729 MovieClip Frame 24
_root.shake(15, 5, 2);
Symbol 1729 MovieClip Frame 36
if (_currentframe == 36) {
gotoAndPlay (32);
}
Symbol 1729 MovieClip Frame 43
stop();
Symbol 1733 MovieClip Frame 1
stop();
Symbol 1734 MovieClip Frame 1
function attach(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
var _local3 = nom;
if (dept) {
var _local2 = dept;
} else {
var _local2 = _root.sprites.n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
attachMovie(_local1, _local3 + _root.sprites.n, _local2);
cur = this[_local3 + _root.sprites.n];
} else {
attachMovie(_local1, _local3, _local2);
cur = this[_local3];
}
cur.distinction = distinction;
cur._x = x;
cur._y = y;
_root.sprites.n_raise();
_local1._xscale = xscaleorig;
}
stop();
Instance of Symbol 1610 MovieClip "hole" in Symbol 1734 MovieClip Frame 1
onClipEvent (load) {
if (_root.f1_lamp2dead) {
gotoAndStop (2);
} else {
gotoAndStop (4);
}
}
Symbol 1739 MovieClip Frame 1
_root.maxcolorize(this);
_root.permalight.push(this);
Symbol 1739 MovieClip Frame 5
gotoAndPlay (2);
Symbol 1743 MovieClip Frame 1
stop();
Symbol 1743 MovieClip Frame 2
_root.maxcolorize(this);
Symbol 1744 MovieClip Frame 1
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
var _local1 = damagebase + damagerand;
life = life - _local1;
if (life > 0) {
line.gotoAndPlay(2);
setson();
son.start();
} else {
son.attachSound("explosion1");
setson();
surson();
gotoAndPlay ("explode");
}
}
life = 50;
nextwall = _root.decor["wall_" + _name];
_root.decor.attachMovie("transfozone", _name, _parent.n);
_parent.n++;
cur = _root.decor[_name];
cur._x = _x;
cur._y = _y;
cur.owner = this;
cur.hit = function (attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful);
};
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
son.attachSound("hit");
stop();
Instance of Symbol 363 MovieClip in Symbol 1744 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay("on");
}
Symbol 1744 MovieClip Frame 5
event_die();
if (_root.mech.transfo == this) {
_root.mech.nexttransfo = next;
_root.mech.wall = nextwall;
_root.mech.transfo = 0;
_root.mech.bighit();
_root.mech.bighited = 0;
_root.mech.plugged = 0;
_root.mech.tracktime = 0;
_root.mech.shoottime = 0;
_root.mech.fore.indicator.gotoAndPlay("on");
_root.mech.mechlight.gotoAndPlay("off");
_root.mech.groundlight.gotoAndPlay("off");
_root.bg.fils.gotoAndStop(2);
}
removeMovieClip(cur);
delete cur;
_root.maxcolorize(this);
_root.shake(50, 5, 1.5);
Symbol 1744 MovieClip Frame 20
removeMovieClip(this);
stop();
_visible = 0;
Symbol 1747 MovieClip Frame 1
stop();
Symbol 1748 MovieClip Frame 1
n = 100;
_root.point = 15;
stop();
Instance of Symbol 1744 MovieClip "transfo1" in Symbol 1748 MovieClip Frame 1
onClipEvent (load) {
next = _parent.transfo2;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 1744 MovieClip "transfo2" in Symbol 1748 MovieClip Frame 1
onClipEvent (load) {
next = _parent.transfo3;
}
Instance of Symbol 1744 MovieClip "transfo3" in Symbol 1748 MovieClip Frame 1
onClipEvent (load) {
function event_die() {
_root.mech.jumpbonus = 200;
}
}
Symbol 1751 MovieClip Frame 1
if (_currentframe == 1) {
light = 0;
stop();
}
Symbol 1751 MovieClip Frame 2
_root.colorize_change(20, 1);
light = light + 20;
_root.maxcolorize(this);
Symbol 1751 MovieClip Frame 4
_root.colorize_change(-light, 1);
light = 0;
_root.maxcolorize(this);
Symbol 1752 MovieClip Frame 1
Instance of Symbol 1486 MovieClip "perso" in Symbol 1752 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (70);
}
Symbol 1753 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1754 MovieClip Frame 1
stop();
Symbol 1754 MovieClip Frame 26
stop();
Symbol 1755 MovieClip Frame 1
function burn(ref, name, x, y) {
if (hand_l.hand_l.hammer.hitzone.hitTest(ref)) {
hand_l.hand_l.hammer.burn(ref, name, x, y);
}
}
function move() {
_x = (_x + xspeed);
}
shoottime = 1;
Symbol 1755 MovieClip Frame 2
if (transfo != 0) {
tracktime = 1;
}
Symbol 1755 MovieClip Frame 3
if (_currentframe == 3) {
if (doomed == 2) {
situation = 1;
} else if (doomed == 1) {
situation = 2;
} else if (bighited) {
situation = 3;
} else if (transfo == 0) {
if (((Math.random() < 0.4) && (Math.abs(_x - _root.hero._x) <= 350)) && (_root.hero._x <= _x)) {
situation = 5;
shoottime = 0;
} else {
situation = 6;
}
} else if (situation == 6) {
situation = 7;
} else {
var rand = Math.random();
if (rand < 0.4) {
if ((situation != 5) && (Math.abs(_x - _root.hero._x) <= 350)) {
situation = 5;
shoottime = 0;
} else if ((situation != 6) && (foot_r.foot._currentframe == 1)) {
situation = 6;
} else {
situation = 4;
}
} else if (rand < 0.9) {
if ((situation != 6) && (foot_r.foot._currentframe == 1)) {
situation = 6;
} else if ((situation != 5) && (Math.abs(_x - _root.hero._x) <= 350)) {
situation = 5;
shoottime = 0;
} else {
situation = 4;
}
} else {
situation = 4;
}
}
}
shootcheck();
Symbol 1755 MovieClip Frame 23
Symbol 1755 MovieClip Frame 28
if (_currentframe == 28) {
if (firststance) {
event_firststance();
firststance = 0;
}
if (situation == 1) {
gotoplay("stand_loop");
} else if (situation == 2) {
gotoplay("walk_back");
} else if (situation == 3) {
gotoplay("jump");
} else if ((situation == 4) || (weaked == 1)) {
situation = 4;
if (_x > (x_orig + 50)) {
gotoplay("walk");
} else {
gotoplay("walk_back");
}
} else if (situation == 5) {
gotoplay("strike");
} else if (situation == 6) {
foot_r.foot.gotoAndPlay(2);
foot_l.foot.gotoAndPlay(2);
if (Math.random() < 0.5) {
foot_r.foot.rocket = 1;
foot_l.foot.rocket = 1;
}
shoottime = 1;
gotoplay("stand_loop");
} else {
shoottime = 1;
gotoplay("stand_loop");
}
}
Symbol 1755 MovieClip Frame 31
xspeed = -7.3;
if ((section >= 1) || (0.5 < Math.random())) {
shootcheck();
}
Instance of Symbol 287 MovieClip in Symbol 1755 MovieClip Frame 31
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 1755 MovieClip Frame 39
_root.shake(15, 2, 2);
Symbol 1755 MovieClip Frame 45
xspeed = -6.7;
Instance of Symbol 287 MovieClip in Symbol 1755 MovieClip Frame 45
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 1755 MovieClip Frame 53
_root.shake(15, 2, 2);
Symbol 1755 MovieClip Frame 59
if (_currentframe == 59) {
if (paces) {
paces--;
gotoplay("walk");
} else if ((((Math.random() < 0.5) && (!bighited)) && (!doomed)) && (transfo != 0)) {
if (_x > (x_orig + 50)) {
gotoplay("walk");
} else {
gotoplay("walk_back");
}
} else {
gotoplay("stand");
}
}
Symbol 1755 MovieClip Frame 70
xspeed = 7.3;
if ((section >= 1) || (0.5 < Math.random())) {
shootcheck();
}
Instance of Symbol 287 MovieClip in Symbol 1755 MovieClip Frame 70
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 1755 MovieClip Frame 73
if (doomed) {
wtf.gotoAndPlay(2);
}
Symbol 1755 MovieClip Frame 78
_root.shake(10, 2, 2);
Symbol 1755 MovieClip Frame 79
if (doomed == 1) {
doomed = 2;
gostop();
}
Symbol 1755 MovieClip Frame 84
xspeed = 6.7;
Instance of Symbol 287 MovieClip in Symbol 1755 MovieClip Frame 84
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 1755 MovieClip Frame 92
_root.shake(10, 2, 2);
Symbol 1755 MovieClip Frame 104
if (_currentframe == 104) {
if (weaked == 1) {
if (_x > (x_orig + 50)) {
weaked = 2;
gotoplay("walk");
} else {
gotoplay("walk_back");
}
} else if (((Math.random() < 0.5) && (!bighited)) && (transfo != 0)) {
if (_x > (x_orig + 50)) {
gotoplay("walk");
} else {
gotoplay("walk_back");
}
} else {
gotoplay("stand");
}
}
Symbol 1755 MovieClip Frame 111
tracktime = 0;
shoottime = 0;
if (weakspot) {
blocker.gotoAndPlay("close");
weakspot = 0;
}
Symbol 1755 MovieClip Frame 124
distance = 2;
if ((_x - _root.hero._x) <= 150) {
hand_l.hand_l.gotoAndPlay(2);
distance = 1;
}
Symbol 1755 MovieClip Frame 151
hand_l1.hand_l.gotoAndStop(hand_l.hand_l._currentframe);
hand_l2.hand_l.gotoAndStop(hand_l.hand_l._currentframe);
hand_l1.hand_l.hammer.gotoAndStop(hand_l.hand_l.hammer._currentframe);
hand_l2.hand_l.hammer.gotoAndStop(hand_l.hand_l.hammer._currentframe);
if (_root.hero.hitzone.hitTest(this["bangzone" + distance])) {
_root.hero._y = 130;
_root.hero.hit(this, this["bangzone" + distance], 0, 0, hamdamage, 0, "smash");
}
Instance of Symbol 314 MovieClip "hand_l1" in Symbol 1755 MovieClip Frame 151
onClipEvent (load) {
hand_l.gotoAndStop(_parent.hand_l.hand_l._currentframe);
hand_l.hammer.gotoAndStop(_parent.hand_l.hand_l.hammer._currentframe);
}
Instance of Symbol 314 MovieClip "hand_l2" in Symbol 1755 MovieClip Frame 151
onClipEvent (load) {
hand_l.gotoAndStop(_parent.hand_l.hand_l._currentframe);
hand_l.hammer.gotoAndStop(_parent.hand_l.hand_l.hammer._currentframe);
}
Symbol 1755 MovieClip Frame 152
hand_l1.hand_l.gotoAndStop(hand_l.hand_l._currentframe);
hand_l2.hand_l.gotoAndStop(hand_l.hand_l._currentframe);
hand_l1.hand_l.hammer.gotoAndStop(hand_l.hand_l.hammer._currentframe);
hand_l2.hand_l.hammer.gotoAndStop(hand_l.hand_l.hammer._currentframe);
_root.shake(80, 6, 1.5);
son.attachSound("explosion1");
setson();
surson();
Instance of Symbol 314 MovieClip "hand_l1" in Symbol 1755 MovieClip Frame 152
onClipEvent (load) {
hand_l.gotoAndStop(_parent.hand_l.hand_l._currentframe);
hand_l.hammer.gotoAndStop(_parent.hand_l.hand_l.hammer._currentframe);
}
Symbol 1755 MovieClip Frame 182
shoottime = 1;
if (!weaked) {
blocker.gotoAndPlay("open");
weakspot = 1;
}
if (_currentframe == 182) {
gotoplay("stand");
}
Symbol 1755 MovieClip Frame 190
transfo = nexttransfo;
fore.indicator.gotoAndStop("off");
tracktime = 0;
shoottime = 0;
Symbol 1755 MovieClip Frame 200
if (wall == _root.decor.wall_transfo3) {
filcasse = 1;
fil.clear();
}
Symbol 1755 MovieClip Frame 201
xspeed = ((wall._x + jumpbonus) - _x) / 19;
Instance of Symbol 287 MovieClip in Symbol 1755 MovieClip Frame 201
onClipEvent (load) {
_parent.move();
}
onClipEvent (enterFrame) {
_parent.move();
}
Symbol 1755 MovieClip Frame 222
_root.shake(50, 5, 1.5);
wall.gotoAndPlay("shatter");
weaked = 0;
if (wall != _root.decor.wall_transfo3) {
blocker.gotoAndPlay("open");
weakspot = 1;
plugged = 1;
lifemax = lifemax + lifeboost;
setlife(lifemax - life);
_root.bg.fils.gotoAndStop(1);
mechlight.gotoAndPlay("on");
groundlight.gotoAndPlay("on");
}
Symbol 1755 MovieClip Frame 228
if (_currentframe == 228) {
if (!doomed) {
shoottime = 1;
}
trackmode == 1;
section = section + 1;
body.smoke.nextFrame();
bighited = 0;
x_orig = _x;
gotoplay("stand");
}
Symbol 1760 MovieClip Frame 1
stop();
Symbol 1760 MovieClip Frame 16
_root.status_boss.gotoAndStop(1);
Symbol 1760 MovieClip Frame 57
_root.mech.yaccel = 3;
Symbol 1760 MovieClip Frame 90
_root.event_transition = function () {
_root.animscene();
};
_root.transition.gotoAndPlay("down");
stop();
Symbol 1768 MovieClip Frame 1
stop();
Symbol 1768 MovieClip Frame 2
count = 0;
Symbol 1768 MovieClip Frame 20
count++;
_root.sprites.attachMovie("hrocket", "rocket" + _root.sprites.n, _root.sprites.n);
var cur_rocket = _root.sprites["rocket" + _root.sprites.n];
cur_rocket._rotation = -180 + (50 * Math.random());
cur_rocket._x = _parent._parent.owner._x - (_parent._x + shootzone._x);
cur_rocket._y = (_parent._parent.owner._y + _parent._y) + shootzone._y;
cur_rocket.speed = 4;
_root.sprites.n_raise();
Symbol 1768 MovieClip Frame 43
if (((_currentframe == 43) && (count < 2)) && (Math.random() < 0.2)) {
gotoAndPlay ("fire");
}
Symbol 1769 MovieClip Frame 1
stop();
Instance of Symbol 1755 MovieClip "mech" in Symbol 1769 MovieClip Frame 1
onClipEvent (load) {
function setson(booster, fix, xbonus, ybonus) {
var _local2 = booster;
if (!_local2) {
_local2 = 1;
}
var _local1 = (_root.pandir * (_x - _root.hero._x)) / 2;
if (Math.abs(_local1) > 100) {
_local1 = (100 * Math.abs(_local1)) / _local1;
}
var _local3 = 75 - (Math.abs(_x - _root.hero._x) / 20);
if (fix) {
son.setVolume(fix);
} else {
son.setVolume((_local3 / 2) * _local2);
if (son.getVolume() <= 5) {
son.setVolume(0);
}
}
son.setPan(_local1);
}
function surson() {
var _local1 = _root;
for (var _local2 in _local1.sons) {
_local1.sons[_local2].stop();
}
son.start();
}
function dieson(file) {
setson(1.5);
son.attachSound(file);
if (!normdieson) {
surson();
} else {
son.start();
}
}
function shootcheck() {
if (((shoottime && (!doomed)) && (transfo != 0)) && (canon.canon.canon._currentframe == 1)) {
canon.canon.canon.gotoAndPlay("shoot");
tracktime = 1;
}
}
function setlife(factor) {
life = life + factor;
if (life < 0) {
life = 0;
}
lifebar._xscale = (life / lifemax) * 100;
}
function event_firststance() {
var _local1 = _root;
_local1.textbox.event_afterunpop = function () {
var _local1 = _root;
this.gotoAndPlay("fight");
_local1.hero.activate();
doomed = 0;
_local1.status_boss.gotoAndStop(2);
lifebar = _local1.status_boss.lifebar;
blocker.gotoAndPlay("open");
weakspot = 1;
setlife(lifemax - life);
};
_local1.textbox.texte = "text2";
_local1.textbox.gotoAndPlay("pop");
}
function gotoplay(frame) {
var _local1 = frame;
back.gotoAndPlay(_local1);
fore.gotoAndPlay(_local1);
spr.gotoAndPlay(_local1);
gotoAndPlay(_local1);
}
function goplay() {
play();
back.play();
spr.play();
fore.play();
}
function gostop() {
stop();
back.stop();
spr.stop();
fore.stop();
}
function gotostop(frame) {
var _local1 = frame;
gotoAndStop(_local1);
back.gotoAndStop(_local1);
spr.gotoAndStop(_local1);
fore.gotoAndStop(_local1);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if ((projectile.hitTest(body.body.bat.hitzone) && (_root.hero._x > _x)) && (transfo == 0)) {
bighit();
} else if ((weakspot && (!weaked)) && (projectile.hitTest(plaster))) {
var _local1 = damagebase + int(damagerand * Math.random());
setlife(-_local1);
if (life <= 0) {
bighit();
shoottime = 1;
bighited = 0;
plaster.gotoAndPlay("explode");
_root.shake(50, 4, 2);
weaked = 1;
blocker.gotoAndPlay("close");
weakspot = 0;
x_orig = transfo._x + 50;
} else {
canon.canon.canon.line.gotoAndPlay(2);
shoulder.shoulder.line.gotoAndPlay(2);
cabin.cabin.line.gotoAndPlay(2);
plaster.gotoAndPlay("hit");
hitson = 1;
son.attachSound("hit");
setson();
son.start();
}
} else {
hitson = 0;
}
}
function bighit() {
bighited = 1;
shoottime = 0;
cabin.cabin.line.gotoAndPlay(2);
cabin.cabin.perso.gotoAndPlay("hit");
body.body.line.gotoAndPlay(2);
body.body.bat.line.gotoAndPlay(2);
shoulder.shoulder.line.gotoAndPlay(2);
hand_l.hand_l.line.gotoAndPlay(2);
arm_l.arm.line.gotoAndPlay(2);
foot_l.foot.line.gotoAndPlay(2);
foot_r.foot.line.gotoAndPlay(2);
leg_l.leg.line.gotoAndPlay(2);
leg_r.leg.line.gotoAndPlay(2);
canon.canon.canon.line.gotoAndPlay(2);
hitson = 1;
son.attachSound("stronghit");
setson(1.5);
son.start();
}
yaccel = 0;
yspeed = 0;
jumpbonus = 100;
hamdamage = 20;
hamdamage2 = 8;
life = 0;
lifemax = 80;
lifeboost = 40;
_root.mech = this;
_root.foreground.attachMovie("mech_fore", "mech_fore", 0);
fore = _root.foreground.mech_fore;
_root.bg.attachMovie("mech_back", "mech_back", 0);
back = _root.bg.mech_back;
_root.sprites.attachMovie("mech_spr", "mech_spr", 900);
spr = _root.sprites.mech_spr;
spr.notbashable = 1;
direction = -1;
fore._xscale = fore._xscale * direction;
back._xscale = back._xscale * direction;
spr._xscale = spr._xscale * direction;
fore.owner = this;
back.owner = this;
section = 1;
mechlight = back.mechlight;
groundlight = back.groundlight;
canon = fore.canon;
shoulder = fore.shoulder;
leg_r = fore.leg_r;
foot_r = fore.foot_r;
body = spr.body;
plaster = body.body.plaster;
blocker = body.body.blocker;
spr.hitzone = body.body.hitzone;
leg_l = back.leg_l;
foot_l = back.foot_l;
arm_l = back.arm_l;
hand_l = back.hand_l;
cible = _root.hero;
fil = _root.bg.createEmptyMovieClip("fil", -100);
_root.maxcolorize(fil);
_root.permalight.push(fil);
filx = _x;
x_orig = _x - 100;
transfo = _root.bg.transfo1;
transfo.owner = this;
plugged = 1;
canon.canon.canon.stop();
doomed = 2;
shoottime = 0;
trackmode = 1;
tracktime = 1;
paces = 1;
walkratio = 0.4;
gotoplay("walk");
firststance = 1;
hitson = 1;
son = new Sound(this);
_root.sons.push(son);
hitson = 0;
}
onClipEvent (enterFrame) {
if (yaccel) {
yspeed = yspeed + yaccel;
_y = (_y + yspeed);
}
fore._x = _x;
fore._y = _y;
back._x = _x;
back._y = _y;
spr._x = _x;
spr._y = _y;
if (filx > (_x + 150)) {
filx = _x + 150;
}
if (filx < (_x - 150)) {
filx = _x - 150;
}
fil.clear();
if ((!_root.herodead) && (!filcasse)) {
if (yaccel == 0) {
fil.moveTo(_x, _y + body._y);
if (plugged) {
fil.lineStyle(0, 10066176, 100);
} else {
fil.lineStyle(0, 0, 100);
}
fil.curveTo(((filx * 2) + _x) / 3, (_y + body._y) + 30, filx, -115);
} else {
fil.moveTo(filx, -115);
fil.lineStyle(0, 0, 100);
fil.curveTo(filx, -100, filx, -80);
}
}
ciblex = direction * (cible._x - (_x + canon._x));
cibley = (cible._y + cible.middle) - (_y + canon._y);
if (((ciblex + cibley) > 50) && (tracktime == 1)) {
if (cibley >= 0) {
rotcible = 90 - (Math.atan(ciblex / cibley) * 57.3);
if (rotcible > 35) {
rotcible = 35;
}
} else {
rotcible = -90 - (Math.atan(ciblex / cibley) * 57.3);
}
} else if (tracktime == 0) {
rotcible = 0;
}
rotspeed = (rotcible - canon.canon.canon._rotation) / 6;
canon.canon.canon._rotation = canon.canon.canon._rotation + rotspeed;
if (canon.canon.canon._rotation < -90) {
canon.canon.canon._rotation = -90;
}
mechlight._x = body._x + body.body._x;
mechlight._y = body._y + body.body._y;
groundlight._x = body._x + body.body._x;
}
Instance of Symbol 1694 MovieClip in Symbol 1769 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (57);
}
Instance of Symbol 1190 MovieClip in Symbol 1769 MovieClip Frame 1
onClipEvent (load) {
function hit(owner, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if (powerful) {
if (powerful >= 2) {
if ((slate._currentframe < 5) || (_root.sw_helicodead)) {
slate.nextFrame();
}
}
if (_currentframe < 20) {
gotoAndPlay (2);
}
}
}
}
Instance of Symbol 1190 MovieClip "wall_transfo3" in Symbol 1769 MovieClip Frame 1
onClipEvent (load) {
function event_shatter() {
var _local1 = _root;
_local1.game.xbasechange(_local1.game.xdecalbase - (_local1.mech._x - _local1.hero._x));
_local1.hero.desactivate();
_local1.mech.doomed = 1;
_parent.bridge.gotoAndPlay(2);
}
}
Instance of Symbol 135 MovieClip [zone_square] in Symbol 1769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero._x < _x) {
_root.hero._x = _x;
}
}
Instance of Symbol 1755 MovieClip "mech" in Symbol 1769 MovieClip Frame 11
onClipEvent (load) {
function gotoplay(frame) {
var _local1 = frame;
gotoAndPlay(_local1);
back.gotoAndPlay(_local1);
fore.gotoAndPlay(_local1);
}
function goplay() {
play();
back.play();
fore.play();
}
function gostop() {
stop();
back.stop();
fore.stop();
}
function gotostop(frame) {
var _local1 = frame;
gotoAndStop(_local1);
back.gotoAndStop(_local1);
fore.gotoAndStop(_local1);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
cabin.cabin.line.gotoAndPlay(2);
}
function bighit() {
cabin.cabin.line.gotoAndPlay(2);
cabin.cabin.perso.gotoAndPlay("hit");
body.body.line.gotoAndPlay(2);
shoulder.shoulder.line.gotoAndPlay(2);
hand_l.hand_l.line.gotoAndPlay(2);
arm_l.arm.line.gotoAndPlay(2);
foot_l.foot.line.gotoAndPlay(2);
foot_r.foot.line.gotoAndPlay(2);
leg_l.leg.line.gotoAndPlay(2);
leg_r.leg.line.gotoAndPlay(2);
canon.canon.canon.canon.line.gotoAndPlay(2);
}
_root.foreground.attachMovieClip("mech_fore", "mech_fore", 0);
fore = _root.foreground.mech_fore;
_root.bg.attachMovieClip("mech_back", "mech_back", 0);
back = _root.bg.mech_back;
direction = -1;
cible = _root.hero;
fil = _root.game.createEmptyMovieClip("fil", -1000);
filx = _x;
x_orig = _x - 100;
hitzone = cabin.hitzone;
fil.lineStyle(0, 0, 100);
}
onClipEvent (enterFrame) {
fore._x = _x;
fore._y = _y;
back._x = _x;
back._y = _y;
if (filx > (_x + 150)) {
filx = _x + 150;
}
if (filx < (_x - 150)) {
filx = _x - 150;
}
if (!yaccel) {
fil.clear();
if (_root.hero.life > 0) {
fil.moveTo(_x, _y + body._y);
fil.curveTo(((filx * 2) + _x) / 3, (_y + body._y) + 30, filx, -115);
}
} else {
fil.moveTo(filx, _ - 115);
fil.curveTo(filx, -100, filx, -80);
}
ciblex = direction * (cible._x - (_x + canon._x));
cibley = (cible._y + cible.middle) - (_y + canon._y);
if (((ciblex + cibley) > 50) && (tracktime == 1)) {
if (cibley >= 0) {
rotcible = 90 - (Math.atan(ciblex / cibley) * 57.3);
if (rotcible > 35) {
rotcible = 35;
}
} else {
rotcible = -90 - (Math.atan(ciblex / cibley) * 57.3);
}
} else {
rotcible = 0;
}
rotspeed = (rotcible - canon.canon.canon._rotation) / 6;
canon.canon.canon._rotation = canon.canon.canon._rotation + rotspeed;
if (canon.canon.canon._rotation < -90) {
canon.canon.canon._rotation = -90;
}
mechlight._x = body._x + body.body._x;
mechlight._y = body._y + body.body._y;
}
Instance of Symbol 399 MovieClip [mech_fore] in Symbol 1769 MovieClip Frame 11
/* no clip actions */
Symbol 1770 MovieClip Frame 1
function attach(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
var _local3 = nom;
if (dept) {
var _local2 = dept;
} else {
var _local2 = n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
attachMovie(_local1, _local3 + n, _local2);
cur = this[_local3 + n];
} else {
attachMovie(_local1, _local3, _local2);
cur = this[_local3];
}
cur.distinction = distinction;
cur._x = x;
cur._y = y;
n_raise();
_local1._xscale = xscaleorig;
}
function duplicate(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
if (dept) {
var _local3 = dept;
} else {
var _local3 = n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
duplicateMovieClip (_local1, nom + n, _local3);
var _local2 = this[nom + n];
} else {
duplicateMovieClip (_local1, nom, _local3);
var _local2 = this[nom];
}
_local2.distinction = distinction;
_local2._x = x;
_local2._y = y;
n_raise();
_local1._xscale = xscaleorig;
}
function badang(cible, bangx, bangy, style) {
var _local1 = cible;
attachMovie("hitbadang", "hitbadang" + n, n + 3000);
bang = this["hitbadang" + n];
_local1.bang = bang;
bang._rotation = int(180 * Math.random());
bang._x = _local1._x + bangx;
bang._y = (_local1._y + _local1.middle) + bangy;
n_raise();
}
function itemdrop(x, y, kind, stay, yfac) {
var _local1 = kind;
var _local3 = yfac;
attachMovie("object", "object" + n, n);
item = this["object" + n];
item._x = x;
item._y = y;
if (!_local3) {
_local3 = -1;
}
item.yspeed = 6 * _local3;
item.forever = stay;
if (_local1 == "random") {
var _local2 = Math.random();
if ((_local2 <= _root.liferatio) || (!_root.hasgrenades)) {
_local1 = "life";
} else {
_local1 = "grenade";
}
}
if (_local1 == "extralife") {
item.gotoAndPlay(20);
} else {
item.gotoAndPlay(2);
}
item.iteminside.gotoAndStop(_local1);
n_raise();
}
function n_raise() {
n++;
if (n >= 12000) {
n = 100;
}
}
n = 100;
stop();
Instance of Symbol 1338 MovieClip "hero" in Symbol 1770 MovieClip Frame 1
onClipEvent (load) {
function setkeys() {
var _local1 = _root;
key_left = _local1.key_left;
key_right = _local1.key_right;
key_jump = _local1.key_jump;
key_up = _local1.key_jump;
key_jump2 = _local1.key_jump2;
key_esquiv = _local1.key_esquiv;
key_down = _local1.key_esquiv;
}
function level() {
armor = 1.3 - (0.3 * _root.difficulty);
power = 1.9 - (0.3 * _root.difficulty);
}
function colorize(r, g, b) {
colorchange = {rb:0, ra:r, gb:0, ga:g, bb:0, ba:b, aa:100, ab:0};
couleur.setTransform(colorchange);
}
function restoredepth() {
this.swapDepths(depthorig);
}
function setdirection(dir) {
if (direction != dir) {
maing.swapDepths(gun);
}
direction = dir;
_xscale = (direction * xscale_orig);
}
function fireratechange(factor) {
firerate = firerate + factor;
}
function desactivate() {
active = 0;
gun.anim.gotoAndStop(1);
tracktime = 0;
shoottime = 0;
key_left = 2000;
key_right = 2001;
key_down = 2005;
key_jump = 2002;
key_jump2 = 2003;
key_esquiv = 2004;
}
function activate() {
active = 1;
tracktime = 1;
shoottime = 1;
fixtrack = 0;
setkeys();
}
function expression(frame) {
head.anim.model.gotoAndStop(frame);
}
function hit(attacker, projectile, rvolx, rvoly, damagebase, damagerand, powerful) {
if ((life > 0) && (active || (driving_tank))) {
damage = damagebase + int(Math.random() * damagerand);
_root.shake_hit(damage);
damage = int(damage / armor);
if (powerful == "smash") {
lifechange(-damage);
if (life > 0) {
gotoAndPlay (419);
}
} else {
if (!driving_tank) {
xspeed = rvolx / 4;
}
if (Math.abs(xspeed) > 12) {
xspeed = (12 * Math.abs(xspeed)) / xspeed;
}
yspeed = rvoly;
lifechange(-damage);
_parent.badang(this);
if (life > 0) {
grenadtime = 0;
if (driving_tank) {
gotoAndPlay (371);
} else {
move_y();
gotoAndPlay (170);
}
}
}
}
}
function lifechange(factor) {
life = life + factor;
if (life > lifemax) {
life = lifemax;
} else if (life < 0) {
life = 0;
}
lifebar._xscale = (life / lifemax) * 100;
if ((life <= 0) && (!_root.winner)) {
gotoAndPlay (467);
}
}
function die() {
var _local1 = _root;
var _local2 = _parent;
xspeed = 0;
yspeed = 0;
yaccel = 0;
tracktime = 0;
shoottime = 0;
_local1.dieshake();
_local1.red = 100;
_local1.blue = 100;
_local1.green = 100;
_local1.colorize();
_local1.herodead = 1;
ycam = 0;
this.swapDepths(16000);
_local2._parent.foreground._visible = 0;
_local2.diescreen._x = (-game._x) + game.xdecalorig;
_local2.diescreen._y = -game._y;
_local2.diescreen.gotoAndPlay(2);
_local2.diescreen.swapDepths(15000);
active = 0;
xspeed = 0;
yspeed = 0;
yaccel = 0;
}
function shoot() {
gun.anim.gotoAndPlay("shoot");
body.anim.gotoAndPlay("shoot");
head.anim.gotoAndPlay("shoot");
shootok = 0;
}
function shoot2() {
if ((yaccel != 0) && (!status_driving)) {
xspeed = xspeed - (((2 * (90 + gun.anim._rotation)) / 90) * direction);
}
duplicateMovieClip (shots, "shot" + game.n, game.n);
shot = game["shot" + game.n];
_root.lastshot_owner = this;
shot._x = (((gun._x * _xscale) / 100) + _x) + _parent._x;
shot._y = (((gun._y * _yscale) / 100) + _y) + _parent._y;
shot._rotation = (((gun._rotation + gun.anim._rotation) + 90) + int(-3 * Math.random())) * direction;
game.n_raise();
}
function grenadshoot() {
var _local1 = _parent;
if ((_root.grenadamnt > 0) && (crouched)) {
grenadechange(-1);
head.anim.gotoAndPlay("grenade");
grenadok = 0;
_local1.attachMovie(grenades, "grenade" + _local1.n, _local1.n);
grenade = _local1["grenade" + _local1.n];
grenade._x = (((head._x * _xscale) / 100) + _x) + ((direction * 10) * Math.sin(head.anim._rotation / 57.3));
grenade._y = (((head._y * _yscale) / 100) + _y) + (10 * (-Math.cos(head.anim._rotation / 57.3)));
grenade.xspeed = (direction * 30) * Math.sin(head.anim._rotation / 57.3);
grenade.yspeed = 30 * (-Math.cos(head.anim._rotation / 57.3));
grenade.grenade.grenade._rotation = head.anim._rotation - 90;
grenade.owner = this;
_local1._parent.shoottime = 0;
_local1.n_raise();
game.attachMovie("shot_grenade", "shot" + game.n, game.n);
shot = game["shot" + game.n];
shot._x = (((head._x * _xscale) / 100) + _x) + _local1._x;
shot._y = (((head._y * _yscale) / 100) + _y) + _local1._y;
shot._xscale = 50;
shot._yscale = 50;
shot._rotation = direction * head.anim._rotation;
game.n_raise();
}
}
function grenadechange(factor) {
var _local1 = _root;
_local1.grenadamnt = _local1.grenadamnt + factor;
if (_local1.grenadamnt > 20) {
_local1.grenadamnt = 20;
} else if (_local1.grenadamnt < 0) {
_local1.grenadamnt = 0;
}
}
function groundcheck() {
ground = 0;
if ((yspeed >= 0) && (decor.hitTest(absx + _x, ((absy + _y) + (yspeed / 2)) + 2, 1))) {
ground = 1;
}
}
function camxmove() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
}
function camset() {
game._x = ((-game.cameradiv) * _x) + game.xdecalbase;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecalcible;
if ((_x + xdecal) > game.camxmax) {
game._x = ((-game.cameradiv) * game.camxmax) + game.xdecalbase;
} else if ((_x + xdecal) < game.camxmin) {
game._x = ((-game.cameradiv) * game.camxmin) + game.xdecalbase;
} else {
game._x = ((-game.cameradiv) * _x) + game.xdecalbase;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecalcible;
game._x = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
}
game.ydecal = (-_y) + ybase;
}
function camxmove2() {
if (((_x + xdecal) < game.camxmax) && ((_x + xdecal) > game.camxmin)) {
game.xcible = (((-game.cameradiv) * _x) + game.xdecalbase) - xdecal;
game._x = game._x + ((game.xcible - game._x) / 6);
}
}
function move() {
if ((!decor.hitTest((absx + _x) + ((20 * xspeed) / Math.abs(xspeed)), (absy + _y) - 3, 1)) && (!decor.hitTest((absx + _x) + xspeed, (absy + _y) + (middle * 1.5), 1))) {
_x = (_x + xspeed);
object_attached._x = object_attached._x + xspeed;
}
camxmove();
}
function xchange(factor) {
var _local1 = factor;
if ((!decor.hitTest((game._x + _x) + ((20 * _local1) / Math.abs(_local1)), (game._y + _y) - 3, 1)) && (!decor.hitTest((game._x + _x) + _local1, (game._y + _y) + (middle * 1.5), 1))) {
_x = (_x + _local1);
}
camxmove();
}
function move_slide() {
move();
xspeed = xspeed / friction;
}
function track() {
if (tracktime == 1) {
if (!fixtrack) {
rotcible = ((Math.abs(gun._ymouse) / gun._ymouse) * 90) - (Math.atan(gun._xmouse / gun._ymouse) * 57.3);
if (rotcible > 25) {
rotcible = 25;
} else if (isNaN(rotcible)) {
rotcible = 0;
}
}
rotspeed = (rotcible - gunanirot) / 3;
headspeed = ((rotcible / 1.1) - hanirot) / 2.5;
bodyspeed = ((rotcible / 4) - banirot) / 2.5;
gunanirot = gunanirot + rotspeed;
if (gunanirot < -90) {
gunanirot = -90;
}
hanirot = hanirot + headspeed;
if (head.anim.rot < -90) {
head.anim.rot = -90;
}
banirot = banirot + bodyspeed;
rot = gunanirot;
gunanix = rot / -60;
gunaniy = -Math.abs(rot / 25);
headxcible = rot / 18;
hanix = hanix + ((headxcible - hanix) / 3);
haniy = -Math.abs(rot / 60);
banix = rot / -90;
baniy = -Math.abs(rot / 60);
} else if (tracktime == 2) {
rotcible2 = head._xmouse / 10;
if (rotcible2 > 60) {
rotcible2 = 60;
} else if (rotcible2 < 8) {
rotcible2 = 8;
} else if (isNaN(rotcible2)) {
rotcible2 = 0;
}
hanirot = hanirot + ((rotcible2 - hanirot) / 2);
gunanirot = gunanirot + ((-gunanirot) / 3);
banirot = banirot + ((-banirot) / 3);
}
}
function rotate() {
if (gunanirot > 0) {
gunanirot = -90;
} else {
gunanirot = -90 + (-90 - gunanirot);
gunanix = -gunanix;
}
if (hanirot > 0) {
hanirot = -90;
} else {
hanirot = -90 + (-90 - hanirot);
hanix = -hanix;
}
track();
updateparts();
}
function updateparts() {
head.anim._x = hanix;
head.anim._y = haniy;
head.anim._rotation = hanirot;
body.anim._x = banix;
body.anim._y = baniy;
body.anim._rotation = banirot;
gun._rotation = gun_control._rotation;
gun._x = gun_control._x;
gun._y = gun_control._y;
gun._xscale = gun_control._xscale;
gun._yscale = gun_control._yscale;
gun.anim._x = gunanix;
gun.anim._y = gunaniy;
gun.anim._rotation = gunanirot;
maing._rotation = (gun._rotation + gun.anim._rotation) + gun.anim.gun._rotation;
maing._x = gun._x + gun.anim._x;
maing._y = gun._y + gun.anim._y;
maing.anim._x = gun.anim.gun._x + 25;
maing.anim._xscale = (80 - (Math.abs(xspeed) * movedirection)) - (gun.anim._rotation / 3);
maing.anim._rotation = (0.3 * (gun._y + (gun.anim._rotation / 1.5))) + 10;
maing.anim._y = gun.anim.gun._y;
maing._xscale = gun._xscale;
maing._yscale = gun._yscale;
}
function saveparts() {
hx = head._x;
hy = head._y;
hr = head._rotation;
bx = body._x;
by = body._y;
br = body._rotation;
gx = gun_control._x;
gy = gun_control._y;
gr = gun_control._rotation;
}
function targetparts() {
hxc = head._x;
hyc = head._y;
hrc = head._rotation;
bxc = body._x;
byc = body._y;
brc = body._rotation;
gxc = gun_control._x;
gyc = gun_control._y;
grc = gun_control._rotation;
}
function loadparts() {
head._x = hx;
head._y = hy;
head._rotation = hr;
body._x = bx;
body._y = by;
body._rotation = br;
gun_control._x = gx;
gun_control._y = gy;
gun_control._rotation = gr;
}
function moveparts() {
head._x = head._x + ((hxc - head._x) / div);
head._y = head._y + ((hyc - head._y) / div);
head._rotation = head._rotation + ((hrc - head._rotation) / div);
body._x = body._x + ((bxc - body._x) / div);
body._y = body._y + ((byc - body._y) / div);
body._rotation = body._rotation + ((brc - body._rotation) / div);
gun_control._x = gun_control._x + ((gxc - gun_control._x) / div);
gun_control._y = gun_control._y + ((gyc - gun_control._y) / div);
gun_control._rotation = gun_control._rotation + ((grc - gun_control._rotation) / div);
}
decor = _root.decor;
game = _root.game;
shots = _parent._parent.shots;
grenades = "plasmagrenade";
lifebar = _root.status.lifebar;
rotbar = _root.status_rot;
xdecal = 0;
yspeed = 0;
xspeed = 0;
yaccel = 3;
yaccel_orig = 3;
xdecaldivider_orig = 6;
xdecaldivider = xdecaldivider_orig;
sonoff = 0;
active = 1;
ycam = 1;
x_orig = _x;
y_orig = _y;
middle = (-_height) / 3;
lifemax = 100;
life = lifemax;
lifebar._xscale = (life / lifemax) * 100;
waitingland = 0;
setkeys();
footchange = 0;
xscale_orig = _xscale;
direction = 1;
movedirection = 1;
friction = 1.4;
climbspeed = -3;
walkspeed = 6;
rollspeed = 10;
backwalkspeed = -6;
range_orig = 400;
range_tank = 500;
range = 400;
ybasetank = 0;
ybase = ybaseorig;
ym = 50;
ycam = 1;
depthorig = this.getDepth();
this.swapDepths(3000);
son = new Sound(this);
_root.sons.push(son);
couleur = new Color(this);
colorchange = new Object();
level();
colorize(100, 100, 100);
_root.herodead = 0;
tracktime = 1;
rolltime = 1;
firerate = _root.herofirerate;
fireratemax = 4;
grenadamnt = 10;
_root.permalight.push(misc);
setdirection(1);
camset();
xorig = _x;
yorig = _y;
owner = _parent._parent;
init();
delete init;
if (_root.gonnaretry) {
_root.gonnaretry = 0;
_root.retry();
}
}
onClipEvent (enterFrame) {
absx = game._x;
absy = game._y;
_root.cframe = _currentframe;
if (active) {
xdecalcible = (_xmouse * direction) / 5;
}
xdecal = xdecal + ((xdecalcible - xdecal) / xdecaldivider);
_y = (_y + yspeed);
if (ycam) {
game.yspeed = game.yspeed + (((-game.ydecal) - (_y - ybase)) / 1.5);
game.yspeed = game.yspeed / 12;
game.ydecal = game.ydecal + game.yspeed;
}
if ((yspeed < 0) && (!decor.hitTest(game._x + _x, ((game._y + _y) + (2 * middle)) + (yspeed / 3), 1))) {
yspeed = yspeed + yaccel;
} else if ((yspeed >= 0) && (!decor.hitTest(game._x + _x, game._y + _y, 1))) {
yspeed = yspeed + yaccel;
} else {
yspeed = 0;
}
while ((life > 0) && (decor.hitTest(game._x + _x, (game._y + _y) - 2, 1))) {
_y = (_y - 1);
}
while ((life > 0) && (decor.hitTest((game._x + _x) + 12, (game._y + _y) - 3, 1))) {
_x = (_x - 3);
}
while ((life > 0) && (decor.hitTest((game._x + _x) - 12, (game._y + _y) - 3, 1))) {
_x = (_x + 3);
}
track();
updateparts();
}
onClipEvent (mouseDown) {
punchok = 0;
gonnashoot = 1;
gonnagrenad = 1;
if (grenadtime && (grenadok)) {
grenadshoot();
} else {
if (shoottime) {
for (a in _parent) {
if ((_parent[a].hitzone.hitTest(punchzone) && (_parent[a] != this)) && (!_parent[a].notbashable)) {
punchok = 1;
}
}
}
if (((!status_driving) && (punchok)) && (decor.hitTest(game._x + _x, ((game._y + _y) + (yspeed / 2)) + 2, 1))) {
tracktime = 0;
shoottime = 0;
gun.anim._rotation = 0;
gotoAndPlay (240);
} else if (shoottime && (shootok)) {
shoot();
}
}
}
onClipEvent (mouseUp) {
gonnagrenad = 0;
gonnashoot = 0;
}
onClipEvent (load) {
function event_inactiveroll() {
var _local1 = this;
_local1.tracktime = 1;
_local1.fixtrack = 1;
_local1.rotcible = -35;
}
xorig = 122.75;
yorig = _y;
setdirection(1);
desactivate();
xdecalcible = 100;
xdecal = 100;
}
Symbol 1771 MovieClip Frame 1
function attach(cible, nom, nrelated, x, y, dept, distinction) {
var _local1 = cible;
var _local3 = nom;
if (dept) {
var _local2 = dept;
} else {
var _local2 = _root.sprites.n + 1000;
}
if (_local1._xscale < 0) {
var xscaleorig = _local1._xscale;
_local1._xscale = _local1._xscale * -1;
}
if (nrelated) {
attachMovie(_local1, _local3 + _root.sprites.n, _local2);
cur = this[_local3 + _root.sprites.n];
} else {
attachMovie(_local1, _local3, _local2);
cur = this[_local3];
}
cur.distinction = distinction;
cur._x = x;
cur._y = y;
_root.sprites.n_raise();
_local1._xscale = xscaleorig;
}
stop();
Symbol 1772 MovieClip Frame 1
stopAllSounds();
_root.music.attachSound("music1");
_root.music.start(0, 99999);
_root.music.setVolume(150);
_root.mainbg.gotoAndStop(1);
sprites.depthorig = sprites.getDepth();
sprites.swapDepths(80);
decor.depthorig = decor.getDepth();
decor.swapDepths(50);
foreground.depthorig = foreground.getDepth();
foreground.swapDepths(500);
_root.hero.ybaseorig = 100;
_root.hero.ybase = _root.hero.ybaseorig;
_root.red = 125;
_root.green = 100;
_root.blue = 80;
_root.colorize();
_root.normcolorize_bg();
xorig = 285.95;
yorig = 180;
xdecalorig = 275;
cameradiv = 1;
camxmin = -800;
camxmax = 12500;
reset();
_root.herofirerate = 4;
_root.itemratioorig = 0.4 - (0.1 * _root.difficulty);
_root.itemratio = _root.itemratioorig;
_root.liferatio = 0.5;
_root.status_boss._visible = 0;
scoremonitor.stop();
shots.stop();
soldiershots.stop();
shot_trooper.stop();
stop();
Symbol 1772 MovieClip Frame 2
stopAllSounds();
_root.music.attachSound("music2");
_root.music.start(0, 99999);
_root.music.setVolume(85);
sprites.depthorig = sprites.getDepth();
sprites.swapDepths(80);
decor.depthorig = decor.getDepth();
decor.swapDepths(50);
foreground.depthorig = foreground.getDepth();
foreground.swapDepths(500);
_root.hero.ybaseorig = 100;
_root.hero.ybase = _root.hero.ybaseorig;
_root.red = 65;
_root.green = 55;
_root.blue = 41;
_root.savecolor(10);
_root.red = 60;
_root.green = 55;
_root.blue = 51;
_root.savecolor(2);
_root.savecolor(5);
_root.savecolor(7);
_root.savecolor(9);
_root.red = 90;
_root.green = 85;
_root.blue = 81;
_root.savecolor(0);
_root.savecolor(1);
_root.savecolor(3);
_root.savecolor(6);
_root.red = 80;
_root.green = 75;
_root.blue = 71;
_root.savecolor(4);
_root.red = 80;
_root.green = 60;
_root.blue = 50;
_root.savecolor(8);
_root.red = 70;
_root.green = 90;
_root.blue = 50;
_root.savecolor(102);
_root.colorize();
camxmin = -50;
camxmax = 975;
reset();
_root.itemratio = 0.7 - (0.1 * _root.difficulty);
_root.liferatio = 0.5;
Symbol 1772 MovieClip Frame 3
stopAllSounds();
_root.music.attachSound("music3");
_root.music.start(0, 99999);
_root.music.setVolume(40);
sprites.depthorig = sprites.getDepth();
sprites.swapDepths(80);
decor.depthorig = decor.getDepth();
decor.swapDepths(50);
foreground.depthorig = foreground.getDepth();
foreground.swapDepths(500);
_root.red = 20;
_root.green = 12;
_root.blue = 11;
_root.colorize();
_root.mainbg.gotoAndStop(3);
_root.hero.ybaseorig = 110;
_root.hero.ybase = _root.hero.ybaseorig;
_root.normcolorize_bg();
camxmin = -50;
camxmax = 3000;
reset();
stop();
Symbol 1772 MovieClip Frame 10
_root.mainbg.gotoAndStop("dead");
Symbol 1772 MovieClip Frame 11
if (_root.point == 1) {
_root.hasgrenades = 0;
_root.transition.gotoAndPlay("side2");
_root.zone_change(1);
_root.area_change(1, 1);
} else if (_root.point == 2) {
_root.hasgrenades = 0;
_root.transition.gotoAndPlay("side2");
_root.zone_change(1);
_root.area_change(4, 1);
_root.event_tanktransformed();
_root.hero._x = _root.sprites.zone_point2._x;
_root.event_tankboarded();
} else if (_root.point == 3) {
_root.hasgrenades = 0;
_root.transition.gotoAndPlay("side2");
_root.zone_change(1);
_root.area_change(7, 1);
_root.hero._x = _root.sprites.zone_point3._x;
_root.event_tankboarded();
} else if (_root.point == 4) {
_root.hasgrenades = 0;
_root.transition.gotoAndPlay("side2");
_root.zone_change(1);
_root.area_change(9, 1);
_root.hero._x = _root.sprites.zone_point4._x;
_root.event_tankboarded();
} else if (_root.point == 5) {
_root.transition.gotoAndPlay("up2");
_root.grenadesthere = 1;
_root.f1_lamp1dead = 0;
_root.f1_lamp2dead = 0;
_root.f1_neondead = 0;
_root.f1_soldierdead = 0;
_root.f1_pl1dead = 0;
_root.f1_pl2dead = 0;
_root.f1_sofadead = 0;
clearInterval(int_doorbad);
_root.f0_cleared = 0;
_root.f0_neondead = 0;
_root.f0_neondead = 0;
_root.haskey = 0;
_root.hasgrenades = 0;
_root.grenadamnt = 0;
_root.zone_change(2);
} else if (_root.point == 6) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(5, 1);
_root.hero._x = 1050;
} else if (_root.point == 7) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(6, 1);
_root.hero._x = -161;
} else if (_root.point == 8) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(7, 1);
_root.hero._x = 1050;
} else if (_root.point == 9) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(8, 1);
_root.hero._x = -161;
} else if (_root.point == 10) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(9, 1);
_root.hero._x = 1050;
} else if (_root.point == 11) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(10, 1);
_root.hero._x = -161;
} else if (_root.point == 12) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(11, 1);
_root.hero._x = 1050;
} else if (_root.point == 13) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(14, 1);
_root.hero._x = _root.hero._x + 300;
_root.hero._y = _root.hero._y - 150;
} else if (_root.point == 14) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(2);
_root.area_change(15, 1);
_root.hero._x = 1050;
} else if (_root.point == 15) {
_root.hasgrenades = 1;
_root.transition.gotoAndPlay("up2");
_root.zone_change(3);
} else if (_root.point == "end") {
_root.zone_change(1);
_root.area_change(10, 1);
_root.hero._x = camxmax;
} else if (_root.point == "tank") {
_root.hasgrenades = 0;
_root.transition.gotoAndPlay("side2");
_root.zone_change(1);
_root.area_change(3, 1);
_root.hero._x = 5000;
}
_root.herodead = 0;
if (_root.hasgrenades) {
_root.grenadcounter.gotoAndStop(1);
_root.grenadamnt = 10;
} else {
_root.grenadcounter.gotoAndStop(2);
_root.grenadamnt = 0;
}
Symbol 1776 Button
on (release) {
this.gotoAndPlay("unpop");
}
Symbol 1782 Button
on (release) {
nextFrame();
}
Symbol 1787 Button
on (release) {
this.gotoAndPlay("unpop");
}
Symbol 1805 MovieClip Frame 1
gotoAndStop(_root.keys);
Symbol 1808 MovieClip Frame 1
gotoAndStop(_root.keys);
Symbol 1811 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 1811 MovieClip Frame 11
gotoAndStop(texte);
Symbol 1811 MovieClip Frame 48
event_afterunpop();
Symbol 1811 MovieClip Frame 49
if (_currentframe == 49) {
gotoAndStop (1);
}
Symbol 1811 MovieClip Frame 100
event_afterstart();
if (_currentframe == 100) {
gotoAndStop (1);
}
Symbol 1811 MovieClip Frame 134
event_afterfight();
if (_currentframe == 134) {
gotoAndStop (1);
}
Symbol 1811 MovieClip Frame 143
gotoAndPlay(texte);
Symbol 1811 MovieClip Frame 288
if (_currentframe == 288) {
gotoAndPlay ("uninfo");
}
Symbol 1811 MovieClip Frame 435
if (_currentframe == 435) {
gotoAndPlay ("uninfo");
}
Symbol 1811 MovieClip Frame 533
if (_currentframe == 533) {
gotoAndPlay ("uninfo");
}
Symbol 1811 MovieClip Frame 704
if (_currentframe == 704) {
gotoAndPlay ("uninfo");
}
Symbol 1811 MovieClip Frame 710
if (_currentframe == 394) {
gotoAndStop (1);
}
Symbol 1827 MovieClip Frame 1
stop();
Symbol 1827 MovieClip Frame 15
_root.hero.rolltime = 1;
gotoAndStop (1);
Symbol 1829 MovieClip Frame 1
stop();
_visible = 0;
Symbol 1829 MovieClip Frame 2
_visible = 1;
Symbol 1830 MovieClip Frame 1
game.ydecalshake = 0;
loops = 0;
Symbol 1830 MovieClip Frame 2
game._x = game._x + xshake;
game.ydecalshake = game.ydecalshake + shakefactor;
dampedfactor = shakefactor / 2;
Symbol 1830 MovieClip Frame 3
game._x = game._x - xshake;
game.ydecalshake = game.ydecalshake + dampedfactor;
Symbol 1830 MovieClip Frame 4
game._x = game._x + (xshake / 2);
game.ydecalshake = game.ydecalshake - shakefactor;
Symbol 1830 MovieClip Frame 5
game._x = game._x - (xshake / 2);
game.ydecalshake = game.ydecalshake - dampedfactor;
Symbol 1830 MovieClip Frame 6
loops++;
if (loops < loopsmax) {
shakefactor = shakefactor / damp;
xshake = xshake / damp;
gotoAndPlay (2);
} else {
shakefactor = 0;
gotoAndStop (1);
}
Symbol 1835 Button
on (release) {
_root.retry();
}
Symbol 1836 MovieClip Frame 1
_visible = 0;
stop();
Symbol 1836 MovieClip Frame 2
_visible = 1;
Symbol 1839 Button
on (keyPress "k") {
_root.hero.hit(0, 0, 0, 0, 125, 0, 0);
}
on (keyPress "l") {
gotoAndPlay (175);
}
Symbol 1843 MovieClip Frame 1
_visible = 1;
Symbol 1843 MovieClip Frame 2
_visible = 0;
stop();
Symbol 1845 Button
on (release) {
_root.point = 2;
_root.gotopoint();
}
Symbol 1846 Button
on (release) {
_root.point = 3;
_root.gotopoint();
}
Symbol 1847 Button
on (release) {
_root.hero.hit(0, 0, 0, 0, 1000, 0, 0);
}
Symbol 1848 Button
on (release) {
_root.point = 4;
_root.gotopoint();
}
Symbol 1849 Button
on (release) {
_root.point = 5;
_root.gotopoint();
}
Symbol 1850 Button
on (release) {
_root.point = 1;
_root.gotopoint();
}
Symbol 1851 Button
on (release) {
_root.point = 7;
_root.gotopoint();
}
Symbol 1852 Button
on (release) {
_root.point = 8;
_root.gotopoint();
}
Symbol 1853 Button
on (release) {
_root.point = 9;
_root.gotopoint();
}
Symbol 1854 Button
on (release) {
_root.point = 10;
_root.gotopoint();
}
Symbol 1855 Button
on (release) {
_root.point = 6;
_root.gotopoint();
}
Symbol 1856 Button
on (release) {
_root.point = 12;
_root.gotopoint();
}
Symbol 1857 Button
on (release) {
_root.point = 13;
_root.gotopoint();
}
Symbol 1858 Button
on (release) {
_root.point = 14;
_root.gotopoint();
}
Symbol 1859 Button
on (release, keyPress "p") {
_root.point = 15;
_root.gotopoint();
}
Symbol 1860 Button
on (release) {
_root.point = 11;
_root.gotopoint();
}
Symbol 1862 Button
on (release, keyPress "t") {
_root.point = "tank";
_root.gotopoint();
}
Symbol 1863 Button
on (keyPress "1") {
difficulty = 1;
hero.level();
}
on (keyPress "2") {
difficulty = 2;
hero.level();
}
on (keyPress "3") {
difficulty = 3;
hero.level();
}
Symbol 1869 MovieClip Frame 20
gotoAndPlay (1);
Instance of Symbol 1486 MovieClip "perso" in Symbol 1872 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (70);
}
Symbol 1921 Button
on (release) {
gotoAndPlay (175);
}
Symbol 1927 Button
on (release) {
_root.xdada = 1;
_global.scorFinal = finalscore;
_root.gotoAndPlay("submitScore");
}
Symbol 1936 Button
on (release) {
_root.continu();
}
Symbol 1937 MovieClip Frame 1
Symbol 1937 MovieClip Frame 21
stop();
Symbol 1939 Button
on (release) {
_root.gotoAndPlay("back");
}
Symbol 1940 MovieClip Frame 1
Symbol 1940 MovieClip Frame 21
stop();
Symbol 1941 Button
on (release) {
_root.xdada = 0;
_global.scorFinal = score;
_root.gotoAndPlay("submitScore");
}
Symbol 1950 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 1957 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 2262 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 228 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 2262 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 2268 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 2284 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 2290 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 2294 MovieClip Frame 1
stop();
Symbol 2294 MovieClip Frame 9
stop();
Symbol 2294 MovieClip Frame 22
stop();
Symbol 2294 MovieClip Frame 34
var my_date:Date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 2294 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}