Frame 1
stop();
_root.onEnterFrame = function () {
if (this.getBytesLoaded() == this.getBytesTotal()) {
gotoAndStop ("title");
delete this.onEnterFrame;
}
};
Frame 10
var gatekeeperLdr = (new com.miniclip.gatekeeper.GatekeeperLoader());
gatekeeperLdr.onResult = function (ok) {
if (ok) {
gameChecked = true;
gotoAndStop ("title");
} else {
gameChecked = true;
gotoAndStop ("title");
}
};
gatekeeperLdr.start();
Frame 22
if (!gameChecked) {
_root._visible = true;
trace("You are so silly if you think sitelocking a game will prevent it from being archived (however, if you genuinely don't want your game to be archived, just ask kindly). With the death of Flash in 2021, I don't want to see Flash games being gone forever. Trans rights are human rights! Nonbinary people are valid! Bigots have no place in this world. Hacked with love by Pokemonhacker1337. Look, I do not hate you or anything, it's just that the sitelock has to go for the sake of game preservation. I have modified the code to go past the gatekeeper function and disabled the functions that remove the game visibility. I can understand putting in measures for paid games to prevent piracy, but Flash games are free.");
}
Frame 32
if (!gameChecked) {
_root._visible = true;
}
Frame 55
function getDis(ax, ay, bx, by) {
return(Math.sqrt(((ax - bx) * (ax - bx)) + ((ay - by) * (ay - by))));
}
function getGlobalPoint(where) {
var _local1 = {x:0, y:0};
where.localToGlobal(_local1);
return([_local1.x, _local1.y]);
}
function checkCollisionArea(objA, objB) {
}
function getRotation(pointAx, pointAy, pointBx, pointBy) {
var _local2 = pointBx - pointAx;
var _local3 = pointBy - pointAy;
var _local1 = Math.round(Math.atan2(_local3, _local2) * 57.3);
return(_local1);
}
function getDegree1(a, b) {
if (((a > 0) && (b > 0)) || ((a < 0) && (b < 0))) {
return(Math.abs(a - b));
}
var _local2 = Math.abs(a);
var _local1 = Math.abs(b);
if ((_local2 + _local1) > 180) {
return((360 - _local2) - _local1);
}
return(_local2 + _local1);
}
function getComboDegree(t) {
return(((t > 180) ? (t - 360) : (((t <= -180) ? (t + 360) : (t)))));
}
function getRotationDir(degree, orgDegree) {
var _local4 = ((Math.abs((orgDegree + 1) - degree) > 180) ? (Math.abs((orgDegree + 1) - degree)) : (360 - Math.abs((orgDegree + 1) - degree)));
var _local3 = ((Math.abs((orgDegree - 1) - degree) > 180) ? (Math.abs((orgDegree - 1) - degree)) : (360 - Math.abs((orgDegree - 1) - degree)));
if (_local4 < _local3) {
return(-1);
}
return(1);
}
function getTurnDegree(Num) {
if (Num == 0) {
return(undefined);
}
if (Num == -1) {
return(-90);
}
if (Num == 1) {
return(90);
}
if (Num == -10) {
return(180);
}
if (Num == 10) {
return(0);
}
if (Num == 9) {
return(-45);
}
if (Num == -9) {
return(135);
}
if (Num == 11) {
return(45);
}
if (Num == -11) {
return(-135);
}
}
function firstTimeInStage(who) {
addMinimapObj(who);
var _local3 = who._x + game._x;
var _local2 = who._y + game._y;
if ((((_local3 > -50) && (_local3 < 562)) && (_local2 > -50)) && (_local2 < 562)) {
who.inGame = true;
game.inGame.push(who);
} else {
who.inGame = false;
who.tempFrame = who._currentframe;
who.enterFrameFunction = who.onEnterFrame;
who.gotoAndStop("empty");
who.onEnterFrame = function () {
adjustMinimapObj(who);
checkInStage(this);
};
}
}
function firstTimeInStage3(who) {
var _local3 = who._x + game._x;
var _local2 = who._y + game._y;
addMinimapObj(who);
if ((((_local3 <= -50) || (_local3 >= 562)) || (_local2 <= -50)) || (_local2 >= 562)) {
who.inGame = false;
who.tempFrame = who._currentframe;
who.gotoAndStop("empty");
} else {
who.inGame = true;
}
}
function checkInStage(who) {
var _local4 = who._x + game._x;
var _local3 = who._y + game._y;
if (who.inGame) {
if ((((_local4 <= -50) || (_local4 >= 562)) || (_local3 <= -50)) || (_local3 >= 562)) {
for (var _local5 in game.inGame) {
if (game.inGame[_local5] == who) {
game.inGame.splice(_local5, 1);
}
}
who.inGame = false;
who.tempFrame = who._currentframe;
who.enterFramefunction = who.onEnterFrame;
who.gotoAndStop("empty");
who.onEnterFrame = function () {
adjustMinimapObj(this);
checkInStage(this);
};
return(false);
}
} else if ((((_local4 > -50) && (_local4 < 562)) && (_local3 > -50)) && (_local3 < 562)) {
who.inGame = true;
game.inGame.push(who);
addMinimapObj(who);
who.onEnterFrame = who.enterFrameFunction;
who.gotoAndStop(who.tempFrame);
return(true);
}
}
function checkInStage2(who) {
var _local3 = who._x + game._x;
var _local2 = who._y + game._y;
if (who.inGame) {
if ((((_local3 <= -50) || (_local3 >= 562)) || (_local2 <= -50)) || (_local2 >= 562)) {
who.inGame = false;
who.enterFramefunction = who.onEnterFrame;
who.tempFrame = who._currentframe;
who.gotoAndStop("empty");
who.onEnterFrame = function () {
adjustMinimapObj(who);
checkInStage2(this);
};
return(false);
}
} else if ((((_local3 > -50) && (_local3 < 562)) && (_local2 > -50)) && (_local2 < 562)) {
who.inGame = true;
addMinimapObj(who);
who.gotoAndStop(who.tempFrame);
who.onEnterFrame = who.enterFrameFunction;
return(true);
}
}
function addMinimapObj(who, sp) {
if (who.radarMe._x == undefined) {
var _local3 = gameUI.miniMap.mc.map.getNextHighestDepth();
var _local1 = gameUI.miniMap.mc.map.attachMovie("hero_p", "p" + _local3, _local3);
_local1.gotoAndStop(2);
if (!who.patchColor) {
if (sp != undefined) {
_local1.gotoAndStop(sp);
}
} else {
_local1.gotoAndStop(who.patchColor);
}
who.radarMe = _local1;
adjustMinimapObj(who);
}
}
function removeMinimapObj(who) {
who.radarMe.removeMovieClip();
}
function adjustMinimapObj(who) {
who.radarMe._x = (who._x * 102) / 512;
who.radarMe._y = (who._y * 102) / 512;
}
function checkInStage3(who) {
var _local3 = who._x + game._x;
var _local2 = who._y + game._y;
if (who.inGame) {
if ((((_local3 < -50) || (_local3 > 562)) || (_local2 < -50)) || (_local2 > 562)) {
who.inGame = false;
who.tempFrame = who._currentframe;
who.gotoAndStop("empty");
return(false);
}
} else if ((((_local3 > -50) && (_local3 < 562)) && (_local2 > -50)) && (_local2 < 562)) {
who.inGame = true;
who.gotoAndStop(who.tempFrame);
return(true);
}
}
function setCameraOn(who) {
game._x = game._x + Math.round((256 - (who._x - game._x)) / 10);
game._y = game._y + Math.round((256 - (who._y - game._y)) / 10);
}
function setCameraOnTank() {
if (gamePause) {
return(undefined);
}
game._x = game._x + Math.round(((256 - (((((game.tank._x + game.tank._x) + game.tank._x) + _xmouse) - game._x) / 4)) - game._x) / 10);
game._y = game._y + Math.round(((256 - (((((game.tank._y + game.tank._y) + game.tank._y) + _ymouse) - game._y) / 4)) - game._y) / 10);
}
function removeAllMovieClips() {
_root.missionController.removeMovieClip();
_root.timeManager.removeMovieClip();
_root.setMask(null);
_root.mask.removeMovieClip();
_root.gameUI.removeMovieClip();
_root.game.removeMovieClip();
_root.air.removeMovieClip();
}
function Tank_game_start() {
_root.game.removeMovieClip();
_root.air.removeMovieClip();
_root.createEmptyMovieClip("game", _root.getNextHighestDepth());
_root.createEmptyMovieClip("air", _root.getNextHighestDepth());
air.onEnterFrame = function () {
air._x = game._x;
air._y = game._y;
};
game.createEmptyMovieClip("map", 1);
game.createEmptyMovieClip("gef", 2);
game.createEmptyMovieClip("enemy", 3);
game.inGame = [];
game.scrollIt = true;
game.scrollScreen = function () {
if (this.scrollIt) {
setCameraOnTank();
if (game._x > 0) {
game._x = 0;
} else if ((-game._x) > ((tileWidth * tileNumX) - stageWidth)) {
game._x = stageWidth - (tileWidth * tileNumX);
}
if (game._y > 0) {
game._y = 0;
} else if ((-game._y) > ((tileHeight * tileNumY) - stageHeight)) {
game._y = stageHeight - (tileHeight * tileNumY);
}
}
};
game.seperate = function () {
var _local14 = 0;
while (_local14 < this.inGame.length) {
var _local2 = this.inGame[_local14];
adjustMinimapObj(_local2);
var _local11 = _local14 + 1;
for ( ; _local11 < this.inGame.length ; _local11++) {
var _local3 = this.inGame[_local11];
if ((_local2.r < 0) || (_local3.r < 0)) {
} else {
_local2.tx = (_local2.ty = 0);
_local3.tx = (_local3.ty = 0);
var _local6 = getDis(_local2._x, _local2._y, _local3._x, _local3._y);
if (_local6 < 200) {
_local6 = (_local6 - _local2.r) - _local3.r;
if (_local6 < 4) {
_local6 = 4;
}
var _local5 = 100 / Math.pow(_local6, 2.3);
var _local4 = getRotation(_local2._x, _local2._y, _local3._x, _local3._y);
if (_local2.type == "player") {
if (_local5 > 2.5) {
if (_local3.type == "man") {
continue;
}
if (_local3.type != "player") {
var _local13 = game.getNextHighestDepth();
var _local12 = game.attachMovie("spark01", "expl" + _local13, _local13);
_local4 = getRotation(_local2._x, _local2._y, _local3._x, _local3._y);
_local12._x = (((25 * Math.cos(_local4 * 0.0174)) + _local2._x) + random(10)) - 5;
_local12._y = (((25 * Math.sin(_local4 * 0.0174)) + _local2._y) + random(10)) - 5;
var _local10 = _local3.xSpeed + ((2 * Math.abs(_local2.xSpeed)) * Math.cos(_local4 * 0.0174));
var _local8 = _local3.ySpeed + ((2 * Math.abs(_local2.ySpeed)) * Math.sin(_local4 * 0.0174));
var _local9 = _local2.xSpeed - ((2 * Math.abs(_local2.xSpeed)) * Math.cos(_local4 * 0.0174));
var _local7 = _local2.ySpeed - ((2 * Math.abs(_local2.ySpeed)) * Math.sin(_local4 * 0.0174));
_local3.xSpeed = ((Math.abs(_local10) > 10) ? ((10 * Math.abs(_local10)) / _local10) : _local10);
_local3.ySpeed = ((Math.abs(_local8) > 10) ? ((10 * Math.abs(_local8)) / _local8) : _local8);
_local2.xSpeed = ((Math.abs(_local9) > 10) ? ((10 * Math.abs(_local9)) / _local9) : _local9);
_local2.ySpeed = ((Math.abs(_local7) > 10) ? ((10 * Math.abs(_local7)) / _local7) : _local7);
_local2.cantGo = 15;
newShake(Math.ceil(_local5 * 0.5));
if (_local5 > 4) {
_local2.hitAction(3);
_local2.cantGo = 20;
newShineScr("white");
} else {
_local2.hitAction(1);
}
play_soundAction("\u78B0\u649E");
}
}
}
if (_local2.resist == _local3.resist) {
_local2.tx = _local2.tx - Math.round(_local5 * Math.cos(_local4 * 0.0174));
_local2.ty = _local2.ty - Math.round(_local5 * Math.sin(_local4 * 0.0174));
_local3.tx = _local3.tx + Math.round(_local5 * Math.cos(_local4 * 0.0174));
_local3.ty = _local3.ty + Math.round(_local5 * Math.sin(_local4 * 0.0174));
} else if (_local2.resist > _local3.resist) {
_local3.blocked++;
_local3.tx = _local3.tx + (2 * Math.round(_local5 * Math.cos(_local4 * 0.0174)));
_local3.ty = _local3.ty + (2 * Math.round(_local5 * Math.sin(_local4 * 0.0174)));
} else if (_local2.resist < _local3.resist) {
_local2.blocked++;
_local2.tx = _local2.tx - (2 * Math.round(_local5 * Math.cos(_local4 * 0.0174)));
_local2.ty = _local2.ty - (2 * Math.round(_local5 * Math.sin(_local4 * 0.0174)));
}
_local2._x = _local2._x + _local2.tx;
_local2._y = _local2._y + _local2.ty;
_local3._x = _local3._x + _local3.tx;
_local3._y = _local3._y + _local3.ty;
}
}
}
_local14++;
}
};
initMap(stage);
drawMap();
newTank((tankStartPoint[stage][0] * 256) - 128, (tankStartPoint[stage][1] * 256) - 128);
gamePause = true;
newUI();
_root.setMask(null);
_root.mask.removeMovieClip();
_root.attachMovie("mask", "mask", this.getNextHighestDepth());
_root.setMask(mask);
_root[("mission" + stage) + "Start"]();
game.tank.desX = game.tank._x;
game.tank.desY = game.tank._y;
game.tank._x = game.tank._x + (150 * game.tank.des[0]);
game.tank._y = game.tank._y + (150 * game.tank.des[1]);
game._x = (256 - game.tank.desX) + (180 * game.tank.des[0]);
game._y = (256 - game.tank.desY) + (180 * game.tank.des[1]);
showObejct(stage);
this.onEnterFrame = function () {
if ((!game.focusOnOther) && (!gameUI.showBoard)) {
game.tank.intro();
delete this.onEnterFrame;
}
};
game.onEnterFrame = function () {
if (!gamePause) {
game.seperate();
}
game.scrollScreen();
drawMap();
};
}
function initMap(stage) {
stageWidth = 512;
stageHeight = 512;
tileWidth = 256;
tileHeight = 256;
tileNumX = mapXYnum[stage][0];
tileNumY = mapXYnum[stage][1];
tankStartX = tankStartPoint[stage][0];
tankStartY = tankStartPoint[stage][1];
mapWidth = tileWidth * tileNumX;
mapHeight = tileHeight * tileNumY;
var _local2 = 0;
while (_local2 < 9) {
var _local1 = game.map.attachMovie("map_" + stage, "mapTile" + _local2, game.map.getNextHighestDepth());
_local1._x = -tileWidth;
_local1._y = -tileHeight;
_local1.xNum = 0;
_local1.yNum = 0;
tempTile.gotoAndStop(tempTile._totalframes);
_local2++;
}
}
function drawMap() {
var _local6 = Math.floor((-game._x) / tileWidth) + 1;
var _local7 = Math.floor(((-game._x) + stageWidth) / tileWidth) + 1;
var _local4 = Math.floor((-game._y) / tileHeight) + 1;
var _local5 = Math.floor(((-game._y) + stageHeight) / tileHeight) + 1;
var _local3 = _local6;
while (_local3 <= _local7) {
var _local2 = _local4;
while (_local2 <= _local5) {
if (game.map[(("mapTile" + _local3) + "-") + _local2] == undefined) {
for (var _local8 in game.map) {
if ((((game.map[_local8].xNum < _local6) || (game.map[_local8].xNum > _local7)) || (game.map[_local8].yNum < _local4)) || (game.map[_local8].yNum > _local5)) {
var _local1 = game.map[_local8];
_local1._name = (("mapTile" + _local3) + "-") + _local2;
_local1.xNum = _local3;
_local1.yNum = _local2;
_local1._x = (_local3 - 1) * tileWidth;
_local1._y = (_local2 - 1) * tileHeight;
if ((((_local3 < 0) || (_local2 < 0)) || (_local3 > tileNumX)) || (_local2 > tileNumY)) {
_local1.gotoAndStop(_local1._totalframes);
} else {
_local1.gotoAndStop(((_local2 - 1) * tileNumX) + _local3);
}
break;
}
}
}
_local2++;
}
_local3++;
}
}
function getMapArrNum(xPos, yPos) {
var _local2 = Math.floor(xPos / 32);
var _local1 = Math.floor(yPos / 32);
return([_local2, _local1]);
}
function getMapArrType(xPos, yPos) {
var _local3 = getMapArrNum(xPos, yPos);
var _local2 = _root[("map" + stage) + "arr"][_local3[1]][_local3[0]];
if (typeof(_local2) == "number") {
return(_local2);
}
return(_local2[0]);
}
function getMapAtt(xPos, yPos) {
var _local1 = getMapArrType(xPos, yPos);
if (((_local1 == 4) || (_local1 == 5)) || (_local1 == 8)) {
return("low");
}
if ((_local1 == 1) || (_local1 == 2)) {
return("block");
}
return("high");
}
function getMapArrVol(num, vol) {
if (vol == undefined) {
vol == 1;
}
if (vol == 9) {
} else if (vol == 1) {
} else if (vol == 25) {
} else if (vol == 49) {
}
}
function checkPointExist(who, where) {
if (_root[("map" + stage) + "arr"][where[1]][where[0]][1].length > 0) {
if (_root[("map" + stage) + "arr"][where[1]][where[0]][1].length > 1) {
return(true);
}
if (_root[("map" + stage) + "arr"][where[1]][where[0]][1][0] == who) {
return(false);
}
} else {
return(false);
}
}
function checkVolExist(who, where) {
if (_root[("map" + stage) + "arr"][where[1]][where[0]][2].length > 0) {
if (_root[("map" + stage) + "arr"][where[1]][where[0]][2].length > 1) {
return(true);
}
if (_root[("map" + stage) + "arr"][where[1]][where[0]][2][0] == who) {
return(false);
}
return(true);
}
return(false);
}
function checkArr(arr) {
for (var _local2 in arr) {
if (arr[_local2] != undefined) {
return(undefined);
}
}
arr.length = 0;
}
function addPosToMapArr(who, where) {
if (isNaN(_root[("map" + stage) + "arr"][where[1]][where[0]])) {
_root[("map" + stage) + "arr"][where[1]][where[0]][1].push(who);
} else {
_root[("map" + stage) + "arr"][where[1]][where[0]] = [_root[("map" + stage) + "arr"][where[1]][where[0]]];
_root[("map" + stage) + "arr"][where[1]][where[0]][1] = [];
_root[("map" + stage) + "arr"][where[1]][where[0]][2] = [];
_root[("map" + stage) + "arr"][where[1]][where[0]][1].push(who);
}
return(_root[("map" + stage) + "arr"][where[1]][where[0]][1].length - 1);
}
function delPosAtMapArr(where, who) {
var _local2 = _root[("map" + stage) + "arr"][where[1]][where[0]][1];
for (var _local5 in _local2) {
if (_local2[_local5] == who) {
_local2.splice(_local5, 1);
}
}
if (_root[("map" + stage) + "arr"][where[1]][where[0]][1].length == 0) {
if (_root[("map" + stage) + "arr"][where[1]][where[0]][2].length == 0) {
_root[("map" + stage) + "arr"][where[1]][where[0]] = _root[("map" + stage) + "arr"][where[1]][where[0]][0];
}
}
}
function addVolToMapArr(who, where) {
if (isNaN(_root[("map" + stage) + "arr"][where[1]][where[0]])) {
_root[("map" + stage) + "arr"][where[1]][where[0]][2].push(who);
} else {
_root[("map" + stage) + "arr"][where[1]][where[0]] = [_root[("map" + stage) + "arr"][where[1]][where[0]]];
_root[("map" + stage) + "arr"][where[1]][where[0]][1] = [];
_root[("map" + stage) + "arr"][where[1]][where[0]][2] = [];
_root[("map" + stage) + "arr"][where[1]][where[0]][2].push(who);
}
return(_root[("map" + stage) + "arr"][where[1]][where[0]][2].length - 1);
}
function delVolToMapArr(where, who) {
var _local2 = _root[("map" + stage) + "arr"][where[1]][where[0]][2];
for (var _local5 in _local2) {
if (_local2[_local5] == who) {
_local2.splice(_local5, 1);
}
}
if (_root[("map" + stage) + "arr"][where[1]][where[0]][2].length == 0) {
if (_root[("map" + stage) + "arr"][where[1]][where[0]][1].length == 0) {
_root[("map" + stage) + "arr"][where[1]][where[0]] = _root[("map" + stage) + "arr"][where[1]][where[0]][0];
}
}
}
function setMapArrVol(who, where, vol) {
if ((vol == 1) || (vol == undefined)) {
vol = 1;
addVolToMapArr(who, where);
who.volArr.push(where);
}
if (vol == 9) {
var _local5 = -1;
while (_local5 <= 1) {
var _local4 = where[1] + _local5;
var _local2 = -1;
while (_local2 <= 1) {
var _local1 = where[0] + _local2;
if ((((_local1 >= 0) && (_local4 >= 0)) && (_local1 <= nx)) && (_local4 <= ny)) {
var _local3 = [_local1, _local4];
addVolToMapArr(who, _local3);
who.volArr.push(_local3);
}
_local2++;
}
_local5++;
}
} else if (vol == 25) {
} else if (vol == 49) {
}
}
function delMapArrVol(who) {
for (var _local2 in who.volArr) {
delVolToMapArr(who.volArr[_local2], who);
}
who.volArr = [];
}
function newTank(xPos, yPos) {
delete airSupport;
game.tank.removeMovieClip();
var _local6 = game.getNextHighestDepth();
var tank = game.attachMovie("tank", "tank", _local6, {_x:xPos, _y:yPos});
tank.type = "player";
tank.hp = 100;
tank.xSpeed = 0;
tank.ySpeed = 0;
tank.maxSpeed = 10;
tank._rotation = -90;
tank.cannon._rotation = -90;
tank.head.stop();
tank.head.mgun.gotoAndStop(2);
tank.moveDir = -1;
tank.desDir = -1;
tank.stcounter = 0;
tank.reloadNow = 2;
tank.reloadTime = 2;
tank.cantGo = 0;
tank.currPosArr = getMapArrNum(this._x, this._y);
tank.prevPosArr = tank.currPosArr;
tank.posArrIndex = addPosToMapArr(tank, tank.currPosArr);
tank.vol = 9;
tank.volArr = [];
setMapArrVol(tank, tank.currPosArr, tank.vol);
tank.tx = 0;
tank.ty = 0;
tank.r = 30;
tank.resist = 5;
tank.weapon1 = [[40, 1.5, 2, 2, 1], [50, 2, 2, 2, 1]];
tank.weapon2 = [[10, 20, 40, 40, 8], [15, 30, 26, 26, 8]];
tank.weapon3 = [[100, 10, 15, 15, 1], [120, 15, 10, 10, 1]];
tank.weapon4 = [[8, 2, 3, 3, 2], [10, 3, 2, 2, 2]];
tank.weapon5 = [[20, 3, 18, 18, 3], [25, 4, 12, 12, 3]];
tank.wLevel = 0;
tank.currWeapon = 1;
tank.bomber = 3;
tank.armorLv = 1;
tank.des = [0, 1];
tank.missile_able = false;
game.inGame.push(tank);
tank.keyArr = [];
tank.headRotate = aimTarget;
tank.badlyHurt = function (damage) {
this.stopShoot();
this.createEmptyMovieClip("hurtMc", this.getNextHighestDepth());
this.cantGo = Math.round(damage);
changeColor(this, Dark);
this.hurtMc.onEnterFrame = function () {
if ((this._parent.cantGo % 3) == 0) {
newNoise();
}
if (this._parent.cantGo == 0) {
changeColor(this._parent, NM_ColorMatrix);
this.removeMovieClip();
}
};
};
tank.hitAction = function (damage, type) {
if (this.wudizhao) {
shotShine(this.wudizhao, shine_Transform_yellow, 3);
return(undefined);
}
hitByEnemy++;
damage = ((damage * 0.35) * game_diff_level) + 0.5;
if (game_diff_level == 1) {
if (random(2)) {
damage = 0;
}
}
if (!this.hitMc) {
if ((damage > 10) && (!this.hurtMc)) {
this.badlyHurt(damage * 2);
}
if (type != "man") {
shotShine(this, "white", 1);
}
if (damage != undefined) {
this.hp = this.hp - (damage / this.armorLv);
} else {
this.hp--;
}
gameUI.hp_bar._xscale = this.hp;
sethum(gameUI.hp_bar, ((115 * this.hp) / 100) - 15);
if (this.hp <= 0) {
this.hp = 0;
this.hurtMc.removeMovieClip();
gameUI.hp_bar._xscale = this.hp;
sethum(gameUI.hp_bar, ((115 * this.hp) / 100) - 15);
this.dead();
}
this.createEmptyMovieClip("hitMc", this.getNextHighestDepth());
this.hitMc.counter = 5 - game_diff_level;
this.hitMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((--this.counter) < 0) {
this.removeMovieClip();
}
};
}
};
tank.dead = function () {
delete this.hitAction;
game.scrollIt = false;
this.stopShoot();
gameOver("missionFailed");
newExpl1(this._x, this._y, 1);
changeColor(this, Dark);
delete this.onEnterFrame;
this.resist = 10;
delete this.onMouseDown;
delete this.onMouseUp;
};
tank.onMouseDown = function () {
if (this.cantGo == 0) {
this.startShoot();
}
};
tank.onMouseUp = function () {
this.stopShoot();
};
tank.startShoot = function () {
if (!this.shootMc) {
this.createEmptyMovieClip("shootMc", this.getNextHighestDepth());
this.shootMc.counter = 0;
this.shootMc.onEnterFrame = function () {
if (gamePause or (stage == 13)) {
return(undefined);
}
if (this._parent.reloadNow >= this._parent.reloadTime) {
this._parent.attack1();
this._parent.reloadNow = 0;
}
if ((++this.counter) > 20) {
this.counter = 0;
this._parent.attack2();
}
};
}
};
tank.stopShoot = function () {
this.shootMc.removeMovieClip();
};
tank.attack1 = function () {
var _local3 = getGlobalPoint(this.head.mc);
_local3[0] = _local3[0] + this.xSpeed;
_local3[1] = _local3[1] + this.ySpeed;
newShake(Math.round(this.recoil / 2));
this._x = this._x - (this.recoil * Math.cos((this.head._rotation + this._rotation) * 0.0174));
this._y = this._y - (this.recoil * Math.sin((this.head._rotation + this._rotation) * 0.0174));
this.head.mc.gotoAndPlay(2);
_root["newBullet" + this.currWeapon](getMapArrType(this._x, this._y), ((_local3[0] - game._x) + random(10)) - 5, ((_local3[1] - game._y) + random(10)) - 5, this.dmg, this.bs, this.head._rotation + this._rotation, this.xSpeed, this.ySpeed);
};
tank.attack2 = function () {
if (this.missile_able) {
var _local3 = getFirePosition(this.head._rotation + this._rotation, this._x, this._y, 15);
newBulletH1("high", _local3[0], _local3[1], 3, 20, this.head._rotation + this._rotation, "xiaodaodan5", "");
var _local2 = getFirePosition(this.head._rotation + this._rotation, this._x, this._y, -15);
newBulletH1("high", _local2[0], _local2[1], 3, 20, this.head._rotation + this._rotation, "xiaodaodan5", "");
}
};
tank.changeWeapon = function (num) {
var _local2 = tank["weapon" + num][tank.wLevel];
this.head.mc.gotoAndStop(1);
tank.bs = _local2[0];
tank.dmg = _local2[1];
tank.reloadTime = _local2[2];
tank.reloadNow = _local2[3];
tank.recoil = _local2[4];
tank.currWeapon = num;
};
tank.changeWeapon(tank.currWeapon);
tank.armorUp = function () {
shotShine(this, "Awhite", 5);
this.armorLv = 2;
this.head.gotoAndStop("lv2_single_small");
this.chassis.gotoAndStop("lv2");
};
tank.getKey = function () {
if (Key.isDown(32)) {
if (!this.keyArr[32]) {
this.keyArr[32] = true;
callForHelp();
}
} else {
this.keyArr[32] = false;
}
if (Key.isDown(keyCode_W1) or Key.isDown(keyCode_W2)) {
var _local2 = -1;
} else if (Key.isDown(keyCode_S1) or Key.isDown(keyCode_S2)) {
var _local2 = 1;
} else {
var _local2 = 0;
}
if (Key.isDown(keyCode_A1) or Key.isDown(keyCode_A2)) {
var _local3 = -10;
} else if (Key.isDown(keyCode_D1) or Key.isDown(keyCode_D2)) {
var _local3 = 10;
} else {
var _local3 = 0;
}
if ((_local2 + _local3) == 0) {
this.go = false;
} else {
this.go = true;
}
return(_local3 + _local2);
};
tank.turn = function (dir) {
if (this.desDir != this._rotation) {
this._rotation = this._rotation + (this.rota * 15);
}
if (this.moveDir != dir) {
this.moveDir = dir;
var _local2 = getTurnDegree(dir);
if (dir == 0) {
this.rota = 0;
this.desDir = this._rotation;
} else {
this.rota = getRotationDir(_local2, this._rotation);
this.desDir = _local2;
if (_local2 == 180) {
if (this.rota < 0) {
this.desDir = -180;
}
}
}
}
};
tank.moveAction = function () {
if (this.reloadNow < this.reloadTime) {
this.reloadNow++;
gameUI.bullets._x = 244 + Math.round((20 * this.reloadNow) / this.reloadTime);
}
if (this.cantGo > 0) {
this.cantGo--;
} else if (this.go) {
if (!random(2)) {
if (getMapArrType(this._x, this._y) != 8) {
if (((this.xSpeed * this.xSpeed) + (this.ySpeed * this.ySpeed)) > 7) {
this.dust = game.gef.attachMovie("tank_hui", "dust", game.gef.getNextHighestDepth(), {_x:(this._x + random(20)) - 10, _y:(this._y + random(20)) - 10, _rotation:this._rotation, _alpha:30});
}
}
}
this.xSpeed = this.xSpeed + (((this.maxSpeed * Math.cos(this._rotation * 0.0174)) - this.xSpeed) / 6);
this.ySpeed = this.ySpeed + (((this.maxSpeed * Math.sin(this._rotation * 0.0174)) - this.ySpeed) / 6);
}
this._x = this._x + Math.round(this.xSpeed);
this._y = this._y + Math.round(this.ySpeed);
var _local2 = getMapArrType(this._x, this._y);
if (_local2 == 7) {
this.xSpeed = this.xSpeed * 0.5;
this.ySpeed = this.ySpeed * 0.5;
} else if ((_local2 == 5) || (_local2 == 6)) {
this.xSpeed = this.xSpeed * 0.82;
this.ySpeed = this.ySpeed * 0.82;
} else if (_local2 == 8) {
this.xSpeed = this.xSpeed * 0.9;
this.ySpeed = this.ySpeed * 0.9;
} else if ((_local2 == 4) || (_local2 == 9)) {
this.xSpeed = this.xSpeed * 0.4;
this.ySpeed = this.ySpeed * 0.4;
}
_local2 = getMapArrType(this._x + 15, this._y);
while ((_local2 == 1) || (_local2 == 2)) {
this._x--;
_local2 = getMapArrType(this._x + 15, this._y);
var _local8 = true;
}
_local2 = getMapArrType(this._x - 15, this._y);
while ((_local2 == 1) || (_local2 == 2)) {
this._x++;
_local2 = getMapArrType(this._x - 15, this._y);
var _local7 = true;
}
_local2 = getMapArrType(this._x, this._y + 15);
while ((_local2 == 1) || (_local2 == 2)) {
this._y--;
_local2 = getMapArrType(this._x, this._y + 15);
var _local9 = true;
}
_local2 = getMapArrType(this._x, this._y - 15);
while ((_local2 == 1) || (_local2 == 2)) {
this._y++;
_local2 = getMapArrType(this._x, this._y - 15);
var _local6 = true;
}
if (game.focusOnOther) {
if (this._x < 20) {
this._x = 20;
var _local8 = true;
} else if (this._x > (mapWidth - 20)) {
var _local7 = true;
this._x = mapWidth - 20;
}
if (this._y < 20) {
this._y = 20;
var _local6 = true;
} else if (this._y > (mapHeight - 20)) {
var _local9 = true;
this._y = mapHeight - 20;
}
} else {
var _local4 = this._x + game._x;
if (_local4 < 20) {
var _local8 = true;
this._x = 20 - game._x;
} else if (_local4 > 492) {
var _local7 = true;
this._x = 492 - game._x;
}
var _local3 = this._y + game._y;
if (_local3 < 20) {
var _local6 = true;
this._y = 20 - game._y;
} else if (_local3 > 492) {
var _local9 = true;
this._y = 492 - game._y;
}
}
};
tank.seperate = sprate;
tank.intro = function () {
game.focusOnOther = true;
game.scrollIt = false;
gamePause = true;
play_soundAction("\u5766\u514B\u8FD0\u884C");
this.onEnterFrame = function () {
this._y = this._y - (this.des[1] * 2);
this._x = this._x - (this.des[0] * 2);
if ((this._y == this.desY) && (this._x == this.desX)) {
delete this.desY;
delete this.desX;
delete this.des;
this.start();
}
};
};
tank.start = function () {
gamePause = true;
game.scrollIt = false;
game.focusOnOther = false;
gameUI.showUp();
gameOver("missionStart");
this.onEnterFrame = (this.enterFrameFunction = function () {
if (!_root.resul) {
if (Key.isDown(80) or Key.isDown(27)) {
if (!this.keyArr[80]) {
this.keyArr[80] = true;
if (gamePause) {
gamePause = false;
gameUI.mask.removeMovieClip();
play_soundAction("pick_up_w");
_root[now_music].setVolume(100);
gameUI.p_btn.gotoAndStop(1);
} else {
gamePause = true;
var _local3 = gameUI.attachMovie("mask", "mask", gameUI.getNextHighestDepth());
_local3.gotoAndStop("black");
play_soundAction("pick_up_w");
_root[now_music].setVolume(0);
gameUI.p_btn.gotoAndStop(2);
}
}
} else {
this.keyArr[80] = false;
}
}
if (gamePause) {
return(undefined);
}
if (this.cantGo == 0) {
this.turn(this.getKey());
this.headRotate(_xmouse - game._x, _ymouse - game._y, 45);
}
this.moveAction();
});
};
}
function newSweeper(xPos, yPos) {
var _local10 = game.getNextHighestDepth();
var _local2 = game.attachMovie("saoleiche", "sweeper", _local10, {_x:xPos, _y:yPos});
_local2.type = "player";
_local2.hp = 150;
_local2.finded = false;
_local2.vmap = [];
_local2.cp = 0;
_local2.counter = 0;
_local2.moveDir = 10;
_local2.xSpeed = 0;
_local2.ySpeed = 0;
_local2.maxSpeed = 7;
_local2.speed = 7;
_local2.sweepSpeed = 15;
_local2.tx = 0;
_local2.ty = 0;
_local2.r = 18;
_local2.resist = 5;
_local2.blockDir = 0;
_local2.blocked = 0;
_local2.blockCounter = 0;
_local2.blockCounter1 = 0;
_local2.go = false;
_local2.tempFrame = 1;
_local2.currPosArr = getMapArrNum(this._x, this._y);
_local2.prevPosArr = _local2.currPosArr;
_local2.posArrIndex = addPosToMapArr(_local2, _local2.currPosArr);
_local2.vol = 9;
_local2.volArr = [];
setMapArrVol(_local2, _local2.currPosArr, _local2.vol);
game.inGame.push(_local2);
_local2.hitAction = hitAction;
_local2.die = die;
_local2.range = range1;
_local2.gotoNextPoint = function () {
this.desDir = getRotation(this._x, this._y, this.vmap[0][0] * 32, this.vmap[0][1] * 32);
if (this.desDir != this._rotation) {
var _local4 = this.desDir;
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > 45) ? 45 : (_local3));
this._rotation = this._rotation + (_local6 * _local3);
}
};
_local2.moveAction = function () {
if (this.go) {
this.gotoAndStop("move");
this.xSpeed = this.xSpeed + (((this.maxSpeed * Math.cos(this._rotation * 0.0174)) - this.xSpeed) * 0.4);
this.ySpeed = this.ySpeed + (((this.maxSpeed * Math.sin(this._rotation * 0.0174)) - this.ySpeed) * 0.4);
} else {
this.gotoAndStop("stand");
}
this._x = this._x + Math.round(this.xSpeed);
this._y = this._y + Math.round(this.ySpeed);
this.xSpeed = this.xSpeed * 0.6;
this.ySpeed = this.ySpeed * 0.6;
this.blockAction();
var _local2 = this.blocked;
this.range();
if (this.blocked == _local2) {
this.blocked = 0;
}
this.currPosArr = getMapArrNum(this._x, this._y);
if ((this.prevPosArr[0] != this.currPosArr[0]) || (this.prevPosArr[1] != this.currPosArr[1])) {
delPosAtMapArr(this.prevPosArr, this);
delMapArrVol(this);
this.prevPosArr = this.currPosArr;
this.posArrIndex = addPosToMapArr(this, this.currPosArr);
setMapArrVol(this, this.currPosArr, this.vol);
}
};
_local2.scan = function () {
for (var _local5 in game.enemy) {
if ((game.enemy[_local5].type == "mine") && (!game.enemy[_local5].disabled)) {
var _local4 = getMapAtt(game.enemy[_local5]._x, game.enemy[_local5]._y);
var _local2 = getMapAtt(game.tank._x, game.tank._y);
var _local3 = getMapAtt(this._x, this._y);
if ((_local4 == _local2) && (_local2 == _local3)) {
if (getDis(game.enemy[_local5]._x, game.enemy[_local5]._y, game.tank._x, game.tank._y) < 180) {
this.sweepTarget = game.enemy[_local5];
this.sweep();
break;
}
}
}
}
};
_local2.sweep = function () {
this.desPoint = [this.sweepTarget._x, this.sweepTarget._y];
this.counter = 0;
this.go = true;
this.maxSpeed = this.sweepSpeed;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (getDis(this.desPoint[0], this.desPoint[1], this._x, this._y) < 50) {
this.go = false;
this.maxSpeed = this.speed;
this.sweepTarget.disable();
this.followTank(game.tank);
}
if (this.sweepTarget._x == undefined) {
this.go = false;
this.maxSpeed = this.speed;
this.followTank(game.tank);
}
if ((++this.counter) > 300) {
this.sweepTarget = undefined;
this.go = false;
this.maxSpeed = this.speed;
this.followTank(game.tank);
}
this.turnTo();
this.moveAction();
};
};
changeColor(_local2, Dark);
_local2.followTank = followTarget;
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (!this.active) {
this.go = false;
if (getDis(game.tank._x, game.tank._y, this._x, this._y) < 90) {
this.active = true;
this.go = true;
shotShine(this, "white", 3);
play_soundAction("\u626B\u96F7\u8F66\u4FE1\u53F7");
currentScore = currentScore + 5000;
adjust_score(gameUI.score, currentScore);
changeColor(this, NM_ColorMatrix);
this.followTank(game.tank);
}
}
};
return(_local2);
}
function newVan(xPos, yPos) {
var _local5 = game.getNextHighestDepth();
var _local3 = game.attachMovie("yunshuche2", "van", _local5, {_x:xPos, _y:yPos});
_local3.init = init;
_local3.gotoNextPoint = gotoNextPoint;
_local3.hitAction = hitAction;
_local3.die = function (type) {
removeMinimapObj(this);
newExpl1(this._x, this._y, 1);
delete this.onEnterFrame;
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
changeColor(this, Dark);
var _local3 = function () {
gameOver("missionFailed");
};
moveCamera([this], [_local3]);
};
_local3.desPoint = [405, 3055];
_local3.init("player", 75, 2, 20, 5, 9);
game.inGame.push(_local3);
_local3.moveAction = moveAction;
_local3.range = range1;
changeColor(_local3, Dark);
_local3.hp_bar._alpha = 0;
_local3.onEnterFrame = function () {
if (!this.active) {
this.go = false;
if (game.tank.hitTest(this)) {
this.a = {_x:405, _y:3055};
this.b = function () {
gameUI.missionInfo.text = "Take The VIP Truck Home Safely!";
};
moveCamera([this.a], [this.b]);
this.active = true;
this.go = true;
changeColor(this, NM_ColorMatrix);
play_soundAction("\u5361\u8F66\u58F0");
this.finded = true;
this.vmap = [[7, 6], [6, 10], [1, 13], [1, 18], [7, 17], [7, 31], [2, 34], [3, 45], [6, 57], [9, 62], [11, 77], [12, 94]];
_root.game.map.session2 = true;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this.blocked = 0;
checkAndGotoPath(this);
if (this.vmap.length == 0) {
gameOver("stageClean");
}
if (this._y < (game.tank._y + 100)) {
this.go = true;
} else {
this.go = false;
}
if (game.scrollIt && ((this._y + game._y) < 0)) {
game.scrollIt = false;
} else if ((!game.scrollIt) && ((this._y + game._y) > 150)) {
if (airSupport == undefined) {
game.scrollIt = true;
}
}
this.moveAction();
this.hp_bar._rotation = -this._rotation;
};
}
}
};
return(_local3);
}
function followTarget(who) {
this.target = who;
this.desPoint = setPoint(this.target, 50);
this.turnTo = turnToSetPoint;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
var _local3 = getDis(this.target._x, this.target._y, this.desPoint[0], this.desPoint[1]);
var _local2 = getDis(this.target._x, this.target._y, this._x, this._y);
if (_local3 > 150) {
this.desPoint = setPoint(this.target, 50);
} else if (_local3 < 40) {
this.go = false;
this.finded = false;
}
if (_local2 > 150) {
this.go = true;
} else if (_local2 < 80) {
this.go = false;
this.finded = false;
}
if ((++this.counter) > 10) {
this.counter = 0;
this.scan();
}
if (this.finded) {
checkAndGotoPath(this);
} else {
this.turnTo();
}
this.moveAction();
};
}
function blockAction() {
if (this.blocked > 25) {
if ((++this.blockCounter) < 20) {
if (this.blockCounter == 1) {
if (random(2)) {
this.blockDir = 1;
} else {
this.blockDir = -1;
}
}
this._rotation = this._rotation + (this.blockDir * 20);
if (this._rotation > 180) {
this._rotation = this._rotation - 360;
} else if (this._rotation < -180) {
this._rotation = this._rotation + 360;
}
} else {
if ((++this.blockCounter1) > 1) {
this.blockCounter1 = 0;
if (!this.finded) {
startPathing(this, this.desPoint[0], this.desPoint[1]);
}
}
this.blockCounter = 0;
this.blocked = 0;
}
}
}
function needPathFinder(startX, startY, endX, endY) {
var _local3 = getRotation(startX, startY, endX, endY);
var _local4 = Math.round(getDis(startX, startY, endX, endY) / 32);
var _local1 = 1;
while (_local1 < _local4) {
var _local2 = getMapArrType(Math.round(startX + ((32 * _local1) * Math.cos(_local3))), Math.round(startY + ((32 * _local1) * Math.sin(_local3))));
if ((_local2 == 1) || (_local2 == 2)) {
return(true);
}
_local1++;
}
return(false);
}
function setPoint(who, range) {
var _local3 = getMapAtt(who._x, who._y);
do {
var dx = (random(range * 2) - range);
var dy = (random(range * 2) - range);
} while (getMapAtt(who._x + dx, who._y + dy) != _local3);
return([who._x + dx, who._y + dy]);
}
function turnToSetPoint(dgr) {
if (dgr == undefined) {
dgr = 15;
}
this.desDir = getRotation(this._x, this._y, this.desPoint[0], this.desPoint[1]);
if (this.desDir != this._rotation) {
var _local5 = this.desDir;
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local7 = getRotationDir(_local5, _local2);
var _local6 = getDegree1(_local5, _local2);
var _local3 = Math.abs(_local6) * 0.5;
_local3 = ((_local3 > dgr) ? (dgr) : (_local3));
this._rotation = this._rotation + (_local7 * _local3);
}
}
function removeFromArea(who, areaNum) {
if (areaNum) {
var _local1 = game["area" + areaNum];
for (var _local3 in _local1) {
if (_local1[_local3] == who) {
_local1.splice(_local3, 1);
}
}
if (_local1.length == 0) {
for (var _local3 in game.enemy) {
if (game.enemy[_local3].locker == ("areaLocker" + game.currArea)) {
nextArea();
break;
}
}
}
}
}
function addToArea(who, areaNum) {
if (typeof(areaNum) == "number") {
var _local1 = game["area" + areaNum];
who.areaNum = areaNum;
_local1.push(who);
}
}
function nextArea() {
var _local3 = [];
var _local4 = [];
for (var _local5 in game.enemy) {
if (game.enemy[_local5].locker == ("areaLocker" + game.currArea)) {
var _local2 = game.enemy[_local5];
_local3.push(_local2);
var _local1 = function (who) {
who.disable();
who.part.disable();
};
_local4.push(_local1);
}
}
moveCamera(_local3, _local4);
if (game["area" + (game.currArea + 1)]) {
game.currArea++;
} else {
trace("\u6CA1\u6709\u4E86@");
}
}
function setTimer(time) {
if (!_root.timeManager) {
_root.createEmptyMovieClip("timeManager", _root.getNextHighestDepth());
timeManager.time = time;
timeManager.counter = 0;
timeManager.interval = 45;
var _local3 = String(time + 1000);
gameUI.time1.gotoAndStop(Number(_local3.slice(3, 4)) + 1);
gameUI.time10.gotoAndStop(Number(_local3.slice(2, 3)) + 1);
gameUI.time100.gotoAndStop(Number(_local3.slice(1, 2)) + 1);
timeManager.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) >= this.interval) {
this.counter = 0;
this.time--;
var _local2 = String(this.time + 1000);
gameUI.time1.gotoAndStop(Number(_local2.slice(3, 4)) + 1);
gameUI.time10.gotoAndStop(Number(_local2.slice(2, 3)) + 1);
gameUI.time100.gotoAndStop(Number(_local2.slice(1, 2)) + 1);
if (this.time == 0) {
this.removeMovieClip();
gameOver("missionFailed");
}
}
};
} else {
timeManager.time = timeManager.time + time;
}
}
function showTargetP(who) {
var _local1 = game.attachMovie("UIshowTargetP", "showTargetMc" + game.getNextHighestDepth(), game.getNextHighestDepth());
_local1._x = who._x;
_local1._y = who._y;
play_soundAction("\u6307\u793A\u4FE1\u53F7");
}
function showTarget(who) {
var _local1 = game.attachMovie("UIshowTarget", "showTargetMc" + game.getNextHighestDepth(), game.getNextHighestDepth());
_local1._x = who._x;
_local1._y = who._y;
play_soundAction("\u6307\u793A\u4FE1\u53F7");
}
function showObejct(stage) {
gamePause = true;
game.scrollIt = true;
game.scrollScreen();
game.scrollIt = false;
moveCmr = false;
gameUI.attachMovie("mask", "showBoard", gameUI.getNextHighestDepth(), {_x:-gameUI._x, _y:-gameUI._y});
gameUI.showBoard.gotoAndStop("board");
gameUI.showBoard.stuff.gotoAndStop(stage);
gameUI.showBoard.onMouseDown = function () {
this.onEnterFrame = function () {
this.stuff._y = this.stuff._y + Math.round((-350 - this.stuff._y) / 5);
if (this.stuff._y < -335) {
moveCmr = true;
this.removeMovieClip();
}
};
};
gameUI.showBoard.counter = 0;
gameUI.showBoard.onEnterFrame = function () {
if ((++this.counter) > 200) {
this.stuff._y = this.stuff._y + Math.round((-350 - this.stuff._y) / 5);
if (this.stuff._y < -335) {
moveCmr = true;
this.removeMovieClip();
}
} else if (this.counter < 30) {
this.stuff._y = this.stuff._y + Math.round((80 - this.stuff._y) / 5);
}
};
}
function moveCamera(where, doWhat) {
gamePause = true;
game.scrollIt = false;
game.focusOnOther = true;
moveCmr = true;
if (this.mCmr._x != undefined) {
this.mCmr.obj = this.mCmr.obj.concat(where);
this.mCmr.func = this.mCmr.func.concat(doWhat);
} else {
var _local4 = this.createEmptyMovieClip("mCmr", this.getNextHighestDepth());
_local4.obj = where;
_local4.func = doWhat;
_local4.currIndex = 0;
_local4.mCmr = function () {
this.onEnterFrame = function () {
if (!moveCmr) {
return(undefined);
}
var _local3 = Math.round((256 - (this.obj[this.currIndex]._x + game._x)) / 5);
var _local2 = Math.round((256 - (this.obj[this.currIndex]._y + game._y)) / 5);
_local3 = ((Math.abs(_local3) > 40) ? ((40 * Math.abs(_local3)) / _local3) : (_local3));
_local2 = ((Math.abs(_local2) > 40) ? ((40 * Math.abs(_local2)) / _local2) : (_local2));
game._x = game._x + _local3;
game._y = game._y + _local2;
if (game._x > 0) {
game._x = 0;
var _local5 = true;
if (Math.abs(_local2) < 2) {
this.doSth();
}
} else if ((-game._x) > ((tileWidth * tileNumX) - stageWidth)) {
game._x = stageWidth - (tileWidth * tileNumX);
var _local5 = true;
if (Math.abs(_local2) < 2) {
this.doSth();
}
}
if (game._y > 0) {
game._y = 0;
var _local4 = true;
if (Math.abs(_local3) < 2) {
this.doSth();
}
} else if ((-game._y) > ((tileHeight * tileNumY) - stageHeight)) {
game._y = stageHeight - (tileHeight * tileNumY);
var _local4 = true;
if (Math.abs(_local3) < 2) {
this.doSth();
}
}
if (_local5 && (_local4)) {
this.doSth();
}
if ((Math.abs(_local3) < 2) && (Math.abs(_local2) < 2)) {
this.doSth();
}
};
};
_local4.doSth = function () {
this.counter = 0;
this.onEnterFrame = function () {
if ((++this.counter) == 5) {
this.func[this.currIndex](this.obj[this.currIndex]);
} else if (this.counter > 40) {
if ((++this.currIndex) < this.obj.length) {
this.mCmr();
} else {
this.returnToTank();
}
}
};
};
_local4.end = function () {
game.focusOnOther = false;
if (game.tank.desY == undefined) {
game.scrollIt = true;
}
gamePause = false;
this.removeMovieClip();
};
_local4.returnToTank = function () {
this.onEnterFrame = function () {
if (game.tank.desY == undefined) {
var _local3 = Math.round(((256 - (((((game.tank._x + game.tank._x) + game.tank._x) + _xmouse) - game._x) / 4)) - game._x) / 5);
var _local2 = Math.round(((256 - (((((game.tank._y + game.tank._y) + game.tank._y) + _ymouse) - game._y) / 4)) - game._y) / 5);
} else {
var _local3 = Math.round(((256 - (game.tank.desX - (180 * game.tank.des[0]))) - game._x) / 5);
var _local2 = Math.round(((256 - (game.tank.desY - (180 * game.tank.des[1]))) - game._y) / 5);
}
var _local3 = ((Math.abs(_local3) > 40) ? ((40 * Math.abs(_local3)) / _local3) : (_local3));
var _local2 = ((Math.abs(_local2) > 40) ? ((40 * Math.abs(_local2)) / _local2) : (_local2));
game._x = game._x + _local3;
game._y = game._y + _local2;
if (game._x > 0) {
game._x = 0;
var _local5 = true;
if (Math.abs(_local2) < 2) {
this.end();
}
} else if ((-game._x) > ((tileWidth * tileNumX) - stageWidth)) {
game._x = stageWidth - (tileWidth * tileNumX);
var _local5 = true;
if (Math.abs(_local2) < 2) {
this.end();
}
}
if (game._y > 0) {
game._y = 0;
var _local4 = true;
if (Math.abs(_local3) < 2) {
this.end();
}
} else if ((-game._y) > ((tileHeight * tileNumY) - stageHeight)) {
game._y = stageHeight - (tileHeight * tileNumY);
var _local4 = true;
if (Math.abs(_local3) < 2) {
this.end();
}
}
if (_local5 && (_local4)) {
this.end();
}
if ((Math.abs(_local3) < 2) && (Math.abs(_local2) < 2)) {
this.end();
}
};
};
_local4.mCmr();
}
}
function mission1Start() {
play_music("\u8FDB\u653B", true);
totalEnemy = 12;
game.currArea = 1;
game.area1 = [];
game.tank._x = 283;
game.tank._y = 1430;
setTimer(100);
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
var _local2 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
_local2.onEnterFrame = function () {
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
if (totalEnemy == 0) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission2Start() {
play_music("\u626B\u96F7", true);
newSweeper(300, 1450);
game.tank._x = 70;
game.tank._y = 1450;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
totalMines = 100;
setTimer(300);
gameUI.missionInfo.text = "Mines Left: " + (totalMines - 65);
var _local2 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
gameUI.missionInfo.text = "Mines Left: " + (totalMines - 65);
if (totalMines == 65) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission3Start() {
play_music("\u9632\u5B88", true);
game.tank._x = 618;
game.tank._y = 949;
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq = newHQ1(530, 950);
ctr.startPoint = [[25, 30], [512, 30], [1000, 30]];
ctr.vmap1 = [[1, 20], [5, 23], [10, 28]];
ctr.vmap2 = [[15, 23]];
ctr.vmap3 = [[31, 16], [21, 24]];
ctr.counter = 0;
ctr.level = 0;
ctr.enemyNum = (totalEnemy = 75);
ctr.childrens = 0;
ctr.wave = 0;
ctr.show1 = function () {
showTargetP(ctr.hq);
};
moveCamera([ctr.hq], [ctr.show1]);
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
ctr.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((this.enemyNum > 0) and (this.childrens < 20)) {
if ((++this.counter) > (80 - (this.level * 2))) {
var _local3 = random(3);
var _local2 = newDefenceE1(this.startPoint[_local3][0] + random(10), this.startPoint[_local3][1] + random(10));
_local2.hp = 30 + (this.level * 10);
_local2.defenceMother = this;
_local2.vmap = this["vmap" + (_local3 + 1)].slice();
_local2.desPoint = [500, 900];
_local2.mainTarget = this.hq;
this.enemyNum--;
this.childrens++;
this.wave++;
this.counter = 0;
}
if (this.wave == 10) {
this.wave = 0;
this.level++;
this.counter = this.counter - 200;
}
}
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
if (this.hq.hp <= 0) {
var _local4 = function () {
gameOver("missionFailed");
};
moveCamera([this.hq], [_local4]);
this.removeMovieClip();
} else if (totalEnemy == 0) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission4Start() {
play_music("\u62A4\u9001", true);
game.tank._x = 380;
game.tank._y = 2980;
setTimer(600);
gameUI.missionInfo.text = "Fetch The VIP Truck!";
var tmp = newVan(165, 75);
tmp.show1 = function () {
showTargetP(tmp);
};
moveCamera([tmp], [tmp.show1]);
game.currArea = 1;
game.area1 = [];
game.area2 = [];
game.area3 = [];
}
function mission5Start() {
play_music("\u8FDB\u653B", true);
game.tank._x = 55;
game.tank._y = 3000;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
game.currArea = 1;
game.area1 = [];
game.area2 = [];
game.area3 = [];
game.area4 = [];
setTimer(600);
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq1 = newBuildingE1(74, 451);
ctr.hq2 = newBuildingE1(350, 205);
ctr.hq3 = newBuildingE1(742, 108);
ctr.hq4 = newBuildingE1(808, 319);
ctr.hp = 4;
ctr.show1 = function () {
showTarget(ctr.hq1);
};
ctr.show2 = function () {
showTarget(ctr.hq2);
};
ctr.show3 = function () {
showTarget(ctr.hq3);
};
ctr.show4 = function () {
showTarget(ctr.hq4);
};
moveCamera([ctr.hq1, ctr.hq2, ctr.hq3, ctr.hq4], [ctr.show1, ctr.show2, ctr.show3, ctr.show4]);
gameUI.missionInfo.text = "Bases Left: " + ctr.hp;
ctr.hq1.dead = (ctr.hq2.dead = (ctr.hq3.dead = (ctr.hq4.dead = function () {
if ((--missionController.hp) <= 0) {
missionController.win();
}
gameUI.missionInfo.text = "Bases Left: " + missionController.hp;
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
delete this.hitAction;
})));
ctr.win = function () {
gameOver("stageClean");
this.removeMovieClip();
};
}
function mission6Start() {
play_music("boss\u6218", true);
game.tank._x = 256;
game.tank._y = 950;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
setTimer(300);
var _local2 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
gameUI.missionInfo.text = "Destroy The Super Tank! ";
_local2.onEnterFrame = function () {
if (game._y >= 0) {
game._y = 0;
newBoss1(256, -140);
delete game.scrollScreen;
this.removeMovieClip();
}
};
}
function mission7Start() {
play_music("\u9632\u5B88", true);
game.tank._x = 700;
game.tank._y = 940;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq1 = newHQ1(308, 809);
ctr.hq2 = newHQ1(824, 892);
ctr.hq1.hp = ctr.hq1.hp + 10;
ctr.hq1.totalHp = ctr.hq1.hp;
ctr.hq2.hp = ctr.hq2.hp + 10;
ctr.hq2.totalHp = ctr.hq2.hp;
ctr.startPoint = [[50, 30], [980, 40]];
ctr.vmap1 = [[16, 1], [16, 9], [10, 9], [3, 14], [4, 26]];
ctr.vmap2 = [[18, 1], [18, 8], [23, 9], [24, 12], [30, 14], [30, 27]];
ctr.counter = 0;
ctr.level = 0;
ctr.enemyNum = (totalEnemy = 100);
ctr.childrens = 0;
ctr.wave = 0;
ctr.show1 = function () {
showTargetP(ctr.hq1);
};
ctr.show2 = function () {
showTargetP(ctr.hq2);
};
moveCamera([ctr.hq1, ctr.hq2], [ctr.show1, ctr.show2]);
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
ctr.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((this.enemyNum > 0) and (this.childrens < 20)) {
if ((++this.counter) > (60 - (this.level * 2))) {
if (this.level <= 2) {
var _local5 = 3;
} else if ((this.level > 2) and (this.level <= 5)) {
var _local5 = 4;
} else if ((this.level > 5) and (this.level <= 7)) {
var _local5 = 5;
} else {
var _local5 = 6;
}
if (this.hq1.hp <= 0) {
var _local3 = _root["newDefenceE" + _local5](this.startPoint[1][0] + random(10), this.startPoint[1][1] + random(10));
_local3.vmap = this.vmap2.slice();
} else if (this.hq2.hp <= 0) {
var _local3 = _root["newDefenceE" + _local5](this.startPoint[0][0] + random(10), this.startPoint[0][1] + random(10));
_local3.vmap = this.vmap1.slice();
var _local6 = true;
} else {
var _local4 = random(2);
var _local3 = _root["newDefenceE" + _local5](this.startPoint[_local4][0] + random(10), this.startPoint[_local4][1] + random(10));
if (_local4 == 0) {
_local3.vmap = this.vmap1.slice();
var _local6 = true;
} else {
_local3.vmap = this.vmap2.slice();
}
}
if (_local6) {
_local3.mainTarget = this.hq1;
_local3.desPoint = [130, 775];
} else {
_local3.mainTarget = this.hq2;
_local3.desPoint = [951, 812];
}
_local3.hp = 60 + (this.level * 20);
_local3.defenceMother = this;
this.enemyNum--;
this.childrens++;
this.wave++;
this.counter = 0;
}
if (this.wave == 10) {
this.wave = 0;
this.level++;
this.counter = this.counter - 200;
}
}
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
if ((this.hq1.hp <= 0) || (this.hq2.hp <= 0)) {
var _local7 = function () {
gameOver("missionFailed");
};
moveCamera([this.hq1, this.hq2], ["", _local7]);
this.removeMovieClip();
} else if (totalEnemy == 0) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission8Start() {
play_music("\u8FDB\u653B", true);
game.tank._x = 988;
game.tank._y = 2983;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
newSweeper(553, 1459);
setTimer(600);
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq1 = newBuildingE1(96, 2800);
ctr.hq2 = newBuildingE1(1957, 2589);
ctr.hq3 = newBuildingE1(115, 135);
ctr.hq4 = newBuildingE1(831, 500);
ctr.hq5 = newBuildingE1(940, 400);
ctr.hq6 = newBuildingE1(1908, 615);
ctr.show1 = function () {
showTarget(ctr.hq1);
};
ctr.show2 = function () {
showTarget(ctr.hq2);
};
ctr.show3 = function () {
showTarget(ctr.hq3);
};
ctr.show4 = function () {
showTarget(ctr.hq4);
};
ctr.show5 = function () {
showTarget(ctr.hq5);
};
ctr.show6 = function () {
showTarget(ctr.hq6);
};
moveCamera([ctr.hq1, ctr.hq2, ctr.hq3, ctr.hq4, ctr.hq5, ctr.hq6], [ctr.show1, ctr.show2, ctr.show3, ctr.show4, ctr.show5, ctr.show6]);
game.currArea = 1;
game.area1 = [ctr.hq1];
game.area2 = [ctr.hq2];
game.area3 = [ctr.hq3, ctr.hq4, ctr.hq5];
game.area4 = [];
gameUI.missionInfo.text = "Bases Left : 6";
gameUI.armorLv.text = "0/4";
ctr.hq1.dead = function () {
gameUI.missionInfo.text = "Bases Left : 5";
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
delete this.hitAction;
removeFromArea(this, 1);
};
ctr.hq2.dead = function () {
gameUI.missionInfo.text = "Bases Left : 4";
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
delete this.hitAction;
removeFromArea(this, 2);
missionController.hp = 4;
};
ctr.hq3.dead = (ctr.hq4.dead = (ctr.hq5.dead = function () {
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
delete this.hitAction;
removeFromArea(this, 3);
missionController.hp--;
gameUI.missionInfo.text = "Bases Left : " + missionController.hp;
}));
ctr.hq6.dead = function () {
gameUI.missionInfo.text = "Bases Left : 0";
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
delete this.hitAction;
gameOver("stageClean");
};
}
function mission9Start() {
play_music("\u9632\u5B88", true);
game.tank._x = 350;
game.tank._y = 820;
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq1 = newHQ1(48, 640);
ctr.hq2 = newHQ1(952, 618);
ctr.hq1.hp = ctr.hq1.hp + 30;
ctr.hq1.totalHp = ctr.hq1.hp;
ctr.hq2.hp = ctr.hq2.hp + 30;
ctr.hq2.totalHp = ctr.hq2.hp;
ctr.startPoint = [[32, 125], [161, 1482], [987, 126], [863, 1490]];
ctr.vmap1 = [[13, 4], [13, 14], [10, 18], [3, 18]];
ctr.vmap2 = [[5, 38], [8, 35], [12, 20], [5, 20]];
ctr.vmap3 = [[15, 4], [14, 14], [18, 18], [26, 17]];
ctr.vmap4 = [[27, 38], [21, 37], [20, 21], [26, 20]];
ctr.counter = 0;
ctr.level = 1;
ctr.enemyNum = (totalEnemy = 120);
ctr.childrens = 0;
ctr.wave = 0;
ctr.show1 = function () {
showTargetP(ctr.hq1);
};
ctr.show2 = function () {
showTargetP(ctr.hq2);
};
moveCamera([ctr.hq1, ctr.hq2], [ctr.show1, ctr.show2]);
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
ctr.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((this.enemyNum > 0) and (this.childrens < 20)) {
if ((++this.counter) > (80 - (this.level * 2))) {
if (this.level <= 2) {
var _local5 = 3;
} else if ((this.level > 2) and (this.level <= 5)) {
var _local5 = 4;
} else if ((this.level > 5) and (this.level <= 7)) {
var _local5 = 5;
} else {
var _local5 = 6;
}
if (this.hq1.hp <= 0) {
var _local4 = random(2) + 2;
var _local3 = _root["newDefenceE" + _local5](this.startPoint[_local4][0] + random(10), this.startPoint[_local4][1] + random(10));
if (_local4 == 2) {
_local3.vmap = this.vmap3.slice();
} else {
_local3.vmap = this.vmap4.slice();
}
} else if (this.hq2.hp <= 0) {
var _local4 = random(2);
var _local3 = _root["newDefenceE" + _local5](this.startPoint[_local4][0] + random(10), this.startPoint[_local4][1] + random(10));
if (_local4 == 0) {
_local3.vmap = this.vmap1.slice();
} else {
_local3.vmap = this.vmap2.slice();
}
var _local6 = true;
} else {
var _local4 = random(4);
var _local3 = _root["newDefenceE" + _local5](this.startPoint[_local4][0] + random(10), this.startPoint[_local4][1] + random(10));
if (_local4 <= 1) {
if (_local4 == 0) {
_local3.vmap = this.vmap1.slice();
} else {
_local3.vmap = this.vmap2.slice();
}
var _local6 = true;
} else if (_local4 == 2) {
_local3.vmap = this.vmap3.slice();
} else {
_local3.vmap = this.vmap4.slice();
}
}
if (_local6) {
_local3.mainTarget = this.hq1;
_local3.desPoint = [48, 640];
} else {
_local3.mainTarget = this.hq2;
_local3.desPoint = [952, 618];
}
_local3.hp = 40 + (this.level * 10);
_local3.defenceMother = this;
this.enemyNum--;
this.childrens++;
this.wave++;
this.counter = 0;
}
if (this.wave == 20) {
this.wave = 0;
this.level++;
this.counter = this.counter - 200;
}
}
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
if ((this.hq1.hp <= 0) || (this.hq2.hp <= 0)) {
var _local7 = function () {
gameOver("missionFailed");
};
moveCamera([this.hq1, this.hq2], ["", _local7]);
this.removeMovieClip();
} else if (totalEnemy == 0) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission10Start() {
play_music("\u8FDB\u653B", true);
newSweeper(600, 1800);
game.tank._y = 2000;
game.tank._x = 200;
setTimer(600);
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq1 = newBuildingE1(480, 100);
gameUI.missionInfo.text = "Bases Left : 1";
gameUI.armorLv.text = "0/4";
ctr.hq1.dead = function () {
gameUI.missionInfo.text = "Bases Left : 2";
newExpl2(this._x, this._y, true);
removeFromArea(this, 2);
this.gotoAndStop(2);
delete this.hitAction;
missionController.hq7 = newBuildingE1(976, 1372);
missionController.hq8 = newBuildingE1(590, 939);
missionController.show7 = function () {
showTarget(missionController.hq7);
};
missionController.show8 = function () {
showTarget(missionController.hq8);
};
moveCamera([missionController.hq7, missionController.hq8], [missionController.show7, missionController.show8]);
game.area4.push(missionController.hq7);
game.area4.push(missionController.hq8);
missionController.hq7.dead = (missionController.hq8.dead = function () {
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
delete this.hitAction;
removeFromArea(this, 4);
if ((missionController.hq7.hp <= 0) && (missionController.hq8.hp <= 0)) {
missionController.Build();
}
});
};
ctr.Build = function () {
gameUI.missionInfo.text = "Bases Left : 5";
this.hq2 = newBuildingE1(1452, 1337);
this.hq3 = newBuildingE1(1458, 1464);
this.hq4 = newBuildingE1(1682, 1353);
this.hq5 = newBuildingE1(1893, 1349);
this.hq6 = newBuildingE1(1899, 1495);
this.hp = 5;
moveCamera([this.hq2, this.hq3, this.hq4, this.hq5, this.hq6], [this.show2, this.show3, this.show4, this.show5, this.show6]);
this.hq2.dead = (this.hq3.dead = (this.hq4.dead = (this.hq5.dead = (this.hq6.dead = function () {
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
delete this.hitAction;
missionController.hp--;
gameUI.missionInfo.text = "Bases Left : " + missionController.hp;
if (missionController.hp == 0) {
gameOver("stageClean");
}
}))));
};
game.currArea = 1;
game.area1 = [];
game.area2 = [ctr.hq1];
game.area3 = [];
game.area4 = [];
ctr.show1 = function () {
showTarget(ctr.hq1);
};
ctr.show2 = function () {
showTarget(ctr.hq2);
};
ctr.show3 = function () {
showTarget(ctr.hq3);
};
ctr.show4 = function () {
showTarget(ctr.hq4);
};
ctr.show5 = function () {
showTarget(ctr.hq5);
};
ctr.show6 = function () {
showTarget(ctr.hq6);
};
moveCamera([ctr.hq1], [ctr.show1]);
}
function mission11Start() {
play_music("\u9632\u5B88", true);
game.tank._x = 500;
game.tank._y = 730;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq1 = newHQ1(84, 508);
ctr.hq2 = newHQ1(976, 509);
ctr.hq1.hp = ctr.hq1.hp + 50;
ctr.hq1.totalHp = ctr.hq1.hp;
ctr.hq2.hp = ctr.hq2.hp + 50;
ctr.hq2.totalHp = ctr.hq2.hp;
ctr.startPoint = [[476, 40], [560, 40], [30, 1400], [520, 1500], [985, 1400]];
ctr.vmap1 = [[14, 10], [6, 14]];
ctr.vmap2 = [[18, 10], [26, 15]];
ctr.vmap3 = [[13, 41], [14, 21], [3, 19]];
ctr.vmap4 = [[15, 21], [4, 20]];
ctr.vmap5 = [[18, 41], [17, 22], [27, 21]];
ctr.counter = 0;
ctr.level = 1;
ctr.enemyNum = (totalEnemy = 150);
ctr.childrens = 0;
ctr.wave = 0;
ctr.show1 = function () {
showTargetP(ctr.hq1);
};
ctr.show2 = function () {
showTargetP(ctr.hq2);
};
moveCamera([ctr.hq1, ctr.hq2], [ctr.show1, ctr.show2]);
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
gameUI.armorLv.text = "0/4";
ctr.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((this.enemyNum > 0) and (this.childrens < 20)) {
if ((++this.counter) > (75 - (this.level * 2))) {
if (this.level > 5) {
this.level = 5;
}
if (((this.enemyNum > 50) && (random(8))) || ((this.enemyNum < 50) && (!random(9)))) {
if (this.hq1.hp <= 0) {
var _local3 = _root["newDefenceE" + this.level](this.startPoint[1][0] + random(10), this.startPoint[1][1] + random(10));
_local3.vmap = this.vmap2.slice();
} else if (this.hq2.hp <= 0) {
var _local3 = _root["newDefenceE" + this.level](this.startPoint[0][0] + random(10), this.startPoint[0][1] + random(10));
_local3.vmap = this.vmap1.slice();
var _local5 = true;
} else {
var _local4 = random(2);
var _local3 = _root["newDefenceE" + this.level](this.startPoint[_local4][0] + random(10), this.startPoint[_local4][1] + random(10));
if (_local4 == 0) {
_local3.vmap = this.vmap1.slice();
var _local5 = true;
} else {
_local3.vmap = this.vmap2.slice();
}
}
} else if (this.hq1.hp <= 0) {
var _local3 = _root["newDefenceE" + this.level](this.startPoint[4][0] + random(10), this.startPoint[4][1] + random(10));
_local3.vmap = this.vmap5.slice();
} else if (this.hq2.hp <= 0) {
var _local3 = _root["newDefenceE" + this.level](this.startPoint[2][0] + random(10), this.startPoint[2][1] + random(10));
_local3.vmap = this.vmap3.slice();
var _local5 = true;
} else {
var _local4 = random(3) + 2;
var _local3 = _root["newDefenceE" + this.level](this.startPoint[_local4][0] + random(10), this.startPoint[_local4][1] + random(10));
if (_local4 == 4) {
_local3.vmap = this.vmap5.slice();
} else if (_local4 == 2) {
_local3.vmap = this.vmap3.slice();
var _local5 = true;
} else if (_local4 == 3) {
_local3.vmap = this.vmap4.slice();
var _local5 = true;
}
}
if (_local5) {
_local3.mainTarget = this.hq1;
_local3.desPoint = [84, 508];
} else {
_local3.mainTarget = this.hq2;
_local3.desPoint = [976, 509];
}
if (this.wave == 20) {
this.wave = 0;
this.level++;
this.counter = this.counter - 200;
}
_local3.hp = 40 + (this.level * 10);
_local3.defenceMother = this;
this.enemyNum--;
this.childrens++;
this.wave++;
this.counter = 0;
}
}
gameUI.missionInfo.text = "Enemy Left: " + totalEnemy;
if ((this.hq1.hp <= 0) || (this.hq2.hp <= 0)) {
var _local6 = function () {
gameOver("missionFailed");
};
moveCamera([this.hq1, this.hq2], ["", _local6]);
this.removeMovieClip();
} else if (totalEnemy == 0) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission12Start() {
play_music("boss\u6218", true);
game.currArea = 1;
game.area1 = [];
game.area2 = [];
game.area3 = [];
game.tank._x = 384;
game.tank._y = 4530;
setTimer(600);
var _local3 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
gameUI.missionInfo.text = "Destroy The Enemy Headquarter!";
gameUI.armorLv.text = "0/4";
var _local2 = newBoss2(256, 0);
var tmp2 = {_x:_local2._x, _y:_local2._y + 100};
_local3.show1 = function () {
showTarget(tmp2);
m12active();
};
moveCamera([_local2], [_local3.show1]);
}
function m12active() {
missionController.counter = 0;
missionController.onEnterFrame = function () {
if ((++this.counter) > 400) {
this.onEnterFrame = function () {
if (game._y >= 0) {
game._y = 0;
game.enemy.boss2.active();
delete game.scrollScreen;
this.removeMovieClip();
}
};
}
};
}
function mission13Start() {
play_music("\u8FDB\u653B", true);
setTimer(70);
game.tank._x = 283;
game.tank._y = 1430;
gameUI.missionInfo.text = "Survive From The Air Attack";
var _local2 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
_local2.onEnterFrame = function () {
if (!gamePause) {
if ((timeManager.counter % 60) == 0) {
if (!random(4)) {
newEnemyHeli();
} else {
newEnemyFighter();
}
}
if ((timeManager.time == 1) && (timeManager.counter == (timeManager.interval - 1))) {
gameOver("stageClean");
gameUI.time1.gotoAndStop(1);
this.removeMovieClip();
}
}
};
}
function mission14Start() {
play_music("\u8FDB\u653B", true);
newSweeper(650, 1500);
game.tank._x = 70;
game.tank._y = 1450;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
setTimer(300);
gameUI.missionInfo.text = "Destroy The Enemy Lab!";
var temp = newBuildingE1(550, 650);
temp.hp = (temp.org_hp = 500);
var _local2 = function () {
showTarget(temp);
};
moveCamera([temp], [_local2]);
temp.dead = function () {
newExpl1(this._x, this._y, true);
gameOver("stageClean");
this.gotoAndStop(2);
delete this.hitAction;
};
game.currArea = 1;
game.area1 = [];
}
function mission15Start() {
play_music("\u626B\u96F7", true);
moveCamera([newSweeper(160, 1480)], [""]);
totalMines = 100;
setTimer(300);
game.tank._x = 860;
game.tank._y = 1400;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
gameUI.missionInfo.text = "Mines Left: " + (totalMines - 70);
var _local2 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
gameUI.missionInfo.text = "Mines Left: " + (totalMines - 70);
if (totalMines == 70) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission16Start() {
play_music("\u8FDB\u653B", true);
setTimer(400);
var ctr = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
ctr.hq1 = newBuildingE1(160, 80);
ctr.hq1.hp = (ctr.hq1.org_hp = 1500);
ctr.onEnterFrame = function () {
if (!gamePause) {
if ((timeManager.counter % 60) == 0) {
if (!random(6)) {
newEnemyHeli();
} else {
newEnemyFighter();
}
}
}
};
ctr.hq1.dead = function () {
newExpl2(this._x, this._y, true);
this.gotoAndStop(2);
gameOver("stageClean");
delete this.hitAction;
};
ctr.show1 = function () {
showTarget(ctr.hq1);
};
moveCamera([ctr.hq1], [ctr.show1]);
game.currArea = 1;
game.area1 = [];
game.area2 = [];
game.area3 = [];
}
function mission17Start() {
play_music("\u626B\u96F7", true);
moveCamera([newSweeper(960, 1400)], [""]);
totalMines = 100;
setTimer(200);
game.tank._x = 90;
game.tank._y = 1400;
game.tank.des = [-1, 0];
game.tank._rotation = 0;
gameUI.missionInfo.text = "Mines Left: " + (totalMines - 68);
var _local2 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
gameUI.missionInfo.text = "Mines Left: " + (totalMines - 68);
if (totalMines == 68) {
gameOver("stageClean");
this.removeMovieClip();
}
};
}
function mission18Start() {
play_music("boss\u6218", true);
game.tank._x = 256;
game.tank._y = 950;
game._x = 256 - game.tank._x;
game._y = 256 - game.tank._y;
setTimer(600);
var _local4 = this.createEmptyMovieClip("missionController", this.getNextHighestDepth());
gameUI.missionInfo.text = "Destroy The Super Tank! ";
_local4.onEnterFrame = function () {
if (game._y >= 0) {
game._y = 0;
var _local3 = newBoss1(256, -140);
changeColor(_local3.mc, color1);
temp2.hp = temp2.hp * 3;
temp2.totalHp = temp2.hp;
_local3.org_speed = 35;
_local3.die = function () {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
removeMinimapObj(this);
this.gotoAndStop("die");
delete this.onEnterFrame;
delete this.hitAction;
this.counter = 0;
this.onEnterFrame = function () {
if ((++this.counter) < 120) {
if ((this.counter % 5) == 0) {
newExpl1(this._x + ((random(this._width - 50) - (this._width / 2)) + 25), this._y + ((25 + random(this._height - 50)) - (this._height / 2)), true);
}
} else {
var _local3 = newBoss1(256, -140);
changeColor(_local3.mc, color2);
_local3.hp = _local3.hp * 6;
_local3.totalHp = _local3.hp;
_local3.org_speed = 40;
var _local4 = _root.createEmptyMovieClip("airAttack", _root.getNextHighestDepth());
_local4.onEnterFrame = function () {
if (!random(300)) {
if (!random(10)) {
newEnemyHeli();
} else {
newEnemyFighter();
}
}
};
this.counter = 0;
this.onEnterFrame = function () {
if (((++this.counter) % 3) == 0) {
this._alpha = 10;
} else if (((++this.counter) % 3) == 1) {
this._alpha = 100;
}
if (this.counter > 40) {
this.removeMovieClip();
}
};
}
};
};
delete game.scrollScreen;
this.removeMovieClip();
}
};
}
function newBuildingE1(xPos, yPos) {
var _local3 = game.getNextHighestDepth();
if (!random(2)) {
var _local2 = game.attachMovie("yanjiusuo2", "ehq" + _local3, _local3, {_x:xPos, _y:yPos});
} else {
var _local2 = game.attachMovie("yanjiusuo1", "ehq" + _local3, _local3, {_x:xPos, _y:yPos});
}
_local2.type = "enemy";
_local2.hp = (_local2.org_hp = 400);
_local2.r = 40;
_local2.resist = 1000;
_local2.hp_bar._alpha = 0;
game.inGame.push(_local2);
addMinimapObj(_local2, 3);
_local2.hitAction = function (dmg) {
this.hp_bar._alpha = 100;
this.hp_bar.counter = 0;
this.hp_bar.onEnterFrame = function () {
if ((++this.counter) > 40) {
this._alpha = this._alpha - 10;
if (this._alpha == 0) {
delete this.onEnterFrame;
}
}
};
if (!this.hitMc) {
if (dmg != undefined) {
this.hp = this.hp - dmg;
} else {
this.hp--;
}
this.hp_bar._xscale = Math.round((100 * this.hp) / this.org_hp);
if (this.hp <= 0) {
this.hp = 0;
this.hp_bar._xscale = 0;
this.dead();
} else {
shotShine(this, "white", 1);
this.createEmptyMovieClip("hitMc", this.getNextHighestDepth());
this.hitMc.counter = 0;
this.hitMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) > 4) {
this.removeMovieClip();
}
};
}
}
};
_local2.dead = function () {
this.gotoAndStop(2);
removeMinimapObj(this);
newExpl1(this._x, this._y, true);
delete this.hitAction;
};
return(_local2);
}
function newHQ1(xPos, yPos) {
var _local3 = game.getNextHighestDepth();
var _local2 = game.attachMovie("judian", "hq" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.type = "player";
_local2.hp = (_local2.totalHp = 250);
sethum(_local2.hp_bar, 100);
_local2.r = 40;
_local2.tempFrame = _local2._currentframe;
_local2.resist = 1000;
game.inGame.push(_local2);
addMinimapObj(_local2, 4);
_local2.hitAction = function (dmg) {
if (!this.hitMc) {
if (dmg != undefined) {
this.hp = this.hp - dmg;
} else {
this.hp--;
}
this.hp_bar._xscale = 100 * (this.hp / this.totalHp);
sethum(this.hp_bar, ((115 * Math.round(this.hp_bar._xscale)) / 100) - 15);
if (this.hp <= 0) {
this.hp_bar._xscale = 0;
this.dead();
} else {
shotShine(this, "white", 1);
this.createEmptyMovieClip("hitMc", this.getNextHighestDepth());
this.hitMc.counter = 0;
this.hitMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) > 4) {
this.removeMovieClip();
}
};
}
}
};
_local2.dead = function () {
this.gotoAndStop(2);
removeMinimapObj(this);
newExpl1(this._x, this._y, true);
delete this.hitAction;
};
return(_local2);
}
function newBuilding(what, xPos, yPos, areaNum) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie(what, "building" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = initBuilding;
_local2.hitAction = hitAction;
var _local4 = random(_local2._totalframes - 1) + 1;
_local2.gotoAndStop(_local4);
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
checkInStage(this);
});
addToArea(_local2, areaNum);
return(_local2);
}
function newBuildingS1(xPos, yPos, areaNum) {
var _local1 = newBuilding("tree", xPos, yPos, areaNum);
_local1.init("enemy", 100, 25, 1000, 9);
_local1.canNotTrack = true;
firstTimeInStage(_local1);
delete _local1.hitAction;
}
function newBuildingS2(xPos, yPos, areaNum) {
var _local1 = newBuilding("see_tower", xPos, yPos, areaNum);
_local1.init("enemy", 40, 40, 1000, 9);
firstTimeInStage(_local1);
_local1.die = die;
}
function newBuildingS3(xPos, yPos, areaNum) {
var _local3 = newBuilding("youguan", xPos, yPos, areaNum);
_local3.init("enemy", 50, 40, 1000, 9);
firstTimeInStage(_local3);
_local3.die = function () {
removeMinimapObj(this);
removeFromArea(this, this.areaNum);
newExpl1(this._x + random(50), this._y, true);
newExpl1(this._x + random(50), this._y + random(50), true);
newExpl1(this._x - random(50), this._y - random(50), true);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] != this) {
if (getDis(this._x, this._y, game.inGame[_local2]._x, game.inGame[_local2]._y) < 80) {
game.inGame[_local2].hitAction(40);
}
}
}
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
delete this.hitAction;
delete this.onEnterFrame;
this.removeMovieClip();
};
}
function newBuildingS4(xPos, yPos, areaNum) {
var _local1 = newBuilding("building", xPos, yPos, areaNum);
_local1.init("enemy", 100, 50, 1000, 9);
firstTimeInStage(_local1);
_local1.die = die;
}
function newBuildingS5(xPos, yPos, areaNum) {
var _local1 = newBuilding("house", xPos, yPos, areaNum);
_local1.init("enemy", 100, 30, 1000, 9);
firstTimeInStage(_local1);
_local1.die = die;
}
function newBuildingS6(xPos, yPos, areaNum) {
var _local1 = newBuilding("house", xPos, yPos, areaNum);
_local1.init("enemy", 100, 30, 1000, 9);
firstTimeInStage(_local1);
_local1.die = die;
}
function init(type, hp, speed, sR, sT, vol) {
this._rotation = 90;
this.type = type;
this.stop();
this.hp = hp;
this.finded = false;
this.vmap = [];
this.cp = 0;
this.counter = 0;
this.moveDir = 10;
this.xSpeed = 0;
this.ySpeed = 0;
this.maxSpeed = speed;
this.blockDir = 0;
this.blocked = 0;
this.blockCounter = 0;
this.blockCounter1 = 0;
this.tx = 0;
this.ty = 0;
this.r = sR;
this.resist = sT;
this.go = false;
this.tempFrame = 1;
}
function initBuilding(type, hp, sR, sT, vol) {
this.type = type;
this.stop();
this.hp = hp;
this.counter = 0;
this.xSpeed = 0;
this.ySpeed = 0;
this.maxSpeed = speed;
this.tx = 0;
this.ty = 0;
this.r = sR;
this.resist = sT;
this.go = false;
this.tempFrame = this._currentframe;
}
function hitAction(dmg, type) {
shotShine2(this, "white", 4);
if (this.totalHp == undefined) {
this.totalHp = this.hp;
}
if (dmg != undefined) {
this.hp = this.hp - dmg;
} else {
this.hp--;
}
if (this.hp <= 0) {
this.die(type);
}
if (this.hp_bar != undefined) {
this.hp_bar._alpha = 100;
this.hp_bar.counter = 0;
this.hp_bar.onEnterFrame = function () {
if ((++this.counter) > 40) {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
}
};
this.hp_bar._xscale = 100 * (this.hp / this.totalHp);
}
}
function die(type) {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
totalEnemy--;
removeMinimapObj(this);
removeFromArea(this, this.areaNum);
newExpl1(this._x, this._y, 1);
delete this.onEnterFrame;
this.counter = 0;
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
this.removeMovieClip();
}
function die2(type) {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
totalEnemy--;
if (this.defenceMother != undefined) {
this.defenceMother.childrens--;
}
removeMinimapObj(this);
removeFromArea(this, this.areaNum);
if (this.bigExpl) {
newExpl2(this._x, this._y, 1);
} else {
newExpl1(this._x, this._y, 1);
}
delete this.onEnterFrame;
this.counter = 0;
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
this.counter = 0;
changeColor(this, Dark);
this.onEnterFrame = function () {
if ((++this.counter) > 40) {
if (this.counter > 80) {
this._alpha = this._alpha - 10;
if (this._alpha < 0) {
this.removeMovieClip();
}
} else if ((this.counter % 4) == 0) {
this._alpha = 50;
} else if ((this.counter % 4) == 1) {
this._alpha = 100;
}
}
};
}
function gotoNextPoint() {
if (this.turnR == undefined) {
this.turnR = 5;
}
this.desDir = getRotation(this._x, this._y, this.vmap[0][0] * 32, this.vmap[0][1] * 32);
if (Math.abs(this.desDir - this._rotation) < 3) {
this.go = true;
} else if ((Math.abs(this.desDir) > 178) && (Math.abs(this._rotation) > 178)) {
this.go = true;
} else {
this.go = false;
this.dizuo.mc.play();
var _local4 = this.desDir;
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > this.turnR) ? (this.turnR) : (Math.round(_local3)));
this._rotation = this._rotation + (_local6 * _local3);
}
}
function blockAction1() {
if (this.blocked > 25) {
if ((++this.blockCounter) < 20) {
if (this.blockCounter == 1) {
if (!random(2)) {
this.blockDir = 1;
} else {
this.blockDir = -1;
}
}
this._rotation = this._rotation + (this.blockDir * 10);
if (this._rotation > 180) {
this._rotation = this._rotation - 360;
} else if (this._rotation < -180) {
this._rotation = this._rotation + 360;
}
} else {
this.blockCounter = 0;
this.blocked = 0;
}
}
}
function moveAction() {
if (this.go) {
this.gotoAndStop("move");
this.dizuo.mc.play();
this.xSpeed = this.xSpeed + (((this.maxSpeed * Math.cos(this._rotation * 0.0174)) - this.xSpeed) * 0.4);
this.ySpeed = this.ySpeed + (((this.maxSpeed * Math.sin(this._rotation * 0.0174)) - this.ySpeed) * 0.4);
} else {
this.gotoAndStop("stand");
this.dizuo.mc.stop();
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.xSpeed = this.xSpeed * 0.6;
this.ySpeed = this.ySpeed * 0.6;
this.blockAction();
this.range();
}
function chaseAI1() {
this.target = game.tank;
this.desPoint = setPoint(this.target, 100);
this.turnTo = turnToSetPoint;
this.range = range1;
this.blockAction = blockAction1;
this.moveAction = moveAction;
this.AI = function () {
var _local3 = getDis(this.target._x, this.target._y, this.desPoint[0], this.desPoint[1]);
var _local2 = getDis(this.target._x, this.target._y, this._x, this._y);
if (_local3 > 150) {
if (this.mainTarget != undefined) {
this.target = this.mainTarget;
} else {
this.target = game.tank;
}
this.desPoint = setPoint(this.target, 100);
}
if (_local2 > 250) {
this.go = true;
} else if (_local2 < 150) {
this.go = false;
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 10);
} else {
this.aim(game.tank._x, game.tank._y, 10);
}
if (!random(150 - (stage * 2))) {
this.attack();
}
this.turnTo(5);
this.moveAction();
};
}
function normalAI() {
this.target = game.tank;
this.desPoint = setPoint(this.target, 100);
this.desPoint = [this._x, this._y];
this.birthPt = [this._x, this._y];
this.turnTo = turnToSetPoint;
this.range = range1;
this.moveAction = moveAction;
this.go = false;
this.patrol = function () {
var _local3 = getDis(this._x, this._y, this.birthPt[0], this.birthPt[1]);
var _local2 = getDis(this.target._x, this.target._y, this._x, this._y);
if (_local3 > 300) {
this.go = true;
this.desPoint = this.birthPt;
this.AI = this.goBack;
return(undefined);
}
if (_local2 < 400) {
this.go = true;
this.desPoint = setPoint(this.target, 100);
this.AI = this.goAttack;
return(undefined);
}
this.go = false;
this.moveAction();
};
this.goAttack = function () {
var _local3 = getDis(this._x, this._y, this.birthPt[0], this.birthPt[1]);
var _local2 = getDis(this.target._x, this.target._y, this._x, this._y);
if (_local3 > 300) {
this.go = true;
this.desPoint = this.birthPt;
this.AI = this.goBack;
return(undefined);
}
if (_local2 > 200) {
this.desPoint = [this.target._x, this.target._y];
this.go = true;
} else if (_local2 < 100) {
this.go = false;
}
this.turnTo(5 * this.maxSpeed);
this.moveAction();
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 8);
} else {
this.aim(game.tank._x, game.tank._y, 8);
}
if (!random(this.atk - (stage * 2))) {
this.attack();
}
};
this.goBack = function () {
this.turnTo(5 * this.maxSpeed);
this.moveAction();
var _local2 = getDis(this._x, this._y, this.birthPt[0], this.birthPt[1]);
if (_local2 <= 50) {
this.go = false;
this.AI = this.patrol;
return(undefined);
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 8);
} else {
this.aim(game.tank._x, game.tank._y, 8);
}
if (!random(this.atk - (stage * 2))) {
this.attack();
}
};
this.AI = this.patrol;
}
function stupidAI() {
this.go = false;
this.resist = 500;
this._rotation = random(360) - 180;
this.moveAction = moveAction;
this.range = range1;
this.AI = function () {
this.moveAction();
};
}
function notThatStupidAI() {
this.go = false;
this.resist = 1000;
this._rotation = random(360) - 180;
this.moveAction = moveAction;
this.range = range1;
this.AI = function () {
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 8);
} else {
this.aim(game.tank._x, game.tank._y, 8);
}
if (!random(150 - (stage * 2))) {
this.attack();
}
this.moveAction();
};
}
function followPathAI() {
this.moveAction = moveAction;
this.range = range1;
this.checkStart = function () {
if (this.vmap.length > 0) {
this.desPoint = [this.vmap[this.vmap.length - 1][0], this.vmap[this.vmap.length - 1][0]];
this.go = true;
this.finded = true;
return(true);
}
return(false);
};
this.AI = function () {
checkAndGotoPath(this);
if (this.vmap.length == 0) {
this.AI = this.moveAction;
}
this.moveAction();
};
}
function aimTarget(xPos, yPos, rate) {
var _local4 = getRotation(this._x, this._y, xPos, yPos);
var _local2 = this.head._rotation + this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > rate) ? (rate) : (_local3));
this.head._rotation = this.head._rotation + (_local6 * _local3);
}
function aimTarget2(xPos, yPos, rate, who, parent) {
var _local6 = getPoint(who);
var _local4 = getRotation(_local6.x, _local6.y, xPos + game._x, yPos + game._y);
var _local1 = who._rotation + parent._rotation;
_local1 = ((_local1 > 180) ? (_local1 - 360) : (((_local1 <= -180) ? (_local1 + 360) : (_local1))));
var _local7 = getRotationDir(_local4, _local1);
var _local5 = getDegree1(_local4, _local1);
var _local2 = Math.abs(_local5) * 0.5;
_local2 = ((_local2 > rate) ? (rate) : (_local2));
who._rotation = who._rotation + (_local7 * _local2);
if (Math.abs(_local5) < 5) {
who.ready = true;
} else {
who.ready = false;
}
}
function getFirePosition(fireRota, ax, ay, dx) {
ny = ay + (Math.cos(fireRota * 0.0174) * dx);
nx = ax - (Math.sin(fireRota * 0.0174) * dx);
return([nx, ny]);
}
function getPoint(point) {
var _local1 = {x:0, y:0};
point.localToGlobal(_local1);
return(_local1);
}
function range1() {
var _local2 = getMapArrType(this._x + 15, this._y);
while ((_local2 == 1) || (_local2 == 2)) {
this._x--;
_local2 = getMapArrType(this._x + 15, this._y);
}
_local2 = getMapArrType(this._x - 15, this._y);
while ((_local2 == 1) || (_local2 == 2)) {
this._x++;
_local2 = getMapArrType(this._x - 15, this._y);
}
_local2 = getMapArrType(this._x, this._y + 15);
while ((_local2 == 1) || (_local2 == 2)) {
this._y--;
_local2 = getMapArrType(this._x, this._y + 15);
}
_local2 = getMapArrType(this._x, this._y - 15);
while ((_local2 == 1) || (_local2 == 2)) {
this._y++;
_local2 = getMapArrType(this._x, this._y - 15);
}
if (this._x < 20) {
this._x = 20;
} else if (this._x > ((tileWidth * tileNumX) - 20)) {
this._x = (tileWidth * tileNumX) - 20;
}
if (this._y < 20) {
this._y = 20;
} else if (this._y > ((tileHeight * tileNumY) - 20)) {
this._y = (tileHeight * tileNumY) - 20;
}
}
function newEnemy1111(xPos, yPos) {
var _local7 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tank1", "enemy" + _local7, _local7, {_x:xPos, _y:yPos});
_local2.type = "enemy";
_local2.stop();
_local2.hp = 100;
_local2.finded = false;
_local2.vmap = [];
_local2.cp = 0;
_local2.counter = 0;
_local2.moveDir = 10;
_local2.xSpeed = 0;
_local2.ySpeed = 0;
_local2.maxSpeed = 3;
_local2.tx = 0;
_local2.ty = 0;
_local2.r = 18;
_local2.resist = 5;
_local2.go = false;
_local2.tempFrame = 1;
_local2.currPosArr = getMapArrNum(this._x, this._y);
_local2.prevPosArr = _local2.currPosArr;
_local2.posArrIndex = addPosToMapArr(_local2, _local2.currPosArr);
_local2.vol = 9;
_local2.volArr = [];
setMapArrVol(_local2, _local2.currPosArr, _local2.vol);
_local2.hitAction = function () {
shotShine(this, "white", 1);
if ((--this.hp) <= 0) {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
this.dead();
}
};
_local2.dead = function () {
newExpl1(this._x, this._y, 1);
if (random(2)) {
this.gotoAndStop("dead");
}
changeColor(this, Dark);
delete this.onEnterFrame;
this.counter = 0;
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
this.removeMovieClip();
};
_local2.aim = aimTarget;
_local2.gotoNextPoint = function () {
this.desDir = getRotation(this._x, this._y, this.vmap[0][0] * 32, this.vmap[0][1] * 32);
if (this.desDir != this._rotation) {
var _local4 = this.desDir;
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > 10) ? 10 : (_local3));
this._rotation = this._rotation + (_local6 * _local3);
}
};
_local2.seperate = sprate;
_local2.moveBack = function () {
this.counter = 40 + random(20);
if (random(2)) {
this.go = false;
}
if (random(2)) {
this.backDir = 1;
} else {
this.backDir = -1;
}
this.onEnterFrame = function () {
if (!random(200)) {
this.attack1();
}
this.aim(game.tank._x, game.tank._y, 4);
if ((--this.counter) > 0) {
if (this.counter < 30) {
if (this.go) {
this._x = this._x - Math.round((0.5 * this.maxSpeed) * Math.cos(this._rotation * 0.0174));
this._y = this._y - Math.round((0.5 * this.maxSpeed) * Math.sin(this._rotation * 0.0174));
}
}
this._rotation = this._rotation + this.backDir;
} else if (this.counter < (-random(100))) {
this.go = true;
this.action();
}
this.range();
this.currPosArr = getMapArrNum(this._x, this._y);
if ((this.prevPosArr[0] != this.currPosArr[0]) || (this.prevPosArr[1] != this.currPosArr[1])) {
delPosAtMapArr(this.prevPosArr, this);
delMapArrVol(this);
this.prevPosArr = this.currPosArr;
this.posArrIndex = addPosToMapArr(this, this.currPosArr);
setMapArrVol(this, this.currPosArr, this.vol);
}
};
};
_local2.move1 = function () {
if (this.go) {
this.xSpeed = this.xSpeed + (((this.maxSpeed * Math.cos(this._rotation * 0.0174)) - this.xSpeed) * 0.4);
this.ySpeed = this.ySpeed + (((this.maxSpeed * Math.sin(this._rotation * 0.0174)) - this.ySpeed) * 0.4);
}
this._x = this._x + Math.round(this.xSpeed);
this._y = this._y + Math.round(this.ySpeed);
this.xSpeed = this.xSpeed * 0.6;
this.ySpeed = this.ySpeed * 0.6;
};
_local2.range = range1;
_local2.attack1 = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 1, 3, this.head._rotation + this._rotation);
};
_local2.enterFrameFunction = _local2.action;
_local2.action = function () {
this.onEnterFrame = function () {
checkInStage(this);
this.range();
this.aim(game.tank._x, game.tank._y, 2);
if (this.finded) {
if (!random(100)) {
this.attack1();
}
checkAndGotoPath(this);
this.move1();
} else if ((++this.counter) > 100) {
this.counter = 0;
startPathing(this, game.tank._x, game.tank._y);
}
this.currPosArr = getMapArrNum(this._x, this._y);
if ((this.prevPosArr[0] != this.currPosArr[0]) || (this.prevPosArr[1] != this.currPosArr[1])) {
delPosAtMapArr(this.prevPosArr, this.posArrIndex);
delMapArrVol(this);
this.prevPosArr = this.currPosArr;
this.posArrIndex = addPosToMapArr(this, this.currPosArr);
setMapArrVol(this, this.currPosArr, this.vol);
}
};
};
_local2.enterFrameFunction = _local2.action;
_local2.onEnterFrame = function () {
checkInStage(this);
};
}
function newEnemy2(xPos, yPos, type, typeAI, areaNum) {
var _local3 = game.enemy.getNextHighestDepth();
if (type == undefined) {
type = 2;
}
switch (type) {
case 1 :
var _local2 = game.enemy.attachMovie("tank1", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 50, 3, 18, 5, 9);
_local2.atk = 50;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 1, 12, this.head._rotation + this._rotation);
};
break;
case 2 :
_local2 = game.enemy.attachMovie("tank2", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 80, 2, 20, 5, 9);
_local2.atk = 50;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 3, 15, this.head._rotation + this._rotation, "big1");
};
break;
case 3 :
_local2 = game.enemy.attachMovie("tank3", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 85, 3, 20, 5, 9);
_local2.atk = 50;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 3);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -3);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 1, 10, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 1, 10, this.head._rotation + this._rotation);
};
break;
case 4 :
_local2 = game.enemy.attachMovie("tank6", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 90, 2, 20, 5, 9);
_local2.atk = 80;
_local2.bigExpl = true;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 2, 10, this.head._rotation + this._rotation, "big1");
};
break;
case 5 :
_local2 = game.enemy.attachMovie("tank7", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 100, 2, 20, 5, 9);
_local2.atk = 100;
_local2.bigExpl = true;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 3);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -3);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 2, 12, this.head._rotation + this._rotation, "big1");
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 2, 12, this.head._rotation + this._rotation, "big1");
};
break;
case 6 :
_local2 = game.enemy.attachMovie("tank8", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 120, 2, 20, 5, 9);
_local2.atk = 150;
_local2.bigExpl = true;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
var _local6 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 5);
var _local5 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 3);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -3);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -5);
newBulletE1(getMapArrType(this._x, this._y), _local6[0] - game._x, _local6[1] - game._y, 2, 15, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local5[0] - game._x, _local5[1] - game._y, 2, 15, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 2, 15, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 2, 15, this.head._rotation + this._rotation);
};
break;
case 7 :
_local2 = game.enemy.attachMovie("jeep", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 30, 6, 20, 5, 9);
_local2.atk = 170;
_local2.attack = function () {
if (!this.shootMc) {
this.createEmptyMovieClip("shootMc", this.getNextHighestDepth());
this.shootMc.counter = 0;
this.shootMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) < 10) {
if ((this.counter % 3) == 1) {
this._parent.head.mc.play();
var _local2 = getGlobalPoint(this._parent.head.mc);
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local2[0] - game._x, _local2[1] - game._y, 1, 18, this._parent.head._rotation + this._parent._rotation, "small1");
}
} else {
this.removeMovieClip();
}
};
}
};
break;
case 8 :
_local2 = game.enemy.attachMovie("daodanche2", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 50, 1, 20, 5, 9);
_local2.atk = 170;
_local2.attack = function () {
this.head.mc.play();
var _local2 = getGlobalPoint(this.head.mc);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 10);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -10);
newBulletE3(getMapArrType(this._x, this._y), _local2[0] - game._x, _local2[1] - game._y, 5 + random(2), 8 + random(2), this.head._rotation + this._rotation, "xiaodaodan2", "daodan_fire2");
newBulletE3(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 5 + random(2), 8 + random(2), (this.head._rotation + this._rotation) + 3, "xiaodaodan2", "daodan_fire2");
newBulletE3(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 5 + random(2), 8 + random(2), (this.head._rotation + this._rotation) - 3, "xiaodaodan2", "daodan_fire2");
};
break;
default :
return(undefined);
}
_local2.aim = aimTarget;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
if (typeAI == undefined) {
typeAI = 4;
}
switch (typeAI) {
case 1 :
_local2.setAI = stupidAI;
break;
case 2 :
_local2.setAI = normalAI;
break;
case 3 :
_local2.setAI = chaseAI1;
break;
case 4 :
_local2.setAI = notThatStupidAI;
}
_local2.setAI();
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
checkInStage(this);
this.AI();
});
firstTimeInStage(_local2);
addToArea(_local2, areaNum);
return(_local2);
}
function die1(type) {
newExpl1(this._x, this._y, 1);
delete this.onEnterFrame;
this.counter = 0;
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
this.removeMovieClip();
}
function newDefenceE1(xPos, yPos) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tank1", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2._xscale = (_local2._yscale = 0);
_local2.init = init;
_local2.aim = aimTarget;
_local2.followPathAI = followPathAI;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.mainTarget = undefined;
_local2.followPathAI();
_local2.init("enemy", 50, 2, 18, 5, 9);
game.inGame.push(_local2);
_local2.attack = function () {
if (this.head.mc == undefined) {
shootDir = getRotation(this._x, this._y, this.mainTarget._x, this.mainTarget._y);
newBulletE1(getMapArrType(this._x, this._y), (this._x + random(10)) - 5, (this._y + random(10)) - 5, 1, 5, shootDir);
} else {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 1, 5, this.head._rotation + this._rotation);
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._xscale == 100) {
this.onEnterFrame = this.gof;
}
};
_local2.gof = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (this.checkStart()) {
this.aim(game.tank._x, game.tank._y, 10);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (!random(140)) {
this.attack();
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 10);
} else {
this.aim(game.tank._x, game.tank._y, 8);
}
this.AI();
};
}
};
firstTimeInStage3(_local2);
return(_local2);
}
function newDefenceE2(xPos, yPos) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tank2", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2._xscale = (_local2._yscale = 0);
_local2.init = init;
_local2.aim = aimTarget;
_local2.followPathAI = followPathAI;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.mainTarget = undefined;
_local2.followPathAI();
_local2.init("enemy", 50, 3, 20, 5, 9);
game.inGame.push(_local2);
_local2.attack = function () {
if (this.head.mc == undefined) {
shootDir = getRotation(this._x, this._y, this.mainTarget._x, this.mainTarget._y);
newBulletE1(getMapArrType(this._x, this._y), (this._x + random(10)) - 5, (this._y + random(10)) - 5, 1, 5, shootDir);
} else {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 1, 5, this.head._rotation + this._rotation);
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._xscale == 100) {
this.onEnterFrame = this.gof;
}
};
_local2.gof = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (this.checkStart()) {
this.aim(game.tank._x, game.tank._y, 10);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (!random(120)) {
this.attack();
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 10);
} else {
this.aim(game.tank._x, game.tank._y, 10);
}
this.AI();
};
}
};
firstTimeInStage3(_local2);
return(_local2);
}
function newDefenceE3(xPos, yPos) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tank3", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2._xscale = (_local2._yscale = 0);
_local2.init = init;
_local2.aim = aimTarget;
_local2.followPathAI = followPathAI;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.mainTarget = undefined;
_local2.followPathAI();
_local2.init("enemy", 50, 2, 20, 5, 9);
game.inGame.push(_local2);
_local2.attack = function () {
if (this.head.mc == undefined) {
shootDir = getRotation(this._x, this._y, this.mainTarget._x, this.mainTarget._y);
newBulletE1(getMapArrType(this._x, this._y), (this._x + random(10)) - 5, (this._y + random(10)) - 5, 2, 8, shootDir);
newBulletE1(getMapArrType(this._x, this._y), (this._x + random(10)) - 5, (this._y + random(10)) - 5, 2, 8, shootDir);
} else {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 3);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -3);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 2, 8, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 2, 8, this.head._rotation + this._rotation);
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._xscale == 100) {
this.onEnterFrame = this.gof;
}
};
_local2.gof = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (this.checkStart()) {
this.aim(game.tank._x, game.tank._y, 10);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (!random(120)) {
this.attack();
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 10);
} else {
this.aim(game.tank._x, game.tank._y, 10);
}
this.AI();
};
}
};
firstTimeInStage3(_local2);
return(_local2);
}
function newDefenceE4(xPos, yPos) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tank6", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2._xscale = (_local2._yscale = 0);
_local2.init = init;
_local2.aim = aimTarget;
_local2.followPathAI = followPathAI;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.mainTarget = undefined;
_local2.followPathAI();
_local2.init("enemy", 50, 2, 20, 6, 9);
game.inGame.push(_local2);
_local2.attack = function () {
if (this.head.mc == undefined) {
shootDir = getRotation(this._x, this._y, this.mainTarget._x, this.mainTarget._y);
newBulletE1(getMapArrType(this._x, this._y), (this._x + random(10)) - 5, (this._y + random(10)) - 5, 3, 6, shootDir, "big1");
} else {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 3, 6, this.head._rotation + this._rotation, "big1");
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._xscale == 100) {
this.onEnterFrame = this.gof;
}
};
_local2.gof = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (this.checkStart()) {
this.aim(game.tank._x, game.tank._y, 10);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (!random(110)) {
this.attack();
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 10);
} else {
this.aim(game.tank._x, game.tank._y, 10);
}
this.AI();
};
}
};
firstTimeInStage3(_local2);
return(_local2);
}
function newDefenceE5(xPos, yPos) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tank7", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2._xscale = (_local2._yscale = 0);
_local2.init = init;
_local2.aim = aimTarget;
_local2.followPathAI = followPathAI;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.mainTarget = undefined;
_local2.followPathAI();
_local2.init("enemy", 50, 2, 20, 5, 9);
game.inGame.push(_local2);
_local2.attack = function () {
if (this.head.mc == undefined) {
shootDir = getRotation(this._x, this._y, this.mainTarget._x, this.mainTarget._y);
newBulletE1(getMapArrType(this._x, this._y), (this._x + random(10)) - 5, (this._y + random(10)) - 5, 3, 8, shootDir, "big1");
} else {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 3);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -3);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 3, 8, this.head._rotation + this._rotation, "big1");
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 3, 8, this.head._rotation + this._rotation, "big1");
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._xscale == 100) {
this.onEnterFrame = this.gof;
}
};
_local2.gof = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (this.checkStart()) {
this.aim(game.tank._x, game.tank._y, 10);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (!random(120)) {
this.attack();
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 10);
} else {
this.aim(game.tank._x, game.tank._y, 10);
}
this.AI();
};
}
};
firstTimeInStage3(_local2);
return(_local2);
}
function newDefenceE6(xPos, yPos) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tank8", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2._xscale = (_local2._yscale = 0);
_local2.init = init;
_local2.aim = aimTarget;
_local2.followPathAI = followPathAI;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.mainTarget = undefined;
_local2.followPathAI();
_local2.init("enemy", 40, 3, 20, 5, 9);
game.inGame.push(_local2);
_local2.attack = function () {
if (this.head.mc == undefined) {
shootDir = getRotation(this._x, this._y, this.mainTarget._x, this.mainTarget._y);
newBulletE1(getMapArrType(this._x, this._y), (this._x + random(10)) - 5, (this._y + random(10)) - 5, 3, 4, shootDir, "big1");
} else {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
var _local6 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 5);
var _local5 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 3);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -3);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -5);
newBulletE1(getMapArrType(this._x, this._y), _local6[0] - game._x, _local6[1] - game._y, 3, 8, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local5[0] - game._x, _local5[1] - game._y, 3, 8, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 3, 8, this.head._rotation + this._rotation);
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 3, 8, this.head._rotation + this._rotation);
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
if (this._xscale == 100) {
this.onEnterFrame = this.gof;
}
};
_local2.gof = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (this.checkStart()) {
this.aim(game.tank._x, game.tank._y, 10);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if (!random(120)) {
this.attack();
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 10);
} else {
this.aim(game.tank._x, game.tank._y, 10);
}
this.AI();
};
}
};
firstTimeInStage3(_local2);
return(_local2);
}
function newEnemy3(xPos, yPos, type, typeAI, areaNum) {
var _local3 = game.enemy.getNextHighestDepth();
if (type == undefined) {
type = 1;
}
switch (type) {
case 1 :
var _local2 = game.enemy.attachMovie("tank4", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 150, 1, 36, 10, 9);
_local2.atk = 120;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 5, 8, this.head._rotation + this._rotation, "boss_paodan", true);
};
break;
case 2 :
_local2 = game.enemy.attachMovie("tank5", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 200, 1, 36, 10, 9);
_local2.atk = 120;
_local2.attack = function () {
var _local2 = getGlobalPoint(this.head.mc);
_local2[0] = _local2[0] + this.xSpeed;
_local2[1] = _local2[1] + this.ySpeed;
this.head.mc.gotoAndPlay(2);
var _local4 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], 8);
var _local3 = getFirePosition(this.head._rotation + this._rotation, _local2[0], _local2[1], -8);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 2, 5, this.head._rotation + this._rotation, "boss_paodan", true);
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 2, 5, this.head._rotation + this._rotation, "boss_paodan", true);
};
break;
case 3 :
_local2 = game.enemy.attachMovie("jiqiren1", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 150, 2, 20, 5, 9);
_local2.atk = 160;
_local2.attack = function () {
if (!this.shootMc) {
this.createEmptyMovieClip("shootMc", this.getNextHighestDepth());
this.shootMc.counter = 0;
this.shootMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) < 5) {
if ((this.counter % 2) == 1) {
this._parent.head.mc.play();
var _local2 = getGlobalPoint(this._parent.head.mc);
_local2[0] = _local2[0] + this._parent.xSpeed;
_local2[1] = _local2[1] + this._parent.ySpeed;
this._parent.head.mc.gotoAndPlay(2);
var _local4 = getFirePosition(this._parent.head._rotation + this._parent._rotation, _local2[0], _local2[1], 24);
var _local3 = getFirePosition(this._parent.head._rotation + this._parent._rotation, _local2[0], _local2[1], -24);
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local4[0] - game._x, _local4[1] - game._y, 3, 15 + random(3), ((this._parent.head._rotation + this._parent._rotation) + random(6)) - 10, "big1");
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local3[0] - game._x, _local3[1] - game._y, 3, 15 + random(3), ((this._parent.head._rotation + this._parent._rotation) + random(6)) - 10, "big1");
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local4[0] - game._x, _local4[1] - game._y, 1, 15 + random(3), ((this._parent.head._rotation + this._parent._rotation) + random(6)) - 10);
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local3[0] - game._x, _local3[1] - game._y, 1, 15 + random(3), ((this._parent.head._rotation + this._parent._rotation) + random(6)) - 10);
}
} else {
this._parent.head.mc.gotoAndStop(1);
this.removeMovieClip();
}
};
}
};
break;
default :
return(undefined);
}
_local2.aim = aimTarget;
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.bigExpl = true;
_local2.die = die2;
if (typeAI == undefined) {
typeAI = 4;
}
switch (typeAI) {
case 1 :
_local2.setAI = stupidAI;
break;
case 2 :
_local2.setAI = normalAI;
break;
case 3 :
_local2.setAI = chaseAI1;
break;
case 4 :
_local2.setAI = notThatStupidAI;
}
_local2.setAI();
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
checkInStage(this);
this.AI();
});
firstTimeInStage(_local2);
addToArea(_local2, areaNum);
_local2.dizuo.mc.stop();
return(_local2);
}
function newEnemyDE1(what, xPos, yPos, areaNum) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie(what, "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = initBuilding;
_local2.attackR = 350;
_local2.attackRate = 50;
_local2.atkR = 10;
_local2.aim = aimTarget;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.init("enemy", 30, 18, 1000, 9);
_local2._rotation = 0;
_local2.attack = function () {
};
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < this.attackR) {
this.aim(game.tank._x, game.tank._y, 3);
if (!random(this.attackRate)) {
this.attack();
}
}
checkInStage(this);
});
firstTimeInStage(_local2);
addToArea(_local2, areaNum);
return(_local2);
}
function newEnemyTurrent1(xPos, yPos, areaNum) {
var _local5 = newEnemyDE1("paota1", xPos, yPos, areaNum);
_local5.attack = function () {
if (getDegree1(this.head._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
this.head.mc.play();
var _local2 = getGlobalPoint(this.head.mc);
var _local4 = getFirePosition(this.head._rotation, _local2[0], _local2[1], 5);
var _local3 = getFirePosition(this.head._rotation, _local2[0], _local2[1], -5);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 1, 18, this.head._rotation, "small1");
newBulletE1(getMapArrType(this._x, this._y), _local2[0] - game._x, _local2[1] - game._y, 1, 18, this.head._rotation, "small1");
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 1, 18, this.head._rotation, "small1");
}
};
}
function newEnemyTurrent2(xPos, yPos, areaNum) {
var _local2 = newEnemyDE1("paota2", xPos, yPos, areaNum);
_local2.attackRate = 50;
_local2.attack = function () {
if (getDegree1(this.head._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
this.head.mc.play();
var _local2 = getGlobalPoint(this.head.mc);
newBulletE1(getMapArrType(this._x, this._y), _local2[0] - game._x, _local2[1] - game._y, 5, 12, this.head._rotation, "big1");
}
};
}
function newEnemyTurrent3(xPos, yPos, areaNum) {
var _local3 = newEnemyDE1("paota3", xPos, yPos, areaNum);
_local3.attackRate = 6230;
_local3.attack = function () {
if (getDegree1(this.head._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
this.head.mc.play();
var _local2 = getGlobalPoint(this.head.mc);
var _local4 = getFirePosition(this.head._rotation, _local2[0], _local2[1], 15);
var _local3 = getFirePosition(this.head._rotation, _local2[0], _local2[1], -15);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 5, 12, this.head._rotation, "big1");
newBulletE1(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 5, 12, this.head._rotation, "big1");
}
};
}
function newEnemyTurrent4(xPos, yPos, areaNum) {
var _local3 = newEnemyDE1("paota5", xPos, yPos, areaNum);
_local3.attackRate = 100;
_local3.attack = function () {
if (getDegree1(this.head._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
this.head.mc.play();
var _local2 = getGlobalPoint(this.head.mc);
var _local4 = getFirePosition(this.head._rotation, _local2[0], _local2[1], 10);
var _local3 = getFirePosition(this.head._rotation, _local2[0], _local2[1], -10);
newBulletE3(getMapArrType(this._x, this._y), _local2[0] - game._x, _local2[1] - game._y, 5, 8, this.head._rotation, "xiaodaodan2", "daodan_fire2");
newBulletE3(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 5, 8, this.head._rotation + 5, "xiaodaodan2", "daodan_fire2");
newBulletE3(getMapArrType(this._x, this._y), _local3[0] - game._x, _local3[1] - game._y, 5, 8, this.head._rotation - 5, "xiaodaodan2", "daodan_fire2");
}
};
}
function newEnemyTurrent5(xPos, yPos, dir, dis, areaNum) {
var _local7 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("paota4", "enemy" + _local7, _local7);
_local7 = game.enemy.getNextHighestDepth();
var _local3 = game.enemy.attachMovie("paota4", "enemy" + _local7, _local7);
_local2._x = xPos;
_local2._y = yPos;
_local3._x = xPos + (Math.cos(dir * 0.0174) * dis);
_local3._y = yPos + (Math.sin(dir * 0.0174) * dis);
_local2.init = initBuilding;
_local3.init = initBuilding;
_local2.init("enemy", 200, 15, 1000, 9);
_local3.init("enemy", 200, 15, 1000, 9);
_local2._rotation = dir;
_local3._rotation = dir + 180;
_local2.noScore = (_local3.noScore = true);
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
checkInStage(this);
});
_local3.onEnterFrame = (_local3.enterFrameFunction = function () {
checkInStage(this);
});
var _local4 = getGlobalPoint(_local2.mc);
var _local8 = getGlobalPoint(_local3.mc);
var _local10 = getDis(_local4[0], _local4[1], _local8[0], _local8[1]);
_local7 = game.getNextHighestDepth();
var laser = game.attachMovie("jgshexian", "blt" + _local7, _local7, {_x:_local4[0] - game._x, _y:_local4[1] - game._y, _rotation:dir});
laser._xscale = _local10;
laser.counter = 0;
laser.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
checkInStage3(this);
if ((this._currentframe == 1) && (game.tank.hp > 0)) {
if (this.g.hitTest(game.tank._x + game._x, game.tank._y + game._y, true)) {
play_soundAction("bullet_laser_2");
game.tank.hitAction(10);
game.tank.xSpeed = game.tank.xSpeed * -3;
game.tank.ySpeed = game.tank.ySpeed * -3;
game.tank.cantGo = 15;
newShake(4);
}
}
};
_local2.laser = (_local3.laser = laser);
_local2.die = (_local3.die = function () {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
removeMinimapObj(this);
this.laser.removeMovieClip();
newExpl1(this._x, this._y, 1);
delete this.onEnterFrame;
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
this.counter = 0;
changeColor(this, Dark);
this.onEnterFrame = function () {
if ((++this.counter) > 40) {
if (this.counter > 80) {
this._alpha = this._alpha - 5;
if (this._alpha < 0) {
this.removeMovieClip();
}
} else if ((this.counter % 4) == 0) {
this._alpha = 50;
} else if ((this.counter % 4) == 1) {
this._alpha = 100;
}
}
};
});
firstTimeInStage(_local2);
firstTimeInStage(_local3);
if (!areaNum) {
_local2.hitAction = hitAction;
_local3.hitAction = hitAction;
_local2.noScore = (_local2.noScore = false);
} else if (areaNum < game.currArea) {
_local2.hitAction = hitAction;
_local3.hitAction = hitAction;
laser.removeMovieClip();
} else {
_local2.locker = "areaLocker" + areaNum;
sethum(_local2, 150);
sethum(_local3, 150);
_local2.hitAction = (_local3.hitAction = function () {
});
_local2.hitAction1 = hitAction;
_local3.hitAction1 = hitAction;
_local2.part = _local3;
_local3.part = _local2;
_local2.disable = (_local3.disable = function () {
play_soundAction("\u505C\u7535");
this.laser.removeMovieClip();
sethum(this, 0);
this.hitAction = this.hitAction1;
});
}
}
function newMissile(xPos, yPos, rota) {
var _local4 = game.getNextHighestDepth();
var _local2 = game.attachMovie("daodan_big", "enemy" + _local4, _local4, {_x:xPos, _y:yPos, _rotation:rota});
_local2.xSpeed = 5 * Math.cos(_local2._rotation * 0.0174);
_local2.ySpeed = 5 * Math.sin(_local2._rotation * 0.0174);
_local2.counter = 0;
_local2.dmg = 20;
_local2.launch = function () {
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (((++this.counter) % 3) == 0) {
this.counter = 0;
var _local2 = this._parent.getNextHighestDepth();
this._parent.attachMovie("daodan_fire1", "ef" + _local2, _local2, {_x:this._x, _y:this._y, _rotation:this._rotation});
}
if (this._xscale < 150) {
this._xscale++;
this._yscale++;
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
var _local4 = this._x + game._x;
var _local3 = this._y + game._y;
if ((((_local4 < -50) || (_local4 > 562)) || (_local3 < -50)) || (_local3 > 562)) {
this.phase2();
}
};
};
_local2.phase2 = function () {
this.counter = 30 + random(40);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._x = (-game._x) + 250;
this._y = (-game._y) - 50;
if ((--this.counter) < 40) {
this.phase3();
}
};
};
_local2.phase3 = function () {
this.counter = 0;
this._rotation = 90;
this._yscale = 200;
this.desY = game.tank._y;
this._x = game.tank._x;
this._y = -50 - game._y;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
var _local2 = this._parent.getNextHighestDepth();
this._parent.attachMovie("daodan_fire1", "ef" + _local2, _local2, {_x:this._x, _y:this._y, _rotation:this._rotation});
this._y = this._y + 10;
if ((this.desY - this._y) < 200) {
if ((++this.counter) < 20) {
this._yscale = 200 - (this.counter * 2);
this._xscale = 100 - this.counter;
} else {
this.expl();
}
}
};
};
_local2.expl = function () {
newExpl2(this._x + random(20), this._y, true);
newExpl1(this._x + random(20), this._y + random(20), true);
newExpl1(this._x - random(20), this._y - random(20), true);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] != this) {
if (getDis(this._x, this._y, game.inGame[_local2]._x, game.inGame[_local2]._y) < 60) {
game.inGame[_local2].hitAction(this.dmg);
}
}
}
this.removeMovieClip();
};
return(_local2);
}
function newMissileLauncher(xPos, yPos, rota) {
if (rota == undefined) {
rota = 145;
}
var missile = newMissile(xPos, yPos - 6, rota);
var _local5 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("daodanche1", "enemy" + _local5, _local5, {_x:xPos, _y:yPos, _rotation:rota});
_local2.missile = missile;
_local2.init = init;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.init("enemy", 50, 0, 25, 1000, 9);
_local2._rotation = rota;
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
if (!this.launch) {
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 300) {
this.missile.launch();
this.launch = true;
}
}
checkInStage(this);
});
_local2.die = function (type) {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
removeMinimapObj(this);
newExpl1(this._x, this._y, 1);
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
if (!this.launch) {
this.missile.expl();
}
delete this.hitAction;
delete this.onEnterFrame;
this.removeMovieClip();
};
firstTimeInStage(_local2);
return(_local2);
}
function newEnemyFighter() {
var _local3 = air.getNextHighestDepth();
var _local2 = air.attachMovie("hongzhaji", "enemy" + _local3, _local3);
if (!random(2)) {
var _local9 = (random(2) * 512) - air._x;
var _local8 = random(512) - air._y;
} else {
var _local8 = (random(2) * 512) - air._y;
var _local9 = random(512) - air._x;
}
_local2._x = _local9;
_local2._y = _local8;
_local2.mc._rotation = getRotation(_local2._x, _local2._y, game.tank._x, game.tank._y);
_local2.shadow._rotation = _local2.mc._rotation;
_local2.speed = 10;
_local2.xSpeed = _local2.speed * Math.cos(_local2.mc._rotation * 0.0174);
_local2.ySpeed = _local2.speed * Math.sin(_local2.mc._rotation * 0.0174);
_local2.attack = function () {
if (random(2)) {
var _local3 = getFirePosition(this.mc._rotation, this._x, this._y, 25);
newBulletE4("high", _local3[0], _local3[1], 5, 15, this.mc._rotation + random(5), "xiaodaodan2", "daodan_fire2");
} else {
var _local2 = getFirePosition(this.mc._rotation, this._x, this._y, -25);
newBulletE4("high", _local2[0], _local2[1], 5, 15, this.mc._rotation - random(5), "xiaodaodan2", "daodan_fire2");
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (!random(10)) {
this.attack();
}
var _local3 = this._x + air._x;
var _local2 = this._y + air._y;
if ((((_local3 < -50) || (_local3 > 562)) || (_local2 < -50)) || (_local2 > 562)) {
this.removeMovieClip();
}
};
}
function airAttack1(rate) {
if (!this.airAttack) {
this.createEmptyMovieClip("airAttack", this.getNextHighestDepth());
this.airAttack.counter = 0;
this.airAttack.rate = rate;
this.airAttack.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) > 100) {
this.counter = 0;
newEnemyFighter();
this.removeMovieClip();
}
};
}
}
function newEnemyHeli() {
if (stage != 13) {
newEnemyFighter();
return(undefined);
}
var _local6 = air.getNextHighestDepth();
var _local2 = air.attachMovie("zhishengji", "enemy" + _local6, _local6);
if (!random(2)) {
var _local12 = (random(2) * 512) - air._x;
var _local11 = random(512) - air._y;
} else {
var _local11 = (random(2) * 512) - air._y;
var _local12 = random(512) - air._x;
}
_local2._x = _local12;
_local2._y = _local11;
_local2.mc._rotation = getRotation(_local2._x, _local2._y, game.tank._x, game.tank._y);
_local2.shadow._rotation = _local2.mc._rotation;
_local2.speed = 5;
_local2.xSpeed = _local2.speed * Math.cos(_local2.mc._rotation * 0.0174);
_local2.ySpeed = _local2.speed * Math.sin(_local2.mc._rotation * 0.0174);
_local2.phase = 1;
_local2.counter = 0;
_local2.attack = function () {
this.mc.gotoAndPlay(2);
play_soundAction("bullet_3");
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 250) {
if (getDegree1(this.mc._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < 2) {
game.tank.hitAction(0.25);
var _local3 = game.getNextHighestDepth();
var _local4 = game.attachMovie("jq_bullet", "expl" + _local3, _local3);
var _local2 = getRotation(game.tank._x, game.tank._y, this._x, this._y);
_local4._x = (((22 * Math.cos(_local2 * 0.0174)) + game.tank._x) + random(10)) - 5;
_local4._y = (((22 * Math.sin(_local2 * 0.0174)) + game.tank._y) + random(10)) - 5;
} else {
var _local3 = game.getNextHighestDepth();
var _local4 = game.attachMovie("jq_bullet", "expl" + _local3, _local3);
_local4._x = (((200 * Math.cos(this.mc._rotation * 0.0174)) + this._x) + random(10)) - 5;
_local4._y = (((200 * Math.sin(this.mc._rotation * 0.0174)) + this._y) + random(10)) - 5;
}
} else {
var _local3 = game.getNextHighestDepth();
var _local4 = game.attachMovie("jq_bullet", "expl" + _local3, _local3);
_local4._x = (((200 * Math.cos(this.mc._rotation * 0.0174)) + this._x) + random(10)) - 5;
_local4._y = (((200 * Math.sin(this.mc._rotation * 0.0174)) + this._y) + random(10)) - 5;
}
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
switch (this.phase) {
case 1 :
this.mc._rotation = getRotation(this._x, this._y, game.tank._x, game.tank._y);
this.shadow._rotation = this.mc._rotation;
this.xSpeed = this.speed * Math.cos(this.mc._rotation * 0.0174);
this.ySpeed = this.speed * Math.sin(this.mc._rotation * 0.0174);
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 200) {
this.phase++;
this.spinDir = ((random(2) * 2) - 1) * 90;
}
break;
case 2 :
if ((++this.counter) < (100 + random(50))) {
this.mc._rotation = getRotation(this._x, this._y, game.tank._x, game.tank._y);
this.shadow._rotation = this.mc._rotation;
if (!random(50)) {
this.spinDir = ((random(2) * 2) - 1) * 90;
}
if (!random(3)) {
this.attack();
}
this.xSpeed = 2 * Math.cos((this.mc._rotation + this.spinDir) * 0.0174);
this.ySpeed = 2 * Math.sin((this.mc._rotation + this.spinDir) * 0.0174);
} else {
this.counter = 0;
this.xSpeed = -3 * Math.cos(this.mc._rotation * 0.0174);
this.ySpeed = -3 * Math.sin(this.mc._rotation * 0.0174);
var _local3 = 180 + this.mc._rotation;
this.desDir = ((_local3 > 180) ? (_local3 - 360) : (((_local3 <= -180) ? (_local3 + 360) : (_local3))));
this.phase++;
}
break;
case 3 :
if (Math.abs(this.desDir - this.mc._rotation) > 3) {
var _local3 = this.desDir;
var _local4 = this.mc._rotation;
var _local5 = getRotationDir(_local3, _local4);
var _local6 = getDegree1(_local3, _local4);
var _local2 = Math.abs(_local6) * 0.5;
_local2 = ((_local2 > 10) ? 10 : (_local2));
this.mc._rotation = this.mc._rotation + (_local5 * _local2);
this.shadow._rotation = this.shadow._rotation + (_local5 * _local2);
} else {
this.xSpeed = 5 * Math.cos(this.mc._rotation * 0.0174);
this.ySpeed = 5 * Math.sin(this.mc._rotation * 0.0174);
this.phase++;
}
break;
case 4 :
if (!(((((this._x + air._x) < -50) || ((this._x + air._x) > 562)) || ((this._y + air._y) < -50)) || ((this._y + air._y) > 562))) {
break;
}
this.removeMovieClip();
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
};
}
function newSpider(xPos, yPos, areaNum) {
var _local3 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("jiqiren2", "enemy" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 100, 10, 20, 5, 9);
_local2.atk = 120;
_local2.goCount = 0;
_local2.attack = function () {
if (!this.shootMc) {
this.createEmptyMovieClip("shootMc", this.getNextHighestDepth());
this.shootMc.counter = 0;
this.shootMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) < 10) {
if ((this.counter % 3) == 1) {
this._parent.head.mc.play();
var _local2 = getGlobalPoint(this._parent.head.mc);
_local2[0] = _local2[0] + this._parent.xSpeed;
_local2[1] = _local2[1] + this._parent.ySpeed;
this._parent.head.mc.gotoAndPlay(2);
var _local4 = getFirePosition(this._parent.head._rotation, _local2[0], _local2[1], 6);
var _local3 = getFirePosition(this._parent.head._rotation, _local2[0], _local2[1], -6);
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local4[0] - game._x, _local4[1] - game._y, 1, 15 + random(3), ((this._parent.head._rotation + this._parent._rotation) + random(6)) - 10);
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local3[0] - game._x, _local3[1] - game._y, 1, 15 + random(3), ((this._parent.head._rotation + this._parent._rotation) + random(6)) - 10);
}
} else {
this._parent.head.mc.gotoAndStop(1);
this.removeMovieClip();
}
};
}
};
_local2.moveAction = function () {
if (this.go) {
if (this.goCount > 30) {
this.dizuo.play();
this.xSpeed = this.xSpeed + (((this.maxSpeed * Math.cos(this.dir * 0.0174)) - this.xSpeed) * 0.4);
this.ySpeed = this.ySpeed + (((this.maxSpeed * Math.sin(this.dir * 0.0174)) - this.ySpeed) * 0.4);
} else {
this.goCount++;
}
} else {
this.dizuo.stop();
if (this.goCount > 30) {
this.goCount = 0;
}
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.xSpeed = this.xSpeed * 0.6;
this.ySpeed = this.ySpeed * 0.6;
this.range();
};
_local2.aim = aimTarget;
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.target = game.tank;
_local2.desPoint = setPoint(_local2.target, 100);
_local2.desPoint = [_local2._x, _local2._y];
_local2.birthPt = [_local2._x, _local2._y];
_local2.turnTo = function (dgr) {
this.dir = (this.desDir = getRotation(this._x, this._y, this.desPoint[0], this.desPoint[1]));
};
_local2.range = range1;
_local2.go = false;
_local2.patrol = function () {
var _local3 = getDis(this._x, this._y, this.birthPt[0], this.birthPt[1]);
var _local2 = getDis(this.target._x, this.target._y, this._x, this._y);
if (_local3 > 300) {
this.go = true;
this.goCount = 0;
this.dizuo.stop();
this.desPoint = this.birthPt;
this.AI = this.goBack;
return(undefined);
}
if (_local2 < 400) {
this.go = true;
this.goCount = 0;
this.dizuo.stop();
this.desPoint = setPoint(this.target, 100);
this.AI = this.goAttack;
return(undefined);
}
this.go = false;
this.moveAction();
};
_local2.goAttack = function () {
var _local3 = getDis(this._x, this._y, this.birthPt[0], this.birthPt[1]);
var _local2 = getDis(this.target._x, this.target._y, this._x, this._y);
if (_local3 > 300) {
this.go = true;
this.goCount = 0;
this.dizuo.stop();
this.desPoint = this.birthPt;
this.AI = this.goBack;
return(undefined);
}
if (_local2 > 200) {
this.desPoint = [this.target._x, this.target._y];
this.go = true;
} else if (_local2 < 150) {
this.go = false;
}
this.turnTo();
this.moveAction();
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 8);
} else {
this.aim(game.tank._x, game.tank._y, 8);
}
if (!random(this.atk - (stage * 2))) {
this.attack();
}
};
_local2.goBack = function () {
this.turnTo(5 * this.maxSpeed);
this.moveAction();
var _local2 = getDis(this._x, this._y, this.birthPt[0], this.birthPt[1]);
if (_local2 <= 50) {
this.go = false;
this.goCount = 0;
this.dizuo.stop();
this.AI = this.patrol;
return(undefined);
}
if (getDis(this._x, this._y, this.mainTarget._x, this.mainTarget._y) < 300) {
this.aim(this.mainTarget._x, this.mainTarget._y, 8);
} else {
this.aim(game.tank._x, game.tank._y, 8);
}
if (!random(this.atk - (stage * 2))) {
this.attack();
}
};
_local2.AI = _local2.patrol;
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
checkInStage(this);
this.AI();
});
_local2._rotation = (_local2.dir = 0);
_local2.dizuo.stop();
firstTimeInStage(_local2);
addToArea(_local2, areaNum);
return(_local2);
}
function newDozer(xPos, yPos, areaNum) {
var _local6 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("tuituji", "enemy" + _local6, _local6, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 200, 3, 18, 5, 9);
_local2.hitAction = hitAction;
_local2.die = die2;
_local2.range = range1;
_local2.patrol = function () {
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 400) {
this.AI = this.gotoTank;
this.gotoAndStop("walk");
}
};
_local2.gotoTank = function () {
this.desDir = getRotation(this._x, this._y, game.tank._x, game.tank._y);
if (this.desDir != this._rotation) {
var _local4 = this.desDir;
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > 3) ? 3 : (_local3));
this._rotation = this._rotation + (_local6 * _local3);
}
this.xSpeed = this.xSpeed + (((2 * Math.cos(this._rotation * 0.0174)) - this.xSpeed) / 5);
this.ySpeed = this.ySpeed + (((2 * Math.sin(this._rotation * 0.0174)) - this.ySpeed) / 5);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this.range();
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 250) {
this.counter = 0;
this.AI = this.dash;
}
};
_local2.dash = function () {
if ((++this.counter) < 20) {
this.desDir = getRotation(this._x, this._y, game.tank._x, game.tank._y);
if (this.desDir != this._rotation) {
var _local4 = this.desDir;
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > 30) ? 30 : (_local3));
this._rotation = this._rotation + (_local6 * _local3);
}
} else {
if (this.counter < 45) {
this.xSpeed = this.xSpeed + (((12 * Math.cos(this._rotation * 0.0174)) - this.xSpeed) / 10);
this.ySpeed = this.ySpeed + (((12 * Math.sin(this._rotation * 0.0174)) - this.ySpeed) / 10);
} else {
this.gotoAndStop("stand");
this.xSpeed = this.xSpeed * 0.8;
this.ySpeed = this.ySpeed * 0.8;
if ((Math.abs(this.xSpeed) < 0.1) && (Math.abs(this.ySpeed) < 0.1)) {
this.AI = this.patrol;
}
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
}
this.range();
};
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
checkInStage(this);
this.AI();
});
_local2.AI = _local2.patrol;
firstTimeInStage(_local2);
addToArea(_local2, areaNum);
return(_local2);
}
function newEnemy6(xPos, yPos, type, typeAI, areaNum) {
var _local4 = game.enemy.getNextHighestDepth();
if (type == undefined) {
type = 2;
}
switch (type) {
case 1 :
var _local2 = game.enemy.attachMovie("yelang", "enemy" + _local4, _local4, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 10, 6, 18, 5, 9);
_local2.atk = 50;
_local2.attack = function () {
var _local2 = getGlobalPoint(this);
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 1, 12, this._rotation);
};
break;
case 2 :
_local2 = game.enemy.attachMovie("zhuangjiache", "enemy" + _local4, _local4, {_x:xPos, _y:yPos});
_local2.init = init;
_local2.init("enemy", 50, 3, 18, 5, 9);
_local2.atk = 50;
_local2.attack = function () {
var _local2 = getGlobalPoint(this);
this.head.mc.gotoAndPlay(2);
newBulletE1(getMapArrType(this._x, this._y), ((_local2[0] - game._x) + random(10)) - 5, ((_local2[1] - game._y) + random(10)) - 5, 1, 12, this._rotation);
};
}
_local2.aim = function (xPos, yPos, rate) {
if (this.go == false) {
var _local4 = getRotation(this._x, this._y, xPos, yPos);
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > 5) ? 5 : (_local3));
this._rotation = this._rotation + (_local6 * _local3);
}
};
_local2.gotoNextPoint = gotoNextPoint;
_local2.hitAction = hitAction;
_local2.die = die2;
if (typeAI == undefined) {
typeAI = 4;
}
switch (typeAI) {
case 1 :
_local2.setAI = stupidAI;
break;
case 2 :
_local2.setAI = normalAI;
break;
case 3 :
_local2.setAI = chaseAI1;
break;
case 4 :
_local2.setAI = notThatStupidAI;
}
_local2.setAI();
_local2.turn = function () {
this.desDir = getRotation(this._x, this._y, this.desPoint[0], this.desPoint[1]);
if (this.desDir != this._rotation) {
var _local4 = this.desDir;
var _local2 = this._rotation;
_local2 = ((_local2 > 180) ? (_local2 - 360) : (((_local2 <= -180) ? (_local2 + 360) : (_local2))));
var _local6 = getRotationDir(_local4, _local2);
var _local5 = getDegree1(_local4, _local2);
var _local3 = Math.abs(_local5) * 0.5;
_local3 = ((_local3 > 10) ? 10 : (_local3));
this._rotation = this._rotation + (_local6 * _local3);
}
};
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
checkInStage(this);
this.AI();
});
firstTimeInStage(_local2);
addToArea(_local2, areaNum);
return(_local2);
}
function newMan(what, xPos, yPos, areaNum) {
var _local8 = game.enemy.getNextHighestDepth();
var _local3 = game.enemy.attachMovie(what, "enemy" + _local8, _local8, {_x:xPos, _y:yPos});
_local3.type = "man";
_local3.stop();
_local3._rotation = 90;
_local3.hp = 3;
_local3.tx = (_local3.ty = 0);
_local3.gx = (_local3.gy = 0);
_local3.resist = 1;
_local3.r = 0;
_local3.attackR = 140;
_local3.xSpeed = 0;
_local3.ySpeed = 0;
_local3.maxSpeed = 1;
_local3.attackSpd = 2;
_local3.atkR = 20;
_local3.runawayR = 100;
_local3.leader = false;
_local3.id = undefined;
_local3.group = [];
_local3.tempFrame = 1;
_local3.range = range1;
_local3.hitAction = function (dmg, type) {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
removeMinimapObj(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
delete this.leaderAction;
delete this.startAttack;
delete this.attack;
delete this.runAway;
delete this.grouping;
delete this.patrol;
delete this.moveAction;
delete this.onEnterFrame;
delete this.enterFrameFunction;
delete this.hitAction;
this.gotoAndStop("die");
if (type == "burn") {
this.mc.gotoAndStop(1);
this.counter = 0;
this.maxSpeed = random(this.maxSpeed) + 1;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (!random(10)) {
this._rotation = random(360) - 180;
}
this.xSpeed = this.maxSpeed * Math.cos(this._rotation * 0.0174);
this.ySpeed = this.maxSpeed * Math.sin(this._rotation * 0.0174);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if ((++this.counter) > (50 + random(50))) {
this.mc.mc.gotoAndPlay(11);
delete this.onEnterFrame;
}
};
play_soundAction("\u88AB\u70E7\u6B7B");
} else {
this.mc.gotoAndStop(2);
play_soundAction("\u654C\u4EBA\u6B7B\u4EA1" + (random(3) + 1));
}
};
_local3.attack = function () {
this.gotoAndStop("fire");
play_soundAction("bullet_3");
if (getDegree1(this._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
game.tank.hitAction(0.5, "man");
var _local4 = game.getNextHighestDepth();
var _local2 = game.attachMovie("jq_bullet", "expl" + _local4, _local4);
var _local3 = getRotation(game.tank._x, game.tank._y, this._x, this._y);
_local2._x = (((25 * Math.cos(_local3 * 0.0174)) + game.tank._x) + random(10)) - 5;
_local2._y = (((25 * Math.sin(_local3 * 0.0174)) + game.tank._y) + random(10)) - 5;
}
};
_local3.patrol = function () {
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 170) {
for (var _local2 in this.group) {
this.group[_local2].startAttack();
}
}
};
_local3.startAttack = function () {
this.maxSpeed = this.attackSpd;
this.tempCounter = random(40);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((--this.tempCounter) < 0) {
delete this.tempCounter;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this.moveAction();
this._rotation = getRotation(this._x, this._y, game.tank._x, game.tank._y);
var _local2 = getDis(this._x, this._y, game.tank._x, game.tank._y);
if (game.tank.hp > 0) {
if (_local2 < this.attackR) {
if (!random(30)) {
this.attack();
}
this.go = false;
if (_local2 < this.runawayR) {
if (!random(10)) {
this.runAway();
}
}
} else if (_local2 > 160) {
this.gotoAndStop("walk");
this.go = true;
}
}
checkInStage(this);
};
checkInStage(this);
}
};
};
_local3.runAway = function () {
this.gx = 0;
this.gy = 0;
this.go = true;
this._rotation = getRotation(game.tank._x, game.tank._y, this._x, this._y);
this.maxSpeed = 3;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (!random(10)) {
this._rotation = getRotation(game.tank._x, game.tank._y, this._x, this._y);
}
this.moveAction();
if (getDis(this._x, this._y, game.tank._x, game.tank._y) > 160) {
this.startAttack();
}
checkInStage2(this);
};
};
_local3.leaderAction = function () {
if (!this.go) {
if (!random(70)) {
this.go = true;
}
} else if (!random(100)) {
this.go = false;
this._rotation = random(360) - 180;
}
};
_local3.moveAction = function () {
if (game.tank.g.hitTest(this._x + game._x, this._y + game._y, true)) {
this.hitAction(10);
return(undefined);
}
if (this.go) {
this.xSpeed = this.xSpeed + (((this.maxSpeed * Math.cos(this._rotation * 0.0174)) - this.xSpeed) * 0.4);
this.ySpeed = this.ySpeed + (((this.maxSpeed * Math.sin(this._rotation * 0.0174)) - this.ySpeed) * 0.4);
}
if (this.leader) {
this.leaderAction();
} else {
this.xSpeed = this.xSpeed + this.gx;
this.ySpeed = this.ySpeed + this.gy;
}
this.xSpeed = this.xSpeed + this.tx;
this.ySpeed = this.ySpeed + this.ty;
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if ((Math.abs(this.xSpeed) > 0.2) || (Math.abs(this.ySpeed) > 0.2)) {
this.gotoAndStop("walk");
this._rotation = Math.atan2(this.ySpeed, this.xSpeed) * 57.4;
} else {
if (!random(50)) {
this._rotation = this._rotation + (random(60) - 30);
}
this.xSpeed = (this.ySpeed = 0);
this.gotoAndStop("stand");
}
this.xSpeed = this.xSpeed * 0.6;
this.ySpeed = this.ySpeed * 0.6;
this.range();
this.currPosArr = getMapArrNum(this._x, this._y);
if ((this.prevPosArr[0] != this.currPosArr[0]) || (this.prevPosArr[1] != this.currPosArr[1])) {
delPosAtMapArr(this.prevPosArr, this);
delMapArrVol(this);
this.prevPosArr = this.currPosArr;
this.posArrIndex = addPosToMapArr(this, this.currPosArr);
setMapArrVol(this, this.currPosArr, this.vol);
}
};
_local3.grouping = function () {
this.gx = (this.gy = 0);
var _local4 = 0;
while (_local4 < this.group.length) {
var _local2 = this.group[_local4];
if ((_local2 == this) || (_local2._x == undefined)) {
} else {
var _local5 = getDis(_local2._x, _local2._y, this._x, this._y);
var _local3 = 0;
if ((_local2.id == (this.id - 1)) || (_local2.id == (this.id - 2))) {
_local3 = (-0.1 * Math.pow(_local5 / 20, 0.9)) + (50 / Math.pow(_local5, 2.2));
} else {
_local3 = 100 / Math.pow(_local5, 2.2);
}
var _local6 = getRotation(_local2._x, _local2._y, this._x, this._y);
this.gx = this.gx + (_local3 * Math.cos(_local6 * 0.0174));
this.gy = this.gy + (_local3 * Math.sin(_local6 * 0.0174));
}
_local4++;
}
};
_local3.onEnterFrame = (_local3.enterFrameFunction = function () {
if (gamePause) {
return(undefined);
}
checkInStage(this);
this.grouping();
this.patrol();
this.moveAction();
});
firstTimeInStage(_local3);
return(_local3);
}
function newEnemyMan(xPos, yPos, areaNum) {
return(newMan("jiqiangbing", xPos, yPos, areaNum));
}
function newEnemyMan2(xPos, yPos, areaNum) {
var _local2 = newMan("huobing", xPos, yPos, areaNum);
_local2.maxSpeed = 3;
_local2.attackSpd = 4;
_local2.attackR = 100;
_local2.atkR = 10;
_local2.runawayR = 50;
_local2.attack = function () {
if (getDegree1(this._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
this.gotoAndStop("fire");
play_soundAction("bullet_fire");
var _local2 = newBulletE1(getMapArrType(this._x, this._y), this._x, this._y, 3, 8, this._rotation, "huobing_texiao");
_local2.hitAction = function () {
};
}
};
return(_local2);
}
function newEnemyMan3(xPos, yPos, areaNum) {
var _local2 = newMan("daodanbing", xPos, yPos, areaNum);
_local2.maxSpeed = 1;
_local2.attackSpd = 2;
_local2.attackR = 200;
_local2.atkR = 10;
_local2.attack = function () {
if (getDegree1(this._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
this.gotoAndStop("fire");
var _local3 = newBulletE1(getMapArrType(this._x, this._y), this._x, this._y, 5, 5, this._rotation, "daodanbing_daodan");
_local3.hitAction = function () {
var _local2 = game.getNextHighestDepth();
if (!random(2)) {
game.attachMovie("daodan_fire1", "expl" + _local2, _local2, {_x:this._x, _y:this._y});
} else {
game.attachMovie("daodan_fire2", "expl" + _local2, _local2, {_x:this._x, _y:this._y});
}
this.removeMovieClip();
};
}
};
return(_local2);
}
function newEnemyMan4(xPos, yPos, areaNum) {
var _local2 = newMan("zibaobing", xPos, yPos, areaNum);
_local2.maxSpeed = 1;
_local2.attackSpd = 5;
_local2.attackR = 200;
_local2.atkR = 10;
_local2.runawayR = 0;
delete _local2.runAway;
_local2.hitAction = function () {
var _local3 = game.getNextHighestDepth();
play_soundAction("expl_1");
game.attachMovie("baozha2", "expl" + _local3, _local3, {_x:this._x, _y:this._y});
removeMinimapObj(this);
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
this.removeMovieClip();
};
_local2.startAttack = function () {
this.go = true;
this.maxSpeed = this.attackSpd;
this.tempCounter = random(40);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((--this.tempCounter) < 0) {
delete this.tempCounter;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this.moveAction();
this._rotation = getRotation(this._x, this._y, game.tank._x, game.tank._y);
if (getDegree1(this._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < this.atkR) {
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 20) {
this.hitAction();
game.tank.hitAction(0.5);
}
checkInStage(this);
}
};
checkInStage(this);
}
};
};
return(_local2);
}
function disableMine() {
this.disabled = true;
this.gotoAndStop(this._totalframes - 1);
shotShine(this, "white", 3);
play_soundAction("pick_up_w");
this.onEnterFrame = function () {
this._xscale = this._xscale * 0.9;
this._yscale = this._yscale * 0.9;
if (this._xscale < 0.1) {
totalMines--;
this.removeMovieClip();
}
};
}
function newMine1(xPos, yPos) {
var _local4 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("lei1", "mine" + _local4, _local4, {_x:xPos, _y:yPos});
_local2.type = "mine";
_local2.tx = 0;
_local2.ty = 0;
_local2.r = -1;
_local2.resist = 20;
_local2.dmg = 20;
_local2.currPosArr = getMapArrNum(_local2._x, _local2._y);
_local2.prevPosArr = _local2.currPosArr;
_local2.posArrIndex = addPosToMapArr(_local2, _local2.currPosArr);
_local2.vol = 9;
_local2.volArr = [];
setMapArrVol(_local2, _local2.currPosArr, _local2.vol);
game.inGame.push(_local2);
_local2.hp = 10;
_local2.hitAction = function (dmg) {
if (dmg != undefined) {
this.hp = this.hp - dmg;
} else {
this.hp = this.hp - 1;
}
if (this.hp <= 0) {
this.expl();
}
};
_local2.expl = function () {
totalMines--;
delete this.hitAction;
delete this.expl;
newExpl1(this._x, this._y, true);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] != this) {
if (getDis(this._x, this._y, game.inGame[_local2]._x, game.inGame[_local2]._y) < 60) {
game.inGame[_local2].hitAction(this.dmg);
}
}
}
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
this.removeMovieClip();
};
_local2.onEnterFrame = (_local2.enterFrameFunction = function () {
if (this.hitTest(game.tank)) {
this.expl();
}
});
_local2.disable = disableMine;
}
function newMine2(xPos, yPos) {
var _local6 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("lei2", "mine" + _local6, _local6, {_x:xPos, _y:yPos});
_local2.type = "mine";
_local2.dmg = 15;
_local2.xSpeed = (_local2.ySpeed = 0);
_local2.dx = (_local2.dy = 0);
_local2.counter = 0;
_local2.gotoAndStop(_local2._totalframes);
_local2.expl = function () {
totalMines--;
newExpl1(this._x, this._y, true);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] != this) {
if (getDis(this._x, this._y, game.inGame[_local2]._x, game.inGame[_local2]._y) < 60) {
game.inGame[_local2].hitAction(this.dmg);
}
}
}
delPosAtMapArr(this.prePosArr, this);
delPosAtMapArr(this.currPosArr, this);
delMapArrVol(this);
this.removeMovieClip();
};
_local2.attack = function () {
var _local3 = getRotation(this._x, this._y, game.tank._x, game.tank._y);
this.xSpeed = 15 * Math.cos((_local3 * 3.14) / 180);
this.ySpeed = 15 * Math.sin((_local3 * 3.14) / 180);
newDust1(this._x, this._y);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (this._currentframe == (this._totalframes - 1)) {
if ((++this.counter) > 15) {
this.dx = this.dx + ((this.xSpeed - this.dx) / 5);
this.dy = this.dy + ((this.ySpeed - this.dy) / 5);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local2 = getMapArrType(this._x, this._y);
if (((_local2 == 1) || (_local2 == 6)) || (_local2 == 9)) {
this.expl();
}
if (this.hitTest(game.tank)) {
this.expl();
}
if (((((this._x + game._x) < 0) || ((this._x + game._x) > 512)) || ((this._y + game._y) < 0)) || ((this._y + game._y) > 512)) {
totalMines--;
this.removeMovieClip();
}
}
}
};
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 100) {
if (getMapAtt(game.tank._x, game.tank._y) == getMapAtt(this._x, this._y)) {
play_soundAction("drop_w");
this.gotoAndPlay(1);
this.attack();
}
}
};
_local2.disable = disableMine;
}
function newMine3(xPos, yPos) {
var _local4 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("lei3", "mine" + _local4, _local4, {_x:xPos, _y:yPos});
_local2.type = "mine";
_local2.dmg = 25;
_local2.counter = 0;
_local2.gotoAndStop(_local2._totalframes);
_local2.expl = function () {
totalMines--;
newExpl2(this._x, this._y, true);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] != this) {
if (getDis(this._x, this._y, game.inGame[_local2]._x, game.inGame[_local2]._y) < 90) {
game.inGame[_local2].hitAction(this.dmg);
}
}
}
this.removeMovieClip();
};
_local2.attack = function () {
newDust1(this._x, this._y);
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) > 40) {
this.expl();
}
};
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 80) {
if (getMapAtt(game.tank._x, game.tank._y) == getMapAtt(this._x, this._y)) {
play_soundAction("drop_w");
this.gotoAndPlay(1);
this.attack();
}
}
};
_local2.disable = disableMine;
}
function newBoss1(xPos, yPos) {
var _local10 = game.enemy.getNextHighestDepth();
temp = game.enemy.attachMovie("boss", "boss", _local10, {_x:xPos, _y:yPos});
temp.hp_bar._alpha = 0;
temp.hp_bar._rotation = -90;
temp.hp = (temp.totalHp = 1200);
temp.counter = 0;
temp.aim = aimTarget2;
temp.phase = 1;
temp._rotation = 90;
temp.mc.paotai3.fireFrame = 27;
temp.mc.paotai4.fireFrame = 27;
temp.mc.paotai7.fireFrame = 15;
temp.mc.paotai8.fireFrame = 15;
temp.mc.paotai1.fireFrame = 20;
temp.mc.paotai2.fireFrame = 20;
temp.xSpeed = 0;
temp.ySpeed = 0;
temp.org_speed = 25;
temp.speed = org_speed;
temp.rRate = 6;
temp.lowHp = 500;
temp.shakeCtr = 0;
temp.tx = 0;
temp.ty = 0;
temp.r = 90;
temp.resist = 1000;
game.inGame.push(temp);
addMinimapObj(temp);
temp.hitAction = function (dmg, type) {
this.hp_bar._alpha = 100;
this.hp_bar.counter = 0;
this.hp_bar.onEnterFrame = function () {
if ((++this.counter) > 40) {
this._alpha = this._alpha - 10;
if (this._alpha == 0) {
delete this.onEnterFrame;
}
}
};
this.hp_bar._xscale = 100 * (this.hp / this.totalHp);
if (!this.hitMc) {
if (this.hp < this.lowHp) {
shotShine(this, "red", 1);
} else {
shotShine(this, "white", 1);
}
this.createEmptyMovieClip("hitMc", this.getNextHighestDepth());
this.hitMc.counter = 3;
this.hitMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((--this.counter) < 0) {
this.removeMovieClip();
}
};
}
if (dmg != undefined) {
this.hp = this.hp - dmg;
} else {
this.hp--;
}
if (this.hp <= 0) {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
this.die();
}
};
temp.die = function () {
removeMinimapObj(this);
this.gotoAndStop("die");
delete this.onEnterFrame;
delete this.hitAction;
this.counter = 0;
this.onEnterFrame = function () {
if ((++this.counter) < 120) {
if ((this.counter % 5) == 0) {
newExpl1(this._x + ((random(this._width - 50) - (this._width / 2)) + 25), this._y + ((25 + random(this._height - 50)) - (this._height / 2)), true);
}
} else {
gameOver("stageClean");
delete this.counter;
delete this.onEnterFrame;
}
};
};
temp.checkHit = function () {
if (this.hit_g1.hitTest(game.tank._x + game._x, game.tank._y + game._y, true)) {
newShineScr("white");
newShake();
game.tank.hitAction(2);
if (!game.tank.hurtMc) {
game.tank.badlyHurt(20);
}
}
};
temp.shake = function () {
if (!game.shake) {
if (((++this.shakeCtr) % 3) == 0) {
_root._x = (2 * random(2)) - 1;
_root._y = (2 * random(2)) - 1;
this._x = this._x + 1;
this._y = this._y + 1;
} else if ((this.shakeCtr % 3) == 1) {
_root._x = 0;
_root._y = 0;
this._x = this._x - 1;
this._y = this._y - 1;
}
}
};
temp.endShake = function () {
_root._x = (_root._y = 0);
};
temp.attack1 = function () {
this.mc.head.mc.play();
var _local2 = getPoint(this.mc.head.mc);
var _local3 = getComboDegree(this.mc.head._rotation + this._rotation);
var _local5 = getFirePosition(_local3, _local2.x, _local2.y, 15);
var _local4 = getFirePosition(_local3, _local2.x, _local2.y, -15);
newBulletE1(getMapArrType(this._x, this._y), _local2.x - game._x, _local2.y - game._y, 10, 10 + random(2), _local3, "boss_paodan", true);
newBulletE1(getMapArrType(this._x, this._y), _local5[0] - game._x, _local5[1] - game._y, 10, 15 + random(5), _local3, "boss_paodan", true);
newBulletE1(getMapArrType(this._x, this._y), _local4[0] - game._x, _local4[1] - game._y, 10, 15 + random(5), _local3, "boss_paodan", true);
};
temp.attack2 = function () {
this.mc.paotai5.play();
this.mc.paotai6.play();
var _local3 = getPoint(this.mc.paotai5.mc);
var _local2 = getPoint(this.mc.paotai6.mc);
var _local5 = getComboDegree(this.mc.paotai5._rotation + this._rotation);
var _local4 = getComboDegree(this.mc.paotai5._rotation + this._rotation);
newBulletE2(_local3.x - game._x, _local3.y - game._y, 8, 30 + random(10), _local5);
newBulletE2(_local2.x - game._x, _local2.y - game._y, 8, 30 + random(10), _local4);
};
temp.attack3 = function () {
this.mc.paotai3.counter = (this.mc.paotai4.counter = 0);
this.mc.paotai3.mc.gotoAndPlay(1);
this.mc.paotai4.mc.gotoAndPlay(1);
this.mc.paotai3.onEnterFrame = (this.mc.paotai4.onEnterFrame = function () {
if (this.mc._currentframe == this.fireFrame) {
this.mc.stop();
if ((++this.counter) > 40) {
this.play();
}
} else if (this.mc._currentframe == this.mc._totalframes) {
this.mc.gotoAndStop(1);
delete this.onEnterFrame;
}
});
};
temp.attack4 = function () {
this.mc.paotai7.counter = (this.mc.paotai8.counter = 0);
this.mc.paotai7.gotoAndPlay(1);
this.mc.paotai8.gotoAndPlay(1);
this.mc.paotai7.onEnterFrame = (this.mc.paotai8.onEnterFrame = function () {
if (this._currentframe == this.fireFrame) {
this.stop();
if ((++this.counter) > 40) {
this.play();
var _local2 = getPoint(this);
var _local3 = newMissile(_local2.x + game._x, _local2.y + game._y, game.enemy.boss._rotation);
_local3.launch();
}
} else if (this._currentframe == this._totalframes) {
this.gotoAndStop(1);
delete this.onEnterFrame;
}
});
};
temp.attack5 = function () {
this.mc.paotai1.counter = (this.mc.paotai2.counter = 0);
this.mc.paotai1.gotoAndPlay(1);
this.mc.paotai2.gotoAndPlay(1);
this.mc.paotai1.onEnterFrame = (this.mc.paotai2.onEnterFrame = function () {
if (this._currentframe == this.fireFrame) {
this.stop();
if ((++this.counter) > 30) {
this.play();
var _local2 = getPoint(this);
var _local3 = game.enemy.boss._rotation;
newBulletE1(getMapArrType(game.boss._x, game.boss._y), _local2.x - game._x, _local2.y - game._y, 3, 5 + random(2), _local3 - 90, "big2");
newBulletE1(getMapArrType(game.boss._x, game.boss._y), _local2.x - game._x, _local2.y - game._y, 3, 5 + random(2), _local3 - 45, "big2");
newBulletE1(getMapArrType(game.boss._x, game.boss._y), _local2.x - game._x, _local2.y - game._y, 3, 5 + random(2), _local3, "big2");
newBulletE1(getMapArrType(game.boss._x, game.boss._y), _local2.x - game._x, _local2.y - game._y, 3, 5 + random(2), _local3 + 45, "big2");
newBulletE1(getMapArrType(game.boss._x, game.boss._y), _local2.x - game._x, _local2.y - game._y, 3, 5 + random(2), _local3 + 90, "big2");
}
} else if (this._currentframe == this._totalframes) {
this.gotoAndStop(1);
delete this.onEnterFrame;
}
});
};
temp.moveAction = function () {
if (this.go) {
this.xSpeed = this.xSpeed + (((this.speed * Math.cos(this._rotation * 0.0174)) - this.xSpeed) / 10);
this.ySpeed = this.ySpeed + (((this.speed * Math.sin(this._rotation * 0.0174)) - this.ySpeed) / 10);
this.shake();
}
this._x = this._x + Math.round(this.xSpeed);
this._y = this._y + Math.round(this.ySpeed);
this.xSpeed = this.xSpeed * 0.85;
this.ySpeed = this.ySpeed * 0.85;
};
temp.action = function () {
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this.aim(game.tank._x, game.tank._y, this.rRate / 3, this.mc.head, this);
this.aim(game.tank._x, game.tank._y, this.rRate / 2, this.mc.paotai5, this);
this.aim(game.tank._x, game.tank._y, this.rRate / 2, this.mc.paotai6, this);
if (this.mc.head.ready) {
if (!random(45 - (this.rRate * 2))) {
this.attack1();
}
}
switch (this.phase) {
case 1 :
if ((++this.counter) > 50) {
this.counter = 0;
this.attack5();
this.phase++;
}
break;
case 2 :
if ((++this.counter) > 50) {
this.attack2();
this.counter = 0;
this.phase++;
this.desDir = getRotation(this._x, this._y, game.tank._x, game.tank._y);
this.speed = this.org_speed;
}
break;
case 3 :
var _local3 = this._rotation;
var _local5 = getRotationDir(this.desDir, _local3);
var _local4 = getDegree1(this.desDir, _local3);
var _local2 = Math.abs(_local4) * 0.5;
_local2 = ((_local2 > this.rRate) ? (this.rRate) : (_local2));
this._rotation = this._rotation + (_local5 * _local2);
this.checkHit();
this.shake();
if (((++this.counter) > 30) && (Math.abs(this._rotation - this.desDir) < 1)) {
this.counter = 0;
this.phase++;
this.go = true;
}
break;
case 4 :
this.moveAction();
this.checkHit();
if (((++this.counter) > 20) && (this.go)) {
if (((this._y > 400) || (this._x < 160)) || (this._x > 352)) {
this.go = false;
this.counter = 0;
}
}
if (((this.counter > 10) && (this.counter < 20)) && (this.go)) {
if (!random(10)) {
this.counter = 20;
this.go = false;
this.phase = 9;
this.desDir = getRotation(this._x, this._y, game.tank._x, game.tank._y);
}
}
if (!this.go) {
if ((++this.counter) > 30) {
this.counter = 0;
this.phase++;
this.desDir = -90;
}
}
break;
case 5 :
_local3 = this._rotation;
_local5 = getRotationDir(this.desDir, _local3);
_local4 = getDegree1(this.desDir, _local3);
_local2 = Math.abs(_local4) * 0.5;
_local2 = ((_local2 > (this.rRate / 2)) ? (this.rRate / 2) : (_local2));
this._rotation = this._rotation + (_local5 * _local2);
this.checkHit();
this.shake();
if (((++this.counter) > 30) && (Math.abs(this._rotation - this.desDir) < 1)) {
this.counter = 0;
this.phase++;
this.go = true;
if (this.hp < this.lowHp) {
this.speed = this.org_speed;
} else {
this.speed = this.org_speed * 0.6;
}
}
break;
case 6 :
this.moveAction();
this.checkHit();
if (this._y < 150) {
if ((++this.counter) > 30) {
this.desDir = 90;
this.counter = 0;
this.phase++;
}
this.go = false;
} else {
this.go = true;
}
break;
case 7 :
_local3 = this._rotation;
_local5 = getRotationDir(this.desDir, _local3);
_local4 = getDegree1(this.desDir, _local3);
_local2 = Math.abs(_local4) * 0.5;
_local2 = ((_local2 > (this.rRate / 2)) ? (this.rRate / 2) : (_local2));
this._rotation = this._rotation + (_local5 * _local2);
this.checkHit();
this.shake();
if (((++this.counter) > 50) && (Math.abs(this._rotation - this.desDir) < 1)) {
this.counter = 0;
this.attack4();
if (this.hp < this.lowHp) {
this.phase++;
} else {
this.phase = 1;
}
}
break;
case 8 :
if ((++this.counter) > 60) {
this.counter = 0;
this.phase = 3;
this.desDir = getRotation(this._x, this._y, game.tank._x, game.tank._y);
this.speed = this.org_speed * 1.2;
this.rRate = 12;
} else if ((this.counter == 30) || (this.counter == 5)) {
this.attack5();
} else if ((this.counter == 50) || (this.counter == 10)) {
this.attack2();
}
break;
case 9 :
_local3 = this._rotation;
_local5 = getRotationDir(this.desDir, _local3);
_local4 = getDegree1(this.desDir, _local3);
_local2 = Math.abs(_local4) * 0.5;
_local2 = ((_local2 > this.rRate) ? (this.rRate) : (_local2));
this._rotation = this._rotation + (_local5 * _local2);
this.checkHit();
this.shake();
if (Math.abs(this._rotation - this.desDir) >= 2) {
break;
}
this.phase = 4;
this.go = true;
if (this.hp < this.lowHp) {
this.speed = this.org_speed;
} else {
this.speed = this.org_speed * 0.6;
}
}
this.hp_bar._rotation = -this._rotation;
};
};
temp.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this.shake();
if ((++this._y) > 150) {
this.action();
}
};
return(temp);
}
function newBoss2(xPos, yPos) {
var _local5 = game.enemy.getNextHighestDepth();
var _local2 = game.enemy.attachMovie("jidi", "boss2", _local5, {_x:xPos, _y:yPos});
_local2.hp = (_local2.totalHp = 1500);
_local2.hp_bar._alpha = 0;
_local2.atkRate = 150;
_local2.active = function () {
game.inGame.push(this);
this.hitAction = function (dmg, type) {
this.hitAction1(dmg, type);
if (this.hp < 800) {
this.atkRate = 100;
} else if (this.hp < 300) {
this.atkRate = 80;
}
};
this.paotai1.onEnterFrame = (this.paotai2.onEnterFrame = (this.paotai3.onEnterFrame = (this.paotai4.onEnterFrame = function () {
var _local2 = getPoint(this);
this._rotation = getRotation(_local2.x, _local2.y, game.tank._x, game.tank._y);
if (!random(this._parent.atkRate / 4)) {
var _local3 = getPoint(this.head);
this.head.play();
newBulletE1(getMapArrType(this._parent._x, this._parent._y), _local3.x - game._x, _local3.y - game._y, 2, 10, this._rotation);
}
})));
this.counter = 0;
this.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (game.tank._y < 200) {
game.tank._y = 200;
}
if ((++this.counter) > (this.atkRate * 2)) {
this.counter = 0;
if (!random(2)) {
newEnemyFighter();
} else {
newEnemyHeli();
}
newMissile(100 + random(300), 560, random(40) - 110).launch();
} else if (this.counter == this.atkRate) {
newEnemy2(this._x, this._y + 180, random(6) + 1, 2);
}
};
};
_local2.hitAction1 = function (dmg) {
this.hp_bar._alpha = 100;
this.hp_bar.counter = 0;
this.hp_bar.onEnterFrame = function () {
if ((++this.counter) > 40) {
this._alpha = this._alpha - 10;
if (this._alpha == 0) {
delete this.onEnterFrame;
}
}
};
if (dmg != undefined) {
this.hp = this.hp - dmg;
} else {
this.hp--;
}
this.hp_bar._xscale = 100 * (this.hp / this.totalHp);
if (this.hp <= 0) {
if (!this.counted) {
this.counted = true;
enemyKilled++;
}
this.hp_bar._xscale = 0;
this.die();
} else if (!this.hitMc) {
shotShine(this, "white", 1);
this.createEmptyMovieClip("hitMc", this.getNextHighestDepth());
this.hitMc.counter = 0;
this.hitMc.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) > 4) {
this.removeMovieClip();
}
};
}
};
_local2.hitAction = undefined;
_local2.die = function () {
this.gotoAndStop("die");
delete this.onEnterFrame;
delete this.hitAction;
this.counter = 0;
this.onEnterFrame = function () {
if ((++this.counter) < 120) {
if ((this.counter % 5) == 0) {
newExpl1(this._x + ((random(this._width - 50) - (this._width / 2)) + 25), this._y + random(this._height), true);
}
} else {
gameOver("stageClean");
delete this.counter;
delete this.onEnterFrame;
}
};
};
return(_local2);
}
function newBullet(attachWhat, type, xPos, yPos, dmg, speed, dgr, dx, dy) {
speed = speed + (Math.random() * 2);
dgr = dgr + ((10 * Math.random()) - 5);
var _local7 = game.getNextHighestDepth();
var _local3 = game.attachMovie(attachWhat, "blt" + _local7, _local7, {_x:xPos, _y:yPos});
_local3.dmg = dmg;
if (game_diff_level == 1) {
_local3.dmg = _local3.dmg * 2;
} else if (game_diff_level == 3) {
_local3.dmg = (8 * _local3.dmg) / 10;
}
_local3._rotation = _local3._rotation + dgr;
_local3.counter = 0;
_local3.speed = speed;
_local3.xSpeed = speed * Math.cos(dgr * 0.0174);
_local3.ySpeed = speed * Math.sin(dgr * 0.0174);
if (dx != undefined) {
_local3.xSpeed = _local3.xSpeed + dx;
_local3.ySpeed = _local3.ySpeed + dy;
}
_local3.dx = 0;
_local3.dy = 0;
if (((type == 4) || (type == 5)) || (type == 8)) {
_local3.launchG = "low";
} else {
_local3.launchG = "high";
}
_local3.hitAction = function () {
var _local2 = game.getNextHighestDepth();
game.attachMovie("enemy_huohua", "expl" + _local2, _local2, {_x:this._x, _y:this._y, _rotation:this._rotation});
this.removeMovieClip();
};
_local3.checkHit = function () {
for (var _local3 in game.inGame) {
if (game.inGame[_local3].type != "player") {
var _local2 = game.inGame[_local3];
if (this.hitTest(_local2.g)) {
if ((_local2.hp > 0) and (!_local2.noScore)) {
currentScore = currentScore + 50;
adjust_score(gameUI.score, currentScore);
}
_local2.hitAction(this.dmg);
this.hitAction();
}
}
}
};
_local3.hitWall = function () {
this.hitAction();
};
_local3.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this.dx = this.dx + ((this.xSpeed - this.dx) / 5);
this.dy = this.dy + ((this.ySpeed - this.dy) / 5);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local4 = this._x + game._x;
var _local3 = this._y + game._y;
if ((((_local4 < 0) || (_local4 > 512)) || (_local3 < 0)) || (_local3 > 512)) {
this.removeMovieClip();
}
var _local2 = getMapArrType(this._x, this._y);
if (this.launchG == "low") {
if (((_local2 == 1) || (_local2 == 6)) || (_local2 == 9)) {
this.hitWall();
return(undefined);
}
}
if (stage == 6) {
if (game.enemy.boss != undefined) {
if (game.enemy.boss.hit_g.hitTest(this._x, this._y, true)) {
this.hitAction();
} else if (game.enemy.boss.g.hitTest(this._x, this._y, true)) {
if (game.enemy.boss.hp > 0) {
currentScore = currentScore + 50;
adjust_score(gameUI.score, currentScore);
}
game.enemy.boss.hitAction(this.dmg);
this.hitAction();
}
}
} else if (stage == 12) {
if (game.enemy.boss2 != undefined) {
if (game.enemy.boss2.g.hitTest(this._x, this._y, true)) {
if (game.enemy.boss2.hp > 0) {
currentScore = currentScore + 50;
adjust_score(gameUI.score, currentScore);
}
game.enemy.boss2.hitAction(this.dmg);
this.hitAction();
}
}
}
this.checkHit();
};
return(_local3);
}
function newBullet1(type, xPos, yPos, dmg, speed, dgr) {
play_soundAction("bullet_3");
var _local1 = newBullet("yuanshi", type, xPos, yPos, dmg, speed, dgr);
return(_local1);
}
function newBullet2(type, xPos, yPos, dmg, speed, dgr) {
play_soundAction("bullet_tank");
var _local5 = newBullet("baoliedan", type, xPos, yPos, dmg, speed, dgr);
_local5.hitAction = function () {
var _local2 = game.getNextHighestDepth();
if (getMapArrType(this._x, this._y) == 2) {
game.attachMovie("explWaterEf", "ef" + _local2, _local2, {_x:this._x, _y:this._y});
game.attachMovie("explWaterEf1", "ef" + (_local2 + 1), _local2 + 1, {_x:this._x, _y:this._y});
game.attachMovie("explWaterEf1", "ef" + (_local2 + 2), _local2 + 2, {_x:this._x, _y:this._y, _xscale:-100});
} else {
game.attachMovie("baoliedan_texiao", "expl" + _local2, _local2, {_x:this._x, _y:this._y});
newHole1(this._x, this._y);
newParticle(this._x, this._y, 5 + random(5));
}
for (var _local3 in game.inGame) {
if (game.inGame[_local3].type != "player") {
if (getDis(this._x, this._y, game.inGame[_local3]._x, game.inGame[_local3]._y) < 90) {
if ((game.inGame[_local3].hp > 0) and (!game.inGame[_local3].noScore)) {
currentScore = currentScore + 100;
adjust_score(gameUI.score, currentScore);
}
game.inGame[_local3].hitAction(this.dmg, "burn");
}
}
}
this.removeMovieClip();
};
_local5.checkHit = function () {
for (var _local3 in game.inGame) {
if (game.inGame[_local3].type != "player") {
var _local2 = game.inGame[_local3];
if (this.hitTest(_local2.g)) {
if ((_local2.hp > 0) and (!_local2.noScore)) {
currentScore = currentScore + 100;
adjust_score(gameUI.score, currentScore);
}
_local2.hitAction(this.dmg);
this.hitAction();
}
}
}
if (((++this.counter) * this.speed) > 250) {
this.hitAction();
}
};
return(_local5);
}
function newBullet3(type, xPos, yPos, dmg, speed, dgr) {
play_soundAction("bullet_laser_2");
var _local4 = newBullet("light", type, xPos, yPos, dmg, speed, dgr);
_local4._xscale = speed;
_local4.checkHit = function () {
sethum(this, 0);
for (var _local3 in game.inGame) {
if (game.inGame[_local3].type != "player") {
var _local2 = game.inGame[_local3];
if (getDis(this._x, this._y, _local2._x, _local2._y) < (this.speed + (_local2._width / 2))) {
if (getDegree1(this._rotation, getRotation(this._x, this._y, _local2._x, _local2._y)) < 20) {
if ((_local2.hp > 0) and (!_local2.noScore)) {
currentScore = currentScore + 200;
adjust_score(gameUI.score, currentScore);
}
_local2.hitAction(this.dmg, "burn");
sethum(this, -150);
}
}
}
}
};
return(_local4);
}
function newBullet4(type, xPos, yPos, dmg, speed, dgr, dx, dy) {
play_soundAction("bullet_fire");
var _local3 = newBullet("fire", type, xPos, yPos, dmg, speed, dgr, dx, dy);
delete _local3.hitAction;
_local3.hitWall = function () {
if (!this.rebounce) {
this.rebounce = true;
this._rotation = getComboDegree((this._rotation + 120) + random(120));
this.xSpeed = (this.speed * Math.cos(this._rotation * 0.0174)) * 0.5;
this.ySpeed = (this.speed * Math.sin(this._rotation * 0.0174)) * 0.5;
}
};
_local3.chk = 0;
_local3.checkHit = function () {
if (this.chk == 0) {
for (var _local3 in game.inGame) {
if (game.inGame[_local3].type != "player") {
var _local2 = game.inGame[_local3];
if (this.hitTest(_local2.g)) {
if ((_local2.hp > 0) and (!_local2.noScore)) {
currentScore = currentScore + 150;
adjust_score(gameUI.score, currentScore);
}
_local2.hitAction(this.dmg, "burn");
this.hitAction();
}
}
}
this.chk = 2;
} else {
this.chk--;
}
};
return(_local3);
}
function newBullet5(type, xPos, yPos, dmg, speed, dgr) {
play_soundAction("bullet_gun");
var _local7 = newBullet("sandan", type, xPos, yPos, dmg, speed, dgr + 30);
_local7 = newBullet("sandan", type, xPos, yPos, dmg, speed, dgr - 15);
_local7 = newBullet("sandan", type, xPos, yPos, dmg, speed, dgr);
_local7 = newBullet("sandan", type, xPos, yPos, dmg, speed, dgr + 15);
_local7 = newBullet("sandan", type, xPos, yPos, dmg, speed, dgr + 30);
return(_local7);
}
function newBulletH1(type, xPos, yPos, dmg, speed, dgr, img, ef) {
var _local2 = newBulletE1(type, xPos, yPos, dmg, speed, dgr, img, false, "bullet_gun2");
_local2.ef = ef;
_local2.hitAction = function () {
var _local2 = game.getNextHighestDepth();
this._parent.attachMovie("baozha2", "ef" + _local2, _local2, {_x:this._x, _y:this._y, _xscale:120, _yscale:120});
this.temp_target.lock = false;
this.removeMovieClip();
};
_local2.current_degree = dgr;
_local2.maxSpeed = speed;
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
var _local5 = this._parent.getNextHighestDepth();
this._parent.attachMovie(this.ef, "ef" + _local5, _local5, {_x:this._x, _y:this._y, _rotation:this._rotation});
if ((++this.counter) < 70) {
var _local4 = track(this);
if (_local4 != undefined) {
this.xSpeed = _local4.xSpeed;
this.ySpeed = _local4.ySpeed;
}
}
this.dx = this.dx + ((this.xSpeed - this.dx) / 10);
this.dy = this.dy + ((this.ySpeed - this.dy) / 10);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
var _local7 = this._x + game._x;
var _local6 = this._y + game._y;
if ((((_local7 < 0) || (_local7 > 512)) || (_local6 < 0)) || (_local6 > 512)) {
var _local8 = this.temp_target;
this.removeMovieClip();
_local8.lock = false;
}
var _local12 = getMapArrType(this._x, this._y);
for (var _local3 in game.inGame) {
if (game.inGame[_local3].type != "player") {
var _local2 = game.inGame[_local3];
if (this.hitTest(_local2.g)) {
_local2.hitAction(this.dmg, "burn");
this.hitAction();
}
}
}
};
}
function track(mc_bullet) {
if ((mc_bullet.temp_target._x == undefined) || (mc_bullet.temp_target.hp <= 0)) {
var _local4 = 512;
for (var _local5 in game.inGame) {
var _local2 = game.inGame[_local5];
if (((((!_local2.lock) && (_local2.hp > 0)) && (!_local2.canNotTrack)) && (_local2.type != "man")) && (_local2.type != "player")) {
if (((((_local2._x + game._x) > 0) && ((_local2._x + game._x) < 512)) && ((_local2._y + game._y) > 0)) && ((_local2._y + game._y) < 512)) {
var _local3 = getDis(_local2._x, _local2._y, mc_bullet._x, mc_bullet._y);
if (_local3 < _local4) {
_local4 = _local3;
mc_bullet.temp_target = _local2;
}
}
}
}
if (mc_bullet.temp_target._x != undefined) {
mc_bullet.temp_target.lock = true;
} else {
for (var _local5 in game.enemy) {
var _local2 = game.enemy[_local5];
if ((_local2.hp > 0) && (!_local2.canNotTrack)) {
mc_bullet.temp_target = _local2;
break;
}
}
}
}
if (mc_bullet.temp_target._x != undefined) {
var _local6 = follow(mc_bullet, mc_bullet.temp_target, 10);
} else {
var _local6 = mc_bullet;
}
return(_local6);
}
function follow(mc_bullet, temp_target, d_d) {
var _local6 = temp_target._x - mc_bullet._x;
var _local7 = temp_target._y - mc_bullet._y;
var _local2 = Math.atan2(_local7, _local6) * 57.3;
var _local3 = d_d;
var _local5 = ((Math.abs((mc_bullet.current_degree + 1) - _local2) > 180) ? (Math.abs((mc_bullet.current_degree + 1) - _local2)) : (360 - Math.abs((mc_bullet.current_degree + 1) - _local2)));
var _local4 = ((Math.abs((mc_bullet.current_degree - 1) - _local2) > 180) ? (Math.abs((mc_bullet.current_degree - 1) - _local2)) : (360 - Math.abs((mc_bullet.current_degree - 1) - _local2)));
if (_local5 < _local4) {
_local3 = _local3 * -1;
}
if (Math.abs(mc_bullet.current_degree - _local2) > 10) {
mc_bullet._rotation = mc_bullet._rotation + _local3;
mc_bullet.current_degree = mc_bullet.current_degree + _local3;
if (mc_bullet.current_degree > 180) {
mc_bullet.current_degree = mc_bullet.current_degree - 360;
} else if (mc_bullet.current_degree < -180) {
mc_bullet.current_degree = mc_bullet.current_degree + 360;
}
}
mc_bullet.xSpeed = mc_bullet.maxSpeed * Math.cos(mc_bullet.current_degree * 0.0174);
mc_bullet.ySpeed = mc_bullet.maxSpeed * Math.sin(mc_bullet.current_degree * 0.0174);
return(mc_bullet);
}
function newBulletE1(type, xPos, yPos, dmg, speed, dgr, img, explosive, sound) {
speed = speed + Math.random();
var _local5 = game.getNextHighestDepth();
if (img != undefined) {
var _local2 = game.attachMovie(img, "blt" + _local5, _local5, {_x:xPos, _y:yPos});
} else {
var _local2 = game.attachMovie("yuanshi", "blt" + _local5, _local5, {_x:xPos, _y:yPos});
}
if (sound != undefined) {
play_soundAction(sound);
} else {
play_soundAction("bullet_gun");
}
_local2.dmg = dmg;
_local2._rotation = _local2._rotation + dgr;
_local2.counter = 0;
_local2.xSpeed = speed * Math.cos((dgr * 3.14) / 180);
_local2.ySpeed = speed * Math.sin((dgr * 3.14) / 180);
_local2.dx = 0;
_local2.dy = 0;
_local2.explosive = explosive;
if (((type == 4) || (type == 5)) || (type == 8)) {
_local2.launchG = "low";
} else {
_local2.launchG = "high";
}
_local2.hitAction = function () {
var _local2 = game.getNextHighestDepth();
if (this.explosive) {
newExpl1(this._x, this._y, true);
} else {
game.attachMovie("enemy_huohua", "expl" + _local2, _local2, {_x:this._x, _y:this._y, _rotation:this._rotation});
}
this.removeMovieClip();
};
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this.dx = this.dx + ((this.xSpeed - this.dx) / 5);
this.dy = this.dy + ((this.ySpeed - this.dy) / 5);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if ((++this.counter) > 100) {
this.removeMovieClip();
}
var _local3 = getMapArrType(this._x, this._y);
if (this.launchG == "low") {
if (((_local3 == 1) || (_local3 == 6)) || (_local3 == 9)) {
this.hitAction();
}
}
for (var _local2 in game.inGame) {
if (game.inGame[_local2].type == "player") {
temp = game.inGame[_local2];
if (this.hitTest(temp.g)) {
temp.hitAction(this.dmg);
this.hitAction();
}
}
}
};
return(_local2);
}
function newBulletE2(xPos, yPos, dmg, speed, dgr) {
speed = speed + Math.random();
var _local3 = game.getNextHighestDepth();
play_soundAction("bullet_laser_2");
var _local2 = game.attachMovie("light", "blt" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.xSpeed = speed * Math.cos((dgr * 3.14) / 180);
_local2.ySpeed = speed * Math.sin((dgr * 3.14) / 180);
_local2.dmg = dmg;
_local2._xscale = speed;
_local2._rotation = _local2._rotation + dgr;
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if ((++this.counter) > 30) {
this.removeMovieClip();
}
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < speed) {
if (getDegree1(this._rotation, getRotation(this._x, this._y, game.tank._x, game.tank._y)) < 10) {
game.tank.hitAction(this.dmg);
}
}
};
return(_local2);
}
function newBulletE3(type, xPos, yPos, dmg, speed, dgr, img, ef) {
var temp = newBulletE1(type, xPos, yPos, dmg, speed, dgr, img);
temp.ef = ef;
temp.hitAction = function () {
var _local2 = game.getNextHighestDepth();
newExpl1(this._x, this._y, true);
this.removeMovieClip();
};
temp.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((this.counter % 3) == 0) {
var _local4 = this._parent.getNextHighestDepth();
this._parent.attachMovie(this.ef, "ef" + _local4, _local4, {_x:this._x, _y:this._y, _rotation:this._rotation});
}
this.dx = this.dx + ((this.xSpeed - this.dx) / 5);
this.dy = this.dy + ((this.ySpeed - this.dy) / 5);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if ((++this.counter) > 100) {
this.removeMovieClip();
}
var _local3 = getMapArrType(this._x, this._y);
if (this.launchG == "low") {
if (((_local3 == 1) || (_local3 == 6)) || (_local3 == 9)) {
this.hitAction();
}
}
for (var _local2 in game.inGame) {
if (game.inGame[_local2].type == "player") {
temp = game.inGame[_local2];
if (this.hitTest(temp.g)) {
temp.hitAction(this.dmg);
this.hitAction();
}
}
}
};
}
function newBulletE4(type, xPos, yPos, dmg, speed, dgr, img, ef) {
var temp = newBulletE1(type, xPos, yPos, dmg, speed, dgr, img);
temp.ef = ef;
temp.hitAction = function () {
newExpl1(this._x, this._y, true);
this.removeMovieClip();
};
temp.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
var _local3 = this._parent.getNextHighestDepth();
this._parent.attachMovie(this.ef, "ef" + _local3, _local3, {_x:this._x, _y:this._y, _rotation:this._rotation});
this.dx = this.dx + ((this.xSpeed - this.dx) / 5);
this.dy = this.dy + ((this.ySpeed - this.dy) / 5);
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if ((++this.counter) > 25) {
this.hitAction();
}
var _local7 = getMapArrType(this._x, this._y);
for (var _local2 in game.inGame) {
if (game.inGame[_local2].type == "player") {
temp = game.inGame[_local2];
if (this.hitTest(temp.g)) {
temp.hitAction(this.dmg);
this.hitAction();
}
}
}
};
}
function newBox(xPos, yPos, type) {
var _local2 = newBuilding("map_box", xPos, yPos);
_local2.init("enemy", 15, 10, 1000, 9);
_local2.patchColor = 5;
if (isNaN(type)) {
type = 1;
}
_local2.typ = type;
_local2.die = function (type) {
newItems(this.typ, this._x, this._y);
removeMinimapObj(this);
newExpl1(this._x, this._y, 1);
for (var _local2 in game.inGame) {
if (game.inGame[_local2] == this) {
game.inGame.splice(_local2, 1);
}
}
this.removeMovieClip();
};
}
function newItems(what, xPos, yPos) {
var _local3 = game.getNextHighestDepth();
var _local2 = game.attachMovie("present", "item" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.typ = what;
switch (what) {
case 1 :
_local2.gotoAndStop("repair");
break;
case 2 :
_local2.gotoAndStop("baoliedan");
break;
case 3 :
_local2.gotoAndStop("fire");
break;
case 4 :
_local2.gotoAndStop("light");
break;
case 5 :
_local2.gotoAndStop("sandan");
break;
case 6 :
_local2.gotoAndStop("baoxian");
break;
case 7 :
_local2.gotoAndStop("speed");
break;
case 8 :
_local2.gotoAndStop("missile");
break;
case 9 :
_local2.gotoAndStop("wudi");
}
_local2.work = function () {
itemsGot++;
switch (this.typ) {
case 1 :
game.tank.hp = game.tank.hp + 50;
if (game.tank.hp > 100) {
game.tank.hp = 100;
}
gameUI.hp_bar._xscale = game.tank.hp;
sethum(gameUI.hp_bar, ((115 * game.tank.hp) / 100) - 15);
break;
case 2 :
game.tank.changeWeapon(2);
break;
case 3 :
game.tank.changeWeapon(4);
break;
case 4 :
game.tank.changeWeapon(3);
break;
case 5 :
game.tank.changeWeapon(5);
break;
case 6 :
game.tank.bomber++;
gameUI.bomber.gotoAndStop(game.tank.bomber + 1);
break;
case 7 :
game.tank.maxSpeed = 12;
break;
case 8 :
game.tank.missile_able = true;
break;
case 9 :
if (game.tank.armorLv != 1) {
break;
}
if (game.tank.armorCount == undefined) {
game.tank.armorCount = 1;
} else {
if ((++game.tank.armorCount) != 4) {
break;
}
delete game.tank.armorCount;
shotShine(game.tank, "white", 10);
game.tank.wLevel = 1;
game.tank.armorUp();
play_soundAction("sel_crt");
}
}
play_soundAction("bullet_bubble");
shotShine(this, "Awhite", 5);
this.counter = 0;
this.onEnterFrame = function () {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
if ((++this.counter) > 10) {
this.removeMovieClip();
}
};
};
_local2.counter = 0;
_local2.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if (getDis(this._x, this._y, game.tank._x, game.tank._y) < 40) {
this.work();
}
if ((++this.counter) > 250) {
if (this.counter < 280) {
if ((this.counter % 3) == 0) {
this._alpha = 40;
} else if ((this.counter % 3) == 1) {
this._alpha = 100;
}
} else if (this.counter < 300) {
if ((this.counter % 2) == 0) {
this._alpha = 40;
} else if ((this.counter % 2) == 1) {
this._alpha = 100;
}
} else {
this.removeMovieClip();
}
}
};
}
function newBomb(xPos, yPos) {
var _local3 = game.getNextHighestDepth();
var _local4 = game.attachMovie("zhadan_touying", "bs" + _local3, _local3, {_x:xPos - 30, _y:yPos});
_local3 = game.getNextHighestDepth();
var _local6 = game.attachMovie("baoxian_zhadan", "b" + _local3, _local3, {_x:xPos, _y:yPos});
_local6.counter = 0;
_local6.gotoAndStop(2);
_local6.expl = function () {
var _local3 = game.getNextHighestDepth();
if (getMapArrType(xPos, yPos) == 2) {
game.attachMovie("explWaterEf", "ef" + _local3, _local3, {_x:xPos, _y:yPos});
game.attachMovie("explWaterEf1", "ef" + (_local3 + 1), _local3 + 1, {_x:xPos, _y:yPos});
game.attachMovie("explWaterEf1", "ef" + (_local3 + 2), _local3 + 2, {_x:xPos, _y:yPos, _xscale:-100});
} else {
var _local8 = game.attachMovie("baoxian_explode", "b" + _local3, _local3, {_x:xPos, _y:yPos});
newHole1(this._x, this._y);
newParticle(this._x, this._y, 5 + random(5));
}
for (var _local4 in game.inGame) {
if (game.inGame[_local4].type != "player") {
if (getDis(this._x, this._y, game.inGame[_local4]._x, game.inGame[_local4]._y) < 90) {
var _local2 = 50;
if (game_diff_level == 1) {
_local2 = _local2 * 2;
}
game.inGame[_local4].hitAction(_local2);
}
}
}
this.removeMovieClip();
};
_local6.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) < 40) {
this._y = this._y + 0.3;
this._x = this._x - 0.375;
this._xscale = (this._yscale = 100 - this.counter);
} else {
this.expl();
}
};
_local4._xscale = (_local4._yscale = 20);
_local4.counter = 0;
_local4.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) < 40) {
this._y = this._y + 0.3;
this._x = this._x + 0.375;
this._xscale = (this._yscale = this.counter + 20);
} else {
this.removeMovieClip();
}
};
}
function callForHelp() {
if (game.tank.bomber > 0) {
if (airSupport == undefined) {
game.scrollIt = false;
airSupport = 4;
game.tank.bomber--;
gameUI.bomber.gotoAndStop(game.tank.bomber + 1);
if (!game.tank.wudizhao) {
play_soundAction("bullet_bubble");
game.tank.attachMovie("wudizhao", "wudizhao", game.tank.getNextHighestDepth());
}
game.tank.wudizhao.counter = 0;
game.tank.wudizhao.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
if ((++this.counter) > 180) {
if (this.counter > 220) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
if (this._xscale <= 5) {
play_soundAction("bullet_bubble");
this.removeMovieClip();
}
} else if ((this.counter % 4) == 0) {
this._alpha = 20;
} else if ((this.counter % 4) == 1) {
this._alpha = 100;
}
}
};
play_soundAction("\u98DE\u673A\u98DE\u8FC7");
var _local2 = 0;
while (_local2 <= 4) {
var _local4 = air.getNextHighestDepth();
var _local5 = air.attachMovie("baoxian_plane", "plane" + _local4, _local4, {_x:(76 + (_local2 * 126)) - air._x, _y:(512 + (140 * (_local2 % 2))) - air._y});
_local5.counter = 0;
_local5.onEnterFrame = function () {
if (gamePause) {
return(undefined);
}
this._y = this._y - 10;
var _local2 = this._y + air._y;
if ((_local2 < 520) and (_local2 > 0)) {
if (((++this.counter) % 10) == 0) {
play_soundAction("\u8F70\u70B8\u673A\u843D\u5F39");
newBomb((this._x + random(20)) - 10, (this._y + random(20)) - 10);
}
} else if (_local2 < -80) {
if ((--airSupport) <= 0) {
delete airSupport;
game.scrollIt = true;
}
this.removeMovieClip();
}
};
_local2++;
}
}
}
}
function newExpl1(xPos, yPos, shake) {
var _local1 = game.getNextHighestDepth();
if (getMapArrType(xPos, yPos) == 2) {
game.attachMovie("explWaterEf", "ef" + _local1, _local1, {_x:xPos, _y:yPos});
game.attachMovie("explWaterEf1", "ef" + (_local1 + 1), _local1 + 1, {_x:xPos, _y:yPos});
game.attachMovie("explWaterEf1", "ef" + (_local1 + 2), _local1 + 2, {_x:xPos, _y:yPos, _xscale:-100});
} else {
game.attachMovie("enemy_explode", "ef" + _local1, _local1, {_x:xPos, _y:yPos});
if (shake) {
newShake();
}
newHole1(xPos, yPos);
newParticle(xPos, yPos, 5 + random(5));
}
}
function newExpl2(xPos, yPos, shake) {
var _local1 = game.getNextHighestDepth();
if (getMapArrType(xPos, yPos) == 2) {
game.attachMovie("explWaterEf", "ef" + _local1, _local1, {_x:xPos, _y:yPos});
game.attachMovie("explWaterEf1", "ef" + (_local1 + 1), _local1 + 1, {_x:xPos, _y:yPos});
game.attachMovie("explWaterEf1", "ef" + (_local1 + 2), _local1 + 2, {_x:xPos, _y:yPos, _xscale:-100});
} else {
game.attachMovie("enemy_explode2", "ef" + _local1, _local1, {_x:xPos, _y:yPos});
if (shake) {
newShake(6);
}
newShineScr("white");
newHole1(xPos, yPos);
}
}
function newHole1(xPos, yPos) {
var _local3 = game.gef.getNextHighestDepth();
var _local2 = game.gef.attachMovie("explHole", "ef" + _local3, _local3, {_x:xPos, _y:yPos});
_local2.mc1.gotoAndStop(random(_local2.mc1._totalframes) + 1);
_local2.mc2.gotoAndStop(random(_local2.mc2._totalframes) + 1);
groundEffect.push(_local2);
if (groundEffect.length > 5) {
groundEffect[0].onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
groundEffect.shift();
}
}
function newParticle(xPos, yPos, n) {
var _local6 = 0;
while (_local6 < n) {
var _local4 = game.gef.getNextHighestDepth();
var _local2 = game.gef.attachMovie("stones", "ef" + _local4, _local4, {_x:xPos, _y:yPos});
_local2.gotoAndStop(random(_local2._totalframes) + 1);
var _local3 = random(360) - 180;
var _local5 = random(10) + 10;
_local2.counter = 0;
_local2.xs = _local5 * Math.cos(_local3 * 0.0174);
_local2.ys = _local5 * Math.sin(_local3 * 0.0174);
_local2.onEnterFrame = function () {
this._x = this._x + this.xs;
this._y = this._y + this.ys;
this.xs = this.xs * 0.8;
this.ys = this.ys * 0.8;
if ((++this.counter) > 5) {
this._alpha = this._alpha - 10;
this._xscale = (this._yscale = this._alpha);
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
_local6++;
}
}
function newDust1(xPos, yPos) {
var _local1 = game.getNextHighestDepth();
game.attachMovie("lei_hui", "ef" + _local1, _local1, {_x:xPos, _y:yPos});
}
function newShake(r) {
if (!game.shake) {
game.createEmptyMovieClip("shake", game.getNextHighestDepth());
}
game.shake.counter = 0;
if (game.shake.onEnterFrame == undefined) {
if (r != undefined) {
game.shake.r = r;
} else {
game.shake.r = 3;
}
game.shake.onEnterFrame = function () {
if ((++this.counter) > (2 * this.r)) {
_root._x = 0;
_root._y = 0;
delete this.onEnterFrame;
} else if ((this.counter % 2) == 0) {
_root._x = _root._x + (((random(2) * this.r) * 2) - this.r);
_root._y = _root._y + (((random(2) * this.r) * 2) - this.r);
} else if ((this.counter % 2) == 1) {
_root._x = 0;
_root._y = 0;
}
};
}
}
function newNoise(t) {
if (t == undefined) {
t = 1;
}
if (!noiseMc) {
_root.createEmptyMovieClip("noiseMc", _root.getNextHighestDepth());
var _local3 = new flash.display.BitmapData(512, 512, false);
_local3.draw(game);
_local3.noise(128);
noiseMc.attachBitmap(_local3, noiseMc.getNextHighestDepth());
noiseMc.counter = t;
noiseMc.onEnterFrame = function () {
if ((--this.counter) < 0) {
this.removeMovieClip();
}
};
noiseMc._alpha = 35;
}
}
function newShineScr(type) {
if (!shineMc) {
_root.attachMovie("mask", "shineMc", _root.getNextHighestDepth());
shineMc.gotoAndStop(type);
shineMc.counter = 3;
shineMc.onEnterFrame = function () {
if ((--this.counter) < 0) {
this.removeMovieClip();
} else if (this.counter != 3) {
this._alpha = 0;
}
};
}
}
function initPathFinder() {
nx = (tileWidth * tileNumX) / 32;
ny = (tileHeight * tileNumY) / 32;
var _local4 = 0;
while (_local4 < ny) {
mmap[_local4] = [];
_local4++;
}
_local4 = 0;
while (_local4 < ny) {
fmap[_local4] = [];
_local4++;
}
_local4 = 0;
while (_local4 < ny) {
var _local2 = 0;
while (_local2 < nx) {
var _local3 = _root[("map" + stage) + "arr"][_local4][_local2];
if ((_local3 == 1) || (_local3 == 2)) {
mmap[_local4][_local2] = 1;
} else if (isNaN(_local3)) {
if (_local3[1].length != 0) {
mmap[_local4][_local2] = 1;
} else if ((_local3[0] == 1) || (_local3[0] == 2)) {
mmap[_local4][_local2] = 1;
} else {
mmap[_local4][_local2] = 0;
}
} else {
mmap[_local4][_local2] = 0;
}
_local2++;
}
_local4++;
}
}
function startPathing(who, dx, dy) {
pathList.push([who.dx, dy]);
if (this.pathFinder != undefined) {
return(undefined);
}
trace("startPathing");
pathFinding(who, dx, dy);
}
function pathFinding(who, dx, dy) {
var _local14 = Math.floor(dx / 32);
var _local13 = Math.floor(dy / 32);
var ex = Math.floor(who._x / 32);
var ey = Math.floor(who._y / 32);
if ((_local14 == ex) && (_local13 == ey)) {
return(undefined);
}
who.finded = false;
var _local7 = 0;
while (_local7 < ny) {
var _local5 = 0;
while (_local5 < nx) {
fmap[_local7][_local5] = mmap[_local7][_local5];
_local5++;
}
_local7++;
}
fmap[ey][ex] = 0;
who.vmap = [];
who.vmap[1] = [_local14, _local13, 1, 0];
fmap[_local13][_local14] = 1;
this.createEmptyMovieClip("pathfinder", this.getNextHighestDepth());
this.pathfinder.p = 1;
this.pathfinder.i = 1;
this.pathfinder.ex = ex;
this.pathfinder.ey = ey;
this.pathfinder.onEnterFrame = function () {
var _local10 = getTimer();
while (who.vmap[this.i] != undefined) {
if ((getTimer() - _local10) > 15) {
break;
}
var _local3 = 0;
while (_local3 < 8) {
if (fmap[who.vmap[this.i][1] + parrow[_local3][1]][who.vmap[this.i][0] + parrow[_local3][0]] == 0) {
this.p++;
who.vmap[this.p] = [who.vmap[this.i][0] + parrow[_local3][0], who.vmap[this.i][1] + parrow[_local3][1], who.vmap[this.i][2] + 1, this.i];
fmap[who.vmap[this.i][1] + parrow[_local3][1]][who.vmap[this.i][0] + parrow[_local3][0]] = 1;
}
_local3++;
}
if ((who.vmap[this.i][0] == this.ex) and (who.vmap[this.i][1] == this.ey)) {
trace("finded:");
who.finded = true;
who.cp = this.i;
var _local2 = [];
var _local5 = this.i;
var _local4 = 0;
while (_local5 != 1) {
_local5 = who.vmap[_local5][3];
_local2[_local4] = [who.vmap[_local5][0], who.vmap[_local5][1]];
_local4++;
}
var _local9 = _local2[0][0] - _local2[1][0];
var _local8 = _local2[0][1] - _local2[1][1];
var _local7;
var _local6;
_local4 = 1;
while (_local4 < (_local2.length - 1)) {
_local7 = _local2[_local4][0] - _local2[_local4 + 1][0];
_local6 = _local2[_local4][1] - _local2[_local4 + 1][1];
if ((_local9 == _local7) && (_local8 == _local6)) {
_local2.splice(_local4, 1);
_local4--;
} else {
_local9 = _local7;
_local8 = _local6;
}
_local4++;
}
who.vmap = [];
who.vmap = _local2.slice();
who.go = true;
pathList.shift();
if (pathList.length > 0) {
pathFinding(pathList[0][0], pathList[0][1], pathList[0][2]);
}
this.removeMovieClip();
return(undefined);
}
this.i++;
}
if (who.vmap[this.i] == undefined) {
who.finded = false;
trace("cannot find");
pathList.shift();
if (pathList.length > 0) {
pathFinding(pathList[0][0], pathList[0][1], pathList[0][2]);
}
this.removeMovieClip();
}
};
}
function checkAndGotoPath(who) {
if (who.finded) {
if (getDis(who.vmap[0][0] * 32, who.vmap[0][1] * 32, who._x, who._y) > 20) {
who.gotoNextPoint();
} else {
who.vmap.shift();
}
if (who.vmap.length == 0) {
who.go = false;
who.finded = false;
}
}
}
function changeColor(targetMc, color) {
if (color != undefined) {
targetMc.filters = [new flash.filters.ColorMatrixFilter(color)];
}
}
function filterRemove(mc) {
mc.filters = null;
}
function sethum(who, val) {
var _local6 = ((val == undefined) ? (random(360) - 180) : (val));
_local6 = (Math.min(180, Math.max(-180, _local6)) / 180) * 3.141593;
var _local2 = Math.cos(_local6);
var _local1 = Math.sin(_local6);
var _local4 = 0.213;
var _local3 = 0.715;
var _local5 = 0.072;
var _local7 = [(_local4 + (_local2 * (1 - _local4))) + (_local1 * (-_local4)), (_local3 + (_local2 * (-_local3))) + (_local1 * (-_local3)), (_local5 + (_local2 * (-_local5))) + (_local1 * (1 - _local5)), 0, 0, (_local4 + (_local2 * (-_local4))) + (_local1 * 0.143), (_local3 + (_local2 * (1 - _local3))) + (_local1 * 0.14), (_local5 + (_local2 * (-_local5))) + (_local1 * -0.283), 0, 0, (_local4 + (_local2 * (-_local4))) + (_local1 * (-(1 - _local4))), (_local3 + (_local2 * (-_local3))) + (_local1 * _local3), (_local5 + (_local2 * (1 - _local5))) + (_local1 * _local5), 0, 0, 0, 0, 0, 1, 0];
var _local8 = new flash.filters.ColorMatrixFilter(_local7);
who.filters = [0, 0, 0, _local8];
}
function setSaturation(mc, val) {
var _local2 = 0.3086;
var _local4 = 0.6094;
var _local3 = 0.082;
var _local11 = ((1 - val) * _local2) + val;
var _local15 = (1 - val) * _local4;
var _local8 = (1 - val) * _local3;
var _local9 = (1 - val) * _local2;
var _local14 = ((1 - val) * _local4) + val;
var _local6 = (1 - val) * _local3;
var _local7 = (1 - val) * _local2;
var _local13 = (1 - val) * _local4;
var _local5 = ((1 - val) * _local3) + val;
var _local12 = [_local11, _local15, _local8, 0, 0, _local9, _local14, _local6, 0, 0, _local7, _local13, _local5, 0, 0, 0, 0, 0, 1, 0];
var _local10 = new flash.filters.ColorMatrixFilter(_local12);
mc.filters = [0, 0, _local10, 0];
}
function whiteFilter(mc, blurXY) {
var _local5 = 16777215 /* 0xFFFFFF */;
var _local11 = 100;
if (blurXY == undefined) {
var _local8 = 100;
var _local7 = 100;
} else {
var _local8 = blurXY;
var _local7 = blurXY;
}
var _local9 = 1000;
var _local3 = 1;
var _local6 = true;
var _local10 = false;
var _local4 = new flash.filters.GlowFilter(_local5, _local11, _local8, _local7, _local9, _local3, _local6, _local10);
var _local1 = new Array();
_local1.push(_local4);
mc.filters = _local1;
}
function flashFilter(mc, blurXY) {
var _local5 = 16777215 /* 0xFFFFFF */;
var _local11 = 10;
if (blurXY == undefined) {
var _local8 = 100;
var _local7 = 100;
} else {
var _local8 = blurXY;
var _local7 = blurXY;
}
var _local9 = 0.6;
var _local3 = 1;
var _local6 = false;
var _local10 = false;
var _local4 = new flash.filters.GlowFilter(_local5, _local11, _local8, _local7, _local9, _local3, _local6, _local10);
var _local1 = new Array();
_local1.push(_local4);
mc.filters = _local1;
}
function shotShine(who, shine, shineTimes) {
if (who.shineMc == undefined) {
who.createEmptyMovieClip("shineMc", who.getNextHighestDepth());
var _local3 = new Color(who);
_local3.setTransform(this["shine_Transform_" + shine]);
who.shineMc.count = 0;
who.shineMc.shineTimes = shineTimes;
who.shineMc.onEnterFrame = function () {
if ((++this.count) == this.shineTimes) {
var _local2 = new Color(this._parent);
_local2.setTransform(shine_Transform_normal);
this.removeMovieClip();
}
};
}
}
function shotShine2(who, shine, shineTimes) {
if (who.shineMc == undefined) {
who.createEmptyMovieClip("shineMc", who.getNextHighestDepth());
var _local3 = new Color(who);
_local3.setTransform(this["shine_Transform_" + shine]);
who.shineMc.count = 0;
who.shineMc.shineTimes = shineTimes;
who.shineMc.onEnterFrame = function () {
if ((++this.count) == this.shineTimes) {
var _local2 = new Color(this._parent);
_local2.setTransform(shine_Transform_normal);
this.removeMovieClip();
} else if ((this.count % 3) == 0) {
var _local2 = new Color(this._parent);
_local2.setTransform(game._parent["shine_Transform_" + shine]);
} else {
var _local2 = new Color(this._parent);
_local2.setTransform(shine_Transform_normal);
}
};
}
}
function alwaysShine(who, shine) {
var _local2 = new Color(who);
_local2.setTransform(this["shine_Transform_" + shine]);
}
function selectMission() {
}
function newUI() {
var _local4 = _root.getNextHighestDepth();
_root.attachMovie("game_ui", "gameUI", _local4);
gameUI.bomber.gotoAndStop(game.tank.bomber + 1);
sethum(gameUI.hp_bar, 100);
var map = gameUI.miniMap.mc.attachMovie("miniMap", "map", gameUI.miniMap.getNextHighestDepth());
map.setMask(gameUI.miniMap.mc.mask);
map._xscale = (map._yscale = 50);
map.gotoAndStop(stage);
map.attachMovie("hero_p", "hero", map.getNextHighestDepth());
map._alpha = 80;
map.hero.stop();
adjust_score(gameUI.score, totalScore);
gameUI.close_btn.onRelease = function () {
gameUI.miniMap.onEnterFrame = function () {
this._y = this._y + ((-90 - this._y) / 2);
if (this._y < -89) {
this._y = -90;
delete this.onEnterFrame;
}
};
this._visible = false;
gameUI.add_btn._visible = true;
play_soundAction("\u9009\u62E9\u5173\u5361");
};
gameUI.add_btn.onRelease = function () {
gameUI.miniMap.onEnterFrame = function () {
this._y = this._y + ((19 - this._y) / 2);
if (this._y > 18) {
this._y = 19;
delete this.onEnterFrame;
}
};
this._visible = false;
gameUI.close_btn._visible = true;
play_soundAction("\u9009\u62E9\u5173\u5361");
};
gameUI.miniMap.mc.showMap = function () {
this.map._x = 0;
this.map._y = 0;
if ((((stage == 1) || (stage == 4)) || (stage == 6)) || (stage == 12)) {
this.narrow = true;
}
this.onEnterFrame = function () {
this.map.hero._x = (game.tank._x * 102) / 512;
this.map.hero._y = (game.tank._y * 102) / 512;
if (this.narrow) {
this.map._x = 26;
} else {
this.map._x = 51 - (this.map.hero._x * 0.5);
if (this.map._x > 0) {
this.map._x = 0;
} else if ((this.map._x + this.map._width) < 103) {
this.map._x = 103 - this.map._width;
}
}
this.map._y = 51 - (this.map.hero._y * 0.5);
if (this.map._y > 0) {
this.map._y = 0;
} else if ((this.map._y + this.map._height) < 103) {
this.map._y = 103 - this.map._height;
}
};
};
gameUI.miniMap.hideMap = function () {
};
gameUI.miniMap.mc.showMap();
gameUI._y = -129;
gameUI.showUp = function () {
this.onEnterFrame = function () {
var _local2 = int((-this._y) / 5);
this._y = this._y + _local2;
if (_local2 < 1) {
this._y = 0;
this.logo._visible = true;
shotShine(this.logo, "white", 5);
this.p_btn._visible = true;
shotShine(this.p_btn, "white", 5);
this.s_btn._visible = true;
shotShine(this.s_btn, "white", 5);
delete this.onEnterFrame;
}
};
};
gameUI.p_btn.stop();
gameUI.p_btn.onPress = function () {
this._y = this._y + 2;
};
gameUI.p_btn.onReleaseOutside = function () {
this._y = this._y - 2;
};
gameUI.p_btn.onRelease = function () {
this._y = this._y - 2;
if (gamePause) {
gamePause = false;
gameUI.mask.removeMovieClip();
play_soundAction("pick_up_w");
_root[now_music].setVolume(100);
this.gotoAndStop(1);
} else {
gamePause = true;
var _local3 = gameUI.attachMovie("mask", "mask", gameUI.getNextHighestDepth());
_local3.gotoAndStop("black");
play_soundAction("pick_up_w");
_root[now_music].setVolume(0);
this.gotoAndStop(2);
}
};
gameUI.s_btn.stop();
gameUI.s_btn.onPress = function () {
this._y = this._y + 2;
};
gameUI.s_btn.onReleaseOutside = function () {
this._y = this._y - 2;
};
gameUI.s_btn.onRelease = function () {
this._y = this._y - 2;
if (music or sound) {
music = false;
sound = false;
stopAllSounds();
this.gotoAndStop(2);
} else {
music = true;
sound = true;
_root[now_music].start(0, 999);
this.gotoAndStop(1);
}
play_soundAction("pick_up_w");
};
return(gameUI);
}
function adjust_score(where, score) {
var _local1 = 1000000000 + Math.round(score);
var _local11 = Number(_local1.toString().slice(9, 10)) + 1;
var _local10 = Number(_local1.toString().slice(8, 9)) + 1;
var _local9 = Number(_local1.toString().slice(7, 8)) + 1;
var _local8 = Number(_local1.toString().slice(6, 7)) + 1;
var _local7 = Number(_local1.toString().slice(5, 6)) + 1;
var _local6 = Number(_local1.toString().slice(4, 5)) + 1;
var _local5 = Number(_local1.toString().slice(3, 4)) + 1;
var _local4 = Number(_local1.toString().slice(2, 3)) + 1;
var _local3 = Number(_local1.toString().slice(1, 2)) + 1;
where.num1.gotoAndStop(_local11);
where.num10.gotoAndStop(_local10);
where.num100.gotoAndStop(_local9);
where.num1000.gotoAndStop(_local8);
where.num10000.gotoAndStop(_local7);
where.num100000.gotoAndStop(_local6);
where.num1000000.gotoAndStop(_local5);
where.num10000000.gotoAndStop(_local4);
where.num100000000.gotoAndStop(_local3);
}
function show_allScore(where, winLose) {
if (winLose and (timeManager != undefined)) {
timeLeft = timeManager.time;
} else {
timeLeft = 0;
}
health = game.tank.hp;
adjust_score(where.current, currentScore);
adjust_score(where.times, timeLeft * 1000);
adjust_score(where.killed, enemyKilled);
adjust_score(where.enemyScore, enemyKilled * 5000);
adjust_score(where.health, health * 2000);
adjust_score(where.item_got, itemsGot);
adjust_score(where.itemScore, itemsGot * 3000);
totalScore = (((currentScore + (timeLeft * 1000)) + (enemyKilled * 5000)) + (health * 2000)) + (itemsGot * 3000);
adjust_score(where.total, totalScore);
if (winLose) {
var _local2 = 1 + Math.round(hitByEnemy / 10);
if (_local2 >= 10) {
_local2 = 10;
}
where.rank.gotoAndStop(_local2);
game_save_files(stage, _local2);
if (stage < 18) {
game_save_files(stage + 1, 0);
}
} else {
where.rank.gotoAndStop(11);
}
}
function gameOver(resultt) {
gamePause = true;
var _local5 = -180;
var _local4 = 250;
switch (resultt) {
case "missionStart" :
_root.attachMovie("mission_start_mc", "resul", _root.getNextHighestDepth(), {_x:_local5, _y:_local4});
trace("missionStart");
currentScore = totalScore;
timeLeft = 0;
enemyKilled = 0;
health = 0;
itemsGot = 0;
hitByEnemy = 0;
break;
case "missionFailed" :
play_music("\u5931\u8D25", false);
_root.attachMovie("mission_failed_mc", "resul", _root.getNextHighestDepth(), {_x:_local5, _y:_local4});
for (var _local3 in game.inGame) {
delete game.inGame[_local3].onEnterFrame;
}
trace("missionFailed");
gameUI.p_btn.enabled = false;
gameUI.s_btn.enabled = false;
break;
case "stageClean" :
play_music("\u80DC\u5229", false);
_root.attachMovie("stage_clean_mc", "resul", _root.getNextHighestDepth(), {_x:_local5, _y:_local4});
for (var _local3 in game.inGame) {
delete game.inGame[_local3].onEnterFrame;
}
trace("stageClean");
gameUI.p_btn.enabled = false;
gameUI.s_btn.enabled = false;
}
resul.typ = resultt;
resul.counter = 0;
if (resultt == "missionFailed") {
resul.onEnterFrame = function () {
if ((++this.counter) < 60) {
this._x = this._x + int((256 - this._x) / 5);
} else if (this.counter == 60) {
_root.attachMovie("mask", "redMc", _root.getNextHighestDepth());
_root.redMc._alpha = 0;
} else if (this.counter < 120) {
if (_root.redMc._alpha < 100) {
_root.redMc._alpha = _root.redMc._alpha + 2;
}
} else {
_root.attachMovie("gameOverMc", "gameOverMc", _root.getNextHighestDepth());
gameOverMc._x = 512;
show_allScore(gameOverMc, false);
gameOverMc.onEnterFrame = function () {
if (this._x > 0) {
this._x = this._x - 102.4;
} else {
this._x = 0;
this.back_btn.onRelease = function () {
_root.gotoAndStop("title");
play_soundAction("sel_crt");
totalScore = 0;
this._parent.removeMovieClip();
};
this.submit_btn.onRelease = function () {
play_soundAction("sel_crt");
var _local2 = com.miniclip.highscores.HighscoresLoader.start(totalScore);
trace("game over! submit score " + totalScore);
this.enabled = false;
};
for (var _local3 in _root) {
if (typeof(_root[_local3]) == "movieclip") {
if (_root[_local3] != _root.gameOverMc) {
_root[_local3].removeMovieClip();
}
}
}
delete this.onEnterFrame;
}
};
delete this.onEnterFrame;
this.removeMovieClip();
}
};
} else {
resul.onEnterFrame = function () {
if ((++this.counter) < 60) {
this._x = this._x + int((256 - this._x) / 5);
} else if (this.counter == 60) {
if (this.typ == "missionStart") {
game.scrollIt = true;
gamePause = false;
}
} else if (this.counter < 80) {
this._x = this._x + int((692 - this._x) / 5);
} else if (this.counter > 80) {
if (this.typ == "stageClean") {
_root.attachMovie("congratulationsMc", "congratulationsMc", _root.getNextHighestDepth());
congratulationsMc._x = 512;
show_allScore(congratulationsMc, true);
congratulationsMc.continue_btn._visible = false;
congratulationsMc.onEnterFrame = function () {
if (this._x > 0) {
this._x = this._x - 102.4;
} else {
this._x = 0;
this.back_btn.onRelease = function () {
_root.gotoAndStop("title");
play_soundAction("sel_crt");
totalScore = 0;
this._parent.removeMovieClip();
};
if (stage < 18) {
this.continue_btn._visible = true;
this.continue_btn._y = this.submit_btn._y;
this.continue_btn.onRelease = function () {
stage++;
Tank_game_start();
this._parent.removeMovieClip();
};
this.submit_btn.swapDepths(100);
this.submit_btn.removeMovieClip();
} else {
this.continue_btn.swapDepths(100);
this.continue_btn.removeMovieClip();
this.submit_btn.onRelease = function () {
play_soundAction("sel_crt");
var _local2 = com.miniclip.highscores.HighscoresLoader.start(totalScore);
trace("I won ! submit score " + totalScore);
this.enabled = false;
};
}
for (var _local3 in _root) {
if (typeof(_root[_local3]) == "movieclip") {
if (_root[_local3] != _root.congratulationsMc) {
_root[_local3].removeMovieClip();
}
}
}
delete this.onEnterFrame;
}
};
}
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
}
function init_select_mission() {
var _local7 = SharedObject.getLocal("userSave_file");
var _local4 = _local7.data.saveGameLevel;
var _local5 = ["Unfinished", "S", "A+", "A", "A-", "B+", "B", "B-", "C+", "C", "C-"];
var _local6 = 0;
var _local3 = 1;
while (_local3 <= 18) {
if (_local4[_local3 - 1][0] == 0) {
_root["mission" + _local3].gotoAndStop(1);
} else {
_local6++;
_root["mission" + _local3].gotoAndStop(_local3 + 1);
_root["mission" + _local3].num = _local3;
if (_local4[_local3 - 1][1] == 0) {
_root["mission" + _local3].missionRank = _local5[0];
_root["mission" + _local3].missionRankTxt.textColor = 16711680 /* 0xFF0000 */;
} else {
_root["mission" + _local3].missionRank = "Rank: " + _local5[_local4[_local3 - 1][1]];
if (_local4[_local3 - 1][1] == 1) {
_root["mission" + _local3].missionRankTxt.textColor = 16776960 /* 0xFFFF00 */;
}
}
_root["mission" + _local3].missionLv = _local3;
_root["mission" + _local3].missionInfo = _local4[_local3 - 1][2];
_root["mission" + _local3].onPress = function () {
this._y = this._y + 2;
};
_root["mission" + _local3].onReleaseOutside = function () {
this._y = this._y - 2;
};
_root["mission" + _local3].onRelease = function () {
this._y = this._y - 2;
play_soundAction("\u9009\u62E9\u5173\u5361");
stage = this.num;
gotoAndStop ("gaming");
Tank_game_start();
};
}
_local3++;
}
stage = _local6;
shine_edge(this["mission" + _local6]);
}
function shine_edge(obj) {
obj.counter = 1;
obj.onEnterFrame = function () {
if (((++this.counter) % 3) == 0) {
whiteFilter(this, 4);
} else if ((this.counter % 3) == 1) {
filterRemove(this);
}
};
}
function game_save_files(level, rank) {
var _local1 = SharedObject.getLocal("userSave_file");
if (_local1.data.saveGameLevel == undefined) {
_local1.data.saveGameLevel = [[1, 0, "Aggression"], [0, 0, "Mine - Sweep"], [0, 0, "Guardianship"], [0, 0, "VIP - Convoy"], [0, 0, "Aggression"], [0, 0, "Tank Duel"], [0, 0, "Guardianship"], [0, 0, "Aggression"], [0, 0, "Guardianship"], [0, 0, "Aggression"], [0, 0, "Guardianship"], [0, 0, "Tank Duel"], [0, 0, "Aggression"], [0, 0, "Aggression"], [0, 0, "Mine - Sweep"], [0, 0, "Aggression"], [0, 0, "Mine - Sweep"], [0, 0, "Tank Duel"]];
} else {
if (_local1.data.saveGameLevel[level - 1][0] == 0) {
_local1.data.saveGameLevel[level - 1][0] = 1;
}
if (Number(_local1.data.saveGameLevel[level - 1][1]) == 0) {
_local1.data.saveGameLevel[level - 1][1] = rank;
} else if ((Number(_local1.data.saveGameLevel[level - 1][1]) > rank) and (rank != 0)) {
_local1.data.saveGameLevel[level - 1][1] = rank;
}
}
if (_local1.flush(1000) == true) {
return(true);
}
return(false);
}
function play_soundAction(what) {
if (this[what] == undefined) {
this[what] = new Sound(this);
this[what].attachSound(what);
}
if (sound) {
this[what].stop(what);
this[what].start();
}
}
function stop_soundAction(what) {
this[what].stop(what);
}
function play_music(what, cyc) {
this[now_music].stop(now_music);
if (this[what] == undefined) {
this[what] = new Sound(this);
this[what].attachSound(what);
}
if (music) {
if (!cyc) {
this[what].start();
} else {
this[what].start(0, 999);
}
}
now_music = what;
}
Version_number = "V1.20";
myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
this.menu = myMenu;
fscommand ("trapallkeys", true);
_root.allowInsecureDomain("www.miniclip.com");
if (control_method == undefined) {
control_method = 1;
}
keyCode_W1 = 87;
keyCode_S1 = 83;
keyCode_A1 = 65;
keyCode_D1 = 68;
keyCode_W2 = 38;
keyCode_S2 = 40;
keyCode_A2 = 37;
keyCode_D2 = 39;
currentScore = 0;
timeLeft = 0;
enemyKilled = 0;
health = 0;
itemsGot = 0;
totalScore = 0;
hitByEnemy = 0;
map1arr = [[5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 5, 5, 4, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 5, 4, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 5, 5], [5, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 4, 4, 5, 5, 5], [5, 5, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,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5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]];
mapXYnum = [[], [2, 6], [5, 6], [4, 4], [2, 12], [4, 12], [2, 4], [4, 4], [8, 12], [4, 6], [8, 8], [4, 6], [2, 18]];
mapXYnum.push([2, 6], [5, 6], [4, 6], [2, 12], [4, 6], [2, 4]);
tankStartPoint = [[], [2, 6], [5, 6], [3, 3], [2, 12], [4, 12], [2, 4], [4, 4], [8, 12], [4, 6], [8, 8], [4, 6], [2, 18]];
tankStartPoint.push([2, 6], [5, 6], [4, 6], [2, 12], [4, 6], [2, 4]);
map13arr = map1arr;
map14arr = map2arr;
map15arr = map9arr;
map16arr = map4arr;
map17arr = map11arr;
map18arr = map6arr;
color1 = [3.17575353234751, -0.677543285536286, -1.49821024681122, 0, 0, -1.07005363489188, 1.91151830743356, 0.158535327458315, 0, 0, 0.202261298279611, -2.63389850535911, 3.4316372070795, 0, 0, 0, 0, 0, 1, 0];
color2 = [-0.9258, -1.8282, 3.754, 0, 0, 0.4982, 1.5918, -1.09, 0, 0, -3.2218, 3.8918, 0.33, 0, 0, 0, 0, 0, 1, 0];
groundEffect = [];
var nx;
var ny;
var mmap = new Array(ny);
var fmap = new Array(ny);
var parrow = new Array([1, 0], [0, 1], [-1, 0], [0, -1], [1, 1], [-1, -1], [-1, 1], [1, -1]);
var finded = false;
var pathList = new Array();
NM_ColorMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
BW_ColorMatrix = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
Red = [10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
White = [1, 0, 0, 0, 45, 0, 1, 0, 0, 45, 0, 0, 1, 0, 45, 0, 0, 0, 1, 0];
Dark = [1, 0, 0, 0, -70, 0, 1, 0, 0, -70, 0, 0, 1, 0, -70, 0, 0, 0, 1, 0];
Rain = [1, 0, 0, 0, -45, 0, 1, 0, 0, -45, 0, 0, 1, 0, -45, 0, 0, 0, 1, 0];
Black = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
Temp = [-0.309500877912664, 1.71080086365763, -0.401299985744963, 0, 0, 0.305457955035356, 0.401240966288491, 0.293301078676153, 0, 0, 0.838884040841828, 0.890586559675631, -0.72947060051746, 0, 0, 0, 0, 0, 1, 0];
Gold = [1, 0.8, 0, 0, 0, 0.5, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
shine_Transform_normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
shine_Transform_white = {ra:0, rb:255, ga:0, gb:255, ba:0, bb:255, aa:50, ab:0};
shine_Transform_Awhite = {ra:0, rb:255, ga:0, gb:255, ba:0, bb:255, aa:100, ab:0};
shine_Transform_red = {ra:50, rb:185, ga:50, gb:-50, ba:50, bb:-255, aa:50, ab:0};
shine_Transform_blue = {ra:60, rb:0, ga:80, gb:0, ba:100, bb:128, aa:100, ab:0};
shine_Transform_yellow = {ra:0, rb:255, ga:0, gb:255, ba:0, bb:0, aa:100, ab:0};
shine_Transform_black = {ra:45, rb:0, ga:45, gb:0, ba:45, bb:0, aa:100, ab:0};
if (music == undefined) {
music = true;
sound = true;
_quality = "LOW";
}
play_music("\u62A4\u9001", true);
play_btn.onRelease = function () {
play_soundAction("sel_crt");
if (game_save_files(1, 0)) {
gotoAndStop ("difficulty");
}
};
help_btn.onRelease = function () {
play_soundAction("sel_crt");
gotoAndStop ("help");
};
option_btn.onRelease = function () {
play_soundAction("sel_crt");
gotoAndStop ("option");
};
logo.onPress = function () {
getURL ("http://www.miniclip.com", "_blank", "GET");
};
if (!gameChecked) {
_root._visible = true;
}
Frame 63
var SharedGame = SharedObject.getLocal("userSave_file");
var gameLevelPassed = SharedGame.data.saveGameLevel;
if (gameLevelPassed[17][1] == 0) {
btn3.enabled = false;
changeColor(btn3, Dark);
}
btn1.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
game_diff_level = 1;
gotoAndStop ("select_mission");
};
btn2.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
game_diff_level = 2;
gotoAndStop ("select_mission");
};
btn3.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
game_diff_level = 3;
gotoAndStop ("select_mission");
};
back_btn.onRelease = function () {
play_soundAction("sel_crt");
gotoAndStop ("title");
};
if (!gameChecked) {
_root._visible = true;
}
Frame 73
function setSound() {
if (sound == undefined) {
sound = true;
}
changeColor(sound_on, Dark);
changeColor(sound_off, Dark);
if (sound == true) {
changeColor(sound_on, NM_ColorMatrix);
} else if (sound == false) {
changeColor(sound_off, NM_ColorMatrix);
}
}
function setMusic() {
if (music == undefined) {
music = true;
}
changeColor(music_on, Dark);
changeColor(music_off, Dark);
if (music == true) {
changeColor(music_on, NM_ColorMatrix);
} else if (music == false) {
changeColor(music_off, NM_ColorMatrix);
}
}
function setQuality() {
if (game_quality == undefined) {
game_quality = "LOW";
}
changeColor(q_low, Dark);
changeColor(q_medium, Dark);
changeColor(q_high, Dark);
if (game_quality == "LOW") {
changeColor(q_low, NM_ColorMatrix);
} else if (game_quality == "MEDIUM") {
changeColor(q_medium, NM_ColorMatrix);
} else if (game_quality == "HIGH") {
changeColor(q_high, NM_ColorMatrix);
}
}
setSound();
sound_on.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
sound = true;
setSound();
};
sound_off.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
sound = false;
setSound();
};
setMusic();
music_on.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
music = true;
setMusic();
play_music("\u62A4\u9001", true);
};
music_off.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
music = false;
setMusic();
stopAllSounds();
now_music = "";
};
setQuality();
q_low.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
_quality = ((game_quality = "LOW"));
setQuality();
};
q_medium.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
_quality = ((game_quality = "MEDIUM"));
setQuality();
};
q_high.onRelease = function () {
play_soundAction("\u9009\u62E9\u5173\u5361");
_quality = ((game_quality = "HIGH"));
setQuality();
};
back_btn.onRelease = function () {
play_soundAction("sel_crt");
gotoAndStop ("title");
};
if (!gameChecked) {
_root._visible = true;
}
Frame 82
back_btn.onRelease = function () {
play_soundAction("sel_crt");
gotoAndStop ("title");
};
if (!gameChecked) {
_root._visible = true;
}
Frame 90
play_music("\u626B\u96F7", true);
init_select_mission();
back_btn.onRelease = function () {
play_soundAction("sel_crt");
gotoAndStop ("title");
};
play_btn.onRelease = function () {
play_soundAction("sel_crt");
gotoAndStop ("gaming");
Tank_game_start();
};
if (!gameChecked) {
_root._visible = true;
}
Symbol 2367 MovieClip [__Packages.com.miniclip.gatekeeper.GatekeeperLoader] Frame 0
class com.miniclip.gatekeeper.GatekeeperLoader
{
var _ldr, onResult;
function GatekeeperLoader () {
applySecurity(getAllowedDomains());
}
function start() {
_ldr = new MovieClipLoader();
var _local4 = _root.createEmptyMovieClip("gatekeeper", _root.getNextHighestDepth());
_ldr.addListener(this);
var _local3 = _GATEKEEPER_URL;
if (((_root._url.indexOf("://cms.miniclip.com/") == 4) || (_root._url.indexOf("://developers.miniclip.com/") == 4)) || (_root._url.indexOf("file://") == 0)) {
_local3 = _local3.split("://www.miniclip.com/").join("://cms.miniclip.com/");
}
_ldr.loadClip(_local3, _local4);
}
function getAllowedDomains() {
var _local1 = new Array();
_local1.push("www.miniclip.com");
_local1.push("cms.miniclip.com");
return(_local1);
}
function applySecurity(domains) {
var _local1 = 0;
while (_local1 < domains.length) {
System.security.allowDomain(domains[_local1]);
_local1++;
}
}
function onLoadInit(tgt_mc) {
var _local3 = tgt_mc.gatekeeper;
var _local4;
if (_url.substr(0, 7) == "file://") {
onResult(true);
} else {
var _local5 = String(flash.external.ExternalInterface.call(" function(){ return document.location.href.toString();} "));
_local4 = _local3.validateDomain(_local5, _root._url);
if (_local4) {
onResult(true);
} else {
loadAlert();
onResult(false);
}
}
}
function loadAlert() {
_root.gatekeeper.loadMovie(_OFFSITE_URL);
}
var _GATEKEEPER_URL = "http://www.miniclip.com/swfcontent/components/gatekeeper_as2.swf";
var _OFFSITE_URL = "http://www.miniclip.com/swfcontent/components/game_offsite_as2.swf";
}
Symbol 2368 MovieClip [__Packages.com.miniclip.highscores.HighscoresLoader] Frame 0
class com.miniclip.highscores.HighscoresLoader
{
static var singleInstance;
var URL_PREFIX, target, game_quality, container, localConnectionID, ldr, objLocalConnection, level, score;
function HighscoresLoader () {
}
static function start(score, level) {
trace((("HighscoresLoader.start (AS2)/ score:" + score) + " level:") + level);
if (singleInstance == undefined) {
singleInstance = new com.miniclip.highscores.HighscoresLoader();
}
singleInstance.score = (isNaN(score) ? undefined : (Number(score)));
singleInstance.level = Math.floor(Math.max(0, level));
singleInstance.container = _root;
singleInstance.init();
return(singleInstance);
}
function init() {
trace("HSB: HighscoresLoader.init() ... ");
URL_PREFIX = ((_root._url.substring(0, 8) == "file:///") ? "http://www.miniclip.com/swfcontent/components/" : "/swfcontent/components/");
System.security.allowDomain("cms.miniclip.com");
System.security.allowDomain("devcms.miniclip.com");
if (target._name != "MiniclipHighScoresContainer") {
game_quality = _root._quality;
_root._quality = "HIGH";
target = container.createEmptyMovieClip("MiniclipHighScoresContainer", container.getNextHighestDepth());
target.onUnload = function () {
this.target = undefined;
};
localConnectionID = "LC" + String(Math.floor(Math.random() * 1000000));
ldr = target.createEmptyMovieClip("ldr", 1);
initialize();
} else {
target.swapDepths(container.getNextHighestDepth());
sendScore();
}
}
function initialize() {
objLocalConnection = new LocalConnection();
objLocalConnection.allowDomain = function (sendingDomain) {
trace("sendingDomain: " + sendingDomain);
var _local1 = sendingDomain.substr(-13, 13) == ".miniclip.com";
return(_local1);
};
objLocalConnection.ref = this;
objLocalConnection.hsbready = function () {
trace("HSB: hsbready received on HighscoresLoader...");
trace("HSB: this.ref: " + this.ref);
this.ref.sendScore();
};
objLocalConnection.hsbhidden = function () {
_root._quality = self.game_quality;
self.onClose();
};
objLocalConnection.connect(localConnectionID + "back");
trace(("HSB: HighscoresLoader connected to: " + localConnectionID) + "back");
var _local3 = new MovieClipLoader();
var _local5 = {};
_local3.addListener(_local5);
var self = this;
if (validateDomain()) {
var _local4 = buildQueryString();
trace((("HSB: loadClip: " + URL_PREFIX) + HIGHSCORESBOX_SWF) + _local4);
_local3.loadClip((URL_PREFIX + HIGHSCORESBOX_SWF) + _local4, ldr);
} else {
if (_root.mc_gamename.legth > 1) {
var _local4 = ("?msg=Play " + _root.mc_gamename) + " on Miniclip.com";
} else {
var _local4 = "?msg=Play this game on Miniclip.com";
}
var _local4 = _local4 + ("&lcid=" + localConnectionID);
_local5.onLoadInit = function () {
self.handleOffsiteLoaded();
};
_local3.loadClip((URL_PREFIX + OFFSITE_SWF) + _local4, ldr);
}
}
function handleOffsiteLoaded() {
var _local3 = ldr.mcBtn._width;
var _local2 = ldr.mcBtn._height;
ldr._x = (Stage.width - _local3) / 2;
ldr._y = (Stage.height - _local2) / 2;
var self = this;
ldr.onClose = function () {
self.onClose();
};
}
function sendScore() {
var _local2 = new LocalConnection();
trace(((((("HSB: lcSender.send(" + localConnectionID) + ", setScore, ") + score) + ", ") + level) + ")");
trace("HSB: lcSender.domain" + _local2.domain);
_local2.send(localConnectionID, "setScore", score, level);
}
function validateDomain() {
var _local5 = false;
var _local6 = _root._url;
var _local4 = getDomainName(_local6);
trace("game_domain:" + _local4);
if (_local4 != "") {
var _local3 = 0;
while (_local3 < ALLOWED_DOMAINS.length) {
if (_local4.indexOf(ALLOWED_DOMAINS[_local3]) >= (_local4.length - ALLOWED_DOMAINS[_local3].length)) {
_local5 = true;
}
_local3++;
}
}
if (_local6.indexOf("/swfcontent/webmastergames/") != -1) {
_local5 = false;
}
return(_local5);
}
function buildQueryString() {
var _local4 = "?";
var _local3 = "";
for (var _local5 in _root) {
if (_local5.substring(0, 3) == "mc_") {
_local4 = _local4 + (((_local3 + _local5) + "=") + escape(_root[_local5]));
_local3 = "&";
}
}
_local4 = _local4 + ("&mc_lcid=" + localConnectionID);
return(_local4);
}
function getDomainName(url) {
var _local2 = "";
var _local3 = url.indexOf("://");
if (_local3 > 0) {
var _local4 = url.substr(_local3 + 3);
var _local1 = _local4.split("/");
if (_local1.length > 0) {
_local2 = _local1[0];
}
}
return(_local2);
}
function toString() {
return("HighscoresLoader instance.");
}
var HIGHSCORESBOX_SWF = "highscoresbox_v3.swf";
var OFFSITE_SWF = "highscores_offsite.swf";
var ALLOWED_DOMAINS = [".miniclip.com"];
}
Symbol 14 MovieClip [g] Frame 1
this._visible = false;
Symbol 19 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
this._parent.daodantong1._y = -9;
this._parent.daodantong2._y = -9;
this._parent.jiqiang._y = -3;
Symbol 24 MovieClip Frame 2
this._parent.daodantong1._y = -8;
this._parent.daodantong2._y = -8;
this._parent.jiqiang._y = -2;
Symbol 37 MovieClip Frame 1
stop();
this._parent.daodantong1._y = -9;
this._parent.daodantong2._y = -9;
this._parent.jiqiang._y = -3;
Symbol 37 MovieClip Frame 2
this._parent.daodantong1._y = -8;
this._parent.daodantong2._y = -8;
this._parent.jiqiang._y = -2;
Symbol 42 MovieClip Frame 1
stop();
this._parent.daodantong1._y = -9;
this._parent.daodantong2._y = -9;
this._parent.jiqiang._y = -3;
Symbol 42 MovieClip Frame 2
this._parent.daodantong1._y = -8;
this._parent.daodantong2._y = -8;
this._parent.jiqiang._y = -2;
Symbol 47 MovieClip Frame 1
stop();
this._parent.daodantong1._y = -9;
this._parent.daodantong2._y = -9;
this._parent.jiqiang._y = -3;
Symbol 47 MovieClip Frame 2
this._parent.daodantong1._y = -8;
this._parent.daodantong2._y = -8;
this._parent.jiqiang._y = -2;
Symbol 52 MovieClip Frame 1
stop();
this._parent.daodantong1._y = -9;
this._parent.daodantong2._y = -9;
this._parent.jiqiang._y = -3;
Symbol 52 MovieClip Frame 2
this._parent.daodantong1._y = -8;
this._parent.daodantong2._y = -8;
this._parent.jiqiang._y = -2;
Symbol 57 MovieClip Frame 1
stop();
this._parent.daodantong1._y = -9;
this._parent.daodantong2._y = -9;
this._parent.jiqiang._y = -3;
Symbol 57 MovieClip Frame 2
this._parent.daodantong1._y = -8;
this._parent.daodantong2._y = -8;
this._parent.jiqiang._y = -2;
Symbol 91 MovieClip [baozhaguangquan] Frame 6
this.stop();
this.removeMovieClip();
Symbol 107 MovieClip [baoliedan_texiao] Frame 1
_root.play_soundAction("expl_" + (random(2) + 1));
Symbol 107 MovieClip [baoliedan_texiao] Frame 7
this.removeMovieClip();
Symbol 148 MovieClip [fire] Frame 28
this.removeMovieClip();
Symbol 165 MovieClip [tank_hui] Frame 10
this.removeMovieClip();
Symbol 199 MovieClip [jq_bullet] Frame 7
this.removeMovieClip();
Symbol 212 MovieClip [enemy_huohua] Frame 1
_root.play_soundAction("\u6253\u51FB\u91D1\u5C5E0" + (random(3) + 1));
Symbol 212 MovieClip [enemy_huohua] Frame 7
this.removeMovieClip();
Symbol 231 MovieClip [daodan_yan] Frame 5
this.removeMovieClip();
Symbol 248 MovieClip [daodan_baozha] Frame 13
this.removeMovieClip();
Symbol 261 MovieClip [baoxian_explode] Frame 1
_root.play_soundAction("expl_" + (random(2) + 1));
Symbol 261 MovieClip [baoxian_explode] Frame 13
this.removeMovieClip();
Symbol 307 MovieClip Frame 10
gotoAndPlay (1);
Symbol 307 MovieClip Frame 38
this._parent._parent.removeMovieClip();
Symbol 318 MovieClip Frame 40
this._parent._parent.removeMovieClip();
Symbol 320 MovieClip [daodanbing] Frame 1
this.r_xunluo = 60;
this.r_see = 250;
this.r_shoot = 200;
this.speed = 1;
Symbol 329 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
stop();
Symbol 365 MovieClip [huobing] Frame 1
this.r_xunluo = 100;
this.r_see = 200;
this.r_shoot = 60;
this.speed = 2;
Symbol 377 MovieClip [huobing_texiao] Frame 13
this.removeMovieClip();
Symbol 407 MovieClip Frame 18
this._parent.gotoAndStop("stand");
Symbol 408 MovieClip [jiqiangbing] Frame 1
this.r_xunluo = 100;
this.r_see = 250;
this.r_shoot = 180;
this.speed = 1;
Symbol 414 MovieClip Frame 1
this._rotation = this._rotation + 5;
Symbol 423 MovieClip Frame 1
stop();
Symbol 424 MovieClip [saoleiche] Frame 1
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 442 MovieClip [zhishengji] Frame 1
stop();
Symbol 486 MovieClip [daodan_fire1] Frame 11
this.removeMovieClip();
Symbol 497 MovieClip [daodan_fire2] Frame 6
this.removeMovieClip();
Symbol 510 MovieClip [enemy_explode] Frame 1
_root.play_soundAction("expl_" + (random(2) + 1));
Symbol 510 MovieClip [enemy_explode] Frame 11
this.removeMovieClip();
Symbol 523 MovieClip [enemy_explode2] Frame 1
_root.play_soundAction("expl_" + (random(2) + 1));
Symbol 523 MovieClip [enemy_explode2] Frame 9
this.removeMovieClip();
Symbol 530 MovieClip [hongzhaji] Frame 1
stop();
Symbol 556 MovieClip [tuituji] Frame 1
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 576 MovieClip [tank1] Frame 1
this.life_num = 100;
Symbol 581 MovieClip Frame 1
stop();
Symbol 583 MovieClip [tank2] Frame 1
this.life_num = 150;
Symbol 588 MovieClip Frame 1
stop();
Symbol 590 MovieClip [tank3] Frame 1
this.life_num = 300;
Symbol 603 MovieClip Frame 1
stop();
Symbol 605 MovieClip [tank4] Frame 1
this.life_num = 2000;
Symbol 610 MovieClip Frame 1
stop();
Symbol 612 MovieClip [tank5] Frame 1
this.life_num = 3000;
Symbol 620 MovieClip Frame 1
stop();
Symbol 622 MovieClip [tank6] Frame 1
this.life_num = 600;
Symbol 627 MovieClip Frame 1
stop();
Symbol 629 MovieClip [tank7] Frame 1
this.life_num = 900;
Symbol 634 MovieClip Frame 1
stop();
Symbol 636 MovieClip [tank8] Frame 1
this.life_num = 1200;
Symbol 645 MovieClip [lei_hui] Frame 13
this.removeMovieClip();
Symbol 670 MovieClip [lei2] Frame 7
stop();
Symbol 677 MovieClip [lei3] Frame 5
gotoAndPlay (1);
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 37
gotoAndStop (1);
Symbol 706 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 29
gotoAndStop (1);
Symbol 723 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 62
gotoAndStop (1);
Symbol 731 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 62
gotoAndStop (1);
Symbol 737 MovieClip Frame 1
stop();
Symbol 743 MovieClip Frame 1
stop();
Symbol 748 MovieClip Frame 1
this._visible = false;
Symbol 754 MovieClip [boss] Frame 1
stop();
Symbol 774 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 810 MovieClip [judian] Frame 1
stop();
Symbol 819 MovieClip Frame 1
stop();
Symbol 825 MovieClip [jidi] Frame 1
stop();
Symbol 830 MovieClip [yanjiusuo1] Frame 1
stop();
Symbol 849 MovieClip [present] Frame 1
stop();
Symbol 862 MovieClip [zibaobing] Frame 1
this.r_xunluo = 100;
this.r_see = 200;
this.r_shoot = 10;
this.speed = 4;
Symbol 879 MovieClip [baozha2] Frame 10
this.removeMovieClip();
Symbol 896 MovieClip [smoke2] Frame 13
this.removeMovieClip();
Symbol 906 MovieClip [yanjiusuo2] Frame 1
stop();
Symbol 936 MovieClip [house] Frame 1
stop();
Symbol 976 MovieClip [jgshexian] Frame 1
stop();
Symbol 980 MovieClip [paota4] Frame 1
stop();
Symbol 1068 MovieClip [explWaterEf] Frame 81
this.removeMovieClip();
Symbol 1081 MovieClip [explWaterEf1] Frame 19
this.removeMovieClip();
Symbol 1090 MovieClip [spark01] Frame 5
stop();
this.removeMovieClip();
Symbol 1097 MovieClip [UIshowTarget] Frame 32
this.removeMovieClip();
Symbol 1101 MovieClip [UIshowTargetP] Frame 32
this.removeMovieClip();
Symbol 1140 MovieClip Frame 1
stop();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1191 MovieClip [game_ui] Frame 1
logo._visible = false;
p_btn._visible = false;
s_btn._visible = false;
check_mc._visible = false;
Symbol 1231 MovieClip Frame 1
stop();
Symbol 1383 MovieClip Frame 1
this.onPress = function () {
};
this.useHandCursor = false;
Symbol 1383 MovieClip Frame 15
delete this.onPress;
stop();
Symbol 1401 MovieClip [mask] Frame 1
stop();
Symbol 1401 MovieClip [mask] Frame 28
resume_btn.onRelease = function () {
_root.gamePause = false;
_root.play_soundAction("pick_up_w");
_root[_root.now_music].setVolume(100);
_root.gameUI.p_btn.gotoAndStop(1);
_root.gameUI.mask.removeMovieClip();
};
quit_btn.onRelease = function () {
_root.gamePause = false;
_root.play_soundAction("pick_up_w");
_root[_root.now_music].setVolume(100);
_root.gotoAndStop("title");
_root.removeAllMovieClips();
};
Symbol 1408 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var group1 = [];
var areaNum = Number(this._name.slice(-1));
var i = 0;
while (i < 6) {
if (i < 4) {
group1.push(_root.newEnemyMan(((this._x + this._parent._x) + random(10)) - 5, (this._y + this._parent._y) + random(50), areaNum));
} else {
var rand = (random(3) + 2);
group1.push(_root["newEnemyMan" + rand](((this._x + this._parent._x) + random(10)) - 5, (this._y + this._parent._y) + random(50), areaNum));
}
i++;
}
for (var i in group1) {
group1[i].group = group1;
group1[i].id = Number(i);
}
group1[0].leader = true;
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1410 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var type = Number(this._name.slice(1, 2));
var areaNum = Number(this._name.slice(-1));
_root["newBuildingS" + type](this._x + this._parent._x, this._y + this._parent._y, areaNum);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1412 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var type = Number(this._name.slice(4, 5));
var typeAI = Number(this._name.slice(6, 7));
var areaNum = Number(this._name.slice(-1));
_root.newEnemy2(this._x + this._parent._x, this._y + this._parent._y, type, typeAI, areaNum);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1416 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
if (((_root.gamePause == false) && (_root.game.focusOnOther == false)) && (_root.game.scrollIt == true)) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
if (!random(2)) {
_root.newEnemyFighter();
} else {
_root.newEnemyHeli();
}
}
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1418 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var type = Number(this._name.slice(1, 2));
trace((type + "____") + this._name);
_root.newBox(this._x + this._parent._x, this._y + this._parent._y, type);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1443 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var areaNum = Number(this._name.slice(-1));
_root.newSpider(this._x + this._parent._x, this._y + this._parent._y, areaNum);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1500 MovieClip [map_2] Frame 2
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), this._y + random(256));
}
Symbol 1500 MovieClip [map_2] Frame 3
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + random(256), this._y + random(256));
}
Symbol 1500 MovieClip [map_2] Frame 4
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + random(256), this._y + random(256));
_root.newMine2(this._x + random(256), this._y + random(256));
}
Symbol 1500 MovieClip [map_2] Frame 5
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + 100) + random(100));
}
Symbol 1500 MovieClip [map_2] Frame 6
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + 50, this._y + 200);
}
Symbol 1500 MovieClip [map_2] Frame 7
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine1(this._x + 100, this._y + 100);
_root.newMine1(this._x + 180, this._y + 150);
}
Symbol 1500 MovieClip [map_2] Frame 8
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + 90) + random(130));
}
Symbol 1500 MovieClip [map_2] Frame 9
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + 180, this._y + 180);
}
Symbol 1500 MovieClip [map_2] Frame 10
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newEnemyHeli();
}
Symbol 1500 MovieClip [map_2] Frame 11
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(175), this._y + random(256));
}
Symbol 1500 MovieClip [map_2] Frame 12
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), this._y + random(200));
}
Symbol 1500 MovieClip [map_2] Frame 13
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + random(30)) + 40);
}
Symbol 1500 MovieClip [map_2] Frame 14
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + 200, (this._y + 50) + random(180));
}
Symbol 1500 MovieClip [map_2] Frame 15
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2((this._x + random(156)) + 100, this._y + random(156));
_root.newMine3((this._x + random(156)) + 100, this._y + random(156));
}
Symbol 1500 MovieClip [map_2] Frame 16
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine1(this._x + 200, this._y + 50);
_root.newMine2(this._x + 150, this._y + 50);
}
Symbol 1500 MovieClip [map_2] Frame 17
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + 75) + random(90));
_root.newMine2(this._x + random(256), (this._y + 75) + random(90));
}
Symbol 1500 MovieClip [map_2] Frame 18
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + random(100)) + 50);
_root.newMine3(this._x + random(256), (this._y + random(100)) + 50);
}
Symbol 1500 MovieClip [map_2] Frame 19
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newEnemyFighter();
}
Symbol 1500 MovieClip [map_2] Frame 20
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + random(256), this._y + random(156));
_root.newMine2(this._x + random(256), this._y + random(156));
}
Symbol 1500 MovieClip [map_2] Frame 21
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine1(this._x + 150, this._y + 100);
}
Symbol 1500 MovieClip [map_2] Frame 22
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + 150, this._y + 150);
}
Symbol 1500 MovieClip [map_2] Frame 23
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + random(256), (this._y + 75) + random(100));
}
Symbol 1500 MovieClip [map_2] Frame 24
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3((this._x + random(156)) + 50, (this._y + random(200)) + 50);
}
Symbol 1500 MovieClip [map_2] Frame 25
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + 200, this._y + 200);
}
Symbol 1500 MovieClip [map_2] Frame 26
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(156), this._y + random(50));
}
Symbol 1500 MovieClip [map_2] Frame 27
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + 100) + random(150));
}
Symbol 1500 MovieClip [map_2] Frame 28
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2((this._x + random(156)) + 100, this._y + random(256));
}
Symbol 1500 MovieClip [map_2] Frame 29
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + random(156)) + 50);
_root.newMine3(this._x + random(256), (this._y + random(156)) + 50);
}
Symbol 1500 MovieClip [map_2] Frame 30
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine3(this._x + random(256), (this._y + random(200)) + 50);
}
Symbol 1539 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var dir = Number(this._name.slice(2, 5));
var dis = Number(this._name.slice(6, 9));
var areaNum = Number(this._name.slice(-1));
_root.newEnemyTurrent5(this._x + this._parent._x, this._y + this._parent._y, dir, dis, areaNum);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1557 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var type = Number(this._name.slice(1, 2));
var areaNum = Number(this._name.slice(-1));
_root["newEnemyTurrent" + type](this._x + this._parent._x, this._y + this._parent._y, areaNum);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1586 MovieClip [map_4] Frame 2
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 3
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + 300, this._y + 100);
}
Symbol 1586 MovieClip [map_4] Frame 4
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 5
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 6
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 7
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 8
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
if (!random(2)) {
_root.newEnemyHeli();
}
var temp = _root.newEnemy2(this._x + 50, this._y + 50, 2, 2);
temp.mainTarget = _root.game.van;
var temp1 = _root.newEnemy2(this._x + 200, this._y + 50, 2, 2);
temp1.mainTarget = _root.game.van;
}
}
Symbol 1586 MovieClip [map_4] Frame 9
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
var temp = _root.newEnemy2(this._x + 50, this._y + 50, 1, 2);
temp.mainTarget = _root.game.van;
var temp1 = _root.newEnemy2(this._x + 50, this._y + 200, 2, 2);
temp1.mainTarget = _root.game.van;
var group1 = [];
var i = 0;
while (i < 6) {
group1.push(_root.newEnemyMan((this._x + random(50)) + 50, (this._y + random(50)) + 120));
i++;
}
for (var i in group1) {
group1[i].group = group1;
group1[i].id = Number(i);
}
group1[0].leader = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 10
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
var temp = _root.newEnemy2(this._x + 220, this._y + 50, 2, 2);
temp.mainTarget = _root.game.van;
var temp1 = _root.newEnemy2(this._x + 150, this._y + 200, 2, 2);
temp1.mainTarget = _root.game.van;
var group1 = [];
var i = 0;
while (i < 6) {
group1.push(_root.newEnemyMan((this._x + random(100)) + 50, (this._y + random(50)) + 120));
i++;
}
for (var i in group1) {
group1[i].group = group1;
group1[i].id = Number(i);
}
group1[0].leader = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 11
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 12
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
var temp = _root.newEnemy2(this._x + 50, this._y + 150, 2, 2);
temp.mainTarget = _root.game.van;
if (!random(2)) {
_root.newEnemyHeli();
}
}
}
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x, this._y + 150);
}
Symbol 1586 MovieClip [map_4] Frame 13
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
var group1 = [];
var i = 0;
while (i < 6) {
group1.push(_root.newEnemyMan((this._x + random(150)) + 50, (this._y + random(50)) + 120));
i++;
}
for (var i in group1) {
group1[i].group = group1;
group1[i].id = Number(i);
}
group1[0].leader = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 14
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 15
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
var temp = _root.newEnemy2(this._x + 150, this._y + 150, 2, 2);
temp.mainTarget = _root.game.van;
}
}
Symbol 1586 MovieClip [map_4] Frame 16
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 17
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 18
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
var temp = _root.newEnemy2(this._x + 50, this._y + 50, 2, 2);
temp.mainTarget = _root.game.van;
var temp1 = _root.newEnemy2(this._x + 100, this._y + 200, 2, 2);
temp1.mainTarget = _root.game.van;
}
}
Symbol 1586 MovieClip [map_4] Frame 19
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 20
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
if (!random(2)) {
_root.newEnemyHeli();
}
}
}
if (!_root.game.map["created" + this._currentframe]) {
_root.game.map["created" + this._currentframe] = true;
_root.newMine2(this._x + 100, this._y + 100);
}
Symbol 1586 MovieClip [map_4] Frame 21
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 22
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
var temp = _root.newEnemy2(this._x + 250, this._y + 50, 2, 2);
temp.mainTarget = _root.game.van;
var temp1 = _root.newEnemy2(this._x + 50, this._y + 200, 2, 2);
temp1.mainTarget = _root.game.van;
if (!random(2)) {
_root.newEnemyHeli();
}
}
}
Symbol 1586 MovieClip [map_4] Frame 23
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1586 MovieClip [map_4] Frame 24
if (_root.game.map.session2) {
if (!_root.game.map["created1" + this._currentframe]) {
_root.game.map["created1" + this._currentframe] = true;
}
}
Symbol 1604 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var areaNum = Number(this._name.slice(-1));
_root.newDozer(this._x + this._parent._x, this._y + this._parent._y, areaNum);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1693 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var type = Number(this._name.slice(1, 2));
var randX = Number(this._name.slice(3, 6));
var randY = Number(this._name.slice(7, 10));
_root["newMine" + type]((this._x + this._parent._x) + random(randX), (this._y + this._parent._y) + random(randY));
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1701 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var dgr = Number(this._name.slice(1, 4));
_root.newMissileLauncher(this._x + this._parent._x, this._y + this._parent._y, dgr);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 1743 MovieClip Frame 1
if (!_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)]) {
_root.game.map[(("created" + (this._x + this._parent._x)) + ":") + (this._y + this._parent._y)] = true;
var type = Number(this._name.slice(4, 5));
var typeAI = Number(this._name.slice(6, 7));
var areaNum = Number(this._name.slice(-1));
_root.newEnemy3(this._x + this._parent._x, this._y + this._parent._y, type, typeAI, areaNum);
}
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 2253 MovieClip Frame 101
gotoAndPlay(100 + random(100));
Symbol 2253 MovieClip Frame 201
_root.changeColor(_parent.tank, _root.Dark);
Symbol 2253 MovieClip Frame 202
_root.filterRemove(_parent.tank);
Symbol 2253 MovieClip Frame 205
_root.changeColor(_parent.tank, _root.Dark);
Symbol 2253 MovieClip Frame 206
_root.filterRemove(_parent.tank);
Symbol 2253 MovieClip Frame 209
_root.changeColor(_parent.tank, _root.Dark);
Symbol 2253 MovieClip Frame 210
_root.filterRemove(_parent.tank);
gotoAndPlay(1 + random(200));
Symbol 2265 MovieClip Frame 1
function plane_fly(where) {
var _local5 = 0;
while (_local5 <= 3) {
var _local4 = where.getNextHighestDepth();
var _local2 = where.attachMovie("UI_plane", "UI_plane" + _local4, _local4);
var _local3 = Math.random(1);
_local2.xSpeed = -32 * _local3;
_local2.ySpeed = -14 * _local3;
_local2._x = random(512) + random(100);
_local2._xscale = (_local2._yscale = Math.round(100 * _local3));
_local2._y = (_local2._xscale * 2) + random(200);
_local2.onEnterFrame = function () {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if ((this._x < -50) or (this._y < 0)) {
var _local2 = Math.random(1);
this.xSpeed = -32 * _local2;
this.ySpeed = -14 * _local2;
this._x = 512 + random(100);
this._xscale = (this._yscale = Math.round(100 * _local2));
this._y = (this._xscale * 2) + random(200);
}
};
_local5++;
}
}
stop();
plane_fly(plane);
bg.cloud0.gotoAndPlay(random(100) + 1);
bg.cloud1.gotoAndPlay(random(100) + 1);
bg.cloud2.gotoAndPlay(random(100) + 1);
Symbol 2359 MovieClip Frame 1
stop();