Frame 1
fscommand ("trapallkeys", "true");
fscommand ("showmenu", "false");
Stage.showMenu = false;
var _mochiads_game_id = "7e7699f5c2dee718";
stop();
Instance of Symbol 26 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
gotoAndStop((Math.round((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) / 5) + 1);
trace(Math.round((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) / 5);
if (_root.getBytesLoaded() == _root.getBytesTotal) {
_root.gotoAndPlay("menu");
}
}
Frame 2
function rankTell(foo) {
if (foo == 1) {
return("Second Lieutenant");
}
if (foo == 2) {
return("First Lieutenant");
}
if (foo == 3) {
return("Captain");
}
if (foo == 4) {
return("Major");
}
if (foo == 5) {
return("Lt. Colonel");
}
if (foo == 6) {
return("Colonel");
}
if (foo == 7) {
return("Brigadier General");
}
if (foo == 8) {
return("Major General");
}
if (foo == 9) {
return("Lieutenant General");
}
if (foo == 10) {
return("General");
}
if (foo == 11) {
return("Mud and Blood General");
}
return("Wanker");
}
function ribbonText(foo) {
if ((foo == 0) || (foo == undefined)) {
return("Ribbons when added will appear here");
}
if (foo == 1) {
return("War Effort Ribbon. Obtained when 100 soldiers have been deployed under your command. Soldiers being deployed now have 1% to be free.");
}
if (foo == 2) {
return("Gallantry Medal. Obtained when 10 incapacitated soldiers have been saved from death by medics. Further saved soldiers will give +1 xp to the entire squad.");
}
if (foo == 3) {
return("Bronze Star. Obtained when 50 enemy waves have been survived thru. Give 1% to start up with an additional soldier. Cumulative with silver and gold star.");
}
if (foo == 4) {
return("Silver Star. Obtained when 100 enemy waves have been survived thru. Give 2% to start up with an additional soldier. Cumulative with bronze and gold star.");
}
if (foo == 5) {
return("Gold Star. Obtained when 150 enemy waves have been survived thru. Give 3% to start up with an additional soldier. Cumulative with bronze and silver star.");
}
if (foo == 6) {
return("Distinguished Service Ribbon. Issued when 100 games of mud and blood have been played. Give one tactical point at the start of a mission.");
}
if (foo == 7) {
return("Meritous Service Ribbon. Issued when 500 games of mud and blood have been played. Give 2 tactical points at the start of a mission. ");
}
if (foo == 8) {
return("Legion of Merit. Issued when 1000 games of mud and blood have been played. Give 2 tactical points at the start of a mission. ");
}
if (foo == 9) {
return("Sapper commendation. Issued when 50 constructions have been made. Further constructions have 1% to be free. Can be combined with air command medal.");
}
if (foo == 10) {
return("Air Medal. Issued when 100 airstrikes have been called. Further air strikes have 1% to be free.");
}
if (foo == 11) {
return("Westpoint Commendation. Issued when 5 NCOs have climbed the ranks up to officer.");
}
if (foo == 12) {
return("Combat Ribbon. Issued when 100 enemies have been killed in one mission. Further soldiers deployed under your command will have a 3% bonus to their rifle skill");
}
if (foo == 13) {
return("Assault Expert Award. Issued anytime after 10 missions if the commander has an average of 50+ kills per mission. The enemy will be less courageous when facing you.");
}
if (foo == 14) {
return("Special Operations Ribbon. Issued after 100 Spec ops or snipers have been deployed under your command. Normal grunts or resitance soldiers have 1% of being spec ops when deployed.");
}
if (foo == 15) {
return("Logistics Ribbon. Issued after 50 crates have been recuperated. Once issued, crates will dropped more often.");
}
if (foo == 16) {
return("Defence Expert Award. Issued anytime after 10 missions if the commander survived an average of 50+ enemy waves per mission. Once you earned this medal your troops are more confident under fire. (+10 to moral)");
}
if (foo == 17) {
return("Tank Killer Ribbon. Issued after 10 enemy tanks or jeeps have been destroyed. Once issued you have 1% get an antitank soldier at the start of a mission");
}
if (foo == 18) {
return("BBQ Medal. Issued after 50 enemies have been burned alive. You have now 1% chance to get a flame soldier at the start of each missions.");
}
if (foo == 19) {
return("Meritorious Unit Commendation. Issued anytime the commander has 1000 enemy waves survived before the 25th mission. All basic soldiers will be deployed with M1 Garand rifles");
}
if (foo == 20) {
return("Mud and Blood Cross. One of the most distinguished award. Issued anytime the commander has 5000 enemy waves survived before the 50th mission. All soldiers deployed under your command will start with 9xp.");
}
if (foo == 21) {
return("Air Command. Issued when 50 enemies have been killed by airstrikes. Further air strikes have 1% to be free can be combined with air medal.");
}
if (foo == 22) {
return("Ground Controller Ribbon. Issued when 50 enemies have been killed by arty. Further arty runs will contain more rounds.");
}
if (foo == 23) {
return("Urb's Anatomy Ribbon. Issued when 100 enemies have been blown into pieces. Soldiers now have 10% chances to be deployed with grenades");
}
if (foo == 24) {
return("Medal of Honor. Issued when 200 enemies have been killed in one mission. Further soldiers deployed under your command will have a 3% (+combat ribbon so 6%) bonus to their rifle skill");
}
if (foo == 25) {
return("");
}
if (foo == 26) {
return("");
}
}
_root.mnb2 = SharedObject.getLocal("mnb21");
if (_root.mnb2.data.created != 1) {
_root.registermc.gotoAndStop(1);
} else {
_root.registermc.gotoAndStop(2);
}
_root.hastydefence = 0;
stop();
Frame 4
_root.infoPanel.weaponz.gotoAndStop(random(8) + 1);
_root.infoPanel.specmc.gotoAndStop(random(8) + 1);
_root.infoPanel.rankmc.gotoAndStop(random(10) + 1);
_root.infoPanel.facemc.nozemc.gotoAndStop(random(10) + 1);
_root.infoPanel.facemc.mouthmc.gotoAndStop(random(10) + 1);
_root.infoPanel.facemc.hairmc.gotoAndStop(random(10) + 1);
_root.infoPanel.facemc.eyemc.gotoAndStop(random(10) + 1);
Frame 5
_root.facemc.nozemc.gotoAndStop(_root.mnb2.data.noze);
_root.facemc.mouthmc.gotoAndStop(_root.mnb2.data.mouth);
_root.facemc.hairmc.gotoAndStop(_root.mnb2.data.hair);
_root.facemc.eyemc.gotoAndStop(_root.mnb2.data.eye);
_root.opsnamez = (_root.rankTell(_root.mnb2.data.rank) + " ") + _root.mnb2.data.namez;
i = 0;
while (i < 26) {
trace((("medaille en position " + i) + " est de ") + _root.mnb2.data.playerMedalzorz[i]);
if (_root.mnb2.data.playerMedalzorz[i] != undefined) {
_root[("medal" + (i + 1)) + "mc"].gotoAndStop(_root.mnb2.data.playerMedalzorz[i] + 1);
} else {
_root[("medal" + (i + 1)) + "mc"].gotoAndStop(1);
}
i++;
}
_root.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
Frame 6
function MGCpt(foo) {
daCpt = 0;
i = 0;
while (i < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + i].typez == "mggrunt") {
daCpt++;
}
i++;
}
return(daCpt);
}
function bunkerKill(foo) {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].typez == "bunker") {
if (_root.distanceCheck(foo, _root.gamePanelMC["deco" + tempcpt]) < 50) {
i = 0;
while (i < 25) {
duplicateMovieClip (_root.gamePanelMC["chunk" + (random(3) + 1)], "deco" + _root.garbageCpt, 10000 + _root.garbageCpt);
_root.gamePanelMC["deco" + _root.garbageCpt]._x = _root.gamePanelMC["deco" + tempcpt]._x;
_root.gamePanelMC["deco" + _root.garbageCpt]._y = _root.gamePanelMC["deco" + tempcpt]._y;
scaledice = random(100) + 25;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale = scaledice;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale = scaledice;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
i++;
}
squish = new Sound(this);
squish.attachSound("bunkerBlow");
squish.start();
removeMovieClip(_root.gamePanelMC["deco" + tempcpt]);
}
}
tempcpt++;
}
}
function bunkered(foo) {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].typez == "bunker") {
if (_root.gamePanelMC["deco" + tempcpt].hitTest(foo)) {
return(true);
}
}
tempcpt++;
}
return(false);
}
function shake(foo) {
_root.shakermc.foo = foo;
_root.shakermc.gotoAndPlay(2);
}
function treeKill(foo) {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].hitTest(foo)) {
if (_root.gamePanelMC["deco" + tempcpt].typez == "tree") {
duplicateMovieClip (_root.gamePanelMC.buche, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["deco" + tempcpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["deco" + tempcpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale = _root.gamePanelMC["deco" + tempcpt]._xscale - 15;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale = _root.gamePanelMC["deco" + tempcpt]._yscale - 15;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
duplicateMovieClip (_root.gamePanelMC["dead" + _root.gamePanelMC["deco" + tempcpt].template], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["deco" + tempcpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["deco" + tempcpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale = _root.gamePanelMC["deco" + tempcpt]._xscale - 15;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale = _root.gamePanelMC["deco" + tempcpt]._yscale - 15;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
removeMovieClip(_root.gamePanelMC["deco" + tempcpt]);
} else if (_root.gamePanelMC["deco" + tempcpt].typez == "crate") {
_root.crateExplo(_root.gamePanelMC["deco" + tempcpt]);
} else if (_root.gamePanelMC["deco" + tempcpt].typez == "radarz") {
if (_root.gamePanelMC["deco" + tempcpt].radaring == 1) {
_root.gamePanelMC["deco" + tempcpt].gotoAndStop(2);
}
} else if (_root.gamePanelMC["deco" + tempcpt].typez == "antenaz") {
if (_root.gamePanelMC["deco" + tempcpt].antening == 1) {
_root.gamePanelMC["deco" + tempcpt].gotoAndStop(2);
}
}
}
tempcpt++;
}
}
function treeBurn(foo) {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].hitTest(foo)) {
if ((_root.gamePanelMC["deco" + tempcpt].typez == "tree") && (_root.gamePanelMC["deco" + tempcpt].template != "burned")) {
duplicateMovieClip (_root.gamePanelMC.burningtree, "deco" + _root.decoCpt, _root.decoCpt + 105000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["deco" + tempcpt]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["deco" + tempcpt]._y;
_root.gamePanelMC["deco" + _root.decoCpt]._xscale = _root.gamePanelMC["deco" + tempcpt]._xscale - 15;
_root.gamePanelMC["deco" + _root.decoCpt]._yscale = _root.gamePanelMC["deco" + tempcpt]._yscale - 15;
_root.decoCpt++;
removeMovieClip(_root.gamePanelMC["deco" + tempcpt]);
}
}
tempcpt++;
}
}
function playerDeath(foo) {
foo.gotoAndStop("death");
_root.leftbehind = 0;
_root.advanceCpt = 0;
while (_root.advanceCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + _root.advanceCpt].health >= 10) && (_root.gamePanelMC["grunt" + _root.advanceCpt].health != undefined)) {
_root.leftbehind++;
}
_root.advanceCpt++;
}
if ((foo.health < 1) && (foo.deadman == 0)) {
_root.stats.casualties++;
foo.deadman = 1;
}
_root.stats.lifetime.push(_root.timer2 - foo.born);
if (foo.experience > _root.stats.bestSoldier.experience) {
_root.stats.bestSoldier.noze = foo.noze;
_root.stats.bestSoldier.mouth = foo.mouth;
_root.stats.bestSoldier.hair = foo.hair;
_root.stats.bestSoldier.eye = foo.eye;
_root.stats.bestSoldier.namez = foo.namez;
_root.stats.bestSoldier.experience = foo.experience;
_root.stats.bestSoldier.rifle = foo.rifle;
_root.stats.bestSoldier.moral = foo.morale;
_root.stats.bestSoldier.spec = foo.spec;
_root.stats.bestSoldier.rank = foo.rank;
} else if (foo.experience == _root.stats.bestSoldier.experience) {
if (foo.rifle > _root.stats.bestSoldier.rifle) {
_root.stats.bestSoldier.noze = foo.noze;
_root.stats.bestSoldier.mouth = foo.mouth;
_root.stats.bestSoldier.hair = foo.hair;
_root.stats.bestSoldier.eye = foo.eye;
_root.stats.bestSoldier.namez = foo.namez;
_root.stats.bestSoldier.experience = foo.experience;
_root.stats.bestSoldier.rifle = foo.rifle;
_root.stats.bestSoldier.moral = foo.morale;
_root.stats.bestSoldier.spec = foo.spec;
_root.stats.bestSoldier.rank = foo.rank;
}
}
if (_root.leftbehind <= 0) {
gotoAndStop ("gameover");
} else {
_root.advance();
}
}
function antenaPresent() {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].antening == 1) {
trace("antene detectee!!!");
return(true);
}
tempcpt++;
}
trace("aucune antene detectee!!!");
return(false);
}
function playerRadarDetected() {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].radaring == 1) {
trace("radar detecte!!!");
return(true);
}
tempcpt++;
}
trace("aucun radar detecte!!!");
return(false);
}
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
function medalcheck() {
if (_root.medashowlmc._currentframe == 1) {
if ((_root.mnb2.data.soldierdeployed >= 100) && (_root.mnb2.data.medal1 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 1;
trace("medaille en position lenght-1 = " + _root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length - 1]);
_root.mnb2.data.medal1 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(2);
_root.medashowlmc.medalname = "War Effort Ribbon";
} else if ((_root.mnb2.data.soldiersaved >= 25) && (_root.mnb2.data.medal2 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 2;
_root.mnb2.data.medal2 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(3);
_root.medashowlmc.medalname = "Gallantry Medal";
} else if ((_root.wave >= 40) && (_root.mnb2.data.medal3 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 3;
_root.mnb2.data.medal3 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(4);
_root.medashowlmc.medalname = "Bronze Star";
} else if ((_root.wave >= 80) && (_root.mnb2.data.medal4 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 4;
_root.mnb2.data.medal4 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(5);
_root.medashowlmc.medalname = "Silver Star";
} else if ((_root.wave >= 100) && (_root.mnb2.data.medal5 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 5;
_root.mnb2.data.medal5 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(6);
_root.medashowlmc.medalname = "Gold Star";
} else if ((_root.mnb2.data.gameplayed >= 100) && (_root.mnb2.data.medal6 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 6;
_root.mnb2.data.medal6 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(7);
_root.medashowlmc.medalname = "Distinguished Service Ribbon";
} else if ((_root.mnb2.data.gameplayed >= 500) && (_root.mnb2.data.medal7 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 7;
_root.mnb2.data.medal7 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(8);
_root.medashowlmc.medalname = "Meritous Service Ribbon";
} else if ((_root.mnb2.data.gameplayed >= 1000) && (_root.mnb2.data.medal8 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 8;
_root.mnb2.data.medal8 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(9);
_root.medashowlmc.medalname = "Legion of Merit";
} else if ((_root.mnb2.data.construction >= 100) && (_root.mnb2.data.medal9 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 9;
_root.mnb2.data.medal9 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(10);
_root.medashowlmc.medalname = "Sapper commendation";
} else if ((_root.mnb2.data.airstrike >= 100) && (_root.mnb2.data.medal10 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 10;
_root.mnb2.data.medal10 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(11);
_root.medashowlmc.medalname = "Air Medal";
} else if ((_root.mnb2.data.promoted >= 5) && (_root.mnb2.data.medal11 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 11;
_root.mnb2.data.medal11 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(12);
_root.medashowlmc.medalname = "Westpoint Commendation";
} else if ((_root.stats.kills >= 100) && (_root.mnb2.data.medal12 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 12;
_root.mnb2.data.medal12 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(13);
_root.medashowlmc.medalname = "Combat Ribbon";
} else if (((_root.mnb2.data.gameplayed > 10) && ((_root.mnb2.data.killed / _root.mnb2.data.gameplayed) > 49)) && (_root.mnb2.data.medal13 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 13;
_root.mnb2.data.medal13 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(14);
_root.medashowlmc.medalname = "Assault Expert Award";
} else if ((_root.mnb2.data.highspeed >= 100) && (_root.mnb2.data.medal14 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 14;
_root.mnb2.data.medal14 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(15);
_root.medashowlmc.medalname = "Special Operations Ribbon";
} else if ((_root.mnb2.data.craterecovered >= 50) && (_root.mnb2.data.medal15 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 15;
_root.mnb2.data.medal15 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(16);
_root.medashowlmc.medalname = "Logistics Ribbon";
} else if (((_root.mnb2.data.gameplayed > 10) && ((_root.mnb2.data.wave / _root.mnb2.data.gameplayed) > 49)) && (_root.mnb2.data.medal16 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 16;
_root.mnb2.data.medal16 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(17);
_root.medashowlmc.medalname = "Defence Expert Award";
} else if ((_root.mnb2.data.tankkilled >= 10) && (_root.mnb2.data.medal17 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 17;
_root.mnb2.data.medal17 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(18);
_root.medashowlmc.medalname = "Tank Killer Ribbon";
} else if ((_root.mnb2.data.bbq >= 50) && (_root.mnb2.data.medal18 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 18;
_root.mnb2.data.medal18 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(19);
_root.medashowlmc.medalname = "BBQ Medal";
} else if (((_root.mnb2.data.wave >= 1000) && (_root.mnb2.data.gameplayed < 26)) && (_root.mnb2.data.medal19 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 19;
_root.mnb2.data.medal19 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(20);
_root.medashowlmc.medalname = "Meritorious Unit Commendation";
} else if (((_root.mnb2.data.wave >= 5000) && (_root.mnb2.data.gameplayed < 51)) && (_root.mnb2.data.medal20 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 20;
_root.mnb2.data.medal20 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(21);
_root.medashowlmc.medalname = "Mud and Blood Cross";
} else if ((_root.mnb2.data.airkill >= 50) && (_root.mnb2.data.medal21 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 21;
_root.mnb2.data.medal21 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(22);
_root.medashowlmc.medalname = "Air Command";
} else if ((_root.mnb2.data.artykill >= 50) && (_root.mnb2.data.medal22 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 22;
_root.mnb2.data.medal22 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(23);
_root.medashowlmc.medalname = "Ground Controller Ribbon";
} else if ((_root.mnb2.data.gib >= 100) && (_root.mnb2.data.medal23 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 23;
_root.mnb2.data.medal23 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(24);
_root.medashowlmc.medalname = "Urb's Anatomy Ribbon";
} else if ((_root.stats.kills >= 200) && (_root.mnb2.data.medal24 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 24;
_root.mnb2.data.medal24 = 1;
_root.medashowlmc.gotoAndPlay(2);
_root.medashowlmc.medal11mc.gotoAndStop(25);
_root.medashowlmc.medalname = "Medal of Honor";
} else if ((_root.mnb2.data.wave >= 1000000) && (_root.mnb2.data.medal25 == 0)) {
_root.mnb2.data.playerMedalzorz[_root.mnb2.data.playerMedalzorz.length] = 25;
_root.mnb2.data.medal25 = 1;
} else if ((_root.mnb2.data.rank < 2) && (_root.mnb2.data.point > 3000)) {
_root.mnb2.data.rank = 2;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "First Lieutenant";
} else if ((_root.mnb2.data.rank < 3) && (_root.mnb2.data.point > 6000)) {
_root.mnb2.data.rank = 3;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Captain";
} else if ((_root.mnb2.data.rank < 4) && (_root.mnb2.data.point > 12000)) {
_root.mnb2.data.rank = 4;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Major";
} else if ((_root.mnb2.data.rank < 5) && (_root.mnb2.data.point > 24000)) {
_root.mnb2.data.rank = 5;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Lt. Colonel";
} else if ((_root.mnb2.data.rank < 6) && (_root.mnb2.data.point > 48000)) {
_root.mnb2.data.rank = 6;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Colonel";
} else if ((_root.mnb2.data.rank < 7) && (_root.mnb2.data.point > 100000)) {
_root.mnb2.data.rank = 7;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Brigadier General";
} else if ((_root.mnb2.data.rank < 8) && (_root.mnb2.data.point > 200000)) {
_root.mnb2.data.rank = 8;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Major General";
} else if ((_root.mnb2.data.rank < 9) && (_root.mnb2.data.point > 400000)) {
_root.mnb2.data.rank = 9;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Lieutenant General";
} else if ((_root.mnb2.data.rank < 10) && (_root.mnb2.data.point > 800000)) {
_root.mnb2.data.rank = 10;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "General";
} else if ((_root.mnb2.data.rank < 11) && (_root.mnb2.data.point > 1000000)) {
_root.mnb2.data.rank = 11;
_root.promomc.gotoAndPlay(2);
_root.promomc.playerRankmc.gotoAndStop(_root.mnb2.data.rank);
_root.promomc.rankTell = "Mud and Blood General";
}
}
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("8c35c0d8", this, 10301, true);
function uselessStuff() {
this.stuffDice = random(18) + 1;
if (this.stuffDice == 1) {
return("SHOE POLISH");
}
if (this.stuffDice == 2) {
return("PLANES SPARE PARTS");
}
if (this.stuffDice == 3) {
return("UMBRELLAS");
}
if (this.stuffDice == 4) {
return("CRAYONS");
}
if (this.stuffDice == 5) {
return("SPOONS and FORKS");
}
if (this.stuffDice == 6) {
return("POWDERED MILK");
}
if (this.stuffDice == 7) {
return("SWIM SUITS");
}
if (this.stuffDice == 8) {
return("BERETS");
}
if (this.stuffDice == 9) {
return("BIRD WATCHING BOOKS");
}
if (this.stuffDice == 10) {
return("ICE CREAM");
}
if (this.stuffDice == 11) {
return("DIAPERS");
}
if (this.stuffDice == 12) {
return("SOXS");
}
if (this.stuffDice == 13) {
return("TOOTHPASTE");
}
if (this.stuffDice == 14) {
return("SHAVING KITS");
}
if (this.stuffDice == 15) {
return("FLASHLIGHTS");
}
if (this.stuffDice == 16) {
return("105mm SHELLS");
}
if (this.stuffDice == 17) {
return("PLASTIC CHRISTMAS TREES");
}
if (this.stuffDice == 18) {
return("COPIES OF DUKE NUKEM FOREVER");
}
}
function msg(messagez) {
if (_root.shootboxmc._currentframe < 2) {
_root.shootboxmc.gotoAndPlay(2);
_root.shootboxmc.foo = messagez;
} else {
_root.shootboxmc.gotoAndPlay(6);
_root.shootboxmc.foo = messagez;
}
}
function crateExplo(foo) {
this.temp = random(20) + 10;
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC["sup" + (random(14) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.decoSize = 70 + random(31);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
removeMovieClip(foo);
}
function gib(foo) {
if (foo.armor == 0) {
if (foo.health > 0) {
if (foo.germ == 1) {
_root.stats.kills++;
_root.mnb2.data.gib++;
}
}
squish = new Sound(this);
squish.attachSound("squish" + (random(3) + 1));
squish.start();
if (random(100) < 50) {
this.temp = random(5);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.gib3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
this.temp = random(5);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.gib1, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
this.temp = random(5);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.gib2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
} else {
if (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC.gib12, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
duplicateMovieClip (_root.gamePanelMC.gib6, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
duplicateMovieClip (_root.gamePanelMC.gib7, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
duplicateMovieClip (_root.gamePanelMC.gib7, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC.gib16, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
duplicateMovieClip (_root.gamePanelMC.gib14, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
duplicateMovieClip (_root.gamePanelMC.gib4, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
duplicateMovieClip (_root.gamePanelMC.gib5, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
duplicateMovieClip (_root.gamePanelMC.gib8, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp = random(3) + 1;
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.gib1, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
duplicateMovieClip (_root.gamePanelMC.gib9, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp = random(5);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.gib17, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
}
if (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC.gib15, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.temp = random(3);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.gib17, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
duplicateMovieClip (_root.gamePanelMC.gib18, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC.gib15, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.temp = random(3);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.gib17, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
duplicateMovieClip (_root.gamePanelMC.gib18, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
} else if (foo.armor == 1) {
_root.mnb2.data.tankkilled++;
duplicateMovieClip (_root.gamePanelMC.carwreck, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = foo._rotation;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (foo.armor == 2) {
_root.mnb2.data.tankkilled++;
duplicateMovieClip (_root.gamePanelMC.tankwreck, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = foo._rotation;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
foo.squish2.stop();
foo.squish3.stop();
}
removeMovieClip(foo);
}
function batiseur() {
namev = ["Smith", "Jhonson", "Clark", "Backster", "Turner", "Jackson", "Woo", "Terence", "Willis", "Wilson", "Radjack", "McCoy", "Fidler", "White", "Sergey", "Sergio", "Sanchez", "Burton", "Winston", "Peter", "Leblanc", "Ramirez", "Ryker", "Adams", "Akins", "Anderson", "Alvarez", "Braun", "Brown", "Bullok", "Childers", "Cook", "Cutter", "Connor", "Cox", "Duncan", "Elliot", "Ferry", "Grifin", "Gullisken", "Harmon", "Hoke", "Horn", "Hook", "Hooker", "Kilbuck", "Oligny", "Valiquette", "Jacques"];
o = random(_root.namev.length);
alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
v = Math.round(Math.random() * 25);
daname = new String((alphabet[v] + ".") + namev[o]);
return(daname);
}
function batiseur2() {
namev = ["Tralala", "Ouioui", "Bibliotheque", "Pipi", "Caca", "Troudu", "Philipe", "Mathieu", "Fromage", "Louis", "Ludovic", "Xavier", "Froufrou", "Jevoi", "Sisi", "Roucoucou", "Tintin", "Asterix", "Milou", "Tournesol", "Leblanc", "Hadok", "Dupont", "Renaud", "Piaf", "Defunaise", "BelAmour", "PainBaguette", "Parmesan", "Piment", "Jmecasse", "Pamplemousse", "Ratatouille", "Michelin", "Lalalaire", "Ragnagnax", "Gotlib", "Dumarais", "Troupignon", "Versaille", "Rincoincoin", "Oulala", "Yenamarre", "Faitgaffe", "Merde", "Meuf", "Oligny", "Valiquette", "Jacques"];
o = random(_root.namev.length);
alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
v = Math.round(Math.random() * 25);
daname = new String((alphabet[v] + ".") + namev[o]);
return(daname);
}
function rankup(dude) {
if (dude.experience > 100) {
dude.experience = 100;
}
if ((((((((((dude.experience >= 10) && (dude.rank < 1)) || ((dude.experience >= 20) && (dude.rank < 2))) || ((dude.experience >= 30) && (dude.rank < 3))) || ((dude.experience >= 40) && (dude.rank < 4))) || ((dude.experience >= 50) && (dude.rank < 5))) || ((dude.experience >= 60) && (dude.rank < 6))) || ((dude.experience >= 70) && (dude.rank < 7))) || ((dude.experience >= 80) && (dude.rank < 8))) || ((dude.experience >= 90) && (dude.rank < 9))) {
dude.rank++;
if (dude.rank == 9) {
_root.mnb2.data.promoted++;
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!promoted =" + _root.mnb2.data.promoted);
}
_root.rankupmc._x = dude._x;
_root.rankupmc._y = dude._y;
_root.rankupmc.rankmc.gotoAndStop(dude.rank + 1);
if (dude.typez != "jeep") {
dude.rifle = dude.rifle + random(10);
dude.moral = dude.moral + random(10);
} else {
dude.gunnermc.rifle = dude.gunnermc.rifle + random(10);
}
_root.rankupmc.gotoAndPlay(2);
}
if (dude.typez == "officer") {
if (((((dude.experience >= 25) && (dude.rank < 10)) || ((dude.experience >= 50) && (dude.rank < 11))) || ((dude.experience >= 75) && (dude.rank < 12))) || ((dude.experience >= 99) && (dude.rank < 13))) {
dude.rank++;
_root.rankupmc._x = dude._x;
_root.rankupmc._y = dude._y;
_root.rankupmc.rankmc.gotoAndStop(dude.rank + 1);
dude.rifle = dude.rifle + random(20);
dude.moral = dude.moral + random(20);
}
_root.rankupmc.gotoAndPlay(2);
}
}
function createBattlefield() {
while (random(100) < 20) {
duplicateMovieClip (_root.gamePanelMC["patch" + (random(3) + 1)], "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
}
_root.decoTemp = random(100);
while (_root.decoTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["feuille" + (random(18) + 1)], "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
_root.decoTemp--;
}
while (random(100) < 20) {
duplicateMovieClip (_root.gamePanelMC["flake" + (random(3) + 1)], "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
}
while (random(100) < 60) {
duplicateMovieClip (_root.gamePanelMC["plante" + (random(10) + 1)], "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
}
while (random(100) < 25) {
duplicateMovieClip (_root.gamePanelMC["mush" + (random(3) + 1)], "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.decoCpt++;
}
while (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC["branche" + (random(3) + 1)], "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoSize = 25 + random(100);
_root.gamePanelMC["deco" + _root.decoCpt]._xscale = _root.decoSize;
_root.gamePanelMC["deco" + _root.decoCpt]._yscale = _root.decoSize;
_root.decoCpt++;
}
while (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC["tronc" + (random(3) + 1)], "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoSize = 50 + random(100);
_root.gamePanelMC["deco" + _root.decoCpt]._xscale = _root.decoSize;
_root.gamePanelMC["deco" + _root.decoCpt]._yscale = _root.decoSize;
_root.decoCpt++;
}
while (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC.roche, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoSize = random(100);
_root.gamePanelMC["deco" + _root.decoCpt]._xscale = _root.decoSize;
_root.gamePanelMC["deco" + _root.decoCpt]._yscale = _root.decoSize;
_root.decoCpt++;
}
while (random(100) < 85) {
duplicateMovieClip (_root.gamePanelMC["tree" + (random(3) + 1)], "deco" + _root.decoCpt, _root.decoCpt + 105000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(401);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(601);
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoSize = 50 + random(75);
_root.gamePanelMC["deco" + _root.decoCpt]._xscale = _root.decoSize;
_root.gamePanelMC["deco" + _root.decoCpt]._yscale = _root.decoSize;
_root.decoCpt++;
}
}
function enemyWave(foo) {
_root.mnb2.data.wave++;
if (_root.wave < 20) {
_root.debugTemp = random(3) + 1;
} else if (_root.wave < 30) {
_root.debugTemp = 3 + (random(3) + 1);
} else if (_root.wave < 40) {
_root.debugTemp = 6 + (random(3) + 1);
} else {
_root.debugTemp = 10;
}
_root.waveTemp = 0;
_root.waveTemp = _root.debugTemp;
while (_root.waveTemp > 1) {
if (random(100) < 50) {
duplicateMovieClip (_root.gamePanelMC.enemyGrenadier, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 2;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 2;
while (_root.waveTemp > 1) {
if (random(100) < 35) {
duplicateMovieClip (_root.gamePanelMC.enemyFlamer, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 2;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 2;
while (_root.waveTemp > 1) {
if (random(100) < 35) {
duplicateMovieClip (_root.gamePanelMC.enemyShrek, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 2;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 2;
while (_root.waveTemp > 1) {
if (random(100) < 25) {
duplicateMovieClip (_root.gamePanelMC.enemyGruntMG, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 2;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 3;
while (_root.waveTemp > 1) {
if (random(100) < 25) {
duplicateMovieClip (_root.gamePanelMC.enemyOfficer, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 3;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 3;
while (_root.waveTemp > 1) {
if (random(100) < 25) {
duplicateMovieClip (_root.gamePanelMC.SS, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 3;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 3;
while (_root.waveTemp > 1) {
if (random(100) < 25) {
duplicateMovieClip (_root.gamePanelMC.enemyGruntSniper, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 3;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 4;
while (_root.waveTemp > 1) {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.germjeep, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 4;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp / 5;
while (_root.waveTemp > 1) {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.panther, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 5;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp;
while (_root.waveTemp > 0) {
if (random(100) < 70) {
duplicateMovieClip (_root.gamePanelMC.enemyGrunt, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp--;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
_root.waveTemp = _root.debugTemp;
while (_root.waveTemp > 0) {
if (random(100) < 30) {
duplicateMovieClip (_root.gamePanelMC.enemyGruntJugend, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp--;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.waveTemp--;
}
while (_root.debugTemp > 0) {
duplicateMovieClip (_root.gamePanelMC.volks, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.debugTemp = _root.debugTemp - 0.5;
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
}
_root.wave++;
}
function distanceCheck(me, you) {
shotx = me._x;
shoty = me._y;
stargetx = you._x;
stargety = you._y;
shotabsx = Math.abs(stargetx - shotx);
shotabsy = Math.abs(stargety - shoty);
shotdistance = Math.sqrt((shotabsx * shotabsx) + (shotabsy * shotabsy));
return(shotdistance);
}
function spawnGrunt(typez) {
_root.stats.deployed++;
if (typez == 1) {
duplicateMovieClip (_root.gamePanelMC.playerGrunt, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 2) {
duplicateMovieClip (_root.gamePanelMC.usjeep, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 3) {
duplicateMovieClip (_root.gamePanelMC.playerGruntOfficer, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 4) {
duplicateMovieClip (_root.gamePanelMC.playerGruntMedic, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 5) {
duplicateMovieClip (_root.gamePanelMC.playerGruntEngy, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 6) {
duplicateMovieClip (_root.gamePanelMC.playerGruntSAS, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 7) {
duplicateMovieClip (_root.gamePanelMC.playerGruntSigs, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 8) {
duplicateMovieClip (_root.gamePanelMC.playerGruntSniper, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 9) {
duplicateMovieClip (_root.gamePanelMC.playerGruntFlamer, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 10) {
duplicateMovieClip (_root.gamePanelMC.playerResitance, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 11) {
duplicateMovieClip (_root.gamePanelMC.sherman, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 12) {
duplicateMovieClip (_root.gamePanelMC.zookaGrunt, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 13) {
duplicateMovieClip (_root.gamePanelMC.playerGruntMG, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = 630;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
}
}
function ricochet(target) {
duplicateMovieClip (_root.gamePanelMC.ricochet, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = target._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = target._y + (-25 + random(50));
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
function ricochet2(target) {
duplicateMovieClip (_root.gamePanelMC.ricochet2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = target._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = target._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = 180;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
function advance() {
_root.leftbehind = 0;
_root.advanceCpt = 0;
while (_root.advanceCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + _root.advanceCpt].health >= 10) && (_root.gamePanelMC["grunt" + _root.advanceCpt].invincible == 0)) {
_root.leftbehind++;
}
_root.advanceCpt++;
}
if (_root.leftbehind > 0) {
} else {
_root.stats.groundGained = _root.stats.groundGained + (100 + random(20));
_root.garbageCpt = 10000;
while (_root.garbageCpt >= 0) {
removeMovieClip(_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]);
_root.garbageCpt--;
}
while (_root.decoCpt >= 0) {
removeMovieClip(_root.gamePanelMC["deco" + _root.decoCpt]);
_root.decoCpt--;
}
_root.enemyCpt = 100;
while (_root.enemyCpt >= 0) {
if (_root.gamePanelMC["enemy" + _root.enemyCpt].health > 10) {
_root.miss++;
}
removeMovieClip(_root.gamePanelMC["enemy" + _root.enemyCpt]);
_root.enemyCpt--;
}
_root.enemyCpt = 0;
_root.playerCptTemp = 0;
_root.playerCptTemp2 = 0;
while (_root.playerCptTemp <= _root.playerCpt) {
if (_root.gamePanelMC["grunt" + _root.playerCptTemp].health < 10) {
if (_root.gamePanelMC["grunt" + _root.playerCptTemp].health > 0) {
while (_root.playerCptTemp2 <= _root.playerCpt) {
_root.gamePanelMC["grunt" + _root.playerCptTemp2].moral = _root.gamePanelMC["grunt" + _root.playerCptTemp2].moral - random(10);
if (_root.gamePanelMC["grunt" + _root.playerCptTemp2].moral < 0) {
_root.gamePanelMC["grunt" + _root.playerCptTemp2].moral = 1;
}
_root.playerCptTemp2++;
}
}
removeMovieClip(_root.gamePanelMC["grunt" + _root.playerCptTemp]);
}
_root.playerCptTemp++;
}
_root.playerCptTemp = 0;
while (_root.playerCptTemp <= _root.playerCpt) {
_root.gamePanelMC["grunt" + _root.playerCptTemp].targety = 550;
_root.gamePanelMC["grunt" + _root.playerCptTemp].experience++;
_root.gamePanelMC["grunt" + _root.playerCptTemp].moral++;
_root.playerCptTemp++;
}
_root.createBattlefield();
_root.tactical++;
}
}
function invincibleCheck(foo) {
if ((((foo._y > 600) || (foo._y < 0)) || (foo._x < 0)) || (foo._x > 400)) {
foo.invincible = 1;
} else {
foo.invincible = 0;
}
}
_root.pausez = 0;
_root.focusTarget = "";
_root.timer2 = 0;
_root.enemyCpt = 0;
_root.leftbehind = 0;
_root.timer = 0;
_root.decoCpt = 0;
_root.positioncpt = 0;
_root.garbageCpt = 0;
_root.decoTemp = 0;
_root.decoSize = 0;
_root.wave = 0;
_root.enemyCpt = 0;
_root.playerCpt = 0;
_root.miss = 0;
_root.score = 0;
_root.rangerupgrade = 0;
_root.tactical = 0;
_root.weaponupgrade = 0;
_root.playerCptTemp = 0;
_root.playerCptTemp2 = 0;
_root.impactTemp = 0;
_root.straff = 0;
_root.bomb = 0;
_root.arty = 0;
_root.airsup = 0;
_root.paradrop = 0;
_root.waveTemp;
_root.stats = new Object();
_root.stats.shot = 0;
_root.stats.hit = 0;
_root.stats.kills = 0;
_root.stats.deployed = 0;
_root.stats.groundGained = 0;
_root.stats.enemyShots = 0;
_root.stats.enemyHits = 0;
_root.stats.casualties = 0;
_root.stats.stiches = 0;
_root.shakerdice = 0;
_root.shaker = 0;
_root.shaker2 = 0;
_root.stats.bestSoldier = new Object();
_root.stats.bestSoldier.noze = 0;
_root.stats.bestSoldier.mouth = 0;
_root.stats.bestSoldier.hair = 0;
_root.stats.bestSoldier.eye = 0;
_root.stats.bestSoldier.namez = 0;
_root.stats.bestSoldier.experience = 0;
_root.stats.bestSoldier.rifle = 0;
_root.stats.bestSoldier.moral = 0;
_root.stats.bombs = 0;
_root.stats.shells = 0;
_root.stats.planeMG = 0;
_root.stats.germanPlane = 0;
_root.stats.germanArty = 0;
_root.stats.germanBomb = 0;
_root.stats.crate = 0;
_root.stats.crateRecovered = 0;
_root.stats.lifetime = new Array();
_root.stats.trenchSave = 0;
_root.germanArtyStrike = 0;
_root.germanArtyDelay = 0;
_root.germbomb = 0;
_root.germstraff = 0;
_root.germanPlaneDelay = 0;
_root.smokex = 0;
_root.smokey = 0;
_root.smokeCue = 0;
_root.smokeCpt = -99;
_root.squadnumber = 0;
_root.engyCue = 0;
_root.bossTimer = 0;
_root.bossdice = 0;
_root.bosstemp = 0;
_root.createBattlefield();
if (_root.gametypez == 1) {
i = 0;
while (i < 4) {
_root.dice = random(13) + 1;
if ((_root.dice == 2) || (_root.dice == 11)) {
_root.dice = 10;
}
_root.spawnGrunt(_root.dice);
i++;
}
} else if (_root.gametypez == 2) {
_root.tactical = 12;
} else if (_root.gametypez == 3) {
_root.spawnGrunt(6);
_root.spawnGrunt(6);
_root.spawnGrunt(6);
_root.spawnGrunt(6);
_root.tactical = -10;
} else if (_root.gametypez == 4) {
_root.spawnGrunt(1);
_root.spawnGrunt(1);
_root.spawnGrunt(1);
_root.spawnGrunt(1);
_root.tactical = _root.tactical + _root.leftover;
} else if (_root.gametypez == 5) {
_root.tactical = 50 + ((_root.mnb2.data.rank - 6) * 10);
} else {
_root.spawnGrunt(1);
_root.spawnGrunt(1);
_root.spawnGrunt(1);
_root.spawnGrunt(1);
}
_root.cadeauMsg = "";
if (random(100) < ((_root.mnb2.data.medal3 + (_root.mnb2.data.medal4 * 2)) + (_root.mnb2.data.medal5 * 3))) {
_root.spawnGrunt(1);
_root.cadeauMsg = _root.cadeauMsg + "one free grunt ";
}
if (_root.mnb2.data.medal11 == 1) {
_root.spawnGrunt(3);
_root.cadeauMsg = _root.cadeauMsg + "a free officer ";
}
if (random(100) < _root.mnb2.data.medal17) {
_root.spawnGrunt(12);
_root.cadeauMsg = _root.cadeauMsg + "a free AT soldier ";
}
if (random(100) < _root.mnb2.data.medal18) {
_root.spawnGrunt(9);
_root.cadeauMsg = _root.cadeauMsg + "a free flame soldier ";
}
stop();
function los(x1, x2, y1, y2) {
los_distance = Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)));
los_samples = los_distance / 30;
los_angle = (-Math.atan2(x1 - x2, y1 - y2)) / (Math.PI/180);
los_xSpeed = 30 * Math.sin(los_angle * (Math.PI/180));
los_ySpeed = 30 * Math.cos(los_angle * (Math.PI/180));
los_x = x1;
los_y = y1;
los_i = 1;
while (los_i <= los_samples) {
_root.point.duplicateMovieClip("point" + los_i, los_i);
_root["point" + los_i]._x = los_x;
_root["point" + los_i]._y = los_y;
los_y = los_y - los_ySpeed;
los_x = los_x + los_xSpeed;
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].obstacle.hitTest(los_x, los_y, true)) {
return(false);
}
tempcpt++;
}
los_i++;
}
return(true);
}
function los2(x1, x2, y1, y2) {
los_distance = Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)));
trace("los distance" + los_distance);
los_samples = los_distance / 30;
trace("los sample =" + los_samples);
los_angle = (-Math.atan2(x1 - x2, y1 - y2)) / (Math.PI/180);
los_xSpeed = 30 * Math.sin(los_angle * (Math.PI/180));
los_ySpeed = 30 * Math.cos(los_angle * (Math.PI/180));
los_x = x1;
los_y = y1;
los_i = 1;
while (los_i <= los_samples) {
trace(("duplicating.." + los_i) + " at least supposed to");
_root.point.duplicateMovieClip("point" + los_i, los_i);
_root["point" + los_i]._x = los_x;
_root["point" + los_i]._y = los_y;
los_y = los_y - los_ySpeed;
los_x = los_x + los_xSpeed;
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].obstacle.hitTest(los_x, los_y, true)) {
return(false);
}
tempcpt++;
}
los_i++;
}
return(true);
}
function coverFinder(foo) {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].covermc.hitTest(foo._x, foo._y, true)) {
return(true);
}
tempcpt++;
}
}
function tipStorm() {
tips = ["TIP: Medics, Officers, Gunners and Snipers can't upgrade weapons.", "TIP: The effectiveness of your signaller is determined by his experience.", "TIP: Spec Ops move faster than normal troops.", "TIP: Hide valuable or injured soldiers behind trees and rocks.", "TIP: Taking sniper fire? Use trees and rocks to shield your troops.", "TIP: Officers allow nearby troops to take decisions faster.", "TIP: Medics will prioritise wounded soldiers.", "TIP: Thompson SMGs are good at short range but less effective at long range.", "TIP: Closer the enemy is, easier it will be to kill him with a shotgun.", "TIP: When advancing, leaving wounded soldiers behind will reduce the moral of your troops", "TIP: A low moral soldier that is fired upon will most likely be pinned for a while", "TIP: Use craters for cover.", "TIP: An experienced soldiers will make better and faster decisions.", "TIP: In combat pistols are unreliable past 20m", "TIP: Secure the supply drops to get power ups.", "TIP: Snipers are invisible to the enemy when they don't fire.", "TIP: Signallers are slow movers because they carry a heavy pack.", "TIP: Snipers will prioritise targets.", "TIP: Spec Ops and Engineers initially deploy with a m3 SMG also called Grease Gun.", "TIP: SS troops (dark blue dress) move and shoot faster.", "TIP: Careful to not hit your own troops with air strikes and artillery.", "TIP: Consider moving up if the enemy is soft enough. You will gain a tactical point and change terrain.", "TIP: Air strikes and artillery are not instant. A lot of coordination is required between the HQ and your Signaller.", "TIP: Having a lot of soldiers in your section is not always the key to success.", "TIP: Germans will sacrifice cover for mobility. Dig in and pick them up one by one.", "TIP: Soldiers in the rear are less likely to be targeted by non snipers.", "TIP: Air strikes and arty will pin the enemy down for a while.", "TIP: Eat a lot of fruit and vegetables.", "TIP: Inexperienced soldiers will use their weapons beyond effective range.", "TIP: Medics don't fight.", "TIP: Try to use a good combination of long, medium and short range soldiers.", "TIP: Shotgun damage at close range is maximized.", "TIP: Spread your squad to avoid being wiped out by a single arty shell.", "TIP: Your mission will end if 10 Germans cross your line of defence.", "TIP: A soldier with less than 10 hit points is considered DISABLED.", "TIP: Medics can fix up DISABLED soldiers.", "TIP: All your base are belong to us.", "TIP: Give M1s to your best shooters.", "TIP: Back your injured soldiers so they can keep fighting while avoiding being targeted first.", "TIP: Tactical points for strikes are only deducted after the call is acknowledged and processed. Make sure you have enough or the call will be cancelled.", "TIP: Gekisen2 is NOT a vaporware :) Just you wait.", "TIP: Keep up the good work!!", "TIP: The longer you last, the more you will be considered a nuisance by enemy comanders.", "TIP: Use air strikes on a very populated enemy front.", "TIP: Use arty to dislodge annoying snipers.", "TIP: Arty strikes can be from 1 to 8 shells.", "TIP: You will hear a distinctive ricochet sound when a soldier is saved by his cover.", "TIP: If battlefield conditions are favourable you can hear the distant enemy artillery firing at you.", "TIP: Alarms mean that an enemy plane have been spotted.", "TIP: We are the 7th August 1944, few clicks south of Mortain, Normandy, France.", "TIP: You are attacked by the 2nd SS Division Das Reich and the 12th SS.", "TIP: You are part of the 1rst Recon platoon of the 119th regiment in the 30th Infantry Division.", "TIP: Your mission is to conduct an impromptu defence while your HQ is relocating.", "TIP: The Germans code named this operation 'L\u00FCttich'.", "TIP: By August 8th, Operation L\u00FCttich had failed, and with it the German's last chance to destroy the Allied forces in Normandy.", "TIP: 300 American soldiers will die defending this place but Germans will lose 150 tanks and considerable amount of men as well.", "TIP: Only another sniper can detect and shoot at a concealed sniper.", "TIP: Establish your strategy as early as possible in the game.", "TIP: Engineers can build defences, lay mines and barbwire.", "TIP: Explosions can knock trees down changing the tactical situation.", "TIP: All soldiers, except medics, can have frag grenades.", "TIP: Mines work both ways, don't step on 'em.", "TIP: Tactical points are easier to get early in the game.", "TIP: Don't be a noob.", "TIP: Future versions will include tanks, rocket launchers, flamethrowers and machine gun pits.", "TIP: Soldiers will not execute your move orders right away but rather when they feel safe to move.", "TIP: Soldiers who recover supplies get experience points.", "TIP: Careful with those grenades.", "TIP: Airstrikes are deadly. End of story.", "TIP: Smaller squads are harder to spot from the sky.", "TIP: Get a trench going ASAP.", "TIP: Don't bunch all your guys at the same spot.", "TIP: There is up to 21 different body parts that fly when a soldier explodes.", "TIP: War in RL is just like this but with better graphics and no spawn points.", "TIP: This game is totally randomized. Expect to be brutalized sometimes...", "TIP: The next Mud And Blood instalment will be in a medieval setting.", "TIP: Want one of your tip/funny comment to be displayed here? Get on to our forums and let us know.", "TIP: The BAR is a good support weapon but it requires frequent reloads.", "TIP: Sniper, jeeps and tanks are the best damage dealers of in this game.", "TIP: Spec Ops come skilled at combat and with grenades.", "TIP: Soldiers (as anything else in this game) are generated randomly, sometimes you can get a super soldier.", "TIP: Keep in mind that a soldier who's not shooting is: scanning, adjusting his firing position, coordinating with his squad, taking partial cover, assessing the situation and/or freaking out.", "TIP: You don't need to designate targets to your soldiers they will pick them by themselves.", "TIP: A machine gun that is firing from the hip is less accurate than one being deployed.", "TIP: Leave your machine gunner still for a moment to allow him to deploy his gun for more accuracy.", "TIP: Paratroopers who land on trees can get hurt pretty bad.", "TIP: Flame soldiers can blow up if shoot in the fuel tank.", "TIP: A burning soldier, while freaking out, has chances to spread the fire onto nearby soldiers as well.", "TIP: Killing trees is bad.", "TIP: Allied officer can reduce the number of german soldiers who passed your line of defence for extended play.", "TIP: Bazookas can't be operated in bunkers.", "TIP: Snipers are not effective when located in bunkers.", "TIP: Machine gunners are very effective when located in bunkers.", "TIP: Most soldiers will have hard time finding the enemy when located in a bunker.", "TIP: Put your tank in front of your soldiers to give them solid cover while allowing them to shoot over it.", "TIP: Careful if you hear a small musical cue it means you're about to experience a Blitz (boss wave).. not good.", "TIP: One of the youngest soldier in the 12th SS Panzer Division Hitlerjugend was 13 yrs old.", "TIP: Grenades can't be thrown out of bunkers.", "TIP: Pray that enemy flamers never have a shot at your bunker.", "TIP: After a certain range a bazooka rounds are threat for anyone or anything close enough.", "TIP: Use smoke to cover your movements.", "TIP: Enemy gunners will stay behind and cover the progression of their fellow soldiers. This can be problematic if not dealt promptly.", "TIP: Don't be fooled, a bunker can be blown into pieces if it gets directly hit by a lucky/unlucky bomb.", "TIP: Volkssturm (light green soldiers) have poor morale. If shot at, they might just give up and go home.", "TIP: Don't get overwhelm by all your options, keep your fight simple and you'll be all right.", "TIP: This is basically a defence game but feel free to advance if you want.", "TIP: Thanks to the community for their input!!! (Savage, Creed, Rumpel, FunkMeisterChris, urbanslugpro and all the others )", "TIP: Hit the space bar to pause the game.", "TIP: Fire spreads", "TIP: 2nd SS-Panzerdivision 'Das Reich', the guys your fighting, was honored with 69 Knight's Cross', 151 German Cross in Gold and 29 honor Roll Clasp recipients."];
return(tips[random(tips.length)]);
}
function enemyDeathRoutine(foo) {
if (foo.dead == 0) {
trace("starting death routine for " + foo._name);
if (foo.typez == "grunt") {
duplicateMovieClip (_root.gamePanelMC.germrifle, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (foo.typez == "ss") {
duplicateMovieClip (_root.gamePanelMC.germsmg, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (foo.typez == "sniper") {
duplicateMovieClip (_root.gamePanelMC.germrifle2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (foo.typez == "grenadier") {
duplicateMovieClip (_root.gamePanelMC.germrifle, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (foo.typez == "shrek") {
duplicateMovieClip (_root.gamePanelMC.germzooka, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (foo.typez == "volks") {
if (foo.flee == 0) {
duplicateMovieClip (_root.gamePanelMC.germrifle, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (foo.typez == "para") {
duplicateMovieClip (_root.gamePanelMC.fg42, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (foo.typez == "jugend") {
duplicateMovieClip (_root.gamePanelMC.g43, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
duplicateMovieClip (_root.gamePanelMC.youthknife, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = foo._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = foo._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
foo.dead = 1;
}
}
function playerSquadHuge() {
_root.squadnumber = 0;
_root.advanceCpt = 0;
while (_root.advanceCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + _root.advanceCpt].health >= 10) && (_root.gamePanelMC["grunt" + _root.advanceCpt].health != undefined)) {
_root.squadnumber++;
}
_root.advanceCpt++;
}
trace("number of peeps in squad =" + _root.squadnumber);
if (_root.squadnumber > 12) {
_root.squadnumber = _root.squadnumber * 10;
}
if (random(3000) < _root.squadnumber) {
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! squad huge kicked in");
return(true);
}
return(false);
}
function playerSquadUp() {
_root.squadnumber = 0;
_root.advanceCpt = 0;
while (_root.advanceCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + _root.advanceCpt].health >= 10) && (_root.gamePanelMC["grunt" + _root.advanceCpt].health != undefined)) {
if (_root.gamePanelMC["grunt" + _root.advanceCpt]._y < 300) {
_root.squadnumber++;
}
}
_root.advanceCpt++;
}
if (_root.squadnumber > 4) {
return(true);
}
return(false);
}
function spawnGrunt2(foo) {
_root.stats.deployed++;
typez = random(7) + 1;
if (typez == 1) {
duplicateMovieClip (_root.gamePanelMC.playerGrunt, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = foo._x;
_root.gamePanelMC["grunt" + _root.playerCpt]._y = foo._y;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 2) {
duplicateMovieClip (_root.gamePanelMC.playerGruntOfficer, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = foo._x;
_root.gamePanelMC["grunt" + _root.playerCpt]._y = foo._y;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 3) {
duplicateMovieClip (_root.gamePanelMC.playerGruntMedic, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = foo._x;
_root.gamePanelMC["grunt" + _root.playerCpt]._y = foo._y;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 4) {
duplicateMovieClip (_root.gamePanelMC.playerGruntEngy, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = foo._x;
_root.gamePanelMC["grunt" + _root.playerCpt]._y = foo._y;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 5) {
duplicateMovieClip (_root.gamePanelMC.playerGruntSAS, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = foo._x;
_root.gamePanelMC["grunt" + _root.playerCpt]._y = foo._y;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 6) {
duplicateMovieClip (_root.gamePanelMC.playerGruntSigs, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = foo._x;
_root.gamePanelMC["grunt" + _root.playerCpt]._y = foo._y;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
} else if (typez == 7) {
duplicateMovieClip (_root.gamePanelMC.playerGruntSniper, "grunt" + _root.playerCpt, _root.playerCpt + 100000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = foo._x;
_root.gamePanelMC["grunt" + _root.playerCpt]._y = foo._y;
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
_root.debugTemp--;
}
}
function maxWave() {
_root.enemyCpt = 100;
while (_root.enemyCpt >= 0) {
removeMovieClip(_root.gamePanelMC["enemy" + _root.enemyCpt]);
_root.enemyCpt--;
}
_root.enemyCpt = 0;
_root.waveTemp = 10;
while (_root.waveTemp > 1) {
duplicateMovieClip (_root.gamePanelMC.enemyGrenadier, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
_root.waveTemp--;
}
}
Instance of Symbol 975 MovieClip "gamePanelMC" in Frame 6
onClipEvent (load) {
trace((("le board son x cest" + this._x) + " pis son y est ") + this._y);
}
onClipEvent (mouseUp) {
if (_root.focusTarget != "") {
_root.gamePanelMC[_root.focusTarget].targetx = _root._xmouse;
_root.gamePanelMC[_root.focusTarget].targety = _root._ymouse;
duplicateMovieClip (_root.gamePanelMC.positionmc, "position" + _root.positioncpt, 200000 + _root.positioncpt);
_root.gamePanelMC["position" + _root.positioncpt]._x = _root._xmouse;
_root.gamePanelMC["position" + _root.positioncpt]._y = _root._ymouse;
_root.positioncpt++;
if (_root.positioncpt > 5) {
_root.positioncpt = 0;
}
_root.focusTarget = "";
_root.mousePointer.gotoAndStop(1);
}
if (_root.engyCue > 0) {
this.actionCpt = 0;
this.closeEnough = 0;
while (this.actionCpt < _root.playerCpt) {
if (((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) && (_root.distanceCheck(_root.mousePointer, _root.gamePanelMC["grunt" + this.actionCpt]) < 100)) {
this.closeEnough = 1;
this.actionCpt = 999999 /* 0x0F423F */;
}
this.actionCpt++;
}
if (this.closeEnough != 1) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("Your engineer must be closer to this location if you want to build there!!!");
_root.engyCue = 0;
_root.mousePointer.gotoAndStop(1);
} else {
if (_root.engyCue == 1) {
if (_root.tactical >= 2) {
_root.mousePointer.gotoAndStop(1);
if ((_root.mnb2.data.medal9 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("build");
shot.start();
_root.tactical = _root.tactical - 2;
}
duplicateMovieClip (_root.gamePanelMC.trenchmc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(40) - 20;
_root.decoCpt++;
_root.mnb2.data.construction++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points.");
_root.mousePointer.gotoAndStop(1);
}
} else if (_root.engyCue == 2) {
if (_root.tactical >= 1) {
_root.mousePointer.gotoAndStop(1);
if ((_root.mnb2.data.medal9 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("build");
shot.start();
_root.tactical = _root.tactical - 1;
}
duplicateMovieClip (_root.gamePanelMC.wiremc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(40) - 20;
_root.decoCpt++;
_root.mnb2.data.construction++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points.");
_root.mousePointer.gotoAndStop(1);
}
} else if (_root.engyCue == 3) {
if (_root.tactical >= 1) {
_root.mousePointer.gotoAndStop(1);
if ((_root.mnb2.data.medal9 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("build");
shot.start();
_root.tactical = _root.tactical - 1;
}
duplicateMovieClip (_root.gamePanelMC.minezmc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
duplicateMovieClip (_root.gamePanelMC.minezmc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse + 50;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse + 50;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
duplicateMovieClip (_root.gamePanelMC.minezmc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse - 50;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse + 50;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
_root.mnb2.data.construction++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points.");
_root.mousePointer.gotoAndStop(1);
}
} else if (_root.engyCue == 4) {
if (_root.tactical >= 1) {
_root.mousePointer.gotoAndStop(1);
if ((_root.mnb2.data.medal9 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("build");
shot.start();
_root.tactical = _root.tactical - 1;
}
duplicateMovieClip (_root.gamePanelMC.antenamc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
_root.mnb2.data.construction++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points.");
_root.mousePointer.gotoAndStop(1);
}
} else if (_root.engyCue == 5) {
if (_root.tactical >= 3) {
_root.mousePointer.gotoAndStop(1);
if ((_root.mnb2.data.medal9 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("build");
shot.start();
_root.tactical = _root.tactical - 3;
}
duplicateMovieClip (_root.gamePanelMC.radarmc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
_root.decoCpt++;
_root.mnb2.data.construction++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points.");
_root.mousePointer.gotoAndStop(1);
}
} else if (_root.engyCue == 6) {
if (_root.tactical >= 5) {
_root.mousePointer.gotoAndStop(1);
if ((_root.mnb2.data.medal9 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("build");
shot.start();
_root.tactical = _root.tactical - 5;
}
duplicateMovieClip (_root.gamePanelMC.bunkermc, "deco" + _root.decoCpt, _root.decoCpt + 104000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root._xmouse;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root._ymouse;
_root.decoCpt++;
_root.mnb2.data.construction++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points.");
_root.mousePointer.gotoAndStop(1);
}
}
_root.engyCue = 0;
}
} else if (_root.smokeCue == 1) {
if (_root.tactical >= 1) {
_root.tactical--;
_root.smokex = _root._xmouse;
_root.smokey = _root._ymouse;
_root.smokeCue = 0;
_root.gamePanelMC["grunt" + _root.smokeCpt].gotoAndPlay("comms");
_root.gamePanelMC["grunt" + _root.smokeCpt].straff = 0;
_root.gamePanelMC["grunt" + _root.smokeCpt].bomb = 0;
_root.gamePanelMC["grunt" + _root.smokeCpt].arty = 0;
_root.gamePanelMC["grunt" + _root.smokeCpt].smoke = 1;
_root.mousePointer.gotoAndStop(1);
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points.");
_root.mousePointer.gotoAndStop(1);
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (_root.pausez == 1) {
_root.pausez = 0;
_root.pausemc.gotoAndStop(1);
} else {
_root.pausez = 1;
_root.pausemc.gotoAndStop(2);
}
}
}
Instance of Symbol 1294 MovieClip "msgmc" in Frame 6
onClipEvent (enterFrame) {
if (_root.weaponupgrade > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1335 MovieClip "mousePointer" in Frame 6
onClipEvent (load) {
this.swapDepths(999999);
Mouse.hide();
}
onClipEvent (enterFrame) {
this.startDrag(true);
}
Instance of Symbol 1370 MovieClip "shakermc" in Frame 6
onClipEvent (load) {
this.foo = 0;
}
Frame 7
_root.scoretable.filename = "scoremnb2/demo.sco";
_root.scoretable.scoresize = 15;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = "";
_root.scoretable.winscore = 0;
_root.scoretable.loadVariables("http://www.urbanprophet.com/scoremnb2.php", "GET");
_root.playername = "fafa";
_root.once = 0;
_root.stiches = _root.stats.stiches;
_root.shotfired = _root.stats.shot;
_root.accuracy = (Math.round(((_root.stats.hit / _root.stats.shot) * 100) / 0.01) / 100) + "%";
_root.kills = _root.stats.kills;
_root.mnb2.data.killed = _root.mnb2.data.killed + _root.stats.kills;
_root.mnb2.data.wave = _root.mnb2.data.wave + _root.wave;
_root.deployed = _root.stats.deployed;
_root.ground = _root.stats.groundGained;
_root.timez = ((Math.round(_root.timer2 / 60) + "Mins, ") + (_root.timer2 % 60)) + " Secs";
_root.tempav = 0;
i = 0;
while (i < _root.stats.lifetime.length) {
_root.tempav = _root.tempav + _root.stats.lifetime[i];
i++;
}
_root.soldierlost = _root.stats.casualties;
_root.soldierlife = ((Math.round((_root.tempav / _root.stats.lifetime.length) / 60) + " Mins,") + Math.round((_root.tempav / _root.stats.lifetime.length) % 60)) + " Secs";
_root.shotreceived = _root.stats.enemyShots;
_root.germanaccuracy = (Math.round(((_root.stats.enemyHits / _root.stats.enemyShots) * 100) / 0.01) / 100) + "%";
_root.shellreceived = _root.stats.germanArty;
_root.bombreceived = _root.stats.germanBomb;
_root.planereceived = _root.stats.germanPlane;
_root.suppliez = (Math.round(((_root.stats.crateRecovered / _root.stats.crate) * 100) / 0.01) / 100) + "%";
_root.defended = _root.stats.trenchSave;
_root.totalscore = ((_root.stats.hit + (_root.kills * 5)) + (_root.wave * 5)) + (_root.stats.crateRecovered * 10);
_root.mnb2.data.point = _root.mnb2.data.point + _root.totalscore;
_root.statez = 0;
_root.mnb2.data.leftover = _root.tactical;
stop();
Frame 8
_root.scoretable.filename = "scoremnb3/demo.sco";
_root.scoretable.scoresize = 15;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = "";
_root.scoretable.winscore = 0;
_root.scoretable.winrank = 0;
_root.scoretable.loadVariables("http://www.urbanprophet.com/scoremnb3.php", "GET");
stop();
Symbol 25 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 26 MovieClip Frame 2
_root.prepText = "Building landscape";
Symbol 26 MovieClip Frame 3
_root.prepText = "Generating enemy force";
Symbol 26 MovieClip Frame 4
_root.prepText = "Loading up German chain of command structure and priorities";
Symbol 26 MovieClip Frame 5
_root.prepText = "Placing airfields";
Symbol 26 MovieClip Frame 6
_root.prepText = "Placing Artillery bases";
Symbol 26 MovieClip Frame 7
_root.prepText = "Loading 2nd and 12th SS panzer division SOPs";
Symbol 26 MovieClip Frame 8
_root.prepText = "Building enemy general personality";
Symbol 26 MovieClip Frame 9
_root.prepText = "Populating enemy front with generated units";
Symbol 26 MovieClip Frame 10
_root.prepText = "Loading allied forces";
Symbol 26 MovieClip Frame 11
_root.prepText = "Loading player options";
Symbol 26 MovieClip Frame 12
_root.prepText = "Creating radio network and call signs";
Symbol 26 MovieClip Frame 13
_root.prepText = "Deploying allied forces";
Symbol 26 MovieClip Frame 14
_root.prepText = "Loading up weapons and equipement charts";
Symbol 26 MovieClip Frame 15
_root.prepText = "Loading weapons and ordinances ballistics";
Symbol 26 MovieClip Frame 16
_root.prepText = "Distributing weapons and ammo to allied and axis soldiers";
Symbol 26 MovieClip Frame 17
_root.prepText = "Loading particles system";
Symbol 26 MovieClip Frame 18
_root.prepText = "Loading anatomy and hit boxes";
Symbol 26 MovieClip Frame 19
_root.prepText = "Loading AI, fire and physics algorithm";
Symbol 26 MovieClip Frame 20
_root.prepText = "Lock and loading weaponry";
_root.gotoAndPlay("menu");
Symbol 43 Button
on (release) {
_root.mnb2.data.namez = _root.registermc.playernamez.text;
trace(_root.mnb2.data.namez);
_root.mnb2.data.rank = 1;
_root.mnb2.data.point = 0;
_root.mnb2.data.leftover = 0;
_root.mnb2.data.noze = random(10) + 1;
_root.mnb2.data.mouth = random(10) + 1;
_root.mnb2.data.hair = random(10) + 1;
_root.mnb2.data.eye = random(10) + 1;
_root.mnb2.data.medal1 = 0;
_root.mnb2.data.medal2 = 0;
_root.mnb2.data.medal3 = 0;
_root.mnb2.data.medal4 = 0;
_root.mnb2.data.medal5 = 0;
_root.mnb2.data.medal6 = 0;
_root.mnb2.data.medal7 = 0;
_root.mnb2.data.medal8 = 0;
_root.mnb2.data.medal9 = 0;
_root.mnb2.data.medal10 = 0;
_root.mnb2.data.medal11 = 0;
_root.mnb2.data.medal12 = 0;
_root.mnb2.data.medal13 = 0;
_root.mnb2.data.medal14 = 0;
_root.mnb2.data.medal15 = 0;
_root.mnb2.data.medal16 = 0;
_root.mnb2.data.medal17 = 0;
_root.mnb2.data.medal18 = 0;
_root.mnb2.data.medal19 = 0;
_root.mnb2.data.medal20 = 0;
_root.mnb2.data.medal21 = 0;
_root.mnb2.data.medal22 = 0;
_root.mnb2.data.medal23 = 0;
_root.mnb2.data.medal24 = 0;
_root.mnb2.data.medal25 = 0;
_root.mnb2.data.soldierdeployed = 0;
_root.mnb2.data.soldiersaved = 0;
_root.mnb2.data.gameplayed = 0;
_root.mnb2.data.construction = 0;
_root.mnb2.data.airstrike = 0;
_root.mnb2.data.promoted = 0;
_root.mnb2.data.killed = 0;
_root.mnb2.data.highspeed = 0;
_root.mnb2.data.craterecovered = 0;
_root.mnb2.data.airkill = 0;
_root.mnb2.data.artykill = 0;
_root.mnb2.data.wave = 0;
_root.mnb2.data.tankkilled = 0;
_root.mnb2.data.bbq = 0;
_root.mnb2.data.gib = 0;
_root.mnb2.data.playerMedalzorz = new Array();
_root.mnb2.data.created = 1;
trace("new player created");
_root.registermc.gotoAndStop(2);
}
Symbol 83 Button
on (release) {
_root.gotoAndStop("fight");
}
Symbol 86 Button
on (release) {
_root.gotoAndStop("intel");
}
Symbol 89 Button
on (release) {
_root.gotoAndStop("ops");
}
Symbol 91 MovieClip Frame 1
stop();
Instance of Symbol 80 MovieClip in Symbol 91 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(random(18) + 1);
}
Symbol 100 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}
Symbol 103 Button
on (release) {
stopAllSounds();
gotoAndStop ("next1");
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 241 Button
on (release) {
stopAllSounds();
_root.mnb2.data.created = 0;
trace("new player created");
gotoAndStop ("menu");
}
Symbol 247 Button
on (rollOver) {
_root.medaldesc = "Hasty defence. Start with a random squad. Must be Captain to use this option.";
}
on (rollOut) {
_root.medaldesc = "";
}
on (release) {
if (_root.mnb2.data.rank > 2) {
_root.gametypez = 1;
_root.gotoAndStop("fight");
} else {
_root.medaldesc = "You must be a Captain to call this";
}
}
Symbol 248 Button
on (rollOver) {
_root.medaldesc = "Close protection. Start with 12 points and build you own squad from scratch. Must be Major to use this option.";
}
on (rollOut) {
_root.medaldesc = "";
}
on (release) {
if (_root.mnb2.data.rank > 3) {
_root.gametypez = 2;
_root.gotoAndStop("fight");
} else {
_root.medaldesc = "You must be a Major to call this";
}
}
Symbol 249 Button
on (rollOver) {
_root.medaldesc = "Special operations. Start with 5 spec ops but your initial tactical score will be -10. Must be Lt Col to use this option.";
}
on (rollOut) {
_root.medaldesc = "";
}
on (release) {
if (_root.mnb2.data.rank > 4) {
_root.gametypez = 3;
_root.gotoAndStop("fight");
} else {
_root.medaldesc = "You must be a LtCol. to call this";
}
}
Symbol 250 Button
on (rollOver) {
_root.medaldesc = ("Proper planning. Last deployment's unused tactical points will be added to your starting total. In the present case we're talking about " + _root.mnb2.data.leftover) + " points. Must be Col. to use this option.";
}
on (rollOut) {
_root.medaldesc = "";
}
on (release) {
if (_root.mnb2.data.rank > 5) {
_root.gametypez = 4;
_root.gotoAndStop("fight");
} else {
_root.medaldesc = "You must be a Col. to call this";
}
}
Symbol 251 Button
on (rollOver) {
_root.medaldesc = "Last stand. Start with 50 points and last as long as you can. Must be at least Brigadier General to use this option. Subsequent general ranks add +10 to the amount of tactical points given by the Last stand option.";
}
on (rollOut) {
_root.medaldesc = "";
}
on (release) {
if (_root.mnb2.data.rank > 6) {
_root.gametypez = 5;
_root.gotoAndStop("fight");
} else {
_root.medaldesc = "You must be a general to call this";
}
}
Symbol 303 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[0]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 304 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[1]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 305 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[2]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 306 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[3]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 307 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[4]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 308 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[5]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 309 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[6]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 310 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[7]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 311 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[8]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 312 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[9]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 313 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[10]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 314 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[11]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 315 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[12]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 316 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[13]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 317 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[14]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 318 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[15]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 319 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[16]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 320 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[17]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 321 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[18]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 322 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[19]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 323 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[20]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 324 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[21]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 325 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[22]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 326 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[23]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 327 Button
on (rollOver) {
_root.medaldesc = _root.ribbonText(_root.mnb2.data.playerMedalzorz[24]);
}
on (rollOut) {
_root.medaldesc = "";
}
Symbol 378 MovieClip Frame 60
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
_root.msg(domain);
if (domain != "urbanprophet.com") {
}
stop();
Symbol 435 MovieClip Frame 1
Symbol 435 MovieClip Frame 20
if (_root.pausez == 0) {
this.wireCpt = 0;
while (this.wireCpt < _root.playerCpt) {
if (this.hitTest(_root.gamePanelMC["grunt" + this.wireCpt]._x, _root.gamePanelMC["grunt" + this.wireCpt]._y, true)) {
if (_root.gamePanelMC["grunt" + this.wireCpt].health >= 1) {
if (random(100) > _root.gamePanelMC["grunt" + this.wireCpt].experience) {
_root.gamePanelMC["grunt" + this.wireCpt].health--;
_root.gamePanelMC["grunt" + this.wireCpt].wired = random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
shot2 = new Sound(this);
shot2.attachSound("rip");
shot2.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.wireCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.wireCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.wireCpt++;
}
this.wireCpt = 0;
while (this.wireCpt < _root.enemyCpt) {
if (this.hitTest(_root.gamePanelMC["enemy" + this.wireCpt]._x, _root.gamePanelMC["enemy" + this.wireCpt]._y, true)) {
if (_root.gamePanelMC["enemy" + this.wireCpt].health >= 1) {
if (random(100) > _root.gamePanelMC["enemy" + this.wireCpt].experience) {
_root.gamePanelMC["enemy" + this.wireCpt].health--;
_root.gamePanelMC["enemy" + this.wireCpt].wired = random(100);
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
shot2 = new Sound(this);
shot2.attachSound("rip");
shot2.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.wireCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.wireCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.wireCpt++;
}
}
gotoAndPlay (1);
Symbol 435 MovieClip Frame 21
stop();
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 2
_root.stats.stiches++;
Symbol 450 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.weapon = 2;
this.rifle = this.rifle + (random(15) + 1);
this.moral = this.moral + (random(15) + 1);
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.life = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
this.weapon = _root.weaponupgrade;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 456 MovieClip Frame 4
stop();
Symbol 461 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 461 MovieClip Frame 20
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 465 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 465 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 465 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 469 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 469 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 469 MovieClip Frame 31
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 473 MovieClip Frame 9
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 473 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 473 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 474 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 474 MovieClip Frame 2
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
Symbol 474 MovieClip Frame 7
this.actionTimer = 9999;
if (_root.pausez == 0) {
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Symbol 474 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
if (this.weapon == 1) {
shot = new Sound(this);
shot.attachSound("usrifle" + (random(5) + 1));
shot.start();
} else if (this.weapon == 2) {
shot = new Sound(this);
shot.attachSound("garand" + (random(2) + 1));
shot.start();
} else if (this.weapon == 3) {
shot = new Sound(this);
shot.attachSound("tommy");
shot.start();
} else if (this.weapon == 4) {
shot = new Sound(this);
shot.attachSound("shotgun");
shot.start();
} else if (this.weapon == 5) {
shot = new Sound(this);
shot.attachSound("grease");
shot.start();
} else if (this.weapon == 6) {
shot = new Sound(this);
shot.attachSound("bar");
shot.start();
}
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if (((this.weapon == 2) || (this.weapon == 3)) || (this.weapon == 5)) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else {
gotoAndStop (1);
}
Symbol 474 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 474 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.moving == 1) {
if (this.weapon == 1) {
gotoAndStop (1);
shot = new Sound(this);
shot.attachSound("chrink");
shot.start();
this.actionTimer = (10 + random(100)) - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (this.weapon == 2) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("M1_Reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 3) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 4) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].innershell.gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("shotgun_reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 5) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("bar_Reload");
shot.start();
this.ammo = 20;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
}
this.aiming = 0;
} else {
gotoAndStop (10);
}
} else {
gotoAndStop (13);
}
Symbol 474 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (17);
}
Symbol 474 MovieClip Frame 37
_root.playerDeath(this);
stop();
Symbol 476 Button
on (release) {
trace(this._name);
trace(this._level);
}
Symbol 492 MovieClip Frame 2
stop();
Symbol 494 MovieClip Frame 11
stop();
removeMovieClip(this);
Symbol 496 MovieClip Frame 20
stop();
Symbol 500 MovieClip Frame 1
stop();
Instance of Symbol 500 MovieClip "innershell" in Symbol 501 MovieClip Frame 1
/* no clip actions */
Symbol 510 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(9);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.rifle = this.rifle + 15;
this.moral = this.moral + 15;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
_root.msg("This soldier can't upgrade his weapon.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
}
Symbol 519 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 519 MovieClip Frame 2
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
} else {
gotoAndPlay (1);
}
Symbol 519 MovieClip Frame 7
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (3);
}
Symbol 519 MovieClip Frame 8
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
shot = new Sound(this);
shot.attachSound("pistol");
shot.start();
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if (this.distance > 200) {
trace("trop loin pour l'officier");
this.dice = this.dice * 2;
trace("dice = " + this.dice);
}
if (this.dice <= this.rifle) {
if (((weapon == 4) && (this.distance < 250)) || (this.weapon != 4)) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 1) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 10) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.ammo--;
Symbol 519 MovieClip Frame 12
if (_root.pausez == 0) {
if (this.semi < 1) {
if (random(100) < 50) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(105) < (this.experience + 5)) {
gotoAndPlay (8);
this.semi--;
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 519 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("pistol_reload");
shot.start();
this.ammo = 8;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(4);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(500)) - this.experience;
}
this.aiming = 0;
} else {
gotoAndPlay (13);
}
Symbol 519 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
} else {
gotoAndPlay (17);
}
Symbol 519 MovieClip Frame 37
stop();
_root.playerDeath(this);
Symbol 519 MovieClip Frame 38
this.aiming = 1;
Symbol 519 MovieClip Frame 62
if (_root.pausez == 0) {
shot = new Sound(this);
shot.attachSound("corandom" + (random(13) + 1));
shot.start();
this.actionCpt2 = 0;
while (this.actionCpt2 < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt2].health > 10) {
if (_root.gamePanelMC["grunt" + this.actionCpt2].health > 10) {
if (_root.gamePanelMC["grunt" + this.actionCpt2].pinned == 1) {
_root.gamePanelMC["grunt" + this.actionCpt2].gotoAndStop(1);
_root.gamePanelMC["grunt" + this.actionCpt2].pinned = 0;
trace("~~~~~~~~~OFFICIER depine " + _root.gamePanelMC["grunt" + this.actionCpt2]._name);
} else {
_root.gamePanelMC["grunt" + this.actionCpt2].actionTimer = random(50) + 1;
}
}
}
this.actionCpt2++;
}
} else {
gotoAndPlay (40);
}
Symbol 519 MovieClip Frame 90
gotoAndStop (1);
this.aiming = 0;
Symbol 519 MovieClip Frame 91
this.aiming = 1;
Symbol 519 MovieClip Frame 125
if (_root.pausez == 0) {
if (random(100) < 50) {
gotoAndPlay ("special2");
} else if (random(100) < 50) {
if (random(100) < 50) {
_root.tactical++;
shot = new Sound(this);
shot.attachSound("cotact");
shot.start();
_root.msg("A tactical point has been added due to the leadership of your officer.");
} else {
_root.miss--;
if (_root.miss < 0) {
_root.miss = 0;
}
shot = new Sound(this);
shot.attachSound("officer4");
shot.start();
_root.msg("One flanking German is removed due to the tactical ability of your officer.");
}
gotoAndPlay (1);
this.aiming = 0;
} else {
this.aiming = 0;
}
} else {
gotoAndPlay (95);
}
Symbol 522 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
this.burst = random(20) + 1;
Symbol 527 MovieClip Frame 8
if (random(100) > (10 + this.experience)) {
gotoAndPlay (2);
}
Symbol 527 MovieClip Frame 9
this.actionTimer = 9999;
shot = new Sound(this);
shot.attachSound("germMG");
shot.start();
_root.stats.enemyShots++;
if (random(100) < this.rifle) {
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
this.saved = 0;
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save par un trench");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
if (random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
}
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._parent._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._parent._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
Symbol 527 MovieClip Frame 12
if (this.burst > 1) {
this.burst--;
gotoAndPlay (9);
} else {
shot = new Sound(this);
shot.attachSound("germMGafter");
shot.start();
this.actionTimer = random(300) + 1;
}
Symbol 527 MovieClip Frame 15
gotoAndStop (1);
Symbol 527 MovieClip Frame 16
this.death = 1;
Instance of Symbol 522 MovieClip "drivermc" in Symbol 528 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(100) > 90) {
this._rotation = this._rotation + (random(3) - 1);
}
}
Instance of Symbol 527 MovieClip "gunnermc" in Symbol 528 MovieClip Frame 1
onClipEvent (load) {
this.burst = 0;
this.rifle = 1;
this.experience = random(10) + 1;
this.actionTimer = random(200);
this.death = 0;
}
onClipEvent (enterFrame) {
if (this._parent._name != "germjeep") {
if (_root.pausez == 0) {
if (this.death != 1) {
if (this.actionTimer < 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 10) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.los(this._parent._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._parent._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._parent._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._parent._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
trace("MG FIRE at rotation " + this._rotation);
}
this.actionTimer = random(999);
}
} else {
this.actionTimer--;
}
}
}
}
}
Symbol 532 Button
on (release) {
_root.msg("You don't need to designate targets; your soldiers will engage enemies automatically.");
}
Symbol 539 MovieClip Frame 1
if (this.health < 10) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 539 MovieClip Frame 2
this.burst = random(6) + 1;
Symbol 539 MovieClip Frame 8
if (random(100) > (10 + this.experience)) {
gotoAndPlay (3);
}
Symbol 539 MovieClip Frame 9
this.actionTimer = 9999;
shot = new Sound(this);
shot.attachSound("mp40");
shot.start();
_root.stats.enemyShots++;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < (this.rifle - (this.burst * 2))) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 60) {
this.saved = 1;
trace("la target se save");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
Symbol 539 MovieClip Frame 12
this.burst--;
this.ammo--;
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (9);
}
Symbol 539 MovieClip Frame 15
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
stop();
Symbol 539 MovieClip Frame 16
if (this.health < 10) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 539 MovieClip Frame 35
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 30) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 539 MovieClip Frame 37
_root.stats.kills++;
duplicateMovieClip (_root.gamePanelMC.germsmg, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x + (-50 + random(100));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y(-50 + random(100));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 2
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 2
this.burst = random(20) + 3;
Symbol 546 MovieClip Frame 8
if (_root.pausez == 0) {
if (random(100) > (10 + this.experience)) {
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Symbol 546 MovieClip Frame 9
if (_root.pausez == 0) {
this.firemc.gotoAndPlay(1);
shot = new Sound(this);
shot.attachSound("fiftycal");
shot.start();
_root.stats.shot++;
this.dice = random(100);
trace("jeep rotation = " + this._parent._rotation);
trace("gun rotation = " + this._rotation);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if (this.burst > 0) {
this.dice = this.dice - (this.burst * 2);
}
if (this.dice <= this.rifle) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(200);
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
this._parent.experience++;
_root.rankup(this._parent);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 6) {
} else if ((_root.impactTemp >= 6) && (_root.impactTemp < 9)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 75) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
_root.score = _root.score + 6;
this._parent.experience = this._parent.experience + 2;
_root.rankup(this._parent);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(9));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 75) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.score = _root.score + 6;
this._parent.experience = this._parent.experience + 2;
_root.rankup(this._parent);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(9));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._parent._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._parent._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale = _root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale * 2;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale = _root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale * 2;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
gotoAndPlay (3);
}
Symbol 546 MovieClip Frame 13
if (_root.pausez == 0) {
if (this.burst > 1) {
this.burst--;
gotoAndPlay (9);
} else {
shot = new Sound(this);
shot.attachSound("germMGafter");
shot.start();
this.actionTimer = random(200) + 1;
}
} else {
gotoAndPlay (12);
}
Symbol 546 MovieClip Frame 15
gotoAndStop (1);
this.burst = 0;
Symbol 546 MovieClip Frame 16
this.death = 1;
stop();
Symbol 547 Button
on (rollOver) {
if ((this.driver == 1) || (this.gunner == 1)) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.gotoAndStop(2);
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.gunnermc.rifle;
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
}
}
on (rollOut) {
_root.infoPanel.gotoAndStop(1);
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (release) {
if (this.driver == 1) {
_root.focusTarget = this._name;
}
}
Instance of Symbol 542 MovieClip "drivermc" in Symbol 548 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(100) > 90) {
this._rotation = this._rotation + (random(3) - 1);
}
}
Instance of Symbol 546 MovieClip "gunnermc" in Symbol 548 MovieClip Frame 1
onClipEvent (load) {
this.burst = 0;
this.rifle = random(10) + 1;
this.experience = random(10) + 1;
this.actionTimer = random(200);
this.death = 0;
this.weapon = 6;
}
onClipEvent (enterFrame) {
if (this._parent._name != "usjeep") {
if (_root.pausez == 0) {
if (this._parent.gunner > 0) {
if (this.actionTimer < 1) {
if (_root.bunkered(this) == false) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._parent._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._parent._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._parent._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._parent._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this._rotation = this._rotation - this._parent._rotation;
this.gotoAndPlay(2);
}
}
}
this.actionTimer = random(999);
} else {
this.actionTimer--;
}
}
}
}
}
Symbol 550 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(10);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
trace(this._name);
trace("aiming " + this.aiming);
trace("pinned " + this.pinned);
trace("invincible " + this.invincible);
trace("targetx" + this.targetx);
trace("targety" + this.targety);
if (_root.rangerupgrade == 1) {
this.moral = this.moral + 15;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.msg("It is relatively pointless to give this upgrade to a medic.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade > 0) {
_root.msg("Medics can't have any weapons.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
}
}
}
Symbol 553 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 553 MovieClip Frame 20
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
} else {
gotoAndPlay (3);
}
Symbol 553 MovieClip Frame 39
if (this.health < 10) {
gotoAndStop ("death");
}
gotoAndPlay (20);
Symbol 553 MovieClip Frame 40
_root.playerDeath(this);
stop();
_root.advance();
Symbol 557 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
trace(this._name);
trace("aiming " + this.aiming);
trace("pinned " + this.pinned);
trace("invincible " + this.invincible);
trace("targetx" + this.targetx);
trace("targety" + this.targety);
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.weapon = 2;
this.rifle = this.rifle + (random(15) + 1);
this.moral = this.moral + (random(15) + 1);
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
this.weapon = _root.weaponupgrade;
_root.weaponupgrade = 0;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 561 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 561 MovieClip Frame 2
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 6) {
this.burst = random(10) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
} else {
gotoAndPlay (1);
}
Symbol 561 MovieClip Frame 7
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (3);
}
Symbol 561 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
if (this.weapon == 1) {
shot = new Sound(this);
shot.attachSound("rifleshot");
shot.start();
} else if (this.weapon == 2) {
shot = new Sound(this);
shot.attachSound("garand" + (random(2) + 1));
shot.start();
} else if (this.weapon == 3) {
shot = new Sound(this);
shot.attachSound("tommy");
shot.start();
} else if (this.weapon == 4) {
shot = new Sound(this);
shot.attachSound("shotgun");
shot.start();
} else if (this.weapon == 5) {
shot = new Sound(this);
shot.attachSound("bar");
shot.start();
} else if (this.weapon == 6) {
shot = new Sound(this);
shot.attachSound("grease");
shot.start();
}
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 300)) {
this.dice = this.dice * 2;
}
if ((this.weapon == 6) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if ((((this.weapon == 2) || (this.weapon == 3)) || (this.weapon == 5)) || (this.weapon == 6)) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else {
gotoAndPlay (1);
}
Symbol 561 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 561 MovieClip Frame 15
if (this.health < 10) {
gotoAndStop ("death");
}
if (_root.pausez == 0) {
if (this.moving == 1) {
if (this.weapon == 1) {
gotoAndStop (1);
shot = new Sound(this);
shot.attachSound("chrink");
shot.start();
this.actionTimer = (10 + random(100)) - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (this.weapon == 2) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("M1_Reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 3) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 4) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].innershell.gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("shotgun_reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 5) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("bar_Reload");
shot.start();
this.ammo = 20;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 6) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(5);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
}
this.aiming = 0;
} else {
gotoAndStop (10);
}
} else {
gotoAndPlay (12);
}
Symbol 561 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
trace(this.namez + "a failer son pin test");
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
trace(this.namez + "a reussi son pin test");
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (17);
}
Symbol 561 MovieClip Frame 37
stop();
_root.playerDeath(this);
Symbol 563 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.weapon = 2;
this.rifle = this.rifle + (random(15) + 1);
this.moral = this.moral + (random(15) + 1);
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
this.weapon = _root.weaponupgrade;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 570 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 570 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 570 MovieClip Frame 31
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 574 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 574 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 574 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 577 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 577 MovieClip Frame 20
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 581 MovieClip Frame 9
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 581 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 581 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 582 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 582 MovieClip Frame 2
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 6) {
this.burst = random(10) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
} else {
gotoAndPlay (1);
}
Symbol 582 MovieClip Frame 7
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (3);
}
Symbol 582 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
if (this.weapon == 1) {
shot = new Sound(this);
shot.attachSound("rifleshot");
shot.start();
} else if (this.weapon == 2) {
shot = new Sound(this);
shot.attachSound("garand" + (random(2) + 1));
shot.start();
} else if (this.weapon == 3) {
shot = new Sound(this);
shot.attachSound("tommy");
shot.start();
} else if (this.weapon == 4) {
shot = new Sound(this);
shot.attachSound("shotgun");
shot.start();
} else if (this.weapon == 5) {
shot = new Sound(this);
shot.attachSound("bar");
shot.start();
} else if (this.weapon == 6) {
shot = new Sound(this);
shot.attachSound("grease");
shot.start();
}
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 300)) {
this.dice = this.dice * 2;
}
if ((this.weapon == 6) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if ((((this.weapon == 2) || (this.weapon == 3)) || (this.weapon == 5)) || (this.weapon == 6)) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else {
gotoAndPlay (3);
}
Symbol 582 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 582 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.moving == 1) {
if (this.weapon == 1) {
gotoAndStop (1);
shot = new Sound(this);
shot.attachSound("chrink");
shot.start();
this.actionTimer = (10 + random(100)) - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (this.weapon == 2) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("M1_Reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 3) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 4) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].innershell.gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("shotgun_reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 5) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("bar_Reload");
shot.start();
this.ammo = 20;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 6) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(5);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
}
this.aiming = 0;
} else {
gotoAndStop (10);
}
} else {
gotoAndPlay (12);
}
Symbol 582 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (18);
}
Symbol 582 MovieClip Frame 37
stop();
_root.playerDeath(this);
Symbol 590 MovieClip Frame 1
this._alpha = 100;
Symbol 590 MovieClip Frame 2
squish = new Sound(this);
squish.attachSound("artyinc" + (random(3) + 1));
squish.start();
Symbol 590 MovieClip Frame 50
this._alpha = 100;
Symbol 590 MovieClip Frame 51
_root.shake(3);
squish = new Sound(this);
squish.attachSound("exploz" + (random(4) + 1));
squish.start();
this.blast._rotation = random(360);
duplicateMovieClip (_root.gamePanelMC.cratere, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
this.swapDepths(_root.gamePanelMC["deco" + _root.decoCpt]);
_root.decoCpt++;
_root.treeKill(this);
_root.bunkerKill(this);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 60) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
_root.mnb2.data.artykill++;
_root.stats.kills++;
}
_root.gib(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 59) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 150)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(300 - _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]));
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
_root.mnb2.data.artykill++;
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 60) {
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
_root.gib(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 59) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 150)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(300 - _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]));
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
Symbol 590 MovieClip Frame 52
this.blast._rotation = random(360);
this.temp = random(20);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 590 MovieClip Frame 53
this.blast2._rotation = random(360);
Symbol 590 MovieClip Frame 61
this._alpha = 45;
Symbol 590 MovieClip Frame 62
this._alpha = 40;
Symbol 590 MovieClip Frame 63
this._alpha = 35;
Symbol 590 MovieClip Frame 64
this._alpha = 30;
Symbol 590 MovieClip Frame 65
this._alpha = 25;
Symbol 590 MovieClip Frame 66
this._alpha = 20;
Symbol 590 MovieClip Frame 67
this._alpha = 15;
Symbol 590 MovieClip Frame 68
this._alpha = 10;
Symbol 590 MovieClip Frame 69
this._alpha = 100;
removeMovieClip(this);
Symbol 634 MovieClip Frame 1
if (this._name == "bloodspot") {
stop();
}
Symbol 634 MovieClip Frame 20
removeMovieClip(this);
Symbol 635 MovieClip Frame 1
this._alpha = 100;
Symbol 635 MovieClip Frame 2
squish = new Sound(this);
squish.attachSound("Flak_0" + (random(8) + 1));
squish.start();
this.blast._rotation = random(360);
duplicateMovieClip (_root.gamePanelMC.cratere2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
this.swapDepths(_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 7) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
_root.mnb2.data.airkill++;
_root.stats.kills++;
}
_root.gib(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 6) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 50)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(100);
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
_root.mnb2.data.airkill++;
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 7) {
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
_root.gib(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 6) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 50)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
Symbol 635 MovieClip Frame 3
this.blast._rotation = random(360);
this.temp = random(10);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 635 MovieClip Frame 4
this.blast2._rotation = random(360);
Symbol 635 MovieClip Frame 12
this._alpha = 45;
Symbol 635 MovieClip Frame 13
this._alpha = 40;
Symbol 635 MovieClip Frame 14
this._alpha = 35;
Symbol 635 MovieClip Frame 15
this._alpha = 30;
Symbol 635 MovieClip Frame 16
this._alpha = 25;
Symbol 635 MovieClip Frame 17
this._alpha = 20;
Symbol 635 MovieClip Frame 18
this._alpha = 15;
Symbol 635 MovieClip Frame 19
this._alpha = 10;
Symbol 635 MovieClip Frame 20
this._alpha = 100;
removeMovieClip(this);
stop();
Symbol 637 MovieClip Frame 1
if (this._name == "bombmc") {
stop();
}
Symbol 637 MovieClip Frame 20
duplicateMovieClip (_root.gamePanelMC.bombexplomc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
removeMovieClip(this);
stop();
Symbol 638 MovieClip Frame 1
this._alpha = 100;
Symbol 638 MovieClip Frame 2
_root.shake(5);
squish = new Sound(this);
squish.attachSound("bomb" + (random(3) + 1));
squish.start();
this.blast._rotation = random(360);
trace("boom shalaklak boom");
duplicateMovieClip (_root.gamePanelMC.cratere4, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
this.swapDepths(_root.gamePanelMC["deco" + _root.decoCpt]);
_root.decoCpt++;
_root.treeKill(this);
_root.bunkerKill(this);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 120) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
_root.mnb2.data.airkill++;
_root.stats.kills++;
}
_root.gib(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 99) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 200)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(100);
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.mnb2.data.airkill++;
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 80) {
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
_root.gib(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 79) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 200)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
Symbol 638 MovieClip Frame 3
this.blast._rotation = random(360);
this.temp = random(20);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.decoSize = 100 + random(300);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 638 MovieClip Frame 4
this.blast2._rotation = random(360);
Symbol 638 MovieClip Frame 12
this._alpha = 45;
Symbol 638 MovieClip Frame 13
this._alpha = 40;
Symbol 638 MovieClip Frame 14
this._alpha = 35;
Symbol 638 MovieClip Frame 15
this._alpha = 30;
Symbol 638 MovieClip Frame 16
this._alpha = 25;
Symbol 638 MovieClip Frame 17
this._alpha = 20;
Symbol 638 MovieClip Frame 18
this._alpha = 15;
Symbol 638 MovieClip Frame 19
this._alpha = 10;
Symbol 638 MovieClip Frame 20
this._alpha = 100;
removeMovieClip(this);
stop();
Symbol 646 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 646 MovieClip Frame 2
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
} else {
gotoAndPlay (1);
}
Symbol 646 MovieClip Frame 7
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (3);
}
Symbol 646 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
if (this.weapon == 1) {
shot = new Sound(this);
shot.attachSound("usrifle" + (random(5) + 1));
shot.start();
} else if (this.weapon == 2) {
shot = new Sound(this);
shot.attachSound("garand" + (random(2) + 1));
shot.start();
} else if (this.weapon == 3) {
shot = new Sound(this);
shot.attachSound("tommy");
shot.start();
} else if (this.weapon == 4) {
shot = new Sound(this);
shot.attachSound("shotgun");
shot.start();
} else if (this.weapon == 5) {
shot = new Sound(this);
shot.attachSound("bar");
shot.start();
}
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if (((this.weapon == 2) || (this.weapon == 3)) || (this.weapon == 5)) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else {
gotoAndPlay (3);
}
Symbol 646 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 646 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.moving == 1) {
if (this.weapon == 1) {
gotoAndStop (1);
shot = new Sound(this);
shot.attachSound("chrink");
shot.start();
this.actionTimer = (10 + random(100)) - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (this.weapon == 2) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("M1_Reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 3) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 4) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].innershell.gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("shotgun_reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 5) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("bar_Reload");
shot.start();
this.ammo = 20;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
}
this.aiming = 0;
} else {
gotoAndStop (10);
}
} else {
gotoAndPlay (12);
}
Symbol 646 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
trace(this.namez + "a reussi son pin test");
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
this.actionTimer = (10 + random(100)) - this.experience;
}
}
} else {
gotoAndPlay (20);
}
Symbol 646 MovieClip Frame 37
stop();
_root.playerDeath(this);
Symbol 646 MovieClip Frame 38
this.aiming = 1;
this.actionTimer = 9999;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("chat" + (random(30) + 1));
shot.start();
}
Symbol 646 MovieClip Frame 75
if (_root.pausez == 0) {
if (random(100) < (this.experience * 2)) {
if (this.bomb > 0) {
if (_root.tactical >= 3) {
if (random(100) < (_root.mnb2.data.medal10 + _root.mnb2.data.medal21)) {
_root.msg("-==Looks like you're not paying for that airstrike thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 3;
}
_root.bomb = 1;
_root.airsup = 0;
_root.straff = 0;
_root.plane1.gotoAndPlay(2);
}
} else if (this.straff > 0) {
if (_root.tactical >= 1) {
if (random(100) < (_root.mnb2.data.medal10 + _root.mnb2.data.medal21)) {
_root.msg("-==Looks like you're not paying for that airstrike thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical--;
}
_root.bomb = 0;
_root.airsup = 0;
_root.straff = 1;
_root.plane1.gotoAndPlay(2);
}
} else if (this.arty > 0) {
if (_root.tactical >= 3) {
_root.tactical = _root.tactical - 3;
_root.bomb = 0;
_root.straff = 0;
_root.airsup = 0;
_root.arty = this.arty;
}
} else if (this.airsup > 0) {
if (_root.tactical >= 1) {
if (random(100) < (_root.mnb2.data.medal10 + _root.mnb2.data.medal21)) {
_root.msg("-==Looks like you're not paying for that airstrike thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical--;
}
_root.mnb2.data.airstrike++;
_root.bomb = 0;
_root.straff = 0;
_root.airsup = 60;
_root.arty = 0;
_root.germanPlaneDelay = -1;
}
} else if (this.smoke > 0) {
if (_root.tactical >= 1) {
_root.tactical--;
_root.bomb = 0;
_root.straff = 0;
_root.airsup = 0;
_root.arty = 0;
_root.smoke = 1;
}
} else if (this.sitrep > 0) {
if (_root.tactical >= 1) {
_root.tactical--;
if (random(100) < 9) {
_root.msg("** RADIO: Your sitrep worked!! The C.O. is giving you more support +5 tactical points!! **");
_root.tactical = _root.tactical + 5;
} else {
_root.msg("** RADIO: Roger on the sitrep, hang tight in there. ** (no bonus points)");
}
}
} else if (this.paradrop > 0) {
if (_root.tactical >= 12) {
if (random(100) < (_root.mnb2.data.medal10 + _root.mnb2.data.medal21)) {
_root.msg("-==Looks like you're not paying for those airborns thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 12;
}
_root.bomb = 0;
_root.straff = 0;
_root.airsup = 0;
_root.arty = 0;
_root.paradrop = 4;
_root.plane1.gotoAndPlay(2);
}
}
this.arty = 0;
this.bomb = 0;
this.straff = 0;
this.airsup = 0;
this.smoke = 0;
this.sitrep = 0;
gotoAndStop (1);
this.actionTimer = (10 + random(100)) - this.experience;
this.experience++;
} else if (_root.antenaPresent()) {
this.aiming = 1;
this.actionTimer = 9999;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("chat" + (random(30) + 1));
shot.start();
}
gotoAndPlay (55);
} else {
gotoAndPlay (38);
}
} else {
gotoAndPlay (39);
}
Symbol 648 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(7);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.rifle = this.rifle + 15;
this.moral = this.moral + 15;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
_root.msg("This soldier can't upgrade his weapon.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
}
Symbol 655 MovieClip Frame 9
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 655 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 655 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 656 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 656 MovieClip Frame 2
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 6) {
this.burst = random(10) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
} else {
gotoAndPlay (1);
}
Symbol 656 MovieClip Frame 7
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(200) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (3);
}
Symbol 656 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
if (this.weapon == 1) {
shot = new Sound(this);
shot.attachSound("rifleshot");
shot.start();
} else if (this.weapon == 2) {
shot = new Sound(this);
shot.attachSound("garand" + (random(2) + 1));
shot.start();
} else if (this.weapon == 3) {
shot = new Sound(this);
shot.attachSound("tommy");
shot.start();
} else if (this.weapon == 4) {
shot = new Sound(this);
shot.attachSound("shotgun");
shot.start();
} else if (this.weapon == 5) {
shot = new Sound(this);
shot.attachSound("bar");
shot.start();
} else if (this.weapon == 6) {
shot = new Sound(this);
shot.attachSound("grease");
shot.start();
} else if (this.weapon == 7) {
shot = new Sound(this);
shot.attachSound("sniper2");
shot.start();
}
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if ((this.weapon == 6) && (this.distance > 200)) {
this.dice = this.dice * 3;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(200);
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 20) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(21) - 10);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 7) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 70) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 2) {
} else if ((_root.impactTemp >= 2) && (_root.impactTemp < 6)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if (this.weapon == 7) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
trace("spawning douille");
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC[("deco" + _root.decoCpt) + _root.garbageCpt]._xscale = _root.gamePanelMC[("deco" + _root.decoCpt) + _root.garbageCpt]._xscale * 2;
_root.gamePanelMC[("deco" + _root.decoCpt) + _root.garbageCpt]._yscale = _root.gamePanelMC[("deco" + _root.decoCpt) + _root.garbageCpt]._yscale * 2;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else {
gotoAndPlay (3);
}
Symbol 656 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
this.visiblez = 100 - this.experience;
} else {
gotoAndPlay (9);
}
Symbol 656 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.moving == 1) {
if (this.weapon == 1) {
gotoAndStop (1);
shot = new Sound(this);
shot.attachSound("chrink");
shot.start();
this.actionTimer = (10 + random(100)) - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (this.weapon == 2) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("M1_Reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 3) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 4) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].innershell.gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("shotgun_reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 5) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("bar_Reload");
shot.start();
this.ammo = 20;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 6) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(5);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 7) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("sniperReload");
shot.start();
this.ammo = 1;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale = _root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale * 2;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale = _root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale * 2;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
}
this.aiming = 0;
} else {
gotoAndStop (10);
}
} else {
gotoAndPlay (12);
}
Symbol 656 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
trace(this.namez + "a reussi son pin test");
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (20);
}
Symbol 656 MovieClip Frame 37
stop();
_root.playerDeath(this);
Symbol 664 MovieClip Frame 1
if (this._name == "cratemc") {
stop();
}
Symbol 664 MovieClip Frame 3
this._rotation = random(360);
Symbol 664 MovieClip Frame 300
_root.stats.crate++;
Symbol 664 MovieClip Frame 353
duplicateMovieClip (_root.gamePanelMC.cratedown, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
removeMovieClip(this);
Symbol 666 MovieClip Frame 1
if (this._name == "cratedown") {
stop();
}
Symbol 666 MovieClip Frame 20
this.crateCpt = 0;
while (this.crateCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.crateCpt].health >= 10) && (_root.gamePanelMC["grunt" + this.crateCpt].health != undefined)) {
if (_root.distanceCheck(_root.gamePanelMC["grunt" + this.crateCpt], this) < 50) {
_root.gamePanelMC["grunt" + this.crateCpt].experience = _root.gamePanelMC["grunt" + this.crateCpt].experience + 3;
_root.rankup(_root.gamePanelMC["grunt" + this.crateCpt]);
_root.mnb2.data.craterecovered++;
doodeedooz = new Sound(this);
doodeedooz.attachSound("bleep18");
doodeedooz.start();
_root.stats.crateRecovered++;
this.crateDice = random(10) + 1;
if (this.crateDice == 1) {
_root.msg("SUPPLY CRATE: You recovered a crate containing RATIONS giving you +1 point to your tactical score.");
_root.tactical++;
} else if (this.crateDice == 2) {
_root.msg("SUPPLY CRATE: You recovered a crate containing MAPS and NEW ORDERS giving you +2 points to your tactical score.");
_root.tactical = _root.tactical + 2;
} else if (this.crateDice == 3) {
_root.msg("SUPPLY CRATE: You recovered a crate containing AMMO giving you +3 points to your tactical score.");
_root.tactical = _root.tactical + 3;
} else if (this.crateDice == 4) {
_root.msg("SUPPLY CRATE: You recovered a crate containing PROPAGANDA giving +5 moral points to all your soldiers.");
this.crateCpt = 0;
while (this.crateCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.crateCpt].health >= 10) {
trace("moral avant bonus " + _root.gamePanelMC["grunt" + this.crateCpt].moral);
_root.gamePanelMC["grunt" + this.crateCpt].moral = _root.gamePanelMC["grunt" + this.crateCpt].moral + 5;
trace("moral apres bonus " + _root.gamePanelMC["grunt" + this.crateCpt].experience);
}
this.crateCpt++;
}
} else if (this.crateDice == 5) {
_root.msg("SUPPLY CRATE: You recovered a crate containing FIELD MANUALS giving +5 experience points to all your soldiers.");
this.crateCpt = 0;
while (this.crateCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.crateCpt].health >= 10) {
_root.gamePanelMC["grunt" + this.crateCpt].experience = _root.gamePanelMC["grunt" + this.crateCpt].experience + 5;
_root.rankup(_root.gamePanelMC["grunt" + this.crateCpt]);
}
this.crateCpt++;
}
} else if (this.crateDice == 6) {
_root.msg("SUPPLY CRATE: You recovered a crate containing WEAPON MANUALS giving +5 rifle skill points to all your soldiers.");
this.crateCpt = 0;
while (this.crateCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.crateCpt].health >= 10) {
trace("rifleavant bonus " + _root.gamePanelMC["grunt" + this.crateCpt].rifle);
_root.gamePanelMC["grunt" + this.crateCpt].rifle = _root.gamePanelMC["grunt" + this.crateCpt].rifle + 5;
trace("rifle apres bonus " + _root.gamePanelMC["grunt" + this.crateCpt].rifle);
}
this.crateCpt++;
}
} else if (this.crateDice == 6) {
_root.msg("SUPPLY CRATE: You recovered a crate containing VITAL INTEL reducing the amount of germans who passed your line of defence, if any, by one.");
if (_root.miss > 0) {
_root.miss--;
_root.crossmc.gotoAndStop(_root.miss + 1);
}
} else if (this.crateDice == 7) {
_root.msg("SUPPLY CRATE: You recovered a crate containing DETAILED ORDERS lowering the overall amount of germans attacking you.");
_root.wave = _root.wave - 15;
} else if (this.crateDice == 8) {
_root.msg("SUPPLY CRATE: You recovered a crate containing A SOLDIER!! Don't ask.");
_root.spawnGrunt2(this);
} else if (this.crateDice >= 9) {
_root.msg(("SUPPLY CRATE: You recovered a crate containing " + _root.uselessStuff()) + " !! ...beside some situational comfort it's useless.");
}
removeMovieClip(this);
}
}
this.crateCpt++;
}
this.crateCpt = 0;
while (this.crateCpt < _root.enemyCpt) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.crateCpt]) < 100) {
if (_root.gamePanelMC["enemy" + this.crateCpt].health > 0) {
doodeedooz = new Sound(this);
doodeedooz.attachSound("bleep14");
doodeedooz.start();
_root.msg("The enemy have secured your supplies!!!");
_root.enemyWave();
removeMovieClip(this);
}
}
this.crateCpt++;
}
gotoAndPlay (1);
Symbol 672 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 672 MovieClip Frame 2
this.aiming = 1;
Symbol 672 MovieClip Frame 8
if (random(400) > this.experience) {
this.aiming = 1;
gotoAndPlay (2);
}
Symbol 672 MovieClip Frame 9
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
shot = new Sound(this);
shot.attachSound("sniper1");
shot.start();
this.visiblez = 100 - this.experience;
_root.stats.enemyShots++;
if (random(100) < this.rifle) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(200);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(200) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
} else {
gotoAndPlay (2);
this.aiming = 1;
}
Symbol 672 MovieClip Frame 29
this.aiming = 0;
if (random(100) < this.experience) {
this.targetx = random(400);
this.targety = random(300);
}
gotoAndStop (1);
Symbol 672 MovieClip Frame 30
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 672 MovieClip Frame 49
if (random(200) > this.moral) {
this.pinned = 1;
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 672 MovieClip Frame 50
this._rotation = random(360);
this._alpha = 100;
_root.stats.kills++;
stop();
Symbol 678 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 678 MovieClip Frame 2
this.aiming = 1;
Symbol 678 MovieClip Frame 8
if (random(100) > this.experience) {
this.aiming = 1;
gotoAndPlay (2);
}
Symbol 678 MovieClip Frame 9
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
shot = new Sound(this);
shot.attachSound("mg42_0" + (random(9) + 1));
shot.start();
_root.stats.enemyShots++;
if (random(100) < this.rifle) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save par un trench");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
} else {
gotoAndPlay (2);
this.aiming = 1;
}
Symbol 678 MovieClip Frame 15
gotoAndStop (1);
this.aiming = 0;
Symbol 678 MovieClip Frame 16
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 678 MovieClip Frame 35
this.aiming = 0;
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 678 MovieClip Frame 36
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 678 MovieClip Frame 37
this.aiming = 1;
duplicateMovieClip (_root.gamePanelMC.germanfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
Symbol 678 MovieClip Frame 60
this.aiming = 0;
gotoAndPlay (1);
Symbol 683 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 683 MovieClip Frame 2
this.aiming = 1;
Symbol 683 MovieClip Frame 8
if (random(100) > this.experience) {
this.aiming = 1;
gotoAndPlay (2);
}
Symbol 683 MovieClip Frame 9
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
shot = new Sound(this);
shot.attachSound("mg42_0" + (random(9) + 1));
shot.start();
_root.stats.enemyShots++;
if (random(100) < this.rifle) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
} else {
gotoAndPlay (2);
this.aiming = 1;
}
Symbol 683 MovieClip Frame 15
gotoAndStop (1);
this.aiming = 0;
Symbol 683 MovieClip Frame 16
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 683 MovieClip Frame 35
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 683 MovieClip Frame 37
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 687 MovieClip Frame 1
this._alpha = 100;
Symbol 687 MovieClip Frame 2
_root.shake(5);
squish = new Sound(this);
squish.attachSound("grenade" + (random(4) + 1));
squish.start();
this.blast._rotation = random(360);
duplicateMovieClip (_root.gamePanelMC.cratere2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
_root.treeKill(this);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 12) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
this.dad.experience++;
_root.stats.kills++;
_root.rankup(this.dad);
}
_root.gib(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 11) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 100)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(100);
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
this.dad.experience++;
_root.rankup(this.dad);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 12) {
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
_root.gib(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 11) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 100)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
Symbol 687 MovieClip Frame 3
this.blast._rotation = random(360);
this.temp = random(10);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 687 MovieClip Frame 4
this.blast2._rotation = random(360);
Symbol 687 MovieClip Frame 12
this._alpha = 45;
Symbol 687 MovieClip Frame 13
this._alpha = 40;
Symbol 687 MovieClip Frame 14
this._alpha = 35;
Symbol 687 MovieClip Frame 15
this._alpha = 30;
Symbol 687 MovieClip Frame 16
this._alpha = 25;
Symbol 687 MovieClip Frame 17
this._alpha = 20;
Symbol 687 MovieClip Frame 18
this._alpha = 15;
Symbol 687 MovieClip Frame 19
this._alpha = 10;
Symbol 687 MovieClip Frame 20
this._alpha = 100;
removeMovieClip(this);
stop();
Symbol 693 MovieClip Frame 20
this.crateCpt = 0;
while (this.crateCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.crateCpt].health >= 10) && (_root.gamePanelMC["grunt" + this.crateCpt].health != undefined)) {
if (_root.distanceCheck(_root.gamePanelMC["grunt" + this.crateCpt], this) < 25) {
duplicateMovieClip (_root.gamePanelMC.minexplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
removeMovieClip(this);
}
}
this.crateCpt++;
}
this.crateCpt = 0;
while (this.crateCpt < _root.enemyCpt) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.crateCpt]) < 25) {
if (_root.gamePanelMC["enemy" + this.crateCpt].health > 0) {
duplicateMovieClip (_root.gamePanelMC.minexplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
removeMovieClip(this);
}
}
this.crateCpt++;
}
gotoAndPlay (1);
Symbol 694 MovieClip Frame 1
this._alpha = 100;
Symbol 694 MovieClip Frame 2
squish = new Sound(this);
squish.attachSound("mineclick");
squish.start();
Symbol 694 MovieClip Frame 10
this._alpha = 100;
Symbol 694 MovieClip Frame 11
squish = new Sound(this);
squish.attachSound("mine_explosion_0" + (random(6) + 1));
squish.start();
this.blast._rotation = random(360);
duplicateMovieClip (_root.gamePanelMC.cratere, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
this.swapDepths(_root.gamePanelMC["deco" + _root.decoCpt]);
_root.decoCpt++;
_root.treeKill(this);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 60) {
_root.gib(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 59) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 150)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(300 - _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]));
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 60) {
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
_root.gib(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 59) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 150)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(300 - _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]));
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
this.actionCpt++;
}
Symbol 694 MovieClip Frame 12
this.blast._rotation = random(360);
this.temp = random(20);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 694 MovieClip Frame 13
this.blast2._rotation = random(360);
Symbol 694 MovieClip Frame 21
this._alpha = 45;
Symbol 694 MovieClip Frame 22
this._alpha = 40;
Symbol 694 MovieClip Frame 23
this._alpha = 35;
Symbol 694 MovieClip Frame 24
this._alpha = 30;
Symbol 694 MovieClip Frame 25
this._alpha = 25;
Symbol 694 MovieClip Frame 26
this._alpha = 20;
Symbol 694 MovieClip Frame 27
this._alpha = 15;
Symbol 694 MovieClip Frame 28
this._alpha = 10;
Symbol 694 MovieClip Frame 29
this._alpha = 100;
removeMovieClip(this);
Symbol 703 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(7);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.rifle = this.rifle + 15;
this.moral = this.moral + 15;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
_root.msg("This soldier can't upgrade his weapon.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 720 MovieClip Frame 3
Symbol 720 MovieClip Frame 9
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (this.hitTest(_root.gamePanelMC["enemy" + this.actionCpt]._x, _root.gamePanelMC["enemy" + this.actionCpt]._y, true)) {
trace("~~~---=== Flamer: touche un enemis");
if (random(100) < 40) {
this._parent.experience++;
_root.rankup(this._parent);
trace("~~~---=== Flamer: enemis BRULE!!!!!!!");
_root.mnb2.data.bbq++;
_root.stats.kills++;
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation;
_root.garbageCpt++;
removeMovieClip(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
trace("~~~---=== Flamer: enemis toucher mais brule pas");
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(50);
shot = new Sound(this);
shot.attachSound("burning_scream_" + (random(22) + 1));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this._parent.experience++;
_root.rankup(this._parent);
}
}
}
}
this.actionCpt++;
}
_root.treeBurn(this._parent);
Symbol 723 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
trace(this._name);
trace("aiming " + this.aiming);
trace("pinned " + this.pinned);
trace("invincible " + this.invincible);
trace("targetx" + this.targetx);
trace("targety" + this.targety);
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
this.weapon = _root.weaponupgrade;
_root.weaponupgrade = 0;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
}
}
Symbol 724 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 724 MovieClip Frame 2
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
this.burst = random(this.experience) + 1;
Symbol 724 MovieClip Frame 7
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (3);
}
Symbol 724 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
squishy = new Sound(this);
squishy.attachSound("flamersound");
squishy.start();
} else {
gotoAndPlay (3);
}
Symbol 724 MovieClip Frame 20
if (_root.pausez == 0) {
this.burst--;
if (this.burst > 0) {
gotoAndPlay (8);
} else {
gotoAndStop (1);
this.aiming = 0;
}
} else {
gotoAndPlay (3);
}
Symbol 724 MovieClip Frame 41
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (25);
}
Symbol 724 MovieClip Frame 42
_root.playerDeath(this);
stop();
Symbol 735 MovieClip Frame 8
_root.treeBurn(this);
this.crateCpt = 0;
while (this.crateCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.crateCpt].health >= 10) && (_root.gamePanelMC["grunt" + this.crateCpt].health != undefined)) {
if (_root.distanceCheck(_root.gamePanelMC["grunt" + this.crateCpt], this) < 25) {
if (random(100) < 5) {
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.crateCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.crateCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["grunt" + this.crateCpt]._rotation;
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.crateCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.crateCpt]);
removeMovieClip(_root.gamePanelMC["grunt" + this.crateCpt]);
}
}
}
this.crateCpt++;
}
this.crateCpt = 0;
while (this.crateCpt < _root.enemyCpt) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.crateCpt]) < 25) {
if (_root.gamePanelMC["enemy" + this.crateCpt].health > 0) {
if (random(100) < 5) {
_root.mnb2.data.bbq++;
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.crateCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.crateCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["enemy" + this.crateCpt]._rotation;
_root.garbageCpt++;
removeMovieClip(_root.gamePanelMC["enemy" + this.crateCpt]);
}
}
}
this.crateCpt++;
}
if (random(100) < 5) {
this._rotation = random(360);
squish = new Sound(this);
squish.attachSound("burning_scream_" + (random(22) + 1));
squish.start();
}
if (this.burntime > 0) {
gotoAndPlay (1);
} else {
gotoAndPlay (9);
}
Symbol 735 MovieClip Frame 9
this.squish2.stop();
stop();
Symbol 744 MovieClip Frame 3
Symbol 744 MovieClip Frame 9
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].health > 0) && (_root.gamePanelMC["grunt" + this.actionCpt].armor < 1)) {
if (this.hitTest(_root.gamePanelMC["grunt" + this.actionCpt]._x, _root.gamePanelMC["grunt" + this.actionCpt]._y, true)) {
trace("~~~---=== Flamer: touche un enemis");
if (random(100) < 40) {
trace("~~~---=== Flamer: enemis BRULE!!!!!!!");
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation;
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
removeMovieClip(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
trace("~~~---=== Flamer: enemis toucher mais brule pas ===---~~~");
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(50);
shot = new Sound(this);
shot.attachSound("burning_scream_" + (random(22) + 1));
shot.start();
}
}
}
this.actionCpt++;
}
_root.treeBurn(this._parent);
Symbol 747 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 747 MovieClip Frame 2
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
this.burst = random(this.experience) + 1;
Symbol 747 MovieClip Frame 7
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
Symbol 747 MovieClip Frame 8
squishy = new Sound(this);
squishy.attachSound("flamersound");
squishy.start();
Symbol 747 MovieClip Frame 20
this.burst--;
if (this.burst > 0) {
gotoAndPlay (8);
} else {
gotoAndStop (1);
this.aiming = 0;
}
Symbol 747 MovieClip Frame 41
if (this.health < 1) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
Symbol 747 MovieClip Frame 42
_root.stats.kills++;
stop();
Symbol 755 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 2
this.antening = 0;
Symbol 757 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.weapon = 2;
this.rifle = this.rifle + (random(15) + 1);
this.moral = this.moral + (random(15) + 1);
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
this.weapon = _root.weaponupgrade;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 764 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 764 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 764 MovieClip Frame 31
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 768 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 768 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 768 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 772 MovieClip Frame 9
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 772 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 772 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 775 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 775 MovieClip Frame 20
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 776 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 776 MovieClip Frame 2
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
Symbol 776 MovieClip Frame 7
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Symbol 776 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
if (this.weapon == 1) {
shot = new Sound(this);
shot.attachSound("usrifle" + (random(5) + 1));
shot.start();
} else if (this.weapon == 2) {
shot = new Sound(this);
shot.attachSound("garand" + (random(2) + 1));
shot.start();
} else if (this.weapon == 3) {
shot = new Sound(this);
shot.attachSound("tommy");
shot.start();
} else if (this.weapon == 4) {
shot = new Sound(this);
shot.attachSound("shotgun");
shot.start();
} else if (this.weapon == 5) {
shot = new Sound(this);
shot.attachSound("bar");
shot.start();
}
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if (((this.weapon == 2) || (this.weapon == 3)) || (this.weapon == 5)) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else {
gotoAndPlay (3);
}
Symbol 776 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 776 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.moving == 1) {
if (this.weapon == 1) {
gotoAndStop (1);
shot = new Sound(this);
shot.attachSound("chrink");
shot.start();
this.actionTimer = (10 + random(100)) - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (this.weapon == 2) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("M1_Reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 3) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 4) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].innershell.gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("shotgun_reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 5) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("bar_Reload");
shot.start();
this.ammo = 20;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
}
this.aiming = 0;
} else {
gotoAndStop (10);
}
} else {
gotoAndPlay (12);
}
Symbol 776 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (20);
}
Symbol 776 MovieClip Frame 37
_root.playerDeath(this);
stop();
Symbol 781 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 4
if (_root.pausez == 0) {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("shellz" + (random(4) + 1));
shot.start();
}
_root.stats.shot++;
this.dice = random(100);
this.distance = _root.distanceCheck(this._parent, _root.gamePanelMC["enemy" + this._parent.actionTarget]);
if (this.dice <= this._parent.rifle) {
trace((("dice = " + this.dice) + " and rifle =") + this._parent.rifle);
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this._parent.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this._parent.actionTarget].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
_root.gamePanelMC["enemy" + this._parent.actionTarget].health = _root.gamePanelMC["enemy" + this._parent.actionTarget].health - random(200);
if (_root.gamePanelMC["enemy" + this._parent.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this._parent.actionTarget].gotoAndStop("death");
this._parent._parent.experience++;
_root.rankup(this._parent._parent);
}
}
_root.gamePanelMC["enemy" + this._parent.actionTarget]._rotation = _root.gamePanelMC["enemy" + this._parent.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (_root.gamePanelMC["enemy" + this._parent.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 6) {
} else if ((_root.impactTemp >= 6) && (_root.impactTemp < 9)) {
shot = new Sound(this._parent);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 75) {
_root.gamePanelMC["enemy" + this._parent.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this._parent.actionTarget].drivermc.gotoAndStop(2);
_root.score = _root.score + 6;
this._parent._parent.experience = this._parent._parent.experience + 2;
_root.rankup(this._parent._parent);
}
shot = new Sound(this._parent);
shot.attachSound("ghit" + random(9));
shot.start();
} else {
shot = new Sound(this._parent);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 75) {
_root.gamePanelMC["enemy" + this._parent.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this._parent.actionTarget].gunnermc.gotoAndStop("death");
_root.score = _root.score + 6;
this._parent._parent.experience = this._parent._parent.experience + 2;
_root.rankup(this._parent._parent);
}
shot = new Sound(this._parent);
shot.attachSound("ghit" + random(9));
shot.start();
}
} else {
shot = new Sound(this._parent);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this._parent.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this._parent.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this._parent.actionTarget].health = 0;
}
} else if (_root.gamePanelMC["enemy" + this._parent.actionTarget].armor == 2) {
shot = new Sound(this._parent);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
} else {
_root.ricochet(_root.gamePanelMC["enemy" + this._parent.actionTarget]);
shot = new Sound(this._parent);
shot.attachSound("whiz" + random(16));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._parent._parent._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._parent._parent._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale = _root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._xscale * 2;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale = _root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._yscale * 2;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this._parent.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
gotoAndStop (1);
}
Symbol 781 MovieClip Frame 5
if (_root.pausez == 0) {
this._parent.burst--;
if (this._parent.burst > 0) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
} else {
gotoAndStop (1);
}
Symbol 785 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 2
Symbol 785 MovieClip Frame 8
this.blastrange = this.blastrange - 50;
if (this.blastrange < 1) {
this.blastrange = 1;
}
duplicateMovieClip (_root.gamePanelMC.explo2, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = (_root.gamePanelMC["enemy" + this.actionTarget]._x + random(200)) - 100;
_root.gamePanelMC["deco" + _root.decoCpt]._y = (_root.gamePanelMC["enemy" + this.actionTarget]._y + random(200)) - 100;
_root.decoCpt++;
Symbol 786 Button
on (rollOver) {
if (this.health > 0) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.gotoAndStop(3);
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.turrretmc.rifle;
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
}
}
on (rollOut) {
_root.infoPanel.gotoAndStop(1);
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (release) {
if (this.health > 0) {
_root.focusTarget = this._name;
}
}
Instance of Symbol 785 MovieClip "turrretmc" in Symbol 787 MovieClip Frame 1
onClipEvent (load) {
this.burst = 0;
this.rifle = 1;
this.experience = 2;
this.actionTimer = random(200);
this.death = 0;
this.weapon = 6;
this.blastrange = 0;
}
onClipEvent (enterFrame) {
if (this._parent._name != "sherman") {
if (_root.pausez == 0) {
if (this._parent.health > 0) {
if (this.actionTimer < 1) {
if (_root.bunkered(this) == false) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._parent._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._parent._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
this.blastrange = this.actionTargetRange;
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._parent._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._parent._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this._rotation = this._rotation - this._parent._rotation;
if (random(100) < 10) {
this.gotoAndPlay(2);
} else {
this.burst = random(30);
this.mg.gotoAndPlay(2);
}
}
}
}
this.actionTimer = random(200);
} else {
this.actionTimer--;
}
}
}
}
}
Symbol 789 MovieClip Frame 1
this._alpha = 100;
Symbol 789 MovieClip Frame 2
this._alpha = 100;
Symbol 789 MovieClip Frame 3
_root.shake(2);
this.blast._rotation = random(360);
duplicateMovieClip (_root.gamePanelMC.cratere, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = random(360);
this.swapDepths(_root.gamePanelMC["deco" + _root.decoCpt]);
_root.decoCpt++;
_root.treeKill(this);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 30) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
_root.stats.kills++;
}
_root.gib(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 29) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 90)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(300 - _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]));
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 30) {
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
_root.gib(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 29) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 90)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(300 - _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]));
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
Symbol 789 MovieClip Frame 4
this.blast._rotation = random(360);
this.temp = random(20);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 789 MovieClip Frame 5
this.blast2._rotation = random(360);
Symbol 789 MovieClip Frame 13
this._alpha = 45;
Symbol 789 MovieClip Frame 14
this._alpha = 40;
Symbol 789 MovieClip Frame 15
this._alpha = 35;
Symbol 789 MovieClip Frame 16
this._alpha = 30;
Symbol 789 MovieClip Frame 17
this._alpha = 25;
Symbol 789 MovieClip Frame 18
this._alpha = 20;
Symbol 789 MovieClip Frame 19
this._alpha = 15;
Symbol 789 MovieClip Frame 20
this._alpha = 10;
Symbol 789 MovieClip Frame 21
this._alpha = 100;
removeMovieClip(this);
Symbol 794 MovieClip Frame 1
stop();
Symbol 794 MovieClip Frame 4
_root.stats.enemyShots++;
if (random(100) < this._parent.rifle) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this._parent.actionTarget].armor < 1) {
this.saved = 0;
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save par un trench");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this._parent.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this._parent.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this._parent.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this._parent.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this._parent.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this._parent.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this._parent.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this._parent.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this._parent.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this._parent.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this._parent.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this._parent.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this._parent.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this._parent.actionTarget].armor == 2) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this._parent.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this._parent.actionTarget].moral) && (_root.gamePanelMC["grunt" + this._parent.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this._parent.actionTarget].gotoAndPlay("PinnedDown");
}
}
Symbol 794 MovieClip Frame 5
this._parent.burst--;
if (this._parent.burst > 0) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 8
this.blastrange = this.blastrange - 50;
if (this.blastrange < 1) {
this.blastrange = 1;
}
duplicateMovieClip (_root.gamePanelMC.explo2, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = (_root.gamePanelMC["grunt" + this.actionTarget]._x + random(200)) - 100;
_root.gamePanelMC["deco" + _root.decoCpt]._y = (_root.gamePanelMC["grunt" + this.actionTarget]._y + random(200)) - 100;
_root.decoCpt++;
Instance of Symbol 798 MovieClip "turret" in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
this.burst = 0;
this.rifle = 1;
this.experience = 2;
this.actionTimer = random(200);
this.death = 0;
this.weapon = 6;
this.blastrange = 0;
}
onClipEvent (enterFrame) {
if (this._parent._name != "panther") {
if (this._parent.gunner > 0) {
if (this.actionTimer < 1) {
if (random(100) < 50) {
trace("panzer s'actione");
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._parent._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._parent._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
this.blastrange = this.actionTargetRange;
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._parent._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._parent._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this._rotation = this._rotation - this._parent._rotation;
if (random(100) < 25) {
this.gotoAndPlay(2);
} else {
this.burst = random(30);
this.mg.gotoAndPlay(2);
}
}
this.actionTimer = random(200);
}
} else {
this.actionTimer--;
}
}
}
}
Instance of Symbol 805 MovieClip in Symbol 808 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._name != "smokescreen") {
this._rotation = this._rotation - random(3);
}
}
Instance of Symbol 805 MovieClip in Symbol 808 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._name != "smokescreen") {
this._rotation = this._rotation + random(3);
}
}
Instance of Symbol 807 MovieClip in Symbol 808 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._name != "smokescreen") {
this._rotation = this._rotation - random(3);
}
}
Symbol 810 MovieClip Frame 2
this._alpha = 100;
squishz = new Sound(this);
squishz.attachSound("artyinc" + (random(3) + 1));
squishz.start();
Symbol 810 MovieClip Frame 40
this._alpha = 100;
Symbol 810 MovieClip Frame 43
squishz = new Sound(this);
squishz.attachSound("Flak_0" + (random(8) + 1));
squishz.start();
this.blast._rotation = random(360);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 10) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - (random(20) + 1);
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 7) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - (random(20) + 1);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
this.actionCpt++;
}
Symbol 810 MovieClip Frame 44
this.blast._rotation = random(360);
this.temp = random(10);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 810 MovieClip Frame 45
this.blast2._rotation = random(360);
Symbol 810 MovieClip Frame 53
duplicateMovieClip (_root.gamePanelMC.smokescreen, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this._alpha = 45;
Symbol 810 MovieClip Frame 54
this._alpha = 40;
Symbol 810 MovieClip Frame 55
this._alpha = 35;
Symbol 810 MovieClip Frame 56
this._alpha = 30;
Symbol 810 MovieClip Frame 57
this._alpha = 25;
Symbol 810 MovieClip Frame 58
this._alpha = 20;
Symbol 810 MovieClip Frame 59
this._alpha = 15;
Symbol 810 MovieClip Frame 60
this._alpha = 10;
Symbol 810 MovieClip Frame 61
this._alpha = 100;
removeMovieClip(this);
stop();
Symbol 814 MovieClip Frame 1
if (this._name == "smokeSpot") {
stop();
}
Symbol 814 MovieClip Frame 20
removeMovieClip(this);
Symbol 815 MovieClip Frame 1
this._alpha = 100;
Symbol 815 MovieClip Frame 2
_root.shake(3);
squish = new Sound(this);
squish.attachSound("zookaboom" + (random(4) + 1));
squish.start();
this.blast._rotation = random(360);
duplicateMovieClip (_root.gamePanelMC.cratere2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
_root.treeKill(this);
_root.bunkerKill(this);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 25) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
_root.stats.kills++;
this.dad.experience++;
}
_root.gib(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 26) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 50)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(100);
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
this.dad.experience++;
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 25) {
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
_root.gib(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 26) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 50)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(300);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionCpt++;
}
Symbol 815 MovieClip Frame 3
this.blast._rotation = random(360);
this.temp = random(10);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 815 MovieClip Frame 4
this.blast2._rotation = random(360);
Symbol 815 MovieClip Frame 12
this._alpha = 45;
Symbol 815 MovieClip Frame 13
this._alpha = 40;
Symbol 815 MovieClip Frame 14
this._alpha = 35;
Symbol 815 MovieClip Frame 15
this._alpha = 30;
Symbol 815 MovieClip Frame 16
this._alpha = 25;
Symbol 815 MovieClip Frame 17
this._alpha = 20;
Symbol 815 MovieClip Frame 18
this._alpha = 15;
Symbol 815 MovieClip Frame 19
this._alpha = 10;
Symbol 815 MovieClip Frame 20
this._alpha = 100;
removeMovieClip(this);
stop();
Symbol 817 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.weapon = 2;
this.rifle = this.rifle + (random(15) + 1);
this.moral = this.moral + (random(15) + 1);
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
_root.msg("This soldier can't upgrade his weapon.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 828 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 828 MovieClip Frame 2
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
Symbol 828 MovieClip Frame 6
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Symbol 828 MovieClip Frame 8
if (_root.pausez == 0) {
if (!_root.bunkered(this)) {
_root.stats.shot++;
shot = new Sound(this);
shot.attachSound("zooka" + (random(2) + 1));
shot.start();
} else {
this.actionTimer = 400 - this.experience;
gotoAndPlay (1);
}
} else {
gotoAndPlay (2);
}
Symbol 828 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
duplicateMovieClip (_root.gamePanelMC.zookaRocket, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 400 - this.experience;
gotoAndStop (1);
} else {
gotoAndPlay (14);
}
Symbol 828 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (20);
}
Symbol 828 MovieClip Frame 37
_root.playerDeath(this);
stop();
Symbol 834 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 834 MovieClip Frame 2
this.aiming = 1;
Symbol 834 MovieClip Frame 7
if (random(100) > this.experience) {
this.aiming = 1;
this._rotation = this._rotation + (random(11) - 5);
gotoAndPlay (2);
}
Symbol 834 MovieClip Frame 8
_root.stats.shot++;
shot = new Sound(this);
shot.attachSound("zooka" + (random(2) + 1));
shot.start();
if (this.health < 10) {
gotoAndStop ("death");
}
duplicateMovieClip (_root.gamePanelMC.zookaRocket, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 100 - this.experience;
gotoAndStop (1);
Symbol 834 MovieClip Frame 9
Symbol 834 MovieClip Frame 15
gotoAndStop (1);
this.aiming = 0;
Symbol 834 MovieClip Frame 16
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 834 MovieClip Frame 35
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 834 MovieClip Frame 37
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 838 MovieClip Frame 1
this._alpha = 100;
Symbol 838 MovieClip Frame 2
_root.shake(3);
this.blast._rotation = random(360);
_root.treeKill(this);
_root.treeBurn(this);
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.bunkered(_root.gamePanelMC["enemy" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 50) {
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation;
_root.garbageCpt++;
_root.stats.kills++;
removeMovieClip(_root.gamePanelMC["enemy" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) > 51) && (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 100)) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
_root.gamePanelMC["enemy" + this.actionCpt].health = _root.gamePanelMC["enemy" + this.actionCpt].health - random(50);
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
if (_root.gamePanelMC["enemy" + this.actionCpt].health < 1) {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["enemy" + this.actionCpt]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
} else if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 100) {
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["enemy" + this.actionCpt]._rotation;
_root.garbageCpt++;
removeMovieClip(_root.gamePanelMC["enemy" + this.actionCpt]);
} else {
_root.gamePanelMC["enemy" + this.actionCpt].gotoAndStop("pinnedDown");
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionCpt]) == false) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 50) {
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation;
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
removeMovieClip(_root.gamePanelMC["grunt" + this.actionCpt]);
} else if ((_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) > 51) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 100)) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
_root.gamePanelMC["grunt" + this.actionCpt].health = _root.gamePanelMC["grunt" + this.actionCpt].health - random(50);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionCpt].health < 1) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("death");
_root.playerDeath(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
_root.gamePanelMC["grunt" + this.actionCpt]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
} else if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 100) {
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["grunt" + this.actionCpt]._rotation;
_root.garbageCpt++;
removeMovieClip(_root.gamePanelMC["grunt" + this.actionCpt]);
} else {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndStop("pinnedDown");
}
this.actionCpt++;
}
Symbol 838 MovieClip Frame 3
this.blast._rotation = random(360);
this.temp = random(20);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark3, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
Symbol 838 MovieClip Frame 4
this.blast2._rotation = random(360);
Symbol 838 MovieClip Frame 12
this._alpha = 45;
Symbol 838 MovieClip Frame 13
this._alpha = 40;
Symbol 838 MovieClip Frame 14
this._alpha = 35;
Symbol 838 MovieClip Frame 15
this._alpha = 30;
Symbol 838 MovieClip Frame 16
this._alpha = 25;
Symbol 838 MovieClip Frame 17
this._alpha = 20;
Symbol 838 MovieClip Frame 18
this._alpha = 15;
Symbol 838 MovieClip Frame 19
this._alpha = 10;
Symbol 838 MovieClip Frame 20
this._alpha = 100;
removeMovieClip(this);
stop();
Symbol 840 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.weapon = 2;
this.rifle = this.rifle + (random(15) + 1);
this.moral = this.moral + (random(15) + 1);
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
} else {
_root.msg("This soldier can't upgrade his weapon.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 848 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 848 MovieClip Frame 2
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
this.burst = random(30) + 3;
Symbol 848 MovieClip Frame 7
this.actionTimer = 9999;
if (_root.pausez == 0) {
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Symbol 848 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
shot = new Sound(this);
shot.attachSound("mgfire");
shot.start();
this.dice = random(200) * this.mgCount;
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
gotoAndStop (1);
}
Symbol 848 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 848 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.ammo < 1) {
this.actionTimer = 400 - this.experience;
shot = new Sound(this);
shot.attachSound("mg_Reload");
shot.start();
this.ammo = 200;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(6);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
this.gotoAndStop(1);
this.aiming = 0;
} else {
gotoAndPlay (12);
}
Symbol 848 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (30);
}
Symbol 848 MovieClip Frame 37
_root.playerDeath(this);
stop();
Symbol 848 MovieClip Frame 38
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 848 MovieClip Frame 59
if (_root.pausez == 0) {
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
gotoAndPlay (60);
this.burst = random(30) + 3;
} else {
gotoAndPlay (39);
}
} else {
gotoAndPlay (40);
}
Symbol 848 MovieClip Frame 60
if (_root.pausez == 0) {
if (random(100) < 10) {
shot3 = new Sound(this);
shot3.attachSound("shellz" + (random(4) + 1));
shot3.start();
}
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
shot = new Sound(this);
shot.attachSound("mgfire");
shot.start();
this.dice = random(100) * this.mgCount;
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 1.5);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
_root.gamePanelMC["enemy" + this.actionTarget].health = -999;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
removeMovieClip(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
gotoAndPlay (40);
}
Symbol 848 MovieClip Frame 63
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (60);
this.burst--;
}
} else {
gotoAndPlay (61);
}
Symbol 848 MovieClip Frame 70
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.ammo < 1) {
this.actionTimer = 400 - this.experience;
shot = new Sound(this);
shot.attachSound("mgreload");
shot.start();
this.ammo = 200;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(6);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
this.aiming = 0;
gotoAndPlay (38);
} else {
gotoAndPlay (64);
}
Symbol 856 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 856 MovieClip Frame 2
this.aiming = 1;
Symbol 856 MovieClip Frame 8
if (random(100) > this.experience) {
this.aiming = 1;
gotoAndPlay (2);
}
Symbol 856 MovieClip Frame 9
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
this.ammo--;
shot = new Sound(this);
shot.attachSound("germpis");
shot.start();
_root.stats.enemyShots++;
if ((random(100) < this.rifle) && (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionTarget]) < 200)) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 60) {
this.saved = 1;
trace("la target se save par le trancher");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 80) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(50);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
} else {
gotoAndPlay (2);
this.aiming = 1;
}
Symbol 856 MovieClip Frame 14
if (this.semi < 1) {
if (random(100) < 50) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(105) < (this.experience + 5)) {
gotoAndPlay (8);
this.semi--;
} else {
gotoAndPlay (9);
}
}
Symbol 856 MovieClip Frame 15
gotoAndStop (1);
this.aiming = 0;
Symbol 856 MovieClip Frame 16
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 856 MovieClip Frame 35
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 856 MovieClip Frame 37
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 856 MovieClip Frame 38
gotoAndPlay (39);
Symbol 856 MovieClip Frame 72
if (random(100) < 25) {
shot = new Sound(this);
shot.attachSound("germcom" + (random(5) + 1));
shot.start();
_root.enemyWave();
this.aiming = 0;
this.gotoAndStop(1);
} else {
gotoAndPlay ("special");
}
Symbol 862 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 862 MovieClip Frame 2
this.aiming = 1;
Symbol 862 MovieClip Frame 8
if (random(100) > this.experience) {
this.aiming = 1;
gotoAndPlay (2);
}
Symbol 862 MovieClip Frame 9
this.actionTimer = 9999;
if (random(100) < (10 + this.experience)) {
shot = new Sound(this);
shot.attachSound("mg42_0" + (random(9) + 1));
shot.start();
_root.stats.enemyShots++;
if (random(100) < this.rifle) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
} else {
gotoAndPlay (2);
this.aiming = 1;
}
Symbol 862 MovieClip Frame 15
gotoAndStop (1);
this.aiming = 0;
Symbol 862 MovieClip Frame 16
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 862 MovieClip Frame 35
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("fear" + (random(7) + 1));
shot.start();
if (this.flee == 0) {
duplicateMovieClip (_root.gamePanelMC.germrifle, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y + (25 - random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
this.pinned = 0;
this.flee = 1;
gotoAndStop ("flee");
} else {
gotoAndPlay ("pinnedDown");
}
} else {
this.pinned = 0;
if (this.flee == 0) {
gotoAndStop (1);
} else {
this.pinned = 0;
shot = new Sound(this);
shot.attachSound("fear" + (random(7) + 1));
shot.start();
gotoAndStop ("flee");
}
}
Symbol 862 MovieClip Frame 37
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 862 MovieClip Frame 38
this.flee = 1;
this.actionTimer = 9999;
this._rotation = 270;
this.aiming = 0;
stop();
Symbol 870 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 870 MovieClip Frame 2
this.aiming = 1;
Symbol 870 MovieClip Frame 3
this.aiming = 1;
Symbol 870 MovieClip Frame 26
if (random(100) > this.experience) {
this.aiming = 1;
gotoAndPlay (3);
}
Symbol 870 MovieClip Frame 27
this.actionTimer = 9999;
shot = new Sound(this);
shot.attachSound("germMG");
shot.start();
_root.stats.enemyShots++;
this.firemc.gotoAndPlay(1);
if (random(100) < (this.rifle - (this.burst * 3))) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
if (_root.gamePanelMC["grunt" + this.actionTarget].health > 0) {
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
}
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
Symbol 870 MovieClip Frame 30
this.burst--;
if (this.burst < 1) {
gotoAndStop (3);
this.aiming = 0;
this.actionTimer = random(200);
shot = new Sound(this);
shot.attachSound("germMGafter");
shot.start();
} else {
this.aiming = 1;
gotoAndPlay (27);
}
Symbol 870 MovieClip Frame 31
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 870 MovieClip Frame 50
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
if (this.setupCounter > 0) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
Symbol 870 MovieClip Frame 52
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 881 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 881 MovieClip Frame 2
this.aiming = 1;
Symbol 881 MovieClip Frame 8
if (random(100) > this.experience) {
this.aiming = 1;
gotoAndPlay (2);
}
Symbol 881 MovieClip Frame 9
this.actionTimer = 9999;
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
shot = new Sound(this);
shot.attachSound("fg42sound");
shot.start();
_root.stats.enemyShots++;
if (random(100) < this.rifle) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
Symbol 881 MovieClip Frame 15
this.semi--;
if (this.semi < 1) {
gotoAndStop (1);
this.aiming = 0;
this.actionTimer = random(100);
} else {
gotoAndPlay (7);
this.aiming = 1;
}
Symbol 881 MovieClip Frame 16
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 881 MovieClip Frame 35
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 881 MovieClip Frame 37
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 881 MovieClip Frame 38
trace("foo?");
gotoAndPlay (39);
Symbol 881 MovieClip Frame 39
if (random(100) > 10) {
this.actionTimer = 9999;
gotoAndPlay (38);
trace("not going");
} else {
this.actionTimer = 9999;
gotoAndPlay (40);
}
Symbol 881 MovieClip Frame 70
trace((this._name + " depth = ") + this.getDepth());
this.swapDepths(this.getDepth() - 30000);
trace((this._name + " depth after = ") + this.getDepth());
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].hitTest(this)) {
if (_root.gamePanelMC["deco" + tempcpt].typez == "tree") {
this.health = this.health - random(100);
shot = new Sound(this);
shot.attachSound("treecrash");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
}
tempcpt++;
}
if (this.health > 0) {
gotoAndPlay (71);
} else {
gotoAndPlay ("death");
}
duplicateMovieClip (_root.gamePanelMC.usedParachute, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
Symbol 881 MovieClip Frame 72
this.aiming = 1;
this.actionTimer = 999;
Symbol 881 MovieClip Frame 79
if (random(100) < 50) {
gotoAndPlay (72);
}
Symbol 881 MovieClip Frame 90
if (random(100) < 50) {
gotoAndPlay (80);
}
Symbol 881 MovieClip Frame 91
if (random(100) < 10) {
this.aiming = 0;
this.gotoAndPlay(1);
this.actionTimer = random(100);
} else {
this.aiming = 999;
gotoAndPlay (72);
}
Symbol 894 MovieClip Frame 1
this.aiming = 0;
if (this.health < 1) {
gotoAndStop ("death");
trace("double wanked");
}
stop();
Symbol 894 MovieClip Frame 2
this.aiming = 1;
Symbol 894 MovieClip Frame 8
if (random(100) > this.experience) {
this.aiming = 1;
gotoAndPlay (2);
}
Symbol 894 MovieClip Frame 9
this.actionTimer = 9999;
shot = new Sound(this);
shot.attachSound("g43sound");
shot.start();
_root.stats.enemyShots++;
if (random(100) < this.rifle) {
this.saved = 0;
if (_root.gamePanelMC["grunt" + this.actionTarget].armor < 1) {
if (_root.coverFinder(_root.gamePanelMC["grunt" + this.actionTarget]) == true) {
trace("target est sous cover");
if (random(100) < 50) {
this.saved = 1;
trace("la target se save");
}
}
if (_root.bunkered(_root.gamePanelMC["grunt" + this.actionTarget])) {
if (random(100) < 75) {
this.saved = 1;
trace("la target se save par le bunker");
}
}
if (this.saved == 0) {
_root.stats.enemyHits++;
_root.gamePanelMC["grunt" + this.actionTarget].health = _root.gamePanelMC["grunt" + this.actionTarget].health - random(100);
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].typez == "playerGruntFlamer") {
if (random(100) < 10) {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y;
_root.decoCpt++;
}
}
if (_root.gamePanelMC["grunt" + this.actionTarget].health < 10) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndStop("death");
}
_root.gamePanelMC["grunt" + this.actionTarget]._rotation = _root.gamePanelMC["grunt" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
_root.stats.trenchSave++;
shot = new Sound(this);
shot.attachSound("coverImpact" + random(6));
shot.start();
trace("soldier saved by cover!!!");
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 1) {
if (random(100) < 35) {
_root.impactTemp = random(3) + 1;
if (_root.impactTemp == 1) {
} else if (_root.impactTemp == 2) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].driver == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + (random(4) + 1));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
if (_root.gamePanelMC["grunt" + this.actionTarget].gunner == 1) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["grunt" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.garbageCpt++;
}
shot = new Sound(this);
shot.attachSound("chit" + (random(4) + 1));
shot.start();
}
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["grunt" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["grunt" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["grunt" + this.actionTarget].health = 0;
_root.gamePanelMC["grunt" + this.actionTarget].gunnermc.gotoAndStop("death");
_root.gamePanelMC["grunt" + this.actionTarget].drivermc.gotoAndStop(2);
}
} else if (_root.gamePanelMC["grunt" + this.actionTarget].armor == 2) {
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet2(_root.gamePanelMC["grunt" + this.actionTarget]);
if ((random(100) > _root.gamePanelMC["grunt" + this.actionTarget].moral) && (_root.gamePanelMC["grunt" + this.actionTarget].health > 10)) {
_root.gamePanelMC["grunt" + this.actionTarget].gotoAndPlay("PinnedDown");
}
}
Symbol 894 MovieClip Frame 15
this.semi--;
if (this.semi < 1) {
gotoAndStop (1);
this.aiming = 0;
this.actionTimer = random(200);
} else {
gotoAndPlay (7);
this.aiming = 1;
}
Symbol 894 MovieClip Frame 16
if (this.health < 1) {
gotoAndStop ("death");
trace("wanked");
} else {
this.pinned = 1;
}
Symbol 894 MovieClip Frame 35
if (random(100) > this.moral) {
this.pinned = 1;
if (random(100) < 20) {
shot = new Sound(this);
shot.attachSound("gchat" + (random(24) + 1));
shot.start();
}
gotoAndPlay ("pinnedDown");
} else {
this.pinned = 0;
gotoAndStop (1);
}
Symbol 894 MovieClip Frame 37
this._rotation = random(360);
_root.stats.kills++;
stop();
Symbol 896 Button
on (rollOver) {
_root.infoPanel._x = this._x;
_root.infoPanel._y = this._y;
if (_root.infoPanel._y > 455) {
_root.infoPanel._y = 455;
}
if (_root.infoPanel._x > 270) {
_root.infoPanel._x = 270;
}
_root.infoPanel.soldierExp = this.experience;
_root.infoPanel.soldierHealth = this.health;
_root.infoPanel.soldierRifle = this.rifle;
_root.infoPanel.soldierMoral = this.moral;
_root.infoPanel.soldierName = this.namez;
_root.infoPanel.weaponz.gotoAndStop(this.weapon);
_root.infoPanel.rankmc.gotoAndStop(this.rank + 1);
_root.infoPanel.specmc.gotoAndStop(this.spec);
_root.infoPanel.facemc.eyemc.gotoAndStop(this.eye);
_root.infoPanel.facemc.nozemc.gotoAndStop(this.noze);
_root.infoPanel.facemc.mouthmc.gotoAndStop(this.mouth);
_root.infoPanel.facemc.hairmc.gotoAndStop(this.hair);
_root.infoPanel.fraggymc.gotoAndStop(this.frag + 1);
}
on (rollOut) {
_root.infoPanel._x = -500;
_root.infoPanel._y = -500;
}
on (press) {
if (_root.focusTarget != "") {
_root.focusTarget = "";
}
}
on (release) {
if (this.health > 9) {
if (_root.fragupgrade == 1) {
this.frag = 1;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.rangerupgrade == 1) {
this.frag = 1;
this.weapon = 2;
this.rifle = this.rifle + (random(15) + 1);
this.moral = this.moral + (random(15) + 1);
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else if (_root.heroupgrade == 1) {
if (this.rank > 1) {
this.health = 200;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
} else {
_root.msg("The soldier must at least be a corporal.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else if (_root.weaponupgrade == 0) {
if (this.life > 9) {
_root.focusTarget = this._name;
_root.mousePointer.gotoAndStop(4);
}
} else {
this.weapon = _root.weaponupgrade;
shot = new Sound(this);
shot.attachSound("cheching");
shot.start();
_root.mousePointer.gotoAndStop(1);
_root.fragupgrade = 0;
_root.heroupgrade = 0;
_root.rangerupgrade = 0;
_root.weaponupgrade = 0;
}
}
}
Symbol 903 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 903 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 903 MovieClip Frame 31
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 907 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 907 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 907 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 20) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 910 MovieClip Frame 10
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 910 MovieClip Frame 20
if (this._parent.health > 0) {
if (random(100) < 80) {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 914 MovieClip Frame 9
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (1);
}
} else {
stop();
}
Symbol 914 MovieClip Frame 19
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (20);
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (11);
}
} else {
stop();
}
Symbol 914 MovieClip Frame 30
if (this._parent.health > 0) {
if (random(100) < 50) {
if (random(100) < 50) {
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
} else {
gotoAndPlay (20);
}
} else {
stop();
}
Symbol 919 MovieClip Frame 1
this.aiming = 0;
if (this.health < 10) {
gotoAndStop ("death");
}
stop();
Symbol 919 MovieClip Frame 2
if (this.health < 10) {
gotoAndStop ("death");
}
this.aiming = 1;
if (this.weapon == 3) {
this.burst = random(6) + 1;
}
if (this.weapon == 5) {
this.burst = random(20) + 1;
}
Symbol 919 MovieClip Frame 7
this.actionTimer = 9999;
if (_root.pausez == 0) {
if (random(100) < (10 + this.experience)) {
gotoAndPlay (8);
} else {
gotoAndPlay (2);
}
} else {
gotoAndPlay (2);
}
Symbol 919 MovieClip Frame 8
if (_root.pausez == 0) {
_root.stats.shot++;
this.firemc.gotoAndPlay(1);
if (this.weapon == 1) {
shot = new Sound(this);
shot.attachSound("usrifle" + (random(5) + 1));
shot.start();
} else if (this.weapon == 2) {
shot = new Sound(this);
shot.attachSound("garand" + (random(2) + 1));
shot.start();
} else if (this.weapon == 3) {
shot = new Sound(this);
shot.attachSound("tommy");
shot.start();
} else if (this.weapon == 4) {
shot = new Sound(this);
shot.attachSound("shotgun");
shot.start();
} else if (this.weapon == 5) {
shot = new Sound(this);
shot.attachSound("bar");
shot.start();
}
this.dice = random(100);
this.distance = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]);
if ((this.weapon == 4) && (this.distance < 200)) {
this.dice = this.dice / 2;
}
if ((this.weapon == 3) && (this.distance > 200)) {
this.dice = this.dice * 2;
}
if (this.burst > 0) {
this.dice = this.dice + (this.burst * 2);
}
if (this.dice <= this.rifle) {
if (((this.weapon == 4) && (this.distance < 400)) || (this.weapon != 4)) {
_root.stats.hit++;
if (_root.gamePanelMC["enemy" + this.actionTarget].armor < 1) {
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
if (this.weapon == 4) {
_root.gamePanelMC["enemy" + this.actionTarget].health = _root.gamePanelMC["enemy" + this.actionTarget].health - random(100);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
if (_root.gamePanelMC["enemy" + this.actionTarget].typez == "flammen") {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.flamerExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y;
_root.decoCpt++;
this.experience++;
_root.rankup(this);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health < 1) {
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndStop("death");
_root.enemyDeathRoutine(_root.gamePanelMC["enemy" + this.actionTarget]);
this.experience++;
_root.rankup(this);
}
}
_root.gamePanelMC["enemy" + this.actionTarget]._rotation = _root.gamePanelMC["enemy" + this.actionTarget]._rotation + (random(11) - 5);
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (this.weapon == 4) {
_root.bloodTemp = random(10);
while (_root.bloodTemp > 0) {
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.bloodTemp--;
}
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 1) {
if (random(100) < 50) {
_root.impactTemp = random(10) + 1;
if (_root.impactTemp < 5) {
} else if ((_root.impactTemp >= 5) && (_root.impactTemp < 8)) {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].driver = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].drivermc.gotoAndStop(2);
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("glass_break");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
if (random(100) < 50) {
_root.gamePanelMC["enemy" + this.actionTarget].gunner = 0;
duplicateMovieClip (_root.gamePanelMC.cadavremc, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.actionTarget]._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.actionTarget]._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
_root.gamePanelMC["enemy" + this.actionTarget].gunnermc.gotoAndStop("death");
}
shot = new Sound(this);
shot.attachSound("ghit" + random(19));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("ricochet_metal_" + (random(6) + 1));
shot.start();
}
if ((_root.gamePanelMC["enemy" + this.actionTarget].gunner == 0) && (_root.gamePanelMC["enemy" + this.actionTarget].driver == 0)) {
_root.gamePanelMC["enemy" + this.actionTarget].health = 0;
_root.enemyDeathRoutine();
}
} else if (_root.gamePanelMC["enemy" + this.actionTarget].armor == 2) {
}
} else if ((_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) && (this.weapon == 4)) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("whiz" + random(16));
shot.start();
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionTarget]) < 250) {
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
_root.ricochet(_root.gamePanelMC["enemy" + this.actionTarget]);
}
}
if (_root.gamePanelMC["enemy" + this.actionTarget].health > 0) {
if (random(100) > _root.gamePanelMC["enemy" + this.actionTarget].moral) {
_root.gamePanelMC["enemy" + this.actionTarget].pinned = 1;
_root.gamePanelMC["enemy" + this.actionTarget].gotoAndPlay("pinnedDown");
}
}
}
this.ammo--;
if ((this.ammo < 1) && (this.weapon == 2)) {
shot = new Sound(this);
shot.attachSound("M1_Ping");
shot.start();
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
if (((this.weapon == 2) || (this.weapon == 3)) || (this.weapon == 5)) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
} else {
gotoAndStop (1);
}
Symbol 919 MovieClip Frame 11
if (_root.pausez == 0) {
if ((this.burst > 0) && (this.ammo > 0)) {
gotoAndPlay (8);
this.burst--;
}
if ((this.weapon == 2) && (this.semi < 1)) {
if (random(100) < 25) {
this.semi = random(8) + 1;
}
}
if ((this.semi > 0) && (this.ammo > 0)) {
if (random(200) < (this.experience + 5)) {
gotoAndPlay (8);
} else {
gotoAndPlay (9);
}
}
} else {
gotoAndPlay (9);
}
Symbol 919 MovieClip Frame 15
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
}
if (this.moving == 1) {
if (this.weapon == 1) {
gotoAndStop (1);
shot = new Sound(this);
shot.attachSound("chrink");
shot.start();
this.actionTimer = (10 + random(100)) - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else if (this.weapon == 2) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("M1_Reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 3) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 100 - this.experience;
shot = new Sound(this);
shot.attachSound("tommy_reload");
shot.start();
this.ammo = 30;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(1);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(150)) - this.experience;
}
} else if (this.weapon == 4) {
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].innershell.gotoAndStop(2);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("shotgun_reload");
shot.start();
this.ammo = 8;
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
} else if (this.weapon == 5) {
gotoAndStop (1);
if (this.ammo < 1) {
this.actionTimer = 200 - this.experience;
shot = new Sound(this);
shot.attachSound("bar_Reload");
shot.start();
this.ammo = 20;
duplicateMovieClip (_root.gamePanelMC.mag, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
} else {
this.actionTimer = (10 + random(100)) - this.experience;
}
}
this.aiming = 0;
} else {
gotoAndStop (10);
}
} else {
gotoAndStop (13);
}
Symbol 919 MovieClip Frame 36
if (_root.pausez == 0) {
if (this.health < 10) {
gotoAndStop ("death");
} else {
if (random(100) > this.moral) {
gotoAndPlay ("pinnedDown");
this.pinned = 1;
if (random(100) < 5) {
shot = new Sound(this);
shot.attachSound("pin" + (random(29) + 1));
shot.start();
}
} else {
gotoAndStop (1);
this.pinned = 0;
this.actionTimer = random(100);
}
if (this.pinned == 0) {
gotoAndStop (1);
}
}
} else {
gotoAndPlay (17);
}
Symbol 919 MovieClip Frame 37
_root.playerDeath(this);
stop();
Symbol 919 MovieClip Frame 38
this._rotation = random(360);
_root.stats.kills++;
stop();
if (random(100) > 5) {
this.actionTimer = 9999;
gotoAndPlay (38);
trace("not going");
} else {
this.actionTimer = 9999;
gotoAndPlay (40);
}
Symbol 919 MovieClip Frame 69
trace((this._name + " depth = ") + this.getDepth());
this.swapDepths(this.getDepth() - 30000);
trace((this._name + " depth after = ") + this.getDepth());
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].hitTest(this)) {
if (_root.gamePanelMC["deco" + tempcpt].typez == "tree") {
this.health = this.health - random(100);
shot = new Sound(this);
shot.attachSound("treecrash");
shot.start();
duplicateMovieClip (_root.gamePanelMC["blood" + (random(7) + 1)], "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
shot = new Sound(this);
shot.attachSound("chit" + random(5));
shot.start();
}
}
tempcpt++;
}
if (this.health > 0) {
gotoAndPlay (70);
} else {
gotoAndPlay ("death");
}
duplicateMovieClip (_root.gamePanelMC.usedParachute, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y + (-25 + random(50));
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = random(360);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
Symbol 919 MovieClip Frame 70
this.aiming = 1;
this.actionTimer = 999;
Symbol 919 MovieClip Frame 77
if (random(100) < 50) {
gotoAndPlay (72);
}
Symbol 919 MovieClip Frame 88
if (random(100) < 50) {
gotoAndPlay (80);
}
Symbol 921 MovieClip Frame 20
_root.treeBurn(this);
this.crateCpt = 0;
while (this.crateCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.crateCpt].health >= 10) && (_root.gamePanelMC["grunt" + this.crateCpt].health != undefined)) {
if (_root.distanceCheck(_root.gamePanelMC["grunt" + this.crateCpt], this) < 25) {
if (random(100) < 10) {
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["grunt" + this.crateCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["grunt" + this.crateCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["grunt" + this.crateCpt]._rotation;
_root.garbageCpt++;
_root.gamePanelMC["grunt" + this.crateCpt].health = -999;
_root.playerDeath(_root.gamePanelMC["grunt" + this.crateCpt]);
removeMovieClip(_root.gamePanelMC["grunt" + this.crateCpt]);
}
}
}
this.crateCpt++;
}
this.crateCpt = 0;
while (this.crateCpt < _root.enemyCpt) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.crateCpt]) < 25) {
if (_root.gamePanelMC["enemy" + this.crateCpt].health > 0) {
if (random(100) < 10) {
_root.mnb2.data.bbq++;
duplicateMovieClip (_root.gamePanelMC.crameur, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + _root.garbageCpt) + 10000);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = _root.gamePanelMC["enemy" + this.crateCpt]._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = _root.gamePanelMC["enemy" + this.crateCpt]._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = _root.gamePanelMC["enemy" + this.crateCpt]._rotation;
_root.garbageCpt++;
removeMovieClip(_root.gamePanelMC["enemy" + this.crateCpt]);
}
}
}
this.crateCpt++;
}
if (random(100) < 90) {
gotoAndPlay (1);
}
Symbol 921 MovieClip Frame 21
this.squish2.stop();
stop();
Symbol 968 MovieClip Frame 1
stop();
Symbol 968 MovieClip Frame 2
this.radaring = 0;
Instance of Symbol 333 MovieClip "tree3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuillus";
this.typez = "tree";
this.flamable = 1;
}
Instance of Symbol 335 MovieClip "tree2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "conifere";
this.typez = "tree";
this.flamable = 1;
}
Instance of Symbol 337 MovieClip "tronc1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "tronc1";
this.flamable = 1;
}
Instance of Symbol 339 MovieClip "buche" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.baselevel = 0;
this.template = "buche";
this.flamable = 1;
}
Instance of Symbol 341 MovieClip "plante7" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante7";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 343 MovieClip "plante4" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante4";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 345 MovieClip "plante2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante2";
this.subtype = "wildberry";
this.flamable = 1;
}
Instance of Symbol 347 MovieClip "plante3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante3";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 349 MovieClip "plante6" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante6";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 351 MovieClip "mush1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "mush1";
this.subtype = "mush";
}
Instance of Symbol 353 MovieClip "mush2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "mush2";
this.subtype = "mush";
}
Instance of Symbol 355 MovieClip "mush3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "mush3";
this.subtype = "mush";
}
Instance of Symbol 357 MovieClip "plante9" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante9";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 359 MovieClip "plante8" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante8";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 361 MovieClip "branche1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "branche1";
this.subtype = "branch";
this.flamable = 1;
}
Instance of Symbol 363 MovieClip "branche3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "branche3";
this.subtype = "branch";
this.flamable = 1;
}
Instance of Symbol 365 MovieClip "branche2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "branche2";
this.subtype = "branch";
this.flamable = 1;
}
Instance of Symbol 367 MovieClip "plante5" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante5";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 369 MovieClip "tronc2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "tronc2";
this.flamable = 1;
}
Instance of Symbol 371 MovieClip "tronc3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "tronc3";
this.flamable = 1;
}
Instance of Symbol 373 MovieClip "feuille1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille1";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 375 MovieClip "feuille2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille2";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 378 MovieClip "feuille3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille3";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 380 MovieClip "feuille4" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille4";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 382 MovieClip "feuille5" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille5";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 384 MovieClip "feuille6" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille6";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 386 MovieClip "feuille7" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille7";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 388 MovieClip "feuille8" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille8";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 390 MovieClip "feuille9" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille9";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 392 MovieClip "feuille10" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille10";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 394 MovieClip "feuille11" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille11";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 396 MovieClip "feuille12" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille12";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 398 MovieClip "feuille13" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille13";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 400 MovieClip "feuille14" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille14";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 402 MovieClip "feuille15" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille15";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 404 MovieClip "feuille16" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille16";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 406 MovieClip "feuille17" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille17";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 408 MovieClip "feuille18" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "feuille18";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 410 MovieClip "plante1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante1";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 412 MovieClip "plante10" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "plante10";
this.subtype = "plant";
this.flamable = 1;
}
Instance of Symbol 414 MovieClip "deadfeuillus" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 10 + random(10);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100) - 50;
this.life = 500;
this.flamable = 1;
}
onClipEvent (enterFrame) {
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this.innershell._rotation = this.innershell._rotation + this.innershellrotation;
}
}
Instance of Symbol 416 MovieClip "deadconifere" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 10 + random(10);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100) - 50;
this.life = 500;
this.flamable = 1;
}
onClipEvent (enterFrame) {
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this.innershell._rotation = this.innershell._rotation + this.innershellrotation;
}
}
Instance of Symbol 418 MovieClip "patch3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "patch3";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 420 MovieClip "patch2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "patch2";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 422 MovieClip "patch1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "patch1";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 424 MovieClip "flake1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.subtype = "eau";
this.template = "flake1";
if (this._name != "flake1") {
ambiantzz = new Sound(this);
ambiantzz.attachSound("etang");
ambiantzz.setVolume(0);
ambiantzz.start(0, 999);
}
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (this._name != "flake1") {
this.ambiantzz.setVolume((500 - _root.distancecheck(this, _root.zoominmc.player_mc)) / 20);
}
}
Instance of Symbol 426 MovieClip "flake2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.subtype = "eau";
this.template = "flake2";
if (this.hitTest(_root.zoominmc.bergeouestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergeestmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergenordmc.waterization)) {
removeMovieClip(this);
}
if (this.hitTest(_root.zoominmc.bergesudmc.waterization)) {
removeMovieClip(this);
}
}
Instance of Symbol 428 MovieClip "tree1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "bouleau";
this.typez = "tree";
this.flamable = 1;
}
Instance of Symbol 430 MovieClip "deadbouleau" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 10 + random(10);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100) - 50;
this.life = 500;
this.flamable = 1;
}
onClipEvent (enterFrame) {
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this.innershell._rotation = this.innershell._rotation + this.innershellrotation;
}
}
Instance of Symbol 432 MovieClip "tronc4" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "tronc4";
this.flamable = 1;
}
Instance of Symbol 435 MovieClip "wiremc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "wire";
if (this._name == "wiremc") {
stop();
}
}
Instance of Symbol 439 MovieClip "cratere" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 1000;
this.flamable = 0;
}
onClipEvent (enterFrame) {
if (this._name != "cratere") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 445 MovieClip "roche" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "roche";
this.typez = "rock";
this.flamable = 0;
}
Instance of Symbol 474 MovieClip "playerGrunt" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "grunt";
this.temp = 0;
this.rifle = 10;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
trace("plus de rifle");
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = 1;
if (_root.mnb2.data.medal19 > 0) {
this.weapon = 2;
}
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 8;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 1;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 1000;
this.visiblez = 100;
this.armor = 0;
this.wired = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGrunt") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 90)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else {
trace("this frag = " + this.frag);
if (_root.bunkered(this) == false) {
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
} else {
trace("bunker empeche la vue!!");
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
} else if (random(1000) < 1) {
shot = new Sound(this);
shot.attachSound("down" + (random(23) + 1));
shot.start();
}
}
}
}
Instance of Symbol 477 MovieClip "blood5" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "blood";
this.baselevel = 0;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "blood5") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 479 MovieClip "blood1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "blood";
this.baselevel = 0;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "blood1") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 481 MovieClip "blood2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "blood";
this.baselevel = 0;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "blood2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 483 MovieClip "blood4" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "blood";
this.baselevel = 0;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "blood4") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 485 MovieClip "blood3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "blood";
this.baselevel = 0;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "blood3") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 487 MovieClip "blood6" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "blood";
this.baselevel = 0;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "blood6") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 489 MovieClip "blood7" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "blood";
this.baselevel = 0;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "blood7") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 492 MovieClip "ricochet" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.temp = random(10);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "ricochet") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 494 MovieClip "spark" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(90) - 45;
this.decoSize = 50 + random(100);
this._xscale = this.decoSize;
this._yscale = this.decoSize;
this.life = 50;
}
Instance of Symbol 501 MovieClip "shell" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 10 + random(10);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100) - 50;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "shell") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this.innershell._rotation = this.innershell._rotation + this.innershellrotation;
}
}
Instance of Symbol 508 MovieClip "mag" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = random(14);
this.mid = this.velocity / 2;
this.speed = random(2) + 1;
this._rotation = this._rotation + random(360);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "mag") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
this.velocity--;
}
}
Instance of Symbol 519 MovieClip "playerGruntOfficer" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
trace("spawn un officier");
this.typez = "officer";
this.temp = 0;
this.rifle = 0;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.weapon = 1;
this.armor = 0;
this.health = 100;
this.moral = random(90) + 10;
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 5;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 9;
this.actionTimer = random(100);
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 8;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 2;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.visiblez = 100;
this.life = 1000;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntOfficer") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.6;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
if ((random(100) < 50) && (random(100) < this.experience)) {
if (random(100) < 50) {
this.gotoAndPlay("special1");
} else {
this.gotoAndPlay("special2");
}
this.actionTimer = random(200);
} else if (this.pinned != 1) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 95)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
this.actionTimer = (random(200) + 10) - this.experience;
}
}
}
} else {
this.actionTimer--;
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 528 MovieClip "germjeep" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "softSkin";
this.rifle = random(10) + 1;
this.health = 1000;
this.moral = random(100);
this.experience = 0;
this.rank = 0;
this.actionTimer = random(500);
this.bonusTimer = 0;
this._rotation = 0;
this.moving = random(100);
this.targetx = 0;
this.targety = 0;
this.driver = 1;
this.gunner = 1;
this.armor = 1;
}
onClipEvent (enterFrame) {
if (this._name != "germjeep") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
this.removeMovieClip();
}
if (this.health > 10) {
if (this.driver > 0) {
if (this.moving > 0) {
this._y = this._y + 0.5;
this.moving--;
} else if (random(100) < 1) {
this.moving = random(200);
}
}
}
}
}
}
Instance of Symbol 494 MovieClip "spark2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(90) - 45;
this._rotation = this._rotation + 180;
this.decoSize = 50 + random(100);
this._xscale = this.decoSize;
this._yscale = this.decoSize;
this.life = 50;
}
Instance of Symbol 492 MovieClip "ricochet2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.temp = random(10);
while (this.temp > 0) {
duplicateMovieClip (_root.gamePanelMC.spark2, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.temp--;
}
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "ricochet2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 530 MovieClip "cadavremc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
this.flamable = 1;
trace("dead germ spawned");
}
onClipEvent (enterFrame) {
if (this._name != "cadavremc") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 539 MovieClip "SS" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "ss";
this.rifle = random(30) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = 0;
this.rank = 0;
this.actionTimer = random(100);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.ammo = 30;
this.burst = 0;
this.life = 500;
this.visiblez = 100;
this.germ = 1;
this.armor = 0;
}
onClipEvent (enterFrame) {
if (this._name != "SS") {
if (_root.pausez == 0) {
if (this.health > 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if ((random(100) < 50) && (this.pinned != 1)) {
this._y++;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 9) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
}
this.actionTimer = random(100);
}
}
} else {
this.actionTimer--;
}
} else if (this._name != "SS") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 548 MovieClip "usjeep" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "jeep";
this.temp = 0;
this.rifle = 0;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
this.weapon = 1;
this.health = 500;
this.moral = random(100);
this.experience = 2;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.pinned = 0;
this.targetx = this._x;
this.targety = 570;
this.semi = 0;
this.namez = "Jeep";
this.deadman = 0;
this.spec = 1;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this._rotation = 0;
this.driver = 1;
this.gunner = 1;
this.armor = 1;
this.visiblez = 1;
}
onClipEvent (enterFrame) {
if (_root.pausez == 0) {
_root.invincibleCheck(this);
if (this._name != "usjeep") {
if (_root.pausez == 0) {
if (this.health >= 0) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
} else {
duplicateMovieClip (_root.gamePanelMC.carwreck, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this._rotation;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
removeMovieClip(this);
}
}
}
}
}
Instance of Symbol 553 MovieClip "playerGruntMedic" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
trace("spawn un medic");
this.typez = "grunt";
this.temp = 0;
this.rifle = 0;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
this.frag = 0;
this.weapon = 1;
this.armor = 0;
this.health = 100;
this.moral = random(100) + 5;
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 25;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = random(100);
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 8;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.life = 1000;
this.deadman = 0;
this.spec = 5;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.currentPatientRange = 0;
this.currentPatientHealth = 0;
this.visiblez = 100;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntMedic") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 1;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (random(100) < this.experience) {
this.actionCpt2 = 0;
this.currentPatientRange = 9999;
this.currentPatientHealth = 9999;
while (this.actionCpt2 < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt2].armor < 1) {
if (((_root.gamePanelMC["grunt" + this.actionCpt2].health < 100) && (_root.gamePanelMC["grunt" + this.actionCpt2].health > 0)) && (_root.gamePanelMC["grunt" + this.actionCpt2].invincible != 1)) {
if (_root.gamePanelMC["grunt" + this.actionCpt2].health < this.currentPatientHealth) {
this.currentPatientHealth = _root.gamePanelMC["grunt" + this.actionCpt2].health;
this.targetx = _root.gamePanelMC["grunt" + this.actionCpt2]._x;
this.targety = _root.gamePanelMC["grunt" + this.actionCpt2]._y;
}
}
}
this.actionCpt2++;
}
this.actionTimer = random(200);
} else if (this.pinned != 1) {
this.actionTimer = random(200) - this.experience;
this.actionCpt2 = 0;
while (this.actionCpt2 < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt2].health < 100) && (_root.gamePanelMC["grunt" + this.actionCpt2].health > 0)) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt2]) < 50) {
_root.gamePanelMC["grunt" + this.actionCpt2].health++;
if (_root.gamePanelMC["grunt" + this.actionCpt2].health == 11) {
_root.mnb2.data.soldiersaved++;
_root.gamePanelMC["grunt" + this.actionCpt2].gotoAndPlay(1);
if (_root.mnb2.data.medal2 == 1) {
_root.msg("-==Medic gave 1xp to all members of your squad thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
i = 0;
while (i < _root.playerCpt) {
_root.gamePanelMC["grunt" + i].xp++;
i++;
}
}
}
_root.gamePanelMC["grunt" + this.actionCpt2].healthmc.gotoAndPlay(2);
if (random(100) < 5) {
this.experience++;
}
}
}
this.actionCpt2++;
}
}
} else {
this.actionTimer--;
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
} else if (random(700) < 1) {
shot = new Sound(this);
shot.attachSound("down" + (random(23) + 1));
shot.start();
}
}
}
}
Instance of Symbol 535 MovieClip "germsmg" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
trace("soawning germsmg!!");
}
onClipEvent (enterFrame) {
if (this._name != "germsmg") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 555 MovieClip "germrifle" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "germrifle") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 561 MovieClip "playerGruntEngy" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.typez = "engy";
this.temp = 0;
this.rifle = 10;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = 6;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 8;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 4;
this.burst = 0;
this.life = 1000;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.visiblez = 100;
this.born = _root.timer2;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntEngy") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 95)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 100 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
} else if (random(1000) < 1) {
shot = new Sound(this);
shot.attachSound("down" + (random(23) + 1));
shot.start();
}
}
}
}
Instance of Symbol 582 MovieClip "playerGruntSAS" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "sas";
this.temp = 0;
this.rifle = random(30) + 5;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 1;
this.armor = 0;
this.weapon = 6;
this.health = 100;
this.moral = random(80) + 20;
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 30;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 3;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 1000;
this.visiblez = 100;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntSAS") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 85)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 590 MovieClip "bigexplosion" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "bigexplosion") {
stop();
}
}
Instance of Symbol 494 MovieClip "spark3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(360);
this.decoSize = random(500);
this._xscale = this.decoSize;
this._yscale = this.decoSize;
this.life = 50;
}
Instance of Symbol 592 MovieClip "gib1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib1") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 594 MovieClip "gib2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 596 MovieClip "gib3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib3") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 598 MovieClip "gib4" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib4") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 600 MovieClip "gib5" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib5") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 602 MovieClip "gib6" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib6") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 604 MovieClip "gib7" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib7") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 606 MovieClip "gib8" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib8") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 608 MovieClip "gib9" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib9") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 610 MovieClip "gib10" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib10") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 612 MovieClip "gib11" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib11") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 614 MovieClip "gib12" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib12") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 616 MovieClip "gib13" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib13") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 618 MovieClip "gib14" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib14") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 620 MovieClip "gib15" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib15") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 622 MovieClip "gib16" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib16") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 624 MovieClip "gib17" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib17") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 626 MovieClip "gib18" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib18") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 628 MovieClip "gib19" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib19") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 630 MovieClip "gib20" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib20") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 632 MovieClip "gib21" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "gib21") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
duplicateMovieClip (_root.gamePanelMC.bloodspot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 635 MovieClip "smallExplo" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "smallExplo") {
stop();
}
}
Instance of Symbol 439 MovieClip "cratere2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "cratere2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 638 MovieClip "bombexplomc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "bombexplomc") {
stop();
}
}
Instance of Symbol 439 MovieClip "cratere4" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 1000;
this.flamable = 0;
}
onClipEvent (enterFrame) {
if (this._name != "cratere4") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 646 MovieClip "playerGruntSigs" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "sigs";
this.temp = 0;
this.rifle = 0;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 3;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 8;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.arty = 0;
this.deadman = 0;
this.spec = 6;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 500;
this.visiblez = 100;
this.life = 1000;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntSigs") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 95)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 656 MovieClip "playerGruntSniper" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "sniper";
this.visiblez = 100;
this.temp = 0;
this.rifle = 40;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = 7;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 1;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 7;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 1000;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntSniper") {
if (_root.pausez == 0) {
if (this.visiblez > 0) {
if (this._alpha < 100) {
this._alpha = 100;
}
this.visiblez--;
} else if (this._alpha > 30) {
this._alpha = 30;
}
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (this.aiming < 1) {
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.6;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 5))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 95)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 666 MovieClip "cratedown" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "crate";
}
Instance of Symbol 672 MovieClip "enemyGruntSniper" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.dead = 0;
this.typez = "sniper";
this.rifle = 40 + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100) + 5;
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = random(70) + 1;
this.rank = 0;
this.actionTimer = random(300);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = random(400);
this.targety = random(300);
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.pinned = 0;
this.wired = 0;
this.germ = 1;
this.armor = 0;
}
onClipEvent (enterFrame) {
if (this._name != "enemyGruntSniper") {
if (_root.pausez == 0) {
if (this.health > 0) {
if (this.visiblez > 0) {
if (this._alpha < 100) {
this._alpha = 100;
}
this.visiblez--;
} else if (this._alpha > 0) {
this._alpha = 0;
}
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
if (this.wired < 1) {
if (this.pinned != 1) {
if (this.aiming != 1) {
speed = 0.7;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 60) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
} else if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
this.aiming = 1;
} else {
this.targetx = random(400);
this.targety = random(300);
}
} else {
this.targetx = random(400);
this.targety = random(300);
}
}
} else if (this._name != "enemyGruntSniper") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 678 MovieClip "enemyGrenadier" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.dead = 0;
this.typez = "grenadier";
this.rifle = (10 + random(30)) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = random(50) + 1;
this.rank = 0;
this.actionTimer = random(100);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.wired = 0;
this.germ = 1;
this.armor = 0;
}
onClipEvent (enterFrame) {
if (this._name != "enemyGrenadier") {
if (_root.pausez == 0) {
if (this.health > 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 0) {
if (this.wired < 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
this._y = this._y + 1;
}
} else {
this.wired--;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
if (random(100) < 90) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 9) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
this.aiming = 1;
}
this.actionTimer = random(100);
} else if (this._y < 300) {
this.gotoAndPlay("frag");
this.actionTimer = random(100);
} else {
this.actionTimer = random(100);
}
}
}
} else {
this.actionTimer--;
}
}
} else {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 683 MovieClip "enemyGrunt" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.dead = 0;
this.typez = "grunt";
this.rifle = random(40) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = random(50) + 1;
this.rank = 0;
this.actionTimer = random(200);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.wired = 0;
this.germ = 1;
this.armor = 0;
}
onClipEvent (enterFrame) {
if (this.health > 0) {
if (this._name != "enemyGrunt") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 0) {
if (this.wired < 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
this._y = this._y + 1;
}
} else {
this.wired--;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 9) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
this.aiming = 1;
}
this.actionTimer = random(200);
}
}
} else {
this.actionTimer--;
}
}
}
}
} else if (this._name != "enemyGrunt") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 686 MovieClip "germanfrag" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(10);
this.mid = this.velocity / 2;
this.speed = random(5) + 10;
this.lift = random(20) + 5;
this.temp = 0;
this._rotation = 90;
this.innershellrotation = random(100) - 50;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "germanfrag") {
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this.inerfrag._rotation = this.inerfrag._rotation + this.innershellrotation;
} else {
duplicateMovieClip (_root.gamePanelMC.fragExplo, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
removeMovieClip(this);
}
}
}
Instance of Symbol 687 MovieClip "fragExplo" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "fragExplo") {
stop();
}
}
Instance of Symbol 689 MovieClip "trenchmc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.flamable = 0;
}
Instance of Symbol 691 MovieClip "germrifle2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "germrifle2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 693 MovieClip "minezmc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "minezmc") {
stop();
}
}
Instance of Symbol 694 MovieClip "minexplo" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "minexplo") {
stop();
}
}
Instance of Symbol 697 MovieClip "usfrag" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(10);
this.mid = this.velocity / 2;
this.speed = random(5) + 10;
this.lift = random(20) + 5;
this.temp = 0;
this.innershellrotation = random(100) - 50;
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "usfrag") {
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this.inerfrag._rotation = this.inerfrag._rotation + this.innershellrotation;
} else {
duplicateMovieClip (_root.gamePanelMC.fragExplo, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = this.dad;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
removeMovieClip(this);
}
}
}
Instance of Symbol 699 MovieClip "cadavremc2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
this.flamable = 1;
}
onClipEvent (enterFrame) {
if (this._name != "cadavremc2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 701 MovieClip "haystack" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "haystack";
this.typez = "deco";
this.flamable = 1;
}
Instance of Symbol 724 MovieClip "playerGruntFlamer" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.typez = "playerGruntFlamer";
this.temp = 0;
this.rifle = 10;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = 6;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 100;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 9;
this.burst = 0;
this.life = 1000;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.visiblez = 100;
this.born = _root.timer2;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntFlamer") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 95)) || (this.frag == 0)) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 180) {
this.gotoAndPlay(2);
} else if (random(100) > (this.experience * 2)) {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionTimer = 200 - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 735 MovieClip "crameur" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "crameur") {
this.burntime = 60 + random(400);
squish = new Sound(this);
squish.attachSound("burning_scream_" + (random(22) + 1));
squish.start();
squish2 = new Sound(this);
squish2.attachSound("fireburning");
squish2.start(0, 999);
this.life = 500;
} else {
this.stop();
this.fiya.stop();
}
}
onClipEvent (enterFrame) {
if (this._name != "crameur") {
if (this.burntime > 0) {
speed = 1;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.burntime == 1) {
this.gotoAndStop("death");
this.squish2.stop();
}
this.burntime--;
} else {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
this.squish2.stop();
removeMovieClip(this);
}
}
}
}
}
Instance of Symbol 747 MovieClip "enemyFlamer" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "flammen";
this.rifle = random(60) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = 0;
this.rank = 0;
this.actionTimer = random(100);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.ammo = 30;
this.burst = 0;
this.life = 500;
this.visiblez = 100;
this.germ = 1;
this.wired = 0;
this.armor = 0;
this.death = 0;
}
onClipEvent (enterFrame) {
if (this.health > 0) {
if (this._name != "enemyFlamer") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 0) {
if (this.wired < 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
this._y = this._y + 1;
}
} else {
this.wired--;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 10) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < 170) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
this.aiming = 1;
}
this.actionTimer = random(200);
}
}
} else {
this.actionTimer--;
}
}
}
}
} else if (this._name != "enemyFlamer") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 755 MovieClip "antenamc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "antenaz";
if (this._name == "antenamc") {
this.lightbulb.stop();
}
this.antening = 1;
}
Instance of Symbol 776 MovieClip "playerResitance" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "resistance";
this.temp = 0;
this.rifle = random(5) + 1;
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 5;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = 1;
if (_root.mnb2.data.medal19 > 0) {
this.weapon = 2;
}
this.health = 75;
this.moral = random(5) + 1;
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 8;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur2();
this.deadman = 0;
this.spec = 1;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 1000;
this.visiblez = 100;
this.wired = 0;
this.armor = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerResitance") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 90)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
trace("this frag = " + this.frag);
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 787 MovieClip "sherman" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "sherman") {
this.typez = "sherman";
this.temp = 0;
this.rifle = 1;
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
this.weapon = 1;
this.health = 1000;
this.moral = random(100);
this.experience = 1;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.pinned = 0;
this.targetx = this._x;
this.targety = 570;
this.semi = 0;
this.namez = "Sherman";
this.deadman = 0;
this.spec = 1;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this._rotation = 0;
this.driver = 1;
this.gunner = 1;
this.armor = 2;
this.visiblez = 1;
this.squish2 = new Sound(this);
this.squish2.attachSound("tankidle");
this.squish2.start(0, 9999);
this.squish3 = new Sound(this);
this.squish3.attachSound("tracks");
this.moving = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pausez == 0) {
_root.invincibleCheck(this);
if (this._name != "sherman") {
if (_root.pausez == 0) {
if (this.health > 0) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.moving != 2) {
this.moving = 1;
}
} else if (this.moving != -1) {
this.moving = 0;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
} else {
duplicateMovieClip (_root.gamePanelMC.tankwreck, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this._rotation;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
this.squish2.stop();
this.squish3.stop();
this.moving = -1;
removeMovieClip(this);
}
}
if ((this.moving == 0) || (this.health < 1)) {
this.squish3.stop();
this.squish2.start(0, 9999);
this.moving = -1;
} else if (this.moving == 1) {
this.squish3.start(0, 9999);
this.moving = 2;
}
}
}
}
Instance of Symbol 789 MovieClip "explo2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "explo2") {
stop();
}
}
Instance of Symbol 799 MovieClip "panther" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name != "panther") {
this.typez = "tank";
this.rifle = 1;
this.health = 1000;
this.moral = random(100);
this.experience = 0;
this.rank = 0;
this.actionTimer = random(500);
this.bonusTimer = 0;
this._rotation = 0;
this.moving = random(100);
this.targetx = 0;
this.targety = 0;
this.driver = 1;
this.gunner = 1;
this.movesound = 0;
this.armor = 2;
squish2 = new Sound(this);
squish2.attachSound("tankidle");
squish2.start(0, 9999);
this.squish3 = new Sound(this);
this.squish3.attachSound("tracks");
this.moving = 0;
}
}
onClipEvent (enterFrame) {
if (this._name != "panther") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
this.removeMovieClip();
}
if (this.health > 10) {
if (this.moving > 0) {
if (this.movesound != 2) {
this.movesound = 1;
}
this._y = this._y + 0.5;
this.moving--;
} else {
if (this.movesound != -1) {
this.movesound = 0;
}
if (random(300) < 1) {
this.moving = random(200);
}
}
}
}
if ((this.movesound == 0) || (this.health < 1)) {
this.squish3.stop();
this.squish2.start(0, 9999);
this.movesound = -1;
} else if (this.movesound == 1) {
this.squish3.start(0, 9999);
this.movesound = 2;
}
}
}
Instance of Symbol 801 MovieClip "carwreck" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "carwreck";
this.typez = "deco";
this.flamable = 0;
if (this._name != "carwreck") {
squish = new Sound(this);
squish.attachSound("carwrecksound");
squish.start();
}
}
Instance of Symbol 803 MovieClip "tankwreck" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "tankwreck";
this.typez = "deco";
this.flamable = 0;
if (this._name != "tankwreck") {
squish = new Sound(this);
squish.attachSound("tankwrecksound");
squish.start();
}
}
Instance of Symbol 808 MovieClip "smokescreen" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 1000;
this.flamable = 0;
}
onClipEvent (enterFrame) {
if (this._name != "smokescreen") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 810 MovieClip "smokeExplo" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "smokeExplo") {
stop();
}
}
Instance of Symbol 812 MovieClip "zookaRocket" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.speed = 0.5;
this.wong = 30;
}
onClipEvent (enterFrame) {
if (this._name != "zookaRocket") {
if ((((this._x > 400) || (this._y > 600)) || (this._x < 0)) || (this._y < 0)) {
trace("trace rocket out of bound.. removing");
removeMovieClip(this);
}
if (this.speed < 8) {
this.speed = this.speed + 0.5;
}
duplicateMovieClip (_root.gamePanelMC.smokeSpot, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.wong == 0) {
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (this.hitTest(_root.gamePanelMC["enemy" + this.actionCpt])) {
duplicateMovieClip (_root.gamePanelMC.zookaBlast, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt].dad = this.dad;
_root.decoCpt++;
removeMovieClip(this);
}
this.actionCpt++;
}
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (this.hitTest(_root.gamePanelMC["grunt" + this.actionCpt])) {
duplicateMovieClip (_root.gamePanelMC.zookaBlast, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
removeMovieClip(this);
}
this.actionCpt++;
}
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if ((((_root.gamePanelMC["deco" + tempcpt].typez == "tree") || (_root.gamePanelMC["deco" + tempcpt].typez == "rock")) || (_root.gamePanelMC["deco" + tempcpt].typez == "deco")) || (_root.gamePanelMC["deco" + tempcpt].typez == "crate")) {
if (this.hitTest(_root.gamePanelMC["deco" + tempcpt])) {
duplicateMovieClip (_root.gamePanelMC.zookaBlast, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.decoCpt++;
removeMovieClip(this);
}
}
tempcpt++;
}
this.wong = 15;
} else {
this.wong--;
}
}
}
Instance of Symbol 815 MovieClip "zookaBlast" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "zookaBlast") {
stop();
}
}
Instance of Symbol 828 MovieClip "zookaGrunt" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "grunt";
this.temp = 0;
this.rifle = 10;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 20;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 8;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 1;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 1000;
this.visiblez = 100;
this.armor = 0;
this.wired = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "zookaGrunt") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 90)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
trace("this frag = " + this.frag);
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = new Object();
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
}
this.actionTimer = (random(400) + 10) - this.experience;
}
} else {
this.actionTimer--;
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 834 MovieClip "enemyShrek" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "shrek";
this.rifle = random(30) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = 0;
this.rank = 0;
this.actionTimer = random(300);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.ammo = 30;
this.burst = 0;
this.life = 500;
this.visiblez = 100;
this.germ = 1;
this.armor = 0;
this.death = 0;
}
onClipEvent (enterFrame) {
if (this._name != "enemyShrek") {
if (_root.pausez == 0) {
if (this.health > 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
this._y++;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 10) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
}
this.actionTimer = random(100);
}
}
} else {
this.actionTimer--;
}
}
} else {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 836 MovieClip "germzooka" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
trace("soawning zooka!!");
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "germzooka") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 838 MovieClip "flamerExplo" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "flamerExplo") {
stop();
}
}
Instance of Symbol 848 MovieClip "playerGruntMG" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "mggrunt";
this.temp = 0;
this.rifle = 1;
this.mgCount = 1;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
this.armor = 0;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 100;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 200;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 8;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 1000;
this.visiblez = 100;
this.armor = 0;
this.wired = 0;
this.setup = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntMG") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (this.setup < 100) {
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
this.setup = 0;
if (this._currentframe != 1) {
gotoAndStop (1);
}
} else {
this.setup++;
if (this.setup == 100) {
this.gotoAndStop(38);
this.setup = 101;
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (this.setup < 100) {
this.mgCount = _root.MGCpt();
trace("gunner mg count =" + this.mgCount);
this.gotoAndPlay(2);
} else {
this.mgCount = _root.MGCpt();
trace("gunner mg count =" + this.mgCount);
this.gotoAndPlay(39);
}
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
}
}
Instance of Symbol 856 MovieClip "enemyOfficer" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.dead = 0;
this.typez = "officer";
this.rifle = random(40) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = random(50) + 1;
this.rank = 0;
this.actionTimer = random(200);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.wired = 0;
this.germ = 1;
this.ammo = 8;
}
onClipEvent (enterFrame) {
if (this.health > 0) {
if (this._name != "enemyOfficer") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 0) {
if (this.wired < 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
this._y = this._y + 1;
}
} else {
this.wired--;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 9) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.semi = random(8) + 1;
this.gotoAndPlay(2);
this.aiming = 1;
}
this.actionTimer = random(200);
} else {
this.gotoAndPlay("special");
this.aiming = 1;
}
}
} else {
this.actionTimer--;
}
}
}
}
} else if (this._name != "enemyOfficer") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 862 MovieClip "volks" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.dead = 0;
this.typez = "volks";
this.rifle = random(30);
this.weapon = 1;
this.health = 100;
this.moral = random(10) + 1;
if (_root.mnb2.data.medal13 > 0) {
this.moral = 2;
}
this.experience = random(20) + 1;
this.rank = 0;
this.actionTimer = random(200);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.wired = 0;
this.germ = 1;
this.armor = 0;
this.flee = 0;
}
onClipEvent (enterFrame) {
if (this.health > 0) {
if (this._name != "volks") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this._y < 0) {
this.removeMovieClip();
trace("removing a coward scum");
}
if (this.health > 0) {
if (this.wired < 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
if (this.flee == 0) {
this._y = this._y + 1;
} else {
this._y--;
}
}
} else {
this.wired--;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 9) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay(2);
this.aiming = 1;
}
this.actionTimer = random(200);
}
}
} else {
this.actionTimer--;
}
}
}
}
} else if (this._name != "volks") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 870 MovieClip "enemyGruntMG" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.setupCounter = random(400);
this.dead = 0;
this.typez = "MG";
this.rifle = random(20) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = random(50) + 1;
this.rank = 0;
this.actionTimer = random(200);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.wired = 0;
this.germ = 1;
this.armor = 0;
}
onClipEvent (enterFrame) {
if (this.health > 0) {
if (this._name != "enemyGruntMG") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 0) {
if (this.wired < 1) {
if ((((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) && (this.setupCounter > 0)) {
this._y = this._y + 1;
}
} else {
this.wired--;
}
if (this.aiming == 0) {
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
}
if (this.setupCounter > 0) {
this.setupCounter--;
if (this.setupCounter == 0) {
this.setupCounter = -99;
this.gotoAndStop("setup");
}
} else if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 9) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.gotoAndPlay("fiyaaah");
this.aiming = 1;
this.burst = random(30) + 3;
}
this.actionTimer = random(200);
}
}
} else {
this.actionTimer--;
}
}
}
}
} else if (this._name != "enemyGruntMG") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 881 MovieClip "enemyParaGrunt" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.dead = 0;
this.typez = "para";
this.rifle = random(40) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = random(100);
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = random(50) + 10;
this.rank = 0;
this.actionTimer = 999;
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.wired = 0;
this.germ = 1;
this.armor = 0;
}
onClipEvent (enterFrame) {
if (this.health > 0) {
if (this._name != "enemyParaGrunt") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 0) {
if (this.wired < 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
this._y = this._y + 1;
}
} else {
this.wired--;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 70) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 9) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.aiming = 1;
this.semi = random(4) + 1;
this.gotoAndPlay(2);
}
this.actionTimer = random(100);
}
}
} else {
this.actionTimer--;
}
}
}
}
} else if (this._name != "enemyParaGrunt") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 883 MovieClip "usedParachute" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "usedParachute") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 885 MovieClip "fg42" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "fg42") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 887 MovieClip "g43" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "g43") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 889 MovieClip "youthknife" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "youthknife") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 894 MovieClip "enemyGruntJugend" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.dead = 0;
this.typez = "jugend";
this.rifle = random(20) + _root.wave;
this.weapon = 1;
this.health = 100;
this.moral = 70;
if (_root.mnb2.data.medal13 > 0) {
this.moral = this.moral - 10;
}
this.experience = random(30) + 1;
this.rank = 0;
this.actionTimer = random(200);
this.bonusTimer = 0;
this._rotation = 90;
this.moving = 1;
this.targetx = 0;
this.targety = 0;
this.armor = 0;
this.life = 500;
this.aiming = 0;
this.visiblez = 100;
this.wired = 0;
this.germ = 1;
this.armor = 0;
}
onClipEvent (enterFrame) {
if (this.health > 0) {
if (this._name != "enemyGruntJugend") {
if (_root.pausez == 0) {
if (this._y > 600) {
shot = new Sound(this);
shot.attachSound("bleep13");
shot.start();
_root.miss++;
trace("miss = " + _root.miss);
_root.crossmc.gotoAndStop(_root.miss + 1);
if (_root.miss > 9) {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
}
if (this.health > 0) {
if (this.wired < 1) {
if (((random(100) < 50) && (this.pinned != 1)) && (this.aiming == 0)) {
this._y = this._y + 1;
}
} else {
this.wired--;
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if (random(100) < 50) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if (_root.gamePanelMC["grunt" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["grunt" + this.actionCpt].invincible != 1) {
if (_root.gamePanelMC["grunt" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["grunt" + this.actionCpt]._x, this._y, _root.gamePanelMC["grunt" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["grunt" + this.actionCpt]);
}
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["grunt" + this.actionTarget]._y - this._y, _root.gamePanelMC["grunt" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
this.semi = random(8) + 1;
this.gotoAndPlay(2);
this.aiming = 1;
}
this.actionTimer = random(200);
}
}
} else {
this.actionTimer--;
}
}
}
}
} else if (this._name != "enemyGruntJugend") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 919 MovieClip "playerGruntPara" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.germ = 0;
this.born = _root.timer2;
this.typez = "para";
this.temp = 0;
this.rifle = 20;
while (this.temp < 5) {
this.rifle = this.rifle + (random(10) + 1);
this.temp = random(10);
}
if (_root.mnb2.data.medal12 > 0) {
this.rifle = this.rifle + 3;
}
if (_root.mnb2.data.medal24 > 0) {
this.rifle = this.rifle + 3;
}
this.frag = 0;
if (random(100) < 30) {
this.frag = 1;
}
if (random(100) < (_root.mnb2.data.medal22 * 10)) {
this.frag = 1;
}
this.armor = 0;
this.weapon = random(4) + 1;
if (_root.mnb2.data.medal19 > 0) {
this.weapon = 2;
}
this.health = 100;
this.moral = random(50) + 50;
if (_root.mnb2.data.medal16 > 0) {
this.moral = this.moral + 10;
}
this.experience = 0;
if (_root.mnb2.data.medal20 > 0) {
this.experience = this.experience + 9;
}
this.rank = 0;
this.actionTimer = 999;
this.bonusTimer = 0;
this.moving = 1;
this.ammo = 1;
this.pinned = 0;
this.targetx = this._x;
this.targety = 550;
this.semi = 0;
this.noze = random(10) + 1;
this.mouth = random(10) + 1;
this.hair = random(10) + 1;
this.eye = random(10) + 1;
this.namez = _root.batiseur();
this.deadman = 0;
this.spec = 1;
this.burst = 0;
this.dice = 0;
this.distance = 0;
this.invincible = 0;
this.life = 1000;
this.visiblez = 100;
this.armor = 0;
this.wired = 0;
}
onClipEvent (enterFrame) {
_root.invincibleCheck(this);
if (this._name != "playerGruntPara") {
if (_root.pausez == 0) {
if (this.health >= 10) {
if (this._y < 15) {
this.invincible = 1;
this._y = 650;
this.targetx = this._x;
this.targety = this._y;
_root.advance();
}
if (random(100) > 90) {
this._rotation = this._rotation + (random(11) - 5);
}
if (this.wired < 1) {
if (this.aiming == 0) {
if ((Math.abs(this.targetx - this._x) > 3) || (Math.abs(this.targety - this._y) > 3)) {
speed = 0.5;
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (random(100) < 30) {
radians = Math.atan2(this.targety - this._y, this.targetx - this._x);
degrees = (radians * 180) / Math.PI;
this._rotation = Math.round(degrees);
}
}
}
} else {
this.wired--;
}
if (this.invincible != 1) {
if (this.actionTimer < 1) {
if (this.pinned != 1) {
if ((_root.bunkered(this) == false) || ((_root.bunkered(this) == true) && (random(100) < 15))) {
this.actionTarget = 9999;
this.actionTargetRange = 9999;
this.actionCpt = 0;
while (this.actionCpt < _root.enemyCpt) {
if (_root.gamePanelMC["enemy" + this.actionCpt].health > 0) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < this.actionTargetRange) {
if (_root.gamePanelMC["enemy" + this.actionCpt].visiblez > 0) {
if (_root.los(this._x, _root.gamePanelMC["enemy" + this.actionCpt]._x, this._y, _root.gamePanelMC["enemy" + this.actionCpt]._y)) {
this.actionTarget = this.actionCpt;
this.actionTargetRange = _root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]);
}
}
}
}
this.actionCpt++;
}
if (this.actionTarget != 9999) {
this.radians = 0;
this.degrees = 0;
this.radians = Math.atan2(_root.gamePanelMC["enemy" + this.actionTarget]._y - this._y, _root.gamePanelMC["enemy" + this.actionTarget]._x - this._x);
this.degrees = (this.radians * 180) / Math.PI;
this._rotation = Math.round(this.degrees);
if (((this.frag == 1) && (random(100) < 90)) || (this.frag == 0)) {
if (this.weapon == 4) {
if (_root.distanceCheck(this, _root.gamePanelMC["enemy" + this.actionCpt]) < 250) {
this.gotoAndPlay(2);
} else if (random(100) > this.experience) {
this.gotoAndPlay(2);
}
} else {
this.gotoAndPlay(2);
}
} else if (_root.bunkered(this) == false) {
trace("this frag = " + this.frag);
duplicateMovieClip (_root.gamePanelMC.usfrag, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt].dad = this;
_root.gamePanelMC["deco" + _root.decoCpt]._x = this._x;
_root.gamePanelMC["deco" + _root.decoCpt]._y = this._y;
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = this._rotation;
_root.decoCpt++;
this.actionTimer = 200 - this.experience;
duplicateMovieClip (_root.gamePanelMC.shell, "deco" + (_root.decoCpt + _root.garbageCpt), (_root.decoCpt + 10000) + _root.garbageCpt);
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._x = this._x;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._y = this._y;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)]._rotation = this.rotation + 90;
_root.gamePanelMC["deco" + (_root.decoCpt + _root.garbageCpt)].gotoAndStop(3);
_root.garbageCpt++;
if (_root.garbageCpt > 10000) {
_root.garbageCpt = 0;
}
}
}
} else {
trace("bunker empeche la vue!!");
}
this.actionTimer = (random(200) + 10) - this.experience;
}
} else {
this.actionTimer--;
if (this.actionTimer > 100) {
this.actionTimer = 100;
}
}
}
} else if (this.health < 1) {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
} else if (random(1000) < 1) {
shot = new Sound(this);
shot.attachSound("down" + (random(23) + 1));
shot.start();
}
}
}
}
Instance of Symbol 921 MovieClip "burningtree" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "burned";
this.typez = "tree";
if (this._name != "burningtree") {
this.burntime = 60 + random(400);
squish2 = new Sound(this);
squish2.attachSound("fireburning");
squish2.start(0, 999);
this.life = 500;
} else {
this.stop();
this.fiya.stop();
}
}
Instance of Symbol 923 MovieClip "deadburned" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 10 + random(10);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100) - 50;
this.life = 500;
this.flamable = 1;
}
onClipEvent (enterFrame) {
if (this.velocity > 0) {
x = Math.sin((this._rotation - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this._rotation - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
} else {
this._xscale = this._xscale - 10;
this._yscale = this._yscale - 10;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this.innershell._rotation = this.innershell._rotation + this.innershellrotation;
}
}
Instance of Symbol 925 MovieClip "sup2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 927 MovieClip "sup1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup1") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 929 MovieClip "sup3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup3") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 931 MovieClip "sup5" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup5") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 933 MovieClip "sup4" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup4") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 935 MovieClip "sup7" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup7") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 937 MovieClip "sup8" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup8") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 939 MovieClip "sup9" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup9") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 941 MovieClip "sup11" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup11") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 943 MovieClip "sup10" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup10") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 945 MovieClip "sup12" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup12") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 947 MovieClip "sup13" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup13") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 949 MovieClip "sup14" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup14") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 951 MovieClip "sup6" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "sup6") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 954 MovieClip "bunkermc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.flamable = 0;
this.typez = "bunker";
if (this._name != "bunkermc") {
tempcpt = 0;
while (tempcpt <= _root.decoCpt) {
if (_root.gamePanelMC["deco" + tempcpt].hitTest(this, true)) {
removeMovieClip(_root.gamePanelMC["deco" + tempcpt]);
}
tempcpt++;
}
}
}
Instance of Symbol 956 MovieClip "cratemc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "cratemc";
this.typez = "tree";
this.flamable = 1;
}
Instance of Symbol 962 MovieClip "woodfence" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.template = "woodfence";
this.typez = "deco";
this.flamable = 1;
}
Instance of Symbol 968 MovieClip "radarmc" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.typez = "radarz";
if (this._name == "radarmc") {
this.scoopmc.stop();
}
this.radaring = 1;
}
Instance of Symbol 970 MovieClip "chunk1" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "chunk1") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 972 MovieClip "chunk2" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "chunk2") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Instance of Symbol 974 MovieClip "chunk3" in Symbol 975 MovieClip Frame 1
onClipEvent (load) {
this.velocity = 20 + random(20);
this.mid = this.velocity / 2;
this.speed = random(10) + 1;
this.lift = random(10) + 5;
this.temp = 0;
this.vectorial = random(360);
this._rotation = this._rotation + (random(90) - 45);
this.innershellrotation = random(100);
this.life = 500;
}
onClipEvent (enterFrame) {
if (this._name != "chunk3") {
this.life--;
if (this.life < 100) {
this._alpha = this.life;
if (this.life == 0) {
removeMovieClip(this);
}
}
}
if (this.velocity > 0) {
x = Math.sin((this.vectorial - 90) * (Math.PI/180)) * speed;
y = (Math.cos((this.vectorial - 90) * (Math.PI/180)) * speed) * -1;
if (!_root.move.hitTest(this._x + x, this._y + y, true)) {
this._x = this._x - x;
this._y = this._y - y;
}
if (this.velocity > this.mid) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
} else {
this._xscale = this._xscale - 3;
this._yscale = this._yscale - 3;
}
if (this.velocity < 10) {
this.speed / 2;
}
this.velocity--;
this._rotation = this._rotation + this.innershellrotation;
}
}
Symbol 1287 MovieClip Frame 1
stop();
Symbol 1290 MovieClip Frame 1
Symbol 1290 MovieClip Frame 5
if (_root.pausez == 0) {
if (_root.airsup < 1) {
if (_root.wave > 10) {
if (_root.playerSquadHuge()) {
_root.germdice = random(5) + 1;
if (_root.germdice == 1) {
shot = new Sound(this);
shot.attachSound("fararty");
shot.start();
_root.germanArtyStrike = random(4) + 1;
_root.germanArtyDelay = random(5) + 2;
} else if (_root.germdice == 2) {
shot = new Sound(this);
shot.attachSound("alarm");
shot.start();
_root.germstraff = 0;
_root.germbomb = 1;
_root.germpara = 0;
_root.germanPlaneDelay = random(15) + 10;
if (_root.playerRadarDetected()) {
_root.germanPlaneDelay = _root.germanPlaneDelay + random(30);
}
} else if (_root.germdice == 3) {
shot = new Sound(this);
shot.attachSound("fararty");
shot.start();
_root.germanSmokeStrike = random(4) + 1;
_root.germanSmokeDelay = random(5) + 2;
} else if (_root.germdice == 4) {
shot = new Sound(this);
shot.attachSound("alarm");
shot.start();
_root.germstraff = 1;
_root.germbomb = 0;
_root.germpara = 0;
_root.germanPlaneDelay = random(15) + 10;
if (_root.playerRadarDetected()) {
_root.germanPlaneDelay = _root.germanPlaneDelay + random(30);
}
} else if (_root.germdice >= 5) {
shot = new Sound(this);
shot.attachSound("alarm");
shot.start();
_root.germstraff = 0;
_root.germbomb = 0;
_root.germpara = random(_root.wave / 10) + 3;
_root.germanPlaneDelay = random(15) + 10;
if (_root.playerRadarDetected()) {
_root.germanPlaneDelay = _root.germanPlaneDelay + random(30);
}
}
}
}
_root.airsup--;
}
if (_root.germanArtyDelay > 0) {
_root.germanArtyDelay--;
} else if ((_root.germanArtyDelay == 0) && (_root.germanArtyStrike > 0)) {
if (random(100) < 40) {
duplicateMovieClip (_root.gamePanelMC.bigexplosion, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(400);
if (_root.playerSquadUp()) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(300);
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(300) + 300;
}
_root.germanArtyStrike--;
_root.decoCpt++;
}
}
if (_root.germanSmokeDelay > 0) {
_root.germanSmokeDelay--;
} else if ((_root.germanSmokeDelay == 0) && (_root.germanSmokeStrike > 0)) {
if (random(100) < 40) {
duplicateMovieClip (_root.gamePanelMC.smokeExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(400);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(300) + 300;
_root.germanSmokeStrike--;
_root.decoCpt++;
}
}
if (_root.germanPlaneDelay > 0) {
_root.germanPlaneDelay--;
} else if ((_root.germanPlaneDelay == 0) && (((_root.germbomb > 0) || (_root.germstraff > 0)) || (_root.germpara > 0))) {
_root.plane2.gotoAndPlay(2);
_root.germanPlaneDelay = -1;
}
}
Symbol 1290 MovieClip Frame 10
if (_root.pausez == 0) {
if (random(100) < 1) {
_root.msg(_root.tipStorm());
}
}
Symbol 1290 MovieClip Frame 14
if (_root.pausez == 0) {
if (random(300) < (1 + _root.mnb2.data.medal15)) {
duplicateMovieClip (_root.gamePanelMC.cratemc, "deco" + _root.decoCpt, _root.decoCpt + 120000);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(400);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(600) + 1;
_root.decoCpt++;
}
}
Symbol 1290 MovieClip Frame 20
if (_root.pausez == 0) {
_root.medalcheck();
}
if (_root.pausez == 0) {
_root.timer++;
_root.timer2++;
if (_root.timer >= 30) {
_root.bossTimer++;
if (_root.wave < 5) {
_root.timer = 0;
if (_root.gametypez != 5) {
_root.tactical = _root.tactical + 2;
}
_root.enemyWave();
} else {
_root.timer = 0;
if (_root.gametypez != 5) {
_root.tactical++;
}
_root.enemyWave();
}
_root.timer = _root.timer - random(_root.wave);
if (random(100) < 1) {
_root.msg("tip: This looks like the right time to mount an offencive.");
_root.timer = _root.timer - random(100);
}
}
if (_root.arty > 0) {
if (random(100) < 40) {
duplicateMovieClip (_root.gamePanelMC.bigexplosion, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = random(400);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(300);
_root.stats.germanArty++;
_root.arty--;
_root.decoCpt++;
}
}
if (_root.smoke > 0) {
if (random(100) < 40) {
duplicateMovieClip (_root.gamePanelMC.smokeExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = _root.smokex;
_root.gamePanelMC["deco" + _root.decoCpt]._y = _root.smokey;
_root.smoke--;
_root.decoCpt++;
}
}
if ((random(1000) < 1) && (_root.wave > 30)) {
this.toune = new Sound(this);
this.toune.attachSound("stinger" + (random(3) + 1));
this.toune.start();
_root.bossTimer = 0;
_root.tactical = _root.tactical + 5;
_root.bossdice = random(8) + 1;
_root.bosstemp = 0;
if (_root.bossdice == 1) {
_root.bosstemp = 15;
while (_root.bosstemp > 0) {
duplicateMovieClip (_root.gamePanelMC.enemyGrunt, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp--;
}
} else if (_root.bossdice == 2) {
_root.bosstemp = 5;
while (_root.bosstemp > 0) {
duplicateMovieClip (_root.gamePanelMC.enemyShrek, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp--;
}
_root.bosstemp = 5;
while (_root.bosstemp > 0) {
duplicateMovieClip (_root.gamePanelMC.enemyFlamer, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp--;
}
} else if (_root.bossdice == 3) {
duplicateMovieClip (_root.gamePanelMC.panther, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp = 8;
while (_root.bosstemp > 0) {
duplicateMovieClip (_root.gamePanelMC.enemyGrenadier, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp--;
}
} else if (_root.bossdice == 4) {
_root.bosstemp = 8;
while (_root.bosstemp > 0) {
duplicateMovieClip (_root.gamePanelMC.SS, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp--;
}
} else if (_root.bossdice == 5) {
_root.bosstemp = 15;
while (_root.bosstemp > 0) {
duplicateMovieClip (_root.gamePanelMC.enemyGruntSniper, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp--;
}
} else if (_root.bossdice == 6) {
_root.bosstemp = 3;
while (_root.bosstemp > 0) {
duplicateMovieClip (_root.gamePanelMC.germjeep, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
_root.bosstemp--;
}
duplicateMovieClip (_root.gamePanelMC.panther, "enemy" + _root.enemyCpt, _root.enemyCpt + 90000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(10);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
} else if (_root.bossdice == 7) {
_root.germanArtyDelay = 5;
_root.germanArtyStrike = random(10) + 10;
} else if (_root.bossdice == 8) {
_root.germpara = 15;
_root.germstrafe = 0;
_root.germbomb = 0;
_root.plane2.gotoAndPlay(2);
}
}
}
Symbol 1291 MovieClip Frame 1
stop();
Symbol 1291 MovieClip Frame 2
this.rankmc.gotoAndStop(this.rankz);
Symbol 1291 MovieClip Frame 35
this._x = -500;
this._y = -500;
Symbol 1316 MovieClip Frame 1
stop();
Symbol 1316 MovieClip Frame 11
_root.gotoAndStop("gameover");
Symbol 1335 MovieClip Frame 1
stop();
Instance of Symbol 954 MovieClip in Symbol 1335 MovieClip Frame 15
on (rollOver) {
_root.msg("Order your engineer to build a bunker. Cost 10 tactical points.");
}
on (rollOut) {
}
on (release) {
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if (_root.tactical >= 2) {
_root.engyCue = 1;
_root.msg("select the emplacement of your trench.");
_root.mousePointer.gotoAndStop(2);
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
_root.msg("You must have an engineer in your squad.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1339 Button
on (rollOver) {
_root.msg("This is your tactical point bank. Use it to improve your troops and call support.");
}
Symbol 1347 MovieClip Frame 451
_root.mnb2.data.gameplayed++;
stop();
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1354 MovieClip Frame 1
stop();
Symbol 1354 MovieClip Frame 2
plane = new Sound(this);
plane.attachSound("plane" + (random(2) + 1));
plane.start();
Symbol 1354 MovieClip Frame 3
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 300;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 4
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 280;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 5
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 260;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 6
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 240;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 7
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 220;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 8
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 200;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 9
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 180;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 10
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 160;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 11
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 140;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 12
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 120;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 13
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 100;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 14
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 80;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 15
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 60;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 16
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 40;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 17
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 20;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 18
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 0;
_root.decoCpt++;
}
Symbol 1354 MovieClip Frame 19
if (_root.straff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
_root.gamePanelMC["deco" + _root.decoCpt]._y = 0;
_root.decoCpt++;
_root.straff = 0;
}
Symbol 1354 MovieClip Frame 40
if (_root.bomb > 0) {
duplicateMovieClip (_root.gamePanelMC.bombmc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(261);
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(380);
_root.decoCpt++;
_root.bomb = 0;
}
Symbol 1354 MovieClip Frame 50
if (_root.paradrop > 0) {
i = 0;
while (i < _root.paradrop) {
duplicateMovieClip (_root.gamePanelMC.playerGruntPara, "grunt" + _root.playerCpt, _root.playerCpt + 130000);
_root.gamePanelMC["grunt" + _root.playerCpt]._x = random(401);
_root.gamePanelMC["grunt" + _root.playerCpt]._y = random(600);
_root.gamePanelMC["grunt" + _root.playerCpt].gotoAndPlay("drop");
_root.gamePanelMC["grunt" + _root.playerCpt]._rotation = random(360);
_root.playerCpt++;
if (_root.playerCpt > 100) {
_root.playerCpt = 0;
}
i++;
}
_root.paradrop = 0;
}
_root.mnb2.data.airstrike++;
Symbol 1355 MovieClip Frame 1
this.upz = 0;
stop();
Symbol 1355 MovieClip Frame 2
if (_root.playerSquadUp()) {
this.upz = 1;
} else {
this.upz = 0;
}
plane = new Sound(this);
plane.attachSound("plane" + (random(2) + 1));
plane.start();
Symbol 1355 MovieClip Frame 3
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 0;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 300;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 4
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 20;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 320;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 5
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 40;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 340;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 6
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 60;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 360;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 7
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 80;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 380;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 8
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 100;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 400;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 9
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 120;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 420;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 10
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 140;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 440;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 11
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 160;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 460;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 12
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 180;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 480;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 13
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 200;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 500;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 14
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 220;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 520;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 15
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 240;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 540;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 16
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 260;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 560;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 17
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 280;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 580;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 18
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 300;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 600;
}
_root.decoCpt++;
}
Symbol 1355 MovieClip Frame 19
if (_root.germstraff > 0) {
duplicateMovieClip (_root.gamePanelMC.smallExplo, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 320;
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = 600;
}
_root.decoCpt++;
_root.germstraff = 0;
_root.stats.germanPlane = _root.stats.germanPlane + (17 + random(5));
}
Symbol 1355 MovieClip Frame 40
if (_root.germbomb > 0) {
duplicateMovieClip (_root.gamePanelMC.bombmc, "deco" + _root.decoCpt, _root.decoCpt);
_root.gamePanelMC["deco" + _root.decoCpt]._x = 20 + random(361);
if (this.upz == 1) {
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(300);
} else {
_root.gamePanelMC["deco" + _root.decoCpt]._y = random(300) + 300;
}
_root.gamePanelMC["deco" + _root.decoCpt]._rotation = 180;
_root.decoCpt++;
_root.germbomb = 0;
_root.stats.germanBomb++;
}
Symbol 1355 MovieClip Frame 50
if (_root.germpara > 0) {
i = 0;
while (i < _root.germpara) {
duplicateMovieClip (_root.gamePanelMC.enemyParaGrunt, "enemy" + _root.enemyCpt, _root.enemyCpt + 120000);
_root.gamePanelMC["enemy" + _root.enemyCpt]._x = random(401);
_root.gamePanelMC["enemy" + _root.enemyCpt]._y = random(500);
_root.gamePanelMC["enemy" + _root.enemyCpt]._rotation = random(360);
_root.gamePanelMC["enemy" + _root.enemyCpt].actionTimer = 999;
_root.gamePanelMC["enemy" + _root.enemyCpt].gotoAndPlay("dropz");
_root.enemyCpt++;
if (_root.enemyCpt > 100) {
_root.maxWave();
}
i++;
}
_root.germpara = 0;
}
_root.germstraff = 0;
_root.germpara = 0;
_root.germbomb = 0;
Symbol 1361 MovieClip Frame 1
stop();
Symbol 1365 MovieClip Frame 1
stop();
Symbol 1365 MovieClip Frame 2
Symbol 1368 MovieClip Frame 1
stop();
Symbol 1370 MovieClip Frame 1
stop();
Symbol 1370 MovieClip Frame 2
trace("shaking");
_root.shakerdice = random(4) + 1;
if (_root.shakerdice == 1) {
trace("x+");
_root.gamePanelMC._x = -this.foo;
} else if (_root.shakerdice == 2) {
trace("x-");
_root.gamePanelMC._x = this.foo;
} else if (_root.shakerdice == 3) {
_root.gamePanelMC._y = this.foo;
trace("y+");
} else if (_root.shakerdice == 4) {
_root.gamePanelMC._y = -this.foo;
trace("y-");
}
Symbol 1370 MovieClip Frame 3
_root.gamePanelMC._x = 0;
_root.gamePanelMC._y = 0;
Symbol 1370 MovieClip Frame 4
_root.shakerdice = random(4) + 1;
if (_root.shakerdice == 1) {
trace("x+");
_root.gamePanelMC._x = -this.foo;
} else if (_root.shakerdice == 2) {
trace("x-");
_root.gamePanelMC._x = this.foo;
} else if (_root.shakerdice == 3) {
_root.gamePanelMC._y = this.foo;
trace("y+");
} else if (_root.shakerdice == 4) {
_root.gamePanelMC._y = -this.foo;
trace("y-");
}
Symbol 1370 MovieClip Frame 5
_root.gamePanelMC._x = 0;
_root.gamePanelMC._y = 0;
Symbol 1370 MovieClip Frame 6
_root.shakerdice = random(4) + 1;
if (_root.shakerdice == 1) {
trace("x+");
_root.gamePanelMC._x = -this.foo;
} else if (_root.shakerdice == 2) {
trace("x-");
_root.gamePanelMC._x = this.foo;
} else if (_root.shakerdice == 3) {
_root.gamePanelMC._y = this.foo;
trace("y+");
} else if (_root.shakerdice == 4) {
_root.gamePanelMC._y = -this.foo;
trace("y-");
}
Symbol 1370 MovieClip Frame 7
_root.gamePanelMC._x = 0;
_root.gamePanelMC._y = 0;
Symbol 1370 MovieClip Frame 8
_root.shakerdice = random(4) + 1;
if (_root.shakerdice == 1) {
trace("x+");
_root.gamePanelMC._x = -this.foo;
} else if (_root.shakerdice == 2) {
trace("x-");
_root.gamePanelMC._x = this.foo;
} else if (_root.shakerdice == 3) {
_root.gamePanelMC._y = this.foo;
trace("y+");
} else if (_root.shakerdice == 4) {
_root.gamePanelMC._y = -this.foo;
trace("y-");
}
Symbol 1370 MovieClip Frame 9
_root.gamePanelMC._x = 0;
_root.gamePanelMC._y = 0;
Symbol 1375 Button
on (rollOver) {
_root.msg("Order a soldier to join the fight. Cost 3 tactical points.");
}
on (release) {
if (_root.tactical >= 3) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
_root.tactical = _root.tactical - 3;
}
if (random(100) < _root.mnb2.data.medal14) {
_root.spawnGrunt(6);
} else {
_root.spawnGrunt(1);
}
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1380 Button
on (rollOver) {
_root.msg("Upgrade soldier's weapon to M1 Garand. Cost 2 tactical points.");
}
on (release) {
if (_root.tactical >= 2) {
_root.tactical = _root.tactical - 2;
_root.weaponupgrade = 2;
shot = new Sound(this);
shot.attachSound("shrink");
shot.start();
_root.mousePointer.gotoAndStop(6);
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1385 Button
on (rollOver) {
_root.msg("Upgrade soldier's weapon to Tommy gun. Cost 3 tactical points.");
}
on (release) {
if (_root.tactical >= 3) {
_root.tactical = _root.tactical - 3;
_root.weaponupgrade = 3;
shot = new Sound(this);
shot.attachSound("shrink");
shot.start();
_root.mousePointer.gotoAndStop(7);
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1390 Button
on (rollOver) {
_root.msg("Upgrade soldier's weapon to Shotgun. Cost 1 tactical points.");
}
on (release) {
if (_root.tactical >= 1) {
_root.tactical = _root.tactical - 1;
_root.weaponupgrade = 4;
shot = new Sound(this);
shot.attachSound("shrink");
shot.start();
_root.mousePointer.gotoAndStop(8);
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1391 Button
on (rollOver) {
_root.msg("Upgrade soldier's weapon to BAR machine gun. Cost 6 tactical points.");
}
on (release) {
if (_root.tactical >= 6) {
_root.tactical = _root.tactical - 6;
_root.weaponupgrade = 5;
shot = new Sound(this);
shot.attachSound("shrink");
shot.start();
_root.mousePointer.gotoAndStop(9);
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1393 Button
on (rollOver) {
_root.msg("Order a Jeep to join the fight. Cost 10 tactical points.");
}
on (release) {
if (_root.tactical >= 10) {
_root.tactical = _root.tactical - 10;
_root.spawnGrunt(2);
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1397 Button
on (rollOver) {
_root.msg("Order an officer to join the fight. Cost 3 tactical points.");
}
on (release) {
if (_root.tactical >= 3) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 3;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(3);
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1401 Button
on (rollOver) {
_root.msg("Order a corpsman to join the fight. Cost 3 tactical points.");
}
on (release) {
if (_root.tactical >= 3) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 3;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(4);
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1404 Button
on (rollOver) {
_root.msg("Order an engineer to join the fight. Cost 4 tactical points.");
}
on (release) {
if (_root.tactical >= 4) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 4;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(5);
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1409 Button
on (rollOver) {
_root.msg("Order a Spec Ops to join the fight. Cost 5 tactical points.");
}
on (release) {
if (_root.tactical >= 5) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 5;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(6);
_root.mnb2.data.soldierdeployed++;
_root.mnb2.data.highspeed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1414 Button
on (rollOver) {
_root.msg("Call a bomb drop, cost 3 tactical points. Need OFFICER and SIG.");
}
on (release) {
if (_root.tactical >= 3) {
this.sigsDetect = 0;
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 2) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if ((_root.straff < 1) && (_root.bomb < 1)) {
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 6) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndPlay("comms");
_root.gamePanelMC["grunt" + this.actionCpt].straff = 0;
_root.gamePanelMC["grunt" + this.actionCpt].bomb = 1;
_root.gamePanelMC["grunt" + this.actionCpt].arty = 0;
_root.gamePanelMC["grunt" + this.actionCpt].airsup = 0;
_root.gamePanelMC["grunt" + this.actionCpt].sitrep = 0;
_root.gamePanelMC["grunt" + this.actionCpt].paradrop = 0;
this.actionCpt = 999999 /* 0x0F423F */;
} else {
this.actionCpt++;
}
}
if (this.actionCpt != 999999) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any signalers in your squad. Get one first!!");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("There is already a fire mission underway, retry later.");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any officers in your squad. Get one first!!");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1418 Button
on (rollOver) {
_root.msg("Call an arty strike, cost 3 tactical points. Need a SIGNALER.");
}
on (release) {
if (_root.tactical >= 3) {
this.sigsDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 6) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
_root.gamePanelMC["grunt" + this.actionCpt].straff = 0;
_root.gamePanelMC["grunt" + this.actionCpt].bomb = 0;
_root.gamePanelMC["grunt" + this.actionCpt].arty = random(8) + 1;
if (_root.mnb2.data.medal22 > 0) {
_root.gamePanelMC["grunt" + this.actionCpt].arty = _root.gamePanelMC["grunt" + this.actionCpt].arty + 4;
}
_root.gamePanelMC["grunt" + this.actionCpt].airsup = 0;
_root.gamePanelMC["grunt" + this.actionCpt].sitrep = 0;
_root.gamePanelMC["grunt" + this.actionCpt].sitrep = 0;
_root.gamePanelMC["grunt" + this.actionCpt].paradrop = 0;
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndPlay("comms");
this.actionCpt = 999999 /* 0x0F423F */;
} else {
this.actionCpt++;
}
}
if (this.actionCpt != 999999) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any signalers in your squad. Get one first!!");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1420 Button
on (rollOver) {
_root.msg("Order a signaler to join the fight. Cost 3 tactical points.");
}
on (release) {
if (_root.tactical >= 3) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 3;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(7);
_root.mnb2.data.soldierdeployed++;
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1424 Button
on (rollOver) {
_root.msg("Order a sniper to join the battle. Cost 6 tactical points.");
}
on (release) {
if (_root.tactical >= 6) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 6;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(8);
_root.mnb2.data.soldierdeployed++;
_root.mnb2.data.highspeed++;
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1427 Button
on (rollOver) {
_root.msg("Order your engineer to dig a trench. Cost 2 tactical points.");
}
on (release) {
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if (_root.tactical >= 2) {
_root.engyCue = 1;
_root.msg("select the emplacement of your trench.");
_root.mousePointer.gotoAndStop(2);
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
_root.msg("You must have an engineer in your squad.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1429 Button
on (rollOver) {
_root.msg("Order your engineer to deploy some wire. Cost 1 tactical point.");
}
on (release) {
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if (_root.tactical >= 1) {
_root.engyCue = 2;
_root.msg("select the emplacement of your wire.");
_root.mousePointer.gotoAndStop(3);
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
_root.msg("You must have an engineer in your squad.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1432 Button
on (rollOver) {
_root.msg("Order your engineer to deploy mines. Cost 1 tactical point.");
}
on (release) {
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if (_root.tactical >= 1) {
_root.engyCue = 3;
_root.msg("select the emplacement of your mines.");
_root.mousePointer.gotoAndStop(5);
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
_root.msg("You must have an engineer in your squad.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1434 Button
on (rollOver) {
_root.msg("Upgrade soldier with frag grenades. Cost 1 tactical points.");
}
on (release) {
if (_root.tactical >= 1) {
_root.tactical = _root.tactical - 1;
_root.fragupgrade = 1;
shot = new Sound(this);
shot.attachSound("shrink");
shot.start();
_root.mousePointer.gotoAndStop(10);
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1439 Button
on (rollOver) {
_root.msg("Order a Flame thrower to join the fight. Cost 3 tactical points.");
}
on (release) {
if (_root.tactical >= 3) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 3;
}
_root.spawnGrunt(9);
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1441 Button
on (rollOver) {
_root.msg("Upgrade a soldier with Ranger training and equipement. Cost 5 tactical points.");
}
on (release) {
if (_root.tactical >= 5) {
_root.tactical = _root.tactical - 5;
_root.rangerupgrade = 1;
_root.mousePointer.gotoAndStop(6);
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1443 Button
on (rollOver) {
_root.msg("Heroism, bring instantly the soldier to 200 hit points, must be corporal or higher rank. 4 tactical points.");
}
on (release) {
if (_root.tactical >= 4) {
_root.tactical = _root.tactical - 4;
_root.heroupgrade = 1;
_root.mousePointer.gotoAndStop(11);
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1445 Button
on (rollOver) {
_root.msg("Air Superiority, Radio man will call allied planes to clear the sky for 60 sec. You can cancel an enemy airstrike with this. Cost 1 tactical point. Need OFFICER and SIG.");
}
on (release) {
if (_root.tactical >= 1) {
this.sigsDetect = 0;
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 2) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if ((_root.straff < 1) && (_root.bomb < 1)) {
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 6) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndPlay("comms");
_root.gamePanelMC["grunt" + this.actionCpt].straff = 0;
_root.gamePanelMC["grunt" + this.actionCpt].bomb = 0;
_root.gamePanelMC["grunt" + this.actionCpt].arty = 0;
_root.gamePanelMC["grunt" + this.actionCpt].airsup = 1;
_root.gamePanelMC["grunt" + this.actionCpt].paradrop = 0;
this.actionCpt = 999999 /* 0x0F423F */;
} else {
this.actionCpt++;
}
}
if (this.actionCpt != 999999) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any signalers in your squad. Get one first!!");
}
} else {
_root.msg("There is already an air mission underway, retry later.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any officers in your squad. Get one first!!");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1447 Button
on (rollOver) {
_root.msg("Order your engineer to deploy an antena to speed up radio communication. Cost 1 tactical points");
}
on (release) {
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if (_root.tactical >= 1) {
_root.engyCue = 4;
_root.msg("select the emplacement of your antena.");
_root.mousePointer.gotoAndStop(12);
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
_root.msg("You must have an engineer in your squad.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1449 Button
on (rollOver) {
_root.msg("Order your engineer to deploy a radar station to detect airplanes faster. Cost 3 tactical points");
}
on (release) {
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if (_root.tactical >= 3) {
_root.engyCue = 5;
_root.msg("select the emplacement of your radar.");
_root.mousePointer.gotoAndStop(13);
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
_root.msg("You must have an engineer in your squad.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1451 Button
on (rollOver) {
_root.msg("Order a French resistance soldier to join the fight. Cost 1 tactical point.");
}
on (release) {
if (_root.tactical >= 1) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 1;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
if (random(100) < _root.mnb2.data.medal14) {
_root.spawnGrunt(6);
} else {
_root.spawnGrunt(10);
}
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1453 Button
on (rollOver) {
_root.msg("Order a tank to join the fight. Cost 20 tactical points.");
}
on (release) {
if (_root.tactical >= 20) {
_root.tactical = _root.tactical - 20;
_root.spawnGrunt(11);
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!! I know it`s expensive but hey, it does kick serious arses though.");
}
}
Symbol 1455 Button
on (rollOver) {
_root.msg("Call a smoke screen, cost 1 tactical points. Need a SIGNALER.");
}
on (release) {
if (_root.tactical >= 1) {
this.sigsDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 6) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
_root.mousePointer.gotoAndStop(14);
_root.smokeCpt = this.actionCpt;
_root.smokeCue = 1;
this.actionCpt = 999999 /* 0x0F423F */;
} else {
this.actionCpt++;
}
}
if (this.actionCpt != 999999) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any signalers in your squad. Get one first!!");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1457 Button
on (rollOver) {
_root.msg("Order a Bazooka to join the fight. Cost 4 tactical points.");
}
on (release) {
if (_root.tactical >= 4) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 4;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(12);
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1461 Button
on (rollOver) {
_root.msg("Order your engineer to build a Bunker. Cost 5 tactical points.");
}
on (release) {
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 4) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if (_root.tactical >= 5) {
_root.engyCue = 6;
_root.msg("select the emplacement of your Bunker.");
_root.mousePointer.gotoAndStop(15);
} else {
_root.msg("You don't have enough tactical points!!");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
_root.msg("You must have an engineer in your squad.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
}
Symbol 1463 Button
on (rollOver) {
_root.msg("Order a gunner to join the fight. Cost 4 tactical points.");
}
on (release) {
if (_root.tactical >= 4) {
if ((_root.mnb2.data.medal1 == 1) && (random(100) == 1)) {
_root.msg("-==Looks like you're not paying for that one thanks to your medals!!!!==-");
shot = new Sound(this);
shot.attachSound("horn");
shot.start();
} else {
_root.tactical = _root.tactical - 4;
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
}
_root.spawnGrunt(13);
shot = new Sound(this);
shot.attachSound("tambour");
shot.start();
_root.mnb2.data.soldierdeployed++;
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1465 Button
on (rollOver) {
_root.msg("Sitrep. Let your boss know how things are. Cost 1 point, need a signaler. 10% chances to get a 5 tactical points bonus.");
}
on (release) {
if (_root.tactical >= 1) {
this.sigsDetect = 0;
this.coneDetect = 0;
this.actionCpt = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 6) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndPlay("comms");
_root.gamePanelMC["grunt" + this.actionCpt].straff = 0;
_root.gamePanelMC["grunt" + this.actionCpt].bomb = 0;
_root.gamePanelMC["grunt" + this.actionCpt].arty = 0;
_root.gamePanelMC["grunt" + this.actionCpt].airsup = 0;
_root.gamePanelMC["grunt" + this.actionCpt].sitrep = 1;
this.actionCpt = 999999 /* 0x0F423F */;
} else {
this.actionCpt++;
}
}
if (this.actionCpt != 999999) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any signalers in your squad. Get one first!!");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1467 Button
on (rollOver) {
_root.msg("Call 4 airborn soldiers to drop on your location. Need a signaller, cost 12 points.");
}
on (release) {
if (_root.tactical >= 12) {
this.sigsDetect = 0;
this.coneDetect = 0;
this.actionCpt = 0;
if ((_root.straff < 1) && (_root.bomb < 1)) {
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 6) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndPlay("comms");
_root.gamePanelMC["grunt" + this.actionCpt].straff = 0;
_root.gamePanelMC["grunt" + this.actionCpt].bomb = 0;
_root.gamePanelMC["grunt" + this.actionCpt].arty = 0;
_root.gamePanelMC["grunt" + this.actionCpt].airsup = 0;
_root.gamePanelMC["grunt" + this.actionCpt].paradrop = 1;
this.actionCpt = 999999 /* 0x0F423F */;
} else {
this.actionCpt++;
}
}
if (this.actionCpt != 999999) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any signalers in your squad. Get one first!!");
}
} else {
_root.msg("There is already an air mission underway, retry later.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1472 Button
on (rollOver) {
_root.msg("Call arial close support, cost 1 tactical point. Need OFFICER and SIG.");
}
on (release) {
if (_root.tactical >= 1) {
this.sigsDetect = 0;
this.coneDetect = 0;
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 2) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
this.coneDetect = 1;
}
this.actionCpt++;
}
if (this.coneDetect == 1) {
if ((_root.straff < 1) && (_root.bomb < 1)) {
this.actionCpt = 0;
while (this.actionCpt < _root.playerCpt) {
if ((_root.gamePanelMC["grunt" + this.actionCpt].spec == 6) && (_root.gamePanelMC["grunt" + this.actionCpt].health > 10)) {
_root.gamePanelMC["grunt" + this.actionCpt].gotoAndPlay("comms");
_root.gamePanelMC["grunt" + this.actionCpt].straff = 1;
_root.gamePanelMC["grunt" + this.actionCpt].bomb = 0;
_root.gamePanelMC["grunt" + this.actionCpt].arty = 0;
_root.gamePanelMC["grunt" + this.actionCpt].airsup = 0;
_root.gamePanelMC["grunt" + this.actionCpt].sitrep = 0;
_root.gamePanelMC["grunt" + this.actionCpt].paradrop = 0;
this.actionCpt = 999999 /* 0x0F423F */;
} else {
this.actionCpt++;
}
}
if (this.actionCpt != 999999) {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any signalers in your squad. Get one first!!");
}
} else {
_root.msg("There is already a fire mission underway, retry later.");
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have any officers in your squad. Get one first!!");
}
} else {
shot = new Sound(this);
shot.attachSound("radioswitch");
shot.start();
_root.msg("You don't have enough tactical points!!");
}
}
Symbol 1479 Button
on (release) {
_root.gameOverPanel.gotoAndStop(2);
}
Symbol 1499 Button
on (release) {
stopAllSounds();
gotoAndPlay ("menu");
}
Symbol 1506 MovieClip Frame 101
stop();
Symbol 1507 MovieClip Frame 1
stop();
Symbol 1508 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 1514 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}
Symbol 1553 MovieClip Frame 1
stop();
Symbol 1554 MovieClip Frame 1
i = 0;
while (i < 15) {
this["rankmc" + i].gotoAndStop(_root.scoretable["RANK" + i]);
i++;
}
Instance of Symbol 1553 MovieClip "rankmc0" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK0);
}
Instance of Symbol 1553 MovieClip "rankmc1" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK1);
}
Instance of Symbol 1553 MovieClip "rankmc2" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK2);
}
Instance of Symbol 1553 MovieClip "rankmc3" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK3);
}
Instance of Symbol 1553 MovieClip "rankmc4" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK4);
}
Instance of Symbol 1553 MovieClip "rankmc5" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK5);
}
Instance of Symbol 1553 MovieClip "rankmc6" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK6);
}
Instance of Symbol 1553 MovieClip "rankmc7" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK7);
}
Instance of Symbol 1553 MovieClip "rankmc8" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK8);
}
Instance of Symbol 1553 MovieClip "rankmc9" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK9);
}
Instance of Symbol 1553 MovieClip "rankmc10" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK10);
}
Instance of Symbol 1553 MovieClip "rankmc11" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK11);
}
Instance of Symbol 1553 MovieClip "rankmc12" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK12);
}
Instance of Symbol 1553 MovieClip "rankmc13" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK13);
}
Instance of Symbol 1553 MovieClip "rankmc14" in Symbol 1554 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.scoretable.RANK14);
}
Symbol 1555 Button
on (release) {
if (_root.once < 1) {
if (((_root.mnb2.data.namez != "") || (_root.mnb2.data.namez != " ")) || (_root.mnb2.data.namez != " ")) {
scoretable.filename = "scoremnb3/demo.sco";
scoretable.scoresize = 15;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = _root.mnb2.data.namez;
scoretable.winscore = _root.totalscore;
scoretable.winrank = _root.mnb2.data.rank;
scoretable.loadVariables("http://www.urbanprophet.com/scoremnb3.php", "GET");
_root.once = 1;
}
}
}