Frame 1
stop();
Stage.showMenu = false;
total = _root.getBytesTotal();
this.onEnterFrame = function () {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
if (loaded == total) {
total = 0;
play();
delete this.onEnterFrame;
}
};
Frame 2
function CP(cpn, cpx, cpy, cpr, asdf, asdf2) {
pDepth = pDepth + 1;
if (pDepth >= 9900) {
pDepth = 1001;
}
newMC = _root.attachMovie(cpn, "particle" + pDepth, pDepth);
newMC._x = cpx;
newMC._y = cpy;
newMC._rotation = cpr;
newMC.asdf = asdf;
newMC.asdf2 = asdf2;
}
function CP2(cpn, cpx, cpy, cpr, asdf) {
pDepth2 = pDepth2 + 1;
if (pDepth2 >= -1001) {
pDepth2 = -2000;
}
newMC = _root.attachMovie(cpn, "particle" + pDepth2, pDepth2);
newMC._x = cpx;
newMC._y = cpy;
newMC._rotation = cpr;
newMC.asdf = asdf;
}
function playsound(sounds) {
if (_root.savedata2.data.soundON) {
_root.soundnumber = _root.soundnumber + 1;
if (_root.soundnumber >= 20500) {
_root.soundnumber = 20000;
}
asdfsound = _root.createEmptyMovieClip("sound" + soundnumber, soundnumber);
qwersound = new Sound(asdfsound);
qwersound.attachSound(sounds);
qwersound.setVolume(50);
qwersound.start(0, 0);
}
}
function playsound2(sounds) {
if (_root.savedata2.data.soundON) {
_root.soundnumber = _root.soundnumber + 1;
if (_root.soundnumber >= 20500) {
_root.soundnumber = 20000;
}
asdfsound = _root.createEmptyMovieClip("sound" + soundnumber, soundnumber);
qwersound = new Sound(asdfsound);
qwersound.attachSound(sounds);
qwersound.setVolume(100);
qwersound.start(0, 0);
}
}
function stopallmusic() {
music1.stop();
music2.stop();
music3.stop();
music4.stop();
}
function gunsound(wepnum) {
switch (wepnum) {
case 1 :
_root.playsound("pistol3.wav");
break;
case 2 :
_root.playsound("pistol3.wav");
break;
case 3 :
_root.playsound("pistol1.wav");
break;
case 4 :
_root.playsound("pistol3.wav");
break;
case 5 :
_root.playsound("pistol2.wav");
break;
case 6 :
_root.playsound("pistol0.wav");
break;
case 7 :
_root.playsound("pistol3.wav");
break;
case 8 :
_root.playsound("pistol3.wav");
break;
case 9 :
_root.playsound("pistol0.wav");
break;
case 10 :
_root.playsound("rifle6.wav");
break;
case 11 :
_root.playsound("snipe1.wav");
break;
case 12 :
_root.playsound("smg1.wav");
break;
case 13 :
_root.playsound("shotgun1.wav");
break;
case 14 :
_root.playsound("snipe2.wav");
break;
case 15 :
_root.playsound("shotgun3.wav");
break;
case 16 :
_root.playsound("snipe3.wav");
break;
case 17 :
_root.playsound("rifle2.wav");
break;
case 18 :
_root.playsound("shotgun3.wav");
break;
case 19 :
_root.playsound("silenced2.wav");
break;
case 20 :
_root.playsound("rifle6.wav");
break;
case 21 :
_root.playsound("smg3.wav");
break;
case 22 :
_root.playsound("smg4.wav");
break;
case 23 :
_root.playsound("smg1.wav");
break;
case 24 :
_root.playsound("smg2.wav");
break;
case 25 :
_root.playsound("smg3.wav");
break;
case 26 :
_root.playsound("smg4.wav");
break;
case 27 :
_root.playsound("smg1.wav");
break;
case 28 :
_root.playsound("smg2.wav");
break;
case 29 :
_root.playsound("smg3.wav");
break;
case 30 :
_root.playsound("smg4.wav");
break;
case 31 :
_root.playsound("smg1.wav");
break;
case 32 :
_root.playsound("smg2.wav");
break;
case 33 :
_root.playsound("snipe4.wav");
break;
case 34 :
_root.playsound("snipe5.wav");
break;
case 35 :
_root.playsound("snipe6.wav");
break;
case 36 :
_root.playsound("snipe1.wav");
break;
case 37 :
_root.playsound("snipe2.wav");
break;
case 38 :
_root.playsound("snipe3.wav");
break;
case 39 :
_root.playsound("snipe4.wav");
break;
case 40 :
_root.playsound("silenced1.wav");
break;
case 41 :
_root.playsound("snipe6.wav");
break;
case 42 :
_root.playsound("snipe1.wav");
break;
case 43 :
_root.playsound("snipe2.wav");
break;
case 44 :
_root.playsound("shotgun3.wav");
break;
case 45 :
_root.playsound("shotgun2.wav");
break;
case 46 :
_root.playsound("shotgun3.wav");
break;
case 47 :
_root.playsound("shotgun3.wav");
break;
case 48 :
_root.playsound("shotgun1.wav");
break;
case 49 :
_root.playsound("shotgun2.wav");
break;
case 50 :
_root.playsound("shotgun1.wav");
break;
case 51 :
_root.playsound("shotgun3.wav");
break;
case 52 :
_root.playsound("shotgun3.wav");
break;
case 53 :
_root.playsound("shotgun2.wav");
break;
case 54 :
_root.playsound("shotgun3.wav");
break;
case 55 :
_root.playsound("rifle3.wav");
break;
case 56 :
_root.playsound("rifle6.wav");
break;
case 57 :
_root.playsound("rifle1.wav");
break;
case 58 :
_root.playsound("silenced2.wav");
break;
case 59 :
_root.playsound("rifle3.wav");
break;
case 60 :
_root.playsound("rifle4.wav");
break;
case 61 :
_root.playsound("rifle5.wav");
break;
case 62 :
_root.playsound("rifle1.wav");
break;
case 63 :
_root.playsound("rifle2.wav");
break;
case 64 :
_root.playsound("rifle3.wav");
break;
case 65 :
_root.playsound("lmg.wav");
break;
case 66 :
_root.playsound("rifle5.wav");
break;
case 67 :
_root.playsound("smg3.wav");
break;
case 68 :
_root.playsound("smg4.wav");
break;
case 69 :
_root.playsound("smg1.wav");
break;
case 70 :
_root.playsound("silenced2.wav");
break;
case 71 :
_root.playsound("smg3.wav");
break;
case 72 :
_root.playsound("rifle4.wav");
break;
case 73 :
_root.playsound("rifle5.wav");
break;
case 74 :
_root.playsound("silenced2.wav");
break;
case 75 :
_root.playsound("rifle2.wav");
break;
case 76 :
_root.playsound("rifle3.wav");
break;
case 77 :
_root.playsound("snipe6.wav");
break;
case 78 :
_root.playsound("snipe1.wav");
break;
case 79 :
_root.playsound("snipe2.wav");
break;
case 80 :
_root.playsound("silenced1.wav");
break;
case 81 :
_root.playsound("snipe4.wav");
break;
case 82 :
_root.playsound("shotgun3.wav");
break;
case 83 :
_root.playsound("shotgun3.wav");
break;
case 84 :
_root.playsound("shotgun1.wav");
break;
case 85 :
_root.playsound("shotgun3.wav");
break;
case 86 :
_root.playsound("shotgun3.wav");
}
}
function dropsound() {
switch (random(3)) {
case 0 :
_root.playsound2("drop1.wav");
break;
case 1 :
_root.playsound2("drop2.wav");
break;
case 2 :
_root.playsound2("drop3.wav");
}
}
function explodesound() {
switch (random(4)) {
case 0 :
_root.playsound2("explosion1.wav");
break;
case 1 :
_root.playsound2("explosion2.wav");
break;
case 2 :
_root.playsound2("explosion3.wav");
break;
case 3 :
_root.playsound2("explosion4.wav");
}
}
function hitsound() {
switch (random(2)) {
case 0 :
_root.playsound2("hit1.wav");
break;
case 1 :
_root.playsound2("hit2.wav");
}
}
function diesound() {
switch (random(4)) {
case 0 :
_root.playsound2("die1.wav");
break;
case 1 :
_root.playsound2("die2.wav");
break;
case 2 :
_root.playsound2("die3.wav");
break;
case 3 :
_root.playsound2("die4.wav");
}
}
stop();
gotomenu = true;
intro.startanim = true;
p1depth = 10011;
p2depth = 10012;
p3depth = 10013;
p4depth = 10014;
arrow1depth = 10015;
arrow2depth = 10016;
arrow3depth = 10017;
arrow4depth = 10018;
mapfxdepth = 10019;
huddepth = 10020;
teamwindepth = 10021;
fadedepth = 10200;
mainmenudepth = 10100;
sr_depth = 10300;
pDepth = 1001;
pDepth2 = -2000;
gototest = false;
soundnumber = 20000;
musictemp2 = _root.createEmptyMovieClip("sound20602", 20602);
music2 = new Sound(musictemp2);
music2.attachSound("music222.mp3");
musictemp3 = _root.createEmptyMovieClip("sound20603", 20603);
music3 = new Sound(musictemp3);
music3.attachSound("music333.mp3");
musictemp4 = _root.createEmptyMovieClip("sound20604", 20604);
music4 = new Sound(musictemp4);
music4.attachSound("music444.mp3");
menumusic = false;
savedata2 = SharedObject.getLocal("arena2gamedata2");
if (!savedata2.data.filled) {
savedata2.data.filled = true;
savedata2.data.musicON = true;
savedata2.data.soundON = true;
savedata2.data.Q = 2;
savedata2.data.controlarray = new Array();
i = 0;
while (i < 4) {
savedata2.data.controlarray[i] = new Array();
j = 0;
while (j < 6) {
savedata2.data.controlarray[i][j] = 0;
j++;
}
i++;
}
savedata2.data.controlarray[0][0] = 38;
savedata2.data.controlarray[0][1] = 37;
savedata2.data.controlarray[0][2] = 40;
savedata2.data.controlarray[0][3] = 39;
savedata2.data.controlarray[0][4] = 90;
savedata2.data.controlarray[0][5] = 88;
savedata2.data.controlarray[1][0] = 87;
savedata2.data.controlarray[1][1] = 65;
savedata2.data.controlarray[1][2] = 83;
savedata2.data.controlarray[1][3] = 68;
savedata2.data.controlarray[1][4] = 84;
savedata2.data.controlarray[1][5] = 89;
savedata2.data.controlarray[2][0] = 111;
savedata2.data.controlarray[2][1] = 103;
savedata2.data.controlarray[2][2] = 104;
savedata2.data.controlarray[2][3] = 105;
savedata2.data.controlarray[2][4] = 106;
savedata2.data.controlarray[2][5] = 109;
savedata2.data.controlarray[3][0] = 101;
savedata2.data.controlarray[3][1] = 97;
savedata2.data.controlarray[3][2] = 98;
savedata2.data.controlarray[3][3] = 99;
savedata2.data.controlarray[3][4] = 96;
savedata2.data.controlarray[3][5] = 110;
}
savedata = SharedObject.getLocal("arena2gamedata");
if (!savedata.data.filled) {
savedata.data.filled = true;
savedata.data.mapnumber = 22;
savedata.data.gamemode = 1;
savedata.data.toggle_crates = true;
savedata.data.toggle_powerups = true;
savedata.data.customlives = 10;
savedata.data.p1name = "Player 1";
savedata.data.p1color = 15;
savedata.data.p1shirt = 3;
savedata.data.p1hat = 4;
savedata.data.p1eyes = 1;
savedata.data.p1gun = 2;
savedata.data.p1perk = 1;
savedata.data.p1ptype = 1;
savedata.data.p2name = "Player 2";
savedata.data.p2color = 4;
savedata.data.p2shirt = 4;
savedata.data.p2hat = 9;
savedata.data.p2eyes = 1;
savedata.data.p2gun = 4;
savedata.data.p2perk = 1;
savedata.data.p2ptype = 0;
savedata.data.p3name = "Player 3";
savedata.data.p3color = 18;
savedata.data.p3shirt = 5;
savedata.data.p3hat = 5;
savedata.data.p3eyes = 2;
savedata.data.p3gun = 1;
savedata.data.p3perk = 1;
savedata.data.p3ptype = 0;
savedata.data.p4name = "Player 4";
savedata.data.p4color = 9;
savedata.data.p4shirt = 15;
savedata.data.p4hat = 44;
savedata.data.p4eyes = 11;
savedata.data.p4gun = 3;
savedata.data.p4perk = 1;
savedata.data.p4ptype = 0;
savedata.data.p1team = 1;
savedata.data.p2team = 2;
savedata.data.p3team = 1;
savedata.data.p4team = 2;
savedata.data.menugunlib = 1;
savedata.data.menuchallenge = 1;
savedata.data.challenge = new Array();
i = 0;
while (i < 7) {
savedata.data.challenge[i] = new Array();
j = 0;
while (j < 2) {
savedata.data.challenge[i][j] = 0;
j++;
}
i++;
}
savedata.data.campaign = new Array();
i = 0;
while (i < 16) {
savedata.data.campaign[i] = 0;
i++;
}
savedata.data.campaign[0] = 1;
savedata.data.campaign[1] = 1;
}
Frame 3
stop();
_quality = "HIGH";
Frame 4
stop();
_quality = "HIGH";
Frame 5
stop();
_quality = "HIGH";
Frame 6
stop();
_quality = "HIGH";
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
gamewin = false;
Frame 7
stop();
_quality = "HIGH";
Frame 8
stop();
_quality = "HIGH";
Frame 9
stop();
_quality = "HIGH";
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
gamewin = false;
this.onEnterFrame = function () {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
delete this.onEnterFrame;
};
Instance of Symbol 1574 MovieClip "menup" in Frame 9
/* no clip actions */
Frame 10
function endgame() {
gamepaused = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 6;
newmc._x = -_root._x;
newmc._y = -_root._y;
}
function endgamefunction() {
gamepaused = false;
if (gototest) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 8;
newmc._x = -_root._x;
newmc._y = -_root._y;
} else if (gotochallenge) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 3;
newmc._x = -_root._x;
newmc._y = -_root._y;
} else if (gotocampaign) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 4;
newmc._x = -_root._x;
newmc._y = -_root._y;
} else {
endgame();
}
}
function returntomenu() {
gamepaused = false;
deleteeverything = true;
i = 1;
while (i < _root.activeplayers.length) {
deletemc(_root.activeplayers[i]);
i++;
}
deletemc(player1);
deletemc(player2);
deletemc(player3);
deletemc(player4);
deletemc(ground);
deletemc(mapscene);
deletemc(sr);
if (hud) {
deletemc(hud);
}
if (arrow1) {
deletemc(arrow1);
}
if (arrow2) {
deletemc(arrow2);
}
if (arrow3) {
deletemc(arrow3);
}
if (arrow4) {
deletemc(arrow4);
}
if (mapfx) {
deletemc(mapfx);
}
gotomenu = false;
gototest = false;
gotochallenge = false;
gotocampaign = false;
if (mainmenu) {
gotomenu = false;
removeMovieClip(mainmenu);
delete mainmenu.onEnterFrame;
}
}
function deletemc(mc) {
mc.swapDepths(1);
removeMovieClip(mc);
delete mc.onEnterFrame;
}
stop();
switch (savedata2.data.Q) {
case 1 :
_quality = "LOW";
break;
case 2 :
_quality = "MEDIUM";
break;
case 3 :
_quality = "HIGH";
}
tournament = false;
challengefinished = false;
challengetime = 0;
if (gotomenu) {
attachMovie("mainmenu", "mainmenu", mainmenudepth);
crateON = true;
powerupON = false;
gototest = false;
hud._alpha = 0;
temp = _root.ground._totalframes;
do {
_root.mapnumber = random(9) + 1;
} while (mapnumber > 9);
_root.p1name = "Bot 1";
_root.p1color = random(10) + 1;
_root.p1shirt = random(15) + 1;
_root.p1hat = random(24) + 1;
_root.p1eyes = random(6) + 1;
_root.p1gun = random(5) + 1;
_root.p1perk = 0;
_root.p1ptype = 2;
_root.p2name = "Bot 2";
do {
_root.p2color = random(10) + 1;
} while (_root.p2color == _root.p1color);
_root.p2shirt = random(15) + 1;
_root.p2hat = random(24) + 1;
_root.p2eyes = random(6) + 1;
_root.p2gun = random(5) + 1;
_root.p2perk = 0;
_root.p2ptype = 2;
_root.totallives = 1000;
_root.gamemode = 1;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.totallives = 10000;
_root.gamemode = 1;
_root.campaignmode = false;
_root.toggle_crates = true;
_root.toggle_powerups = true;
} else if (gototest) {
_root.mapnumber = 23;
hud._alpha = 0;
_root.gamemode = 1;
_root.totallives = 1000;
_root.p1name = savedata.data.p1name;
_root.p1color = savedata.data.p1color;
_root.p1shirt = savedata.data.p1shirt;
_root.p1hat = savedata.data.p1hat;
_root.p1eyes = savedata.data.p1eyes;
_root.p1gun = 2;
if (gototestnumber <= 7) {
_root.p1gun = gototestnumber;
}
_root.p1perk = 0;
_root.p1ptype = 1;
_root.p2name = "Dummy";
_root.p2color = 12;
_root.p2shirt = 1;
_root.p2hat = 1;
_root.p2eyes = 7;
_root.p2gun = 2;
_root.p2perk = 0;
_root.p2ptype = 2;
_root.toggle_crates = false;
_root.toggle_powerups = false;
} else if (gotochallenge) {
_root.mapnumber = 1;
_root.gamemode = 1;
_root.toggle_crates = false;
_root.toggle_powerups = false;
_root.totallives = 10000;
_root.p1name = savedata.data.p1name;
_root.p1color = savedata.data.p1color;
_root.p1shirt = savedata.data.p1shirt;
_root.p1hat = savedata.data.p1hat;
_root.p1eyes = savedata.data.p1eyes;
p2ptype = 0;
p3ptype = 0;
p4ptype = 0;
_root.p1gun = 2;
_root.p1perk = 0;
_root.p1ptype = 1;
switch (challengenumber) {
case 1 :
mapnumber = 7;
p1gun = 4;
break;
case 2 :
mapnumber = 1;
p1gun = 12;
break;
case 3 :
mapnumber = 9;
p1gun = 13;
break;
case 4 :
mapnumber = 2;
p1gun = 60;
break;
case 5 :
mapnumber = 6;
p1gun = 16;
break;
case 6 :
mapnumber = 8;
p1gun = 8;
break;
case 7 :
mapnumber = 5;
p1gun = 8;
}
if (challengenumber != 1) {
p1gun = 8;
}
}
gravity = 0.88;
friction = 0.93;
airfriction = 0.88;
speed = 0.7;
power = 13.5;
teamgame = false;
if (gamemode == 3) {
teamgame = true;
}
if (!teamgame) {
p1team = 1;
p2team = 2;
p3team = 3;
p4team = 4;
}
if ((gamemode == 5) || (gamemode == 12)) {
p1team = 0;
p2team = 0;
p3team = 0;
p4team = 0;
totallives = 5;
attachMovie("sr", "sr", sr_depth);
}
if (gotocampaign) {
p1team = 1;
p2team = 1;
if ((missionnumber == 16) || (missionnumber == 1)) {
p2ptype = 0;
}
}
if (p1ptype == 1) {
attachMovie("player", "player1", -1);
}
if (p2ptype == 1) {
attachMovie("player", "player2", -2);
}
if (p3ptype == 1) {
attachMovie("player", "player3", -3);
}
if (p4ptype == 1) {
attachMovie("player", "player4", -4);
}
if (p1ptype == 2) {
attachMovie("playerAI", "player1", -1);
}
if (p2ptype == 2) {
attachMovie("playerAI", "player2", -2);
}
if (p3ptype == 2) {
attachMovie("playerAI", "player3", -3);
}
if (p4ptype == 2) {
attachMovie("playerAI", "player4", -4);
}
activeplayers = new Array();
if (player1) {
activeplayers[activeplayers.length] = player1;
player1.iszombie = false;
}
if (player2) {
activeplayers[activeplayers.length] = player2;
player2.iszombie = false;
}
if (player3) {
activeplayers[activeplayers.length] = player3;
player3.iszombie = false;
}
if (player4) {
activeplayers[activeplayers.length] = player4;
player4.iszombie = false;
}
cratearray = new Array();
pgsdata = new Array();
i = 0;
while (i < 4) {
pgsdata[i] = new Array();
j = 0;
while (j < 10) {
pgsdata[i][j] = 0;
if ((i == 0) && (!player1)) {
pgsdata[i][j] = -1;
}
if ((i == 1) && (!player2)) {
pgsdata[i][j] = -1;
}
if ((i == 2) && (!player3)) {
pgsdata[i][j] = -1;
}
if ((i == 3) && (!player4)) {
pgsdata[i][j] = -1;
}
j++;
}
i++;
}
pgsdata[0][0] = p1name;
pgsdata[1][0] = p2name;
pgsdata[2][0] = p3name;
pgsdata[3][0] = p4name;
cratetime = 200;
poweruptime = 0;
deleteeverything = false;
gamewin = false;
teamgamewin = false;
wintimer = 0;
shaketime = 0;
funkykey = false;
gamepaused = false;
missiondone = 0;
if (gotocampaign) {
_root.toggle_crates = true;
_root.toggle_powerups = true;
switch (missionnumber) {
case 1 :
playermulti = 0.4;
missionmulti = 1.6;
_root.toggle_crates = false;
_root.toggle_powerups = false;
totallives = 99999 /* 0x01869F */;
break;
case 2 :
totallives = 5;
playermulti = 0.5;
missionmulti = 1.5;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Easy AI";
p3gun = 1;
p3color = 4;
p3hat = 33;
p3eyes = 9;
p3shirt = 1;
p3perk = 0;
p3team = 2;
break;
case 3 :
totallives = 5;
playermulti = 0.3;
missionmulti = 1.7;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Easy AI";
p3gun = 1;
p3color = 4;
p3hat = 43;
p3eyes = 9;
p3shirt = 1;
p3perk = 0;
p3team = 2;
newmc = _root.attachMovie("playerAI", "player4", -4);
_root.activeplayers[_root.activeplayers.length] = newmc;
p4name = "Easy AI 2";
p4gun = 1;
p4color = 5;
p4hat = 43;
p4eyes = 9;
p4shirt = 1;
p4perk = 0;
p4team = 2;
break;
case 4 :
totallives = 5;
playermulti = 0.6;
missionmulti = 1.4;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Triple Jumper";
p3gun = 2;
p3color = 20;
p3hat = 37;
p3eyes = 10;
p3shirt = 17;
p3perk = 3;
p3team = 2;
break;
case 5 :
totallives = 5;
playermulti = 0.7;
missionmulti = 1.3;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Moderate AI";
p3gun = 2;
p3color = 18;
p3hat = 46;
p3eyes = 1;
p3shirt = 6;
p3perk = 0;
p3team = 2;
break;
case 6 :
totallives = 5;
playermulti = 0.75;
missionmulti = 1.25;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "The Ghost";
p3gun = 4;
p3color = 12;
p3hat = 5;
p3eyes = 1;
p3shirt = 5;
p3perk = 0;
p3team = 2;
break;
case 7 :
totallives = 5;
playermulti = 0.7;
missionmulti = 1.3;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Moderate AI";
p3gun = 2;
p3color = 18;
p3hat = 46;
p3eyes = 1;
p3shirt = 6;
p3perk = 0;
p3team = 2;
newmc = _root.attachMovie("playerAI", "player4", -4);
_root.activeplayers[_root.activeplayers.length] = newmc;
p4name = "Moderate AI 2";
p4gun = 4;
p4color = 17;
p4hat = 31;
p4eyes = 1;
p4shirt = 6;
p4perk = 0;
p4team = 2;
break;
case 8 :
_root.toggle_crates = false;
_root.toggle_powerups = false;
totallives = 3;
playermulti = 0.5;
missionmulti = 1.5;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Easy AI";
p3gun = 6;
p3color = 4;
p3hat = 33;
p3eyes = 9;
p3shirt = 1;
p3perk = 0;
p3team = 2;
break;
case 9 :
totallives = 5;
playermulti = 0.8;
missionmulti = 1.2;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Hard AI";
p3gun = 4;
p3color = 9;
p3hat = 9;
p3eyes = 11;
p3shirt = 4;
p3perk = 0;
p3team = 2;
break;
case 10 :
totallives = 5;
playermulti = 0.5;
missionmulti = 1.2;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Gangster";
p3gun = 44;
p3color = 11;
p3hat = 3;
p3eyes = 4;
p3shirt = 2;
p3perk = 0;
p3team = 2;
newmc = _root.attachMovie("playerAI", "player4", -4);
_root.activeplayers[_root.activeplayers.length] = newmc;
p4name = "Gangster";
p4gun = 44;
p4color = 12;
p4hat = 4;
p4eyes = 4;
p4shirt = 3;
p4perk = 0;
p4team = 2;
break;
case 11 :
totallives = 5;
playermulti = 0.9;
missionmulti = 1.1;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Tiny Guy";
p3gun = 5;
p3color = 1;
p3hat = 11;
p3eyes = 4;
p3shirt = 7;
p3perk = 0;
p3team = 2;
break;
case 12 :
totallives = 5;
playermulti = 0.8;
missionmulti = 1.2;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Hard AI";
p3gun = 4;
p3color = 9;
p3hat = 9;
p3eyes = 11;
p3shirt = 4;
p3perk = 0;
p3team = 2;
newmc = _root.attachMovie("playerAI", "player4", -4);
_root.activeplayers[_root.activeplayers.length] = newmc;
p4name = "Hard AI 2";
p4gun = 4;
p4color = 10;
p4hat = 8;
p4eyes = 11;
p4shirt = 5;
p4perk = 0;
p4team = 2;
break;
case 13 :
_root.toggle_crates = false;
_root.toggle_powerups = false;
totallives = 5;
playermulti = 0.8;
missionmulti = 1.2;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Pistol Man";
p3gun = 4;
p3color = 8;
p3hat = 41;
p3eyes = 11;
p3shirt = 15;
p3perk = 0;
p3team = 2;
break;
case 14 :
totallives = 5;
playermulti = 0.9;
missionmulti = 1.3;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Too Fast";
p3gun = 5;
p3color = 3;
p3hat = 42;
p3eyes = 9;
p3shirt = 13;
p3perk = 0;
p3team = 2;
break;
case 15 :
_root.toggle_crates = false;
totallives = 5;
playermulti = 1;
missionmulti = 1;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Terminator";
p3gun = 9;
p3color = 11;
p3hat = 1;
p3eyes = 4;
p3shirt = 12;
p3perk = 0;
p3team = 2;
break;
case 16 :
_root.toggle_crates = false;
_root.toggle_powerups = false;
totallives = 5;
playermulti = 1;
missionmulti = 1;
newmc = _root.attachMovie("playerAI", "player3", -3);
_root.activeplayers[_root.activeplayers.length] = newmc;
p3name = "Hard AI";
p3gun = 2;
p3color = 14;
p3hat = 15;
p3eyes = 3;
p3shirt = 8;
p3perk = 0;
p3team = 2;
newmc = _root.attachMovie("playerAI", "player4", -4);
_root.activeplayers[_root.activeplayers.length] = newmc;
p4name = "Hard AI 2";
p4gun = 2;
p4color = 14;
p4hat = 15;
p4eyes = 4;
p4shirt = 14;
p4perk = 0;
p4team = 2;
newmc = _root.attachMovie("playerAI", "player2", -2);
_root.activeplayers[_root.activeplayers.length] = newmc;
p2name = "Hard AI 3";
p2gun = 2;
p2color = 14;
p2hat = 15;
p2eyes = 2;
p2shirt = 4;
p2perk = 0;
p2team = 2;
}
}
this.onEnterFrame = function () {
if (toggle_crates && (!gamepaused)) {
cratetime = cratetime + 1;
}
if (((toggle_crates && (cratetime >= 350)) && (!gototest)) && (!tournament)) {
if ((gamemode != 4) && (gamemode != 10)) {
_root.CP("crate", (_root.ground._x + _root.ground.cratearea._x) + random(_root.ground.cratearea._width), -300, 0, 0);
}
cratetime = 0;
}
if ((((((toggle_powerups && (!gotomenu)) && (gamemode != 4)) && (!gototest)) && (!tournament)) && (gamemode != 10)) && (!gamepaused)) {
poweruptime = poweruptime + 1;
if (poweruptime >= 550) {
do {
powerupx = ((ground._x + ground.platform._x) + 20) + random(ground.platform._width - 40);
powerupy = (ground._y + ground.platform._y) + random(ground.platform._height);
} while (!_root.ground.platform.hitTest(powerupx, powerupy, true));
i = 1;
while (i < (i + 1)) {
if (!_root.ground.platform.hitTest(powerupx, powerupy - (i * 2), true)) {
powerupy = powerupy - (i * 2);
break;
}
i++;
}
_root.CP("powerup", powerupx, powerupy - 40, 0, 0);
poweruptime = 0;
}
}
if (shaketime > 0) {
shaketime = shaketime - 1;
_x = (_x + shaketime);
_y = (_y + shaketime);
if (random(2) == 0) {
_x = (_x - (shaketime * 2));
}
if (random(2) == 0) {
_y = (_y - (shaketime * 2));
}
}
if (!gamewin) {
maxleft = activeplayers[0].actualx;
i = 1;
while (i < activeplayers.length) {
if (activeplayers[i].istarget) {
break;
}
if (activeplayers[i].actualx < maxleft) {
maxleft = activeplayers[i].actualx;
}
i++;
}
maxright = activeplayers[0].actualx;
i = 1;
while (i < activeplayers.length) {
if (activeplayers[i].istarget) {
break;
}
if (activeplayers[i].actualx > maxright) {
maxright = activeplayers[i].actualx;
}
i++;
}
if (maxleft < -100) {
maxleft = -100;
}
if (maxright > 1000) {
maxright = 1000;
}
_root._x = _root._x + (((((maxleft + maxright) / -2) + 450) - _root._x) / 8);
_root._x = Math.round(_root._x);
maxhigh = activeplayers[0].actualy;
i = 1;
while (i < activeplayers.length) {
if (activeplayers[i].istarget) {
break;
}
if (activeplayers[i].actualy < maxhigh) {
maxhigh = activeplayers[i].actualy;
}
i++;
}
maxlow = activeplayers[0].actualy;
i = 1;
while (i < activeplayers.length) {
if (activeplayers[i].istarget) {
break;
}
if (activeplayers[i].actualy > maxlow) {
maxlow = activeplayers[i].actualy;
}
i++;
}
if (maxhigh < 50) {
maxhigh = 50;
}
if (maxlow < 50) {
maxlow = 50;
}
if (maxlow > 500) {
maxlow = 500;
}
if (maxhigh > 500) {
maxhigh = 500;
}
_root._y = _root._y + (((((maxhigh + maxlow) / -2) + 280) - _root._y) / 8);
_root._y = Math.round(_root._y);
_root.hud._x = -_root._x;
_root.hud._y = -_root._y;
_root.mapscene.scene1.update();
_root.mapscene.scene2.update();
_root.mainmenu._x = -_root._x;
_root.mainmenu._y = -_root._y;
} else if (gamewin) {
if (hud) {
deletemc(hud);
}
if (arrow1) {
deletemc(arrow1);
}
if (arrow2) {
deletemc(arrow2);
}
if (arrow3) {
deletemc(arrow3);
}
if (arrow4) {
deletemc(arrow4);
}
}
if (fx_teamwin) {
fx_teamwin._x = -_x;
fx_teamwin._y = -_y;
}
if (teamgame && (!teamgamewin)) {
teamwin = _root.activeplayers[0].teamnumber;
j = 1;
while (j < _root.activeplayers.length) {
if (_root.activeplayers[j].teamnumber != teamwin) {
teamwin = -1;
break;
}
j++;
}
if (teamwin != -1) {
teamgamewin = true;
newmc = _root.attachMovie("fx_teamwin", "fx_teamwin", _root.teamwindepth);
newmc.asdf = teamwin;
}
}
if ((((!_root.gotocampaign) && (!_root.fx_teamwin)) && (activeplayers.length == 0)) && (gamemode != 5)) {
newmc = _root.attachMovie("fx_tie", "fx_teamwin", _root.teamwindepth);
gamewin = true;
}
if (gamewin || (teamgamewin)) {
wintimer = wintimer + 1;
if (wintimer >= 120) {
wintimer = -999;
endgamefunction();
}
}
if (gamemode == 5) {
temp = false;
j = 0;
while (j < _root.activeplayers.length) {
if (!_root.activeplayers[j].iszombie) {
temp = true;
break;
}
j++;
}
if (!temp) {
if (!gamewin) {
newmc = _root.attachMovie("fx_gameover", "fx_teamwin", _root.teamwindepth);
}
gamewin = true;
}
}
if ((gotocampaign && (missiondone == 0)) && (missionnumber != 1)) {
nplayers = 0;
nAI = 0;
i = 0;
while (i < activeplayers.length) {
if (activeplayers[i].AI) {
nAI = nAI + 1;
} else {
nplayers = nplayers + 1;
}
i++;
}
if (nAI == 0) {
missiondone = 1;
hud.missiondone(1);
} else if (nplayers == 0) {
missiondone = 2;
hud.missiondone(2);
}
}
if ((Key.isDown(36) && (!fadeaway)) && (!gotomenu)) {
endgamefunction();
}
if ((Key.isDown(27) && (!funkykey)) || (Key.isDown(32) && (!funkykey))) {
if (((!gotomenu) && (!gotochallenge)) && (!gototest)) {
funkykey = true;
if (!gamepaused) {
gamepaused = true;
hud.PAUSEPAUSE();
} else {
hud.PAUSEPAUSE2();
gamepaused = false;
}
} else if (((!gotomenu) && (!fadeaway)) && (!gotomenu)) {
endgamefunction();
}
} else if (((!Key.isDown(27)) && (!Key.isDown(32))) && (funkykey)) {
funkykey = false;
}
};
Instance of Symbol 1836 MovieClip "mapscene" in Frame 10
/* no clip actions */
Symbol 10 MovieClip Frame 1
this.onPress = function () {
getURL ("http://armor.ag/MoreGames", _blank);
};
Symbol 15 MovieClip [fx_notenough] Frame 1
_alpha = 70;
time = 0;
this.onEnterFrame = function () {
time = time + 1;
if (time >= 25) {
_alpha = (_alpha - 10);
if (_alpha <= 1) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 20 MovieClip [fxsr_challengedone] Frame 14
_root.playsound2("fanfare.wav");
Symbol 20 MovieClip [fxsr_challengedone] Frame 73
removeMovieClip(this);
delete this.onEnterFrame;
_root.endgamefunction();
Symbol 23 MovieClip [fxsr_levelup] Frame 55
removeMovieClip(this);
delete this.onEnterFrame;
Symbol 26 MovieClip [fxsr_missionfail] Frame 73
removeMovieClip(this);
delete this.onEnterFrame;
_root.endgamefunction();
Symbol 29 MovieClip [fxsr_missionwin] Frame 14
_root.playsound2("fanfare.wav");
Symbol 29 MovieClip [fxsr_missionwin] Frame 73
removeMovieClip(this);
delete this.onEnterFrame;
_root.endgamefunction();
Symbol 36 MovieClip Frame 105
stop();
_parent.deletethis = true;
Symbol 37 MovieClip [fxsr_waveup] Frame 1
_alpha = 0;
this.onEnterFrame = function () {
if (deletethis) {
_alpha = (_alpha - 10);
if (_alpha <= 1) {
removeMovieClip(this);
delete this.onEnterFrame;
}
} else if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 39 MovieClip [fx_ex] Frame 1
level = 1;
if (random(2) == 0) {
_rotation = (_rotation * -1);
}
scaletarget = 190;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((200 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 20);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 40 MovieClip [fx_ex0] Frame 1
level = 1;
if (random(2) == 0) {
_rotation = (_rotation * -1);
}
scaletarget = 95;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 20);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 42 MovieClip [fx_ex2] Frame 1
level = 1;
scaletarget = 195;
_xscale = 10;
_yscale = _xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((200 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 10);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 44 MovieClip [fx_ex3] Frame 1
_x = (_x + (random(20) - 10));
_y = (_y - random(20));
vx = (Math.random() * 20) - 10;
vy = (Math.random() * 10) - 20;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
_xscale = (_xscale - 2);
_yscale = _xscale;
vy = vy + (_root.gravity * 1.3);
if (((_y >= 900) || (_alpha <= 1)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 46 MovieClip [fx_ex4] Frame 1
level = 1;
_rotation = (_rotation + (random(20) - 10));
scaletarget = 249;
_xscale = 10;
_yscale = xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((250 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 10);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 48 MovieClip [fx_ex5] Frame 1
_x = (_x + (random(80) - 40));
_y = (_y + (random(80) - 20));
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 4) - 5;
_x = (_x + (vx * 1));
_y = (_y + (vy * 1));
_xscale = (_xscale + random(100));
_yscale = _xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
vy = vy - 0.1;
vx = vx * 0.9;
_y = (_y + vy);
_xscale = (_xscale - 6);
_yscale = _xscale;
if ((_xscale <= 10) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 49 MovieClip [fx_ex5_2] Frame 1
_x = (_x + (random(40) - 20));
_y = (_y + (random(40) - 10));
vx = (Math.random() * 8) - 4;
vy = (Math.random() * 4) - 5;
_x = (_x + (vx * 1));
_y = (_y + (vy * 1));
_xscale = (_xscale + random(100));
_yscale = _xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
vy = vy - 0.1;
vx = vx * 0.9;
_y = (_y + vy);
_xscale = (_xscale - 6);
_yscale = _xscale;
if ((_xscale <= 10) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 51 MovieClip [fx_ex6] Frame 1
level = 1;
if (random(2) == 0) {
_rotation = (_rotation * -1);
}
scaletarget = 190;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((200 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 20);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 53 MovieClip [fx_ex7] Frame 1
_x = (_x + (random(20) - 10));
_y = (_y - random(20));
vx = (Math.random() * 20) - 10;
vy = (Math.random() * 10) - 20;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
_xscale = (_xscale - 2);
_yscale = _xscale;
vy = vy + (_root.gravity * 1.3);
if (((_y >= 900) || (_alpha <= 1)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 54 MovieClip [fx_ex22] Frame 1
level = 1;
scaletarget = 97;
_xscale = 10;
_yscale = _xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 10);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 55 MovieClip [fx_ex44] Frame 1
level = 1;
_rotation = (_rotation + (random(20) - 10));
scaletarget = 124;
_xscale = 10;
_yscale = xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((125 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 10);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 56 MovieClip [fx_ex555] Frame 1
_x = (_x + (random(80) - 40));
_y = (_y + (random(80) - 20));
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 4) - 5;
_x = (_x + (vx * 1));
_y = (_y + (vy * 1));
_xscale = (_xscale + random(70));
_yscale = _xscale;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
vy = vy - 0.1;
vx = vx * 0.9;
_y = (_y + vy);
_xscale = (_xscale - 6);
_yscale = _xscale;
if ((_xscale <= 10) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 57 MovieClip [fx_ex66] Frame 1
level = 1;
if (random(2) == 0) {
_rotation = (_rotation * -1);
}
scaletarget = 95;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 20);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 69 MovieClip [fx_bling] Frame 1
_x = asdf._x;
_y = asdf._y;
_alpha = 0;
time = 0;
_xscale = 700;
_yscale = _xscale;
yoffset = 30;
if ((_x == 0) && (_y == 0)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = asdf._x;
_y = (asdf._y - yoffset);
time = time + 1;
if (time <= 20) {
if (_alpha < 100) {
_alpha = (_alpha + 50);
}
if (_xscale > 100) {
_xscale = (_xscale + ((90 - _xscale) / 5));
}
_yscale = _xscale;
} else if (time >= 40) {
_alpha = (_alpha - 10);
if (_alpha <= 1) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
yoffset = yoffset + ((110 - yoffset) / 5);
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
gotoAndStop(mod + 1);
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
levelnumber.text = leveldisplay;
}
score = 0;
switch (mod) {
case 1 :
score = 100;
break;
case 2 :
score = 200;
break;
case 3 :
score = 300;
break;
case 4 :
score = 500;
}
_root.pgsdata[asdf.PLAYERNUMBER - 1][7] = _root.pgsdata[asdf.PLAYERNUMBER - 1][7] + score;
Symbol 71 MovieClip [fx_blood] Frame 1
_rotation = (random(135) - 90);
if (random(2) == 0) {
_rotation = (_rotation + 180);
}
speed = (Math.random() * 5) + 5;
dirx = Math.cos((_rotation * Math.PI) / 180) * speed;
diry = Math.sin((_rotation * Math.PI) / 180) * speed;
_x = (_x + (dirx * 1));
_y = (_y + (diry * 1));
_xscale = (_xscale - random(60));
_yscale = _xscale;
time = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
speed = speed + 0.5;
if ((_rotation > -90) && (_rotation < 90)) {
_rotation = (_rotation + 4);
} else {
_rotation = (_rotation - 4);
}
dirx = Math.cos((_rotation * Math.PI) / 180) * speed;
diry = Math.sin((_rotation * Math.PI) / 180) * speed;
_x = (_x + dirx);
_y = (_y + diry);
if (((_y >= 900) || (_alpha <= 1)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 76 MovieClip [fx_bloodstain] Frame 1
gotoAndStop(random(_totalframes) + 1);
_rotation = random(360);
time = 0;
_xscale = 150;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_xscale = (_xscale + 50);
_yscale = _xscale;
_alpha = (_alpha - 20);
if (((_alpha <= 1) || (time >= 4)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 81 MovieClip Frame 1
stop();
Symbol 82 MovieClip [fx_combo] Frame 1
level = 1;
_rotation = (random(15) + 5);
if (random(2) == 0) {
_rotation = (_rotation * -1);
}
scaletarget = 199;
if (asdf == 1) {
displaytext.displaytext.text = "HIT";
} else if (asdf > 1) {
displaytext.displaytext.text = asdf + " HITS";
} else if (asdf == -1) {
displaytext.gotoAndStop(2);
displaytext.displaytext.text = "SNIPED";
scaletarget = 199.9;
} else if (asdf == -2) {
displaytext.gotoAndStop(3);
displaytext.displaytext.text = "BOOM";
scaletarget = 199;
} else if (asdf == -3) {
displaytext.gotoAndStop(3);
displaytext.displaytext.text = "QUACK";
scaletarget = 199;
} else if (asdf == -4) {
displaytext.gotoAndStop(2);
displaytext.displaytext.text = "PWND";
scaletarget = 199;
} else if (asdf == -5) {
displaytext.gotoAndStop(2);
displaytext.displaytext.text = "SPLAT";
scaletarget = 199;
} else if (asdf == -6) {
displaytext.gotoAndStop(2);
displaytext.displaytext.text = "SMACKED";
scaletarget = 199;
} else if (asdf == -7) {
displaytext.gotoAndStop(3);
displaytext.displaytext.text = "POW";
scaletarget = 195;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (level == 1) {
_xscale = (_xscale + ((200 - _xscale) / 3));
_yscale = _xscale;
if (_xscale >= scaletarget) {
level = 2;
}
}
if (level == 2) {
_xscale = (_xscale - 34);
_yscale = _xscale;
}
if (((_alpha <= 1) || (_root.deleteeverything)) || (_xscale <= 5)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 84 MovieClip [fx_cratename] Frame 1
_alpha = 0;
level = 1;
time = 0;
switch (asdf) {
case 1 :
displaytext.text = _root.player1.hand1.gun.Name;
break;
case 2 :
displaytext.text = _root.player2.hand1.gun.Name;
break;
case 3 :
displaytext.text = _root.player3.hand1.gun.Name;
break;
case 4 :
displaytext.text = _root.player4.hand1.gun.Name;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_y = (_y - 0.5);
if (level == 1) {
if (_alpha < 80) {
_alpha = (_alpha + 10);
}
time = time + 1;
if (time >= 40) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 10);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 88 MovieClip [fx_deagle] Frame 1
vx = 20 * asdf;
vy = -6;
rotationspeed = 15 * asdf;
_xscale = (_xscale * asdf);
facing = asdf;
hitsomething = false;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if (!hitsomething) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].frame.hitTest(_x, _y, true)) {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + (20 * facing);
_root.activeplayers[i].hitnumber = _root.activeplayers[i].hitnumber + 1;
_root.activeplayers[i].hittimer = 0;
qwer = _root.activeplayers[i].hitnumber;
j = 0;
while (j < 4) {
_root.CP("fx_blood", _x, _y, 0, 0);
j++;
}
_root.CP("fx_bloodstain", _x + vx, _y, 0, 0);
_root.CP("fx_combo", _x + vx, _y - 50, 0, -6);
tagplayer(_root.activeplayers[i]);
vx = vx * -0.5;
_x = (_x + vx);
hitsomething = true;
}
i++;
}
}
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 90 MovieClip [fx_debris] Frame 1
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 92 MovieClip [fx_debris2] Frame 1
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 94 MovieClip [fx_double] Frame 1
_y = (_y - 10);
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_alpha = (_alpha - 5);
_xscale = (_xscale - 5);
_yscale = _xscale;
_y = (_y + 1);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 96 MovieClip [fx_dropmag] Frame 1
vy = 0;
rotationspeed = 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 100 MovieClip [fx_dropmag2] Frame 1
vy = 0;
rotationspeed = 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 100 MovieClip [fx_dropmag2] Frame 7
stop();
Symbol 102 MovieClip [fx_dropmag3] Frame 1
vy = 0;
rotationspeed = 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 102 MovieClip [fx_dropmag3] Frame 4
stop();
Symbol 104 MovieClip [fx_droppack] Frame 1
if (_rotation < 0) {
_xscale = -100;
}
vx = 5 * _rotation;
vy = -5;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 2) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 106 MovieClip [fx_dynamite] Frame 1
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 4) - 2;
_x = (_x + (vx * 1));
_y = (_y + (vy * 1));
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
vx = vx + (vx * -0.8);
_y = (_y + vy);
_xscale = (_xscale - 5);
_yscale = _xscale;
_rotation = (_rotation + rotationspeed);
_alpha = (_alpha - 20);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 110 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 111 MovieClip [fx_flash] Frame 1
if (random(2) == 0) {
_yscale = (_yscale * -1);
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_alpha = (_alpha - 51);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 112 MovieClip [fx_flash2] Frame 1
if (random(2) == 0) {
_yscale = (_yscale * -1);
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_alpha = (_alpha - 51);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 116 MovieClip Frame 1
displaytext.text = _root.sr.wave;
Symbol 117 MovieClip [fx_gameover] Frame 1
this.onEnterFrame = function () {
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
_x = (-_root._x);
_y = (-_root._y);
};
Symbol 117 MovieClip [fx_gameover] Frame 20
stop();
Symbol 119 MovieClip [fx_instatrail] Frame 1
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_alpha = (_alpha - 20);
if (_alpha <= 1) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 123 MovieClip [fx_jetpack] Frame 1
_rotation = random(360);
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 5) + 1;
_x = (_x + ((Math.random() * 2) - 1));
_y = (_y + (Math.random() * 2));
fx._alpha = 0;
_root.playsound("jetpack.wav");
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (fx._alpha < 100) {
fx._alpha = fx._alpha + 15;
}
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.9;
_xscale = (_xscale - 7);
_yscale = _xscale;
if (((_y >= 900) || (_root.deleteeverything)) || (_xscale <= 10)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 125 MovieClip [fx_package] Frame 1
_x = (_x + (random(20) - 10));
_y = (_y - random(20));
vx = (Math.random() * 20) - 10;
vy = (Math.random() * 10) - 20;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
_xscale = (_xscale - 2);
_yscale = _xscale;
vy = vy + (_root.gravity * 1.3);
if (((_y >= 900) || (_alpha <= 1)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 127 MovieClip [fx_pickup] Frame 1
_x = (_x + (random(20) - 10));
_y = (_y - random(20));
vx = (Math.random() * 20) - 10;
vy = (Math.random() * 10) - 20;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
_xscale = (_xscale - 6);
_yscale = _xscale;
vy = vy + 1.2;
if ((((_y >= 900) || (_alpha <= 1)) || (_root.deleteeverything)) || (_xscale <= 1)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 148 MovieClip Frame 1
gotoAndStop(_parent._parent.playernumber);
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 6
_parent.walkanim = 2;
Symbol 149 MovieClip Frame 15
_parent.walkanim = 1;
Symbol 174 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.playernumber);
Symbol 201 MovieClip Frame 1
stop();
switch (_parent._parent._parent.PLAYERNUMBER) {
case 1 :
gotoAndStop(_root.p1shirt);
break;
case 2 :
gotoAndStop(_root.p2shirt);
break;
case 3 :
gotoAndStop(_root.p3shirt);
break;
case 4 :
gotoAndStop(_root.p4shirt);
}
if (_parent._parent._parent.iszombie) {
gotoAndStop (25);
}
if (_parent._parent._parent.AI && (_root.gotocampaign)) {
gotoAndStop(_parent._parent._parent.custom_shirt);
}
id = "Casual Shirt";
Symbol 201 MovieClip Frame 2
id = "White Suit";
Symbol 201 MovieClip Frame 3
id = "Gray Suit";
Symbol 201 MovieClip Frame 4
id = "Professional Killer";
Symbol 201 MovieClip Frame 5
id = "Fancy Tux";
Symbol 201 MovieClip Frame 6
id = "Leather Jacket";
Symbol 201 MovieClip Frame 7
id = "Pompous Shirt";
Symbol 201 MovieClip Frame 8
id = "Pirate";
Symbol 201 MovieClip Frame 9
id = "Kung Fu Master";
Symbol 201 MovieClip Frame 10
id = "Caveman";
Symbol 201 MovieClip Frame 11
id = "Santa Claus";
Symbol 201 MovieClip Frame 12
id = "Exterminator";
Symbol 201 MovieClip Frame 13
id = "Jumpsuit";
Symbol 201 MovieClip Frame 14
id = "Rambo";
Symbol 201 MovieClip Frame 15
id = "Hawaiian";
Symbol 201 MovieClip Frame 16
id = "Doc";
Symbol 201 MovieClip Frame 17
id = "Robe";
Symbol 201 MovieClip Frame 18
id = "?";
Symbol 201 MovieClip Frame 19
id = "McFly";
Symbol 201 MovieClip Frame 20
id = "Angelic";
Symbol 201 MovieClip Frame 21
id = "Worker";
Symbol 201 MovieClip Frame 22
id = "Jersey";
Symbol 201 MovieClip Frame 23
id = "Lumberjack";
Symbol 201 MovieClip Frame 24
id = "Bow Tie";
Symbol 201 MovieClip Frame 25
id = "Metal Plating";
Symbol 201 MovieClip Frame 26
id = "PROtect Dem Pockets";
Symbol 201 MovieClip Frame 27
id = "No Shirt";
Symbol 223 MovieClip Frame 1
this.gotoAndStop(_parent._parent._parent._parent.playernumber);
Symbol 225 MovieClip Frame 1
gotoAndPlay(random(50) + 2);
Symbol 225 MovieClip Frame 60
gotoAndPlay (2);
Symbol 279 MovieClip Frame 1
stop();
switch (_parent.PLAYERNUMBER) {
case 1 :
gotoAndStop(_root.p1hat);
break;
case 2 :
gotoAndStop(_root.p2hat);
break;
case 3 :
gotoAndStop(_root.p3hat);
break;
case 4 :
gotoAndStop(_root.p4hat);
}
if (_parent.AI && (_root.gotocampaign)) {
gotoAndStop(_parent.custom_hat);
}
id = "Tool Cool For Hats";
Symbol 279 MovieClip Frame 2
id = "Santa Claus";
Symbol 279 MovieClip Frame 3
id = "White Fedora";
Symbol 279 MovieClip Frame 4
id = "Dark Grey Fedora";
Symbol 279 MovieClip Frame 5
id = "Fancy Top Hat";
Symbol 279 MovieClip Frame 6
id = "Double Fancy";
Symbol 279 MovieClip Frame 7
id = "Crazy Clown";
Symbol 279 MovieClip Frame 8
id = "Pylon Hat";
Symbol 279 MovieClip Frame 9
id = "Pylon Hat 2";
Symbol 279 MovieClip Frame 10
id = "Straw Hat";
Symbol 279 MovieClip Frame 11
id = "Pompous Hat";
Symbol 279 MovieClip Frame 12
id = "Viking Helmet";
Symbol 279 MovieClip Frame 13
id = "Rambo";
Symbol 279 MovieClip Frame 14
id = "Spikey Helmet";
Symbol 279 MovieClip Frame 15
id = "ARRRRRRGH!";
Symbol 279 MovieClip Frame 16
id = "Goldfish Bowl";
Symbol 279 MovieClip Frame 17
id = "Bunny Ears";
Symbol 279 MovieClip Frame 18
id = "Scary Pumpkin";
Symbol 279 MovieClip Frame 19
id = "The Duke";
Symbol 279 MovieClip Frame 20
id = "Cooking Pot";
Symbol 279 MovieClip Frame 21
id = "Slick Hair";
Symbol 279 MovieClip Frame 22
id = "Female Hair";
Symbol 279 MovieClip Frame 23
id = "The Very Best";
Symbol 279 MovieClip Frame 24
id = "Crown";
Symbol 279 MovieClip Frame 25
id = "Bandana";
Symbol 279 MovieClip Frame 26
id = "Colorful Headwear";
Symbol 279 MovieClip Frame 27
id = "Head Light Thing";
Symbol 279 MovieClip Frame 28
id = "Worker Hat";
Symbol 279 MovieClip Frame 29
id = "Halo";
Symbol 279 MovieClip Frame 30
id = "Gladiator";
Symbol 279 MovieClip Frame 31
id = "Afro";
Symbol 279 MovieClip Frame 32
id = "Knight";
Symbol 279 MovieClip Frame 33
id = "Baseball Cap";
Symbol 279 MovieClip Frame 34
id = "Backwards Cap";
Symbol 279 MovieClip Frame 35
id = "Astronaut Helmet";
Symbol 279 MovieClip Frame 36
id = "Caveman";
Symbol 279 MovieClip Frame 37
id = "Elf Cap?";
Symbol 279 MovieClip Frame 38
id = "Chicken Hat";
Symbol 279 MovieClip Frame 39
id = "Party Hat";
Symbol 279 MovieClip Frame 40
id = "Army Helmet";
Symbol 279 MovieClip Frame 41
id = "Cowboy Hat";
Symbol 279 MovieClip Frame 42
id = "Bowler Hat";
Symbol 279 MovieClip Frame 43
id = "Winter Hat";
Symbol 279 MovieClip Frame 44
id = "Sombrero";
Symbol 279 MovieClip Frame 45
id = "Boonie Hat";
Symbol 279 MovieClip Frame 46
id = "Mohawk";
Symbol 279 MovieClip Frame 47
id = "\"Court is a-GUN'd\" -.-";
Symbol 279 MovieClip Frame 48
id = "What time is it?";
Symbol 291 MovieClip Frame 1
stop();
switch (_parent.PLAYERNUMBER) {
case 1 :
gotoAndStop(_root.p1eyes);
break;
case 2 :
gotoAndStop(_root.p2eyes);
break;
case 3 :
gotoAndStop(_root.p3eyes);
break;
case 4 :
gotoAndStop(_root.p4eyes);
}
if (_parent.iszombie) {
gotoAndStop (7);
}
if (_parent.AI && (_root.gotocampaign)) {
gotoAndStop(_parent.custom_eyes);
}
id = "Classic Style";
Symbol 291 MovieClip Frame 2
id = "Fancy Monocle";
Symbol 291 MovieClip Frame 3
id = "Eyepatch";
Symbol 291 MovieClip Frame 4
id = "Cool Shades";
Symbol 291 MovieClip Frame 5
id = "Female Complexion";
Symbol 291 MovieClip Frame 6
id = "Sinusoidal Stache'";
Symbol 291 MovieClip Frame 7
id = "Expressionless";
Symbol 291 MovieClip Frame 8
id = "Blindfold";
Symbol 291 MovieClip Frame 9
id = "Happy Guy";
Symbol 291 MovieClip Frame 10
id = "White Beard";
Symbol 291 MovieClip Frame 11
id = "Moustache";
Symbol 291 MovieClip Frame 12
id = "???";
Symbol 292 MovieClip Frame 1
stop();
Symbol 293 MovieClip [fx_playertrail] Frame 1
stop();
_xscale = (80 * asdf);
_yscale = 80;
if (_rotation < 0) {
_xscale = (50 * asdf);
_yscale = 50;
_rotation = Math.abs(_rotation);
}
PLAYERNUMBER = Math.floor(_rotation);
switch (PLAYERNUMBER) {
case 1 :
playernumber = _root.p1color;
break;
case 2 :
playernumber = _root.p2color;
break;
case 3 :
playernumber = _root.p3color;
break;
case 4 :
playernumber = _root.p4color;
}
_rotation = 0;
_alpha = 20;
time = 10;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
time = time - 1;
if ((_alpha <= 1) || (time <= 0)) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 302 MovieClip [fx_powerupname] Frame 1
_alpha = 0;
level = 1;
time = 0;
gotoAndStop(asdf + 1);
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_y = (_y - 2);
if (level == 1) {
if (_alpha < 80) {
_alpha = (_alpha + 10);
}
time = time + 1;
if (time >= 40) {
level = 2;
}
}
if (level == 2) {
_alpha = (_alpha - 10);
}
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 304 MovieClip [fx_shell] Frame 1
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 306 MovieClip [fx_shell2] Frame 1
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 308 MovieClip [fx_shell3] Frame 1
vx = (Math.random() * 4) - 2;
vy = Math.random() * 2;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 310 MovieClip [fx_shell4] Frame 1
vx = (Math.random() * 2) - 1;
vy = Math.random() * 5;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 312 MovieClip [fx_shot] Frame 1
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 313 MovieClip [fx_shot3] Frame 1
vx = (Math.random() * 4) - 2;
vy = Math.random() * 2;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 315 MovieClip [fx_spark] Frame 1
_rotation = (random(135) - 90);
if (random(2) == 0) {
_rotation = (_rotation + 180);
}
speed = (Math.random() * 5) + 5;
dirx = Math.cos((_rotation * Math.PI) / 180) * speed;
diry = Math.sin((_rotation * Math.PI) / 180) * speed;
_x = (_x + (dirx * 1));
_y = (_y + (diry * 1));
_xscale = (_xscale - random(60));
_yscale = _xscale;
time = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
speed = speed + 0.5;
if ((_rotation > -90) && (_rotation < 90)) {
_rotation = (_rotation + 4);
} else {
_rotation = (_rotation - 4);
}
dirx = Math.cos((_rotation * Math.PI) / 180) * speed;
diry = Math.sin((_rotation * Math.PI) / 180) * speed;
_x = (_x + dirx);
_y = (_y + diry);
if (((_y >= 900) || (_alpha <= 1)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 317 MovieClip [fx_speedloader] Frame 1
vx = (Math.random() * 2) - 1;
vy = Math.random() * 5;
vy = 0;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 320 MovieClip Frame 1
gotoAndStop(_parent.asdf);
Symbol 321 MovieClip [fx_teamwin] Frame 1
this.onEnterFrame = function () {
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
_x = (-_root._x);
_y = (-_root._y);
};
Symbol 321 MovieClip [fx_teamwin] Frame 20
stop();
Symbol 324 MovieClip [fx_tie] Frame 1
this.onEnterFrame = function () {
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
_x = (-_root._x);
_y = (-_root._y);
};
Symbol 324 MovieClip [fx_tie] Frame 20
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 328 MovieClip [bullet] Frame 1
function tagplayer(mc) {
switch (Math.floor(asdf / 1000)) {
case 1 :
mc.gothitby = _root.p1name;
_root.pgsdata[0][4] = _root.pgsdata[0][4] + 1;
break;
case 2 :
mc.gothitby = _root.p2name;
_root.pgsdata[1][4] = _root.pgsdata[1][4] + 1;
break;
case 3 :
mc.gothitby = _root.p3name;
_root.pgsdata[2][4] = _root.pgsdata[2][4] + 1;
break;
case 4 :
mc.gothitby = _root.p4name;
_root.pgsdata[3][4] = _root.pgsdata[3][4] + 1;
}
mc.hitbynade = false;
}
function dothehittest() {
if (!freepass) {
if (_root.ground.hitTest(_x, _y, true)) {
_x = (_x - speed);
i = 1;
while (i <= 5) {
if (_root.ground.hitTest(_x + (i * (speed / 5)), _y, true)) {
_x = (_x + ((speed / 5) * (i - 1)));
break;
}
i++;
}
i = 0;
while (i < 3) {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
i++;
}
removethis = true;
}
}
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 25;
facing = 1;
if (_rotation != 0) {
speed = speed * -1;
facing = -1;
}
time = 1;
trail._width = 20;
trail._alpha = 0;
freepass = false;
firepower = Math.abs(asdf % 1000);
if (firepower > 50) {
trail.gotoAndStop(2);
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (!removethis) {
_x = (_x + speed);
if (!removethis) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].teamnumber != asdf2) {
if (((!_root.activeplayers[i].istarget) && (_root.activeplayers[i].PLAYERNUMBER != Math.floor(asdf / 1000))) && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
if (_root.activeplayers[i].shieldtime == 0) {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * _root.activeplayers[i].damagemulti);
} else {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * 0.33);
_root.activeplayers[i].shield.gotoAndPlay(23);
}
_root.activeplayers[i].hitnumber = _root.activeplayers[i].hitnumber + 1;
_root.activeplayers[i].hittimer = 0;
qwer = _root.activeplayers[i].hitnumber;
_root.hitsound();
j = 0;
while (j < 2) {
if (!_root.activeplayers[i].iszombie) {
_root.CP("fx_blood", _x, _y, 0, 0);
}
j++;
}
if (!_root.activeplayers[i].iszombie) {
_root.CP("fx_bloodstain", _x + speed, _y, 0, 0);
} else {
j = 0;
while (j < 2) {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
j++;
}
}
if (firepower >= 40) {
_root.CP("fx_combo", _x + speed, _y - 50, 0, -1);
} else {
_root.CP("fx_combo", _x + speed, _y - 50, 0, qwer);
}
tagplayer(_root.activeplayers[i]);
if ((_root.gotocampaign && (_root.missionnumber == 6)) && (_root.activeplayers[i].AI)) {
_root.activeplayers[i].invisibletime = -30;
}
deletethis();
}
if (_root.activeplayers[i].AI) {
if (_root.activeplayers[i].frame.hitTest(_x + (speed * 4), _y, true) || (_root.activeplayers[i].frame.hitTest(_x + (speed * 6), _y, true))) {
if (_root.activeplayers[i].jumpnum == 2) {
_root.activeplayers[i].KEYUP = true;
}
if (((firepower >= 40) && (_root.activeplayers[i].vy > -8)) && (_root.activeplayers[i].jumpnum == 1)) {
_root.activeplayers[i].KEYUP = true;
}
}
}
if (_root.activeplayers[i].istarget && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
j = 0;
while (j < 3) {
_root.CP("fx_debris2", _x, _y, 0);
j++;
}
if (_root.activeplayers[i].facing == facing) {
_root.activeplayers[i].anim.gotoAndPlay(80);
}
if (_root.activeplayers[i].facing != facing) {
_root.activeplayers[i].anim.gotoAndPlay(60);
}
_root.activeplayers[i].damage(firepower);
deletethis();
}
}
i++;
}
}
if ((_x < -600) || (_x > 1500)) {
deletethis();
}
time = time + 1;
if ((time >= 3) && (trail._alpha < 100)) {
trail._alpha = trail._alpha + 50;
}
if (trail._width < 100) {
trail._width = trail._width + 10;
}
} else {
_alpha = (_alpha - 25);
if (_alpha <= 1) {
deletethis();
}
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 329 MovieClip [bullet2] Frame 1
function shotgunhit(mc) {
switch (Math.floor(asdf / 1000)) {
case 1 :
_root.pgsdata[0][4] = _root.pgsdata[0][4] + 1;
break;
case 2 :
_root.pgsdata[1][4] = _root.pgsdata[1][4] + 1;
break;
case 3 :
_root.pgsdata[2][4] = _root.pgsdata[2][4] + 1;
break;
case 4 :
_root.pgsdata[3][4] = _root.pgsdata[3][4] + 1;
}
mc.hitbynade = false;
}
function tagplayer(mc) {
switch (Math.floor(asdf / 1000)) {
case 1 :
mc.gothitby = _root.p1name;
break;
case 2 :
mc.gothitby = _root.p2name;
break;
case 3 :
mc.gothitby = _root.p3name;
break;
case 4 :
mc.gothitby = _root.p4name;
}
mc.hitbynade = false;
}
function dothehittest() {
if (!freepass) {
if (_root.ground.hitTest(_x, _y, true)) {
_x = (_x - speed);
i = 1;
while (i <= 5) {
if (_root.ground.hitTest(_x + (i * (speed / 5)), _y, true)) {
_x = (_x + ((speed / 5) * (i - 1)));
break;
}
i++;
}
i = 0;
while (i < 3) {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
i++;
}
removethis = true;
}
}
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = (25 + random(6)) - 3;
facing = 1;
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
if ((_rotation > 90) || (_rotation < -90)) {
facing = -1;
}
time = 1;
trail._alpha = 0;
freepass = false;
firepower = Math.abs(asdf % 1000);
time = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (!removethis) {
_x = (_x + vx);
_y = (_y + vy);
if (!removethis) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].teamnumber != asdf2) {
if (((!_root.activeplayers[i].istarget) && (_root.activeplayers[i].PLAYERNUMBER != Math.floor(asdf / 1000))) && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
if (_root.activeplayers[i].shieldtime == 0) {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * _root.activeplayers[i].damagemulti);
} else {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * 0.33);
_root.activeplayers[i].shield.gotoAndPlay(23);
}
_root.activeplayers[i].hitnumber = _root.activeplayers[i].hitnumber + 1;
shotgun = _root.activeplayers[i].hitnumber;
_root.activeplayers[i].hittimer = 0;
qwer = _root.activeplayers[i].hitnumber;
if (!_root.activeplayers[i].iszombie) {
_root.CP("fx_blood", _x, _y, 0, 0);
_root.CP("fx_bloodstain", _x + speed, _y, 0, 0);
} else {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
}
if ((shotgun == 6) && (firepower >= 7)) {
_root.CP("fx_combo", _x + speed, _y - 50, 0, -4);
} else if (shotgun == 1) {
_root.hitsound();
_root.CP("fx_combo", _x + speed, _y - 50, 0, qwer);
shotgunhit(_root.activeplayers[i]);
}
tagplayer(_root.activeplayers[i]);
if ((_root.gotocampaign && (_root.missionnumber == 6)) && (_root.activeplayers[i].AI)) {
_root.activeplayers[i].invisibletime = -30;
}
deletethis();
}
if (_root.activeplayers[i].istarget && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
_root.CP("fx_debris2", _x, _y, 0);
if (_root.activeplayers[i].facing == facing) {
_root.activeplayers[i].anim.gotoAndPlay(80);
}
if (_root.activeplayers[i].facing != facing) {
_root.activeplayers[i].anim.gotoAndPlay(60);
}
_root.activeplayers[i].damage(firepower);
deletethis();
}
}
i++;
}
}
if ((_x < -600) || (_x > 1500)) {
deletethis();
}
time = time + 1;
if (time == 5) {
trail._alpha = 100;
}
if (firepower >= 7) {
if (time > 6) {
_alpha = (_alpha - 25);
}
if (time > 9) {
deletethis();
}
} else {
if (time > 8) {
_alpha = (_alpha - 25);
}
if (time > 11) {
deletethis();
}
}
if (trail._width > 20) {
trail._width = trail._width - 20;
}
} else {
_alpha = (_alpha - 25);
if (_alpha <= 1) {
deletethis();
}
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 337 MovieClip [bullet3] Frame 1
function tagplayer(mc) {
switch (Math.floor(asdf / 1000)) {
case 1 :
mc.gothitby = _root.p1name;
_root.pgsdata[0][4] = _root.pgsdata[0][4] + 1;
break;
case 2 :
mc.gothitby = _root.p2name;
_root.pgsdata[1][4] = _root.pgsdata[1][4] + 1;
break;
case 3 :
mc.gothitby = _root.p3name;
_root.pgsdata[2][4] = _root.pgsdata[2][4] + 1;
break;
case 4 :
mc.gothitby = _root.p4name;
_root.pgsdata[3][4] = _root.pgsdata[3][4] + 1;
}
mc.hitbynade = false;
}
function dothehittest() {
if (!freepass) {
if (_root.ground.hitTest(_x, _y, true)) {
_x = (_x - speed);
i = 1;
while (i <= 5) {
if (_root.ground.hitTest(_x + (i * (speed / 5)), _y, true)) {
_x = (_x + ((speed / 5) * (i - 1)));
break;
}
i++;
}
i = 0;
while (i < 3) {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
i++;
}
removethis = true;
}
}
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 25;
facing = 1;
if (_rotation != 0) {
speed = speed * -1;
facing = -1;
}
time = 1;
freepass = false;
firepower = Math.abs(asdf % 1000);
if (firepower > 60) {
trail.gotoAndStop(2);
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (!removethis) {
fx._xscale = random(50) + 50;
fx._yscale = fx._xscale;
_x = (_x + speed);
_root.CP("fx_instatrail", _x, _y, -90 + (facing * 90), 0);
if (!removethis) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].teamnumber != asdf2) {
if ((_root.activeplayers[i].PLAYERNUMBER != Math.floor(asdf / 1000)) && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * _root.activeplayers[i].damagemulti);
_root.activeplayers[i].hitnumber = _root.activeplayers[i].hitnumber + 1;
_root.activeplayers[i].hittimer = 0;
qwer = _root.activeplayers[i].hitnumber;
_root.hitsound();
_root.CP("fx_combo", _x + speed, _y - 50, 0, qwer);
gotkilled();
tagplayer(_root.activeplayers[i]);
if (_root.activeplayers[i].shieldtime <= 0) {
_root.activeplayers[i].instagib.play();
}
deletethis();
}
if (_root.activeplayers[i].AI) {
if (_root.activeplayers[i].frame.hitTest(_x + (speed * 4), _y, true) || (_root.activeplayers[i].frame.hitTest(_x + (speed * 6), _y, true))) {
if (_root.activeplayers[i].jumpnum == 2) {
_root.activeplayers[i].KEYUP = true;
}
if (((firepower >= 10) && (_root.activeplayers[i].vy > -8)) && (_root.activeplayers[i].jumpnum == 1)) {
_root.activeplayers[i].KEYUP = true;
}
}
}
}
i++;
}
}
if ((_x < -600) || (_x > 1500)) {
deletethis();
}
if (trail._alpha < 100) {
trail._alpha = trail._alpha + 33;
}
if (trail._width < 100) {
trail._width = trail._width + 10;
}
} else {
_alpha = (_alpha - 25);
if (_alpha <= 1) {
deletethis();
}
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 338 MovieClip [bullet4] Frame 1
function tagplayer(mc) {
switch (Math.floor(asdf / 1000)) {
case 1 :
mc.gothitby = _root.p1name;
_root.pgsdata[0][4] = _root.pgsdata[0][4] + 1;
break;
case 2 :
mc.gothitby = _root.p2name;
_root.pgsdata[1][4] = _root.pgsdata[1][4] + 1;
break;
case 3 :
mc.gothitby = _root.p3name;
_root.pgsdata[2][4] = _root.pgsdata[2][4] + 1;
break;
case 4 :
mc.gothitby = _root.p4name;
_root.pgsdata[3][4] = _root.pgsdata[3][4] + 1;
}
mc.hitbynade = false;
}
function dothehittest() {
if (!freepass) {
if (_root.ground.hitTest(_x, _y, true)) {
_x = (_x - speed);
i = 1;
while (i <= 5) {
if (_root.ground.hitTest(_x + (i * (speed / 5)), _y, true)) {
_x = (_x + ((speed / 5) * (i - 1)));
break;
}
i++;
}
i = 0;
while (i < 3) {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
i++;
}
removethis = true;
}
}
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 25;
facing = 1;
if (_rotation != 0) {
speed = speed * -1;
facing = -1;
}
time = 1;
trail._width = 20;
trail._alpha = 0;
freepass = false;
firepower = Math.abs(asdf % 1000);
if (firepower > 50) {
trail.gotoAndStop(2);
}
_alpha = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (!removethis) {
_x = (_x + speed);
if (!removethis) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].teamnumber != asdf2) {
if ((_root.activeplayers[i].PLAYERNUMBER != Math.floor(asdf / 1000)) && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
if (_root.activeplayers[i].shieldtime == 0) {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * _root.activeplayers[i].damagemulti);
} else {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * 0.33);
_root.activeplayers[i].shield.gotoAndPlay(23);
}
_root.activeplayers[i].hitnumber = _root.activeplayers[i].hitnumber + 1;
_root.activeplayers[i].hittimer = 0;
qwer = _root.activeplayers[i].hitnumber;
tagplayer(_root.activeplayers[i]);
deletethis();
}
}
i++;
}
}
_alpha = (_alpha - 100);
if (_alpha <= 1) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if ((_x < -600) || (_x > 1500)) {
deletethis();
}
} else {
_alpha = (_alpha - 25);
if (_alpha <= 1) {
deletethis();
}
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 341 MovieClip [bullet5_grenade] Frame 1
function blowup() {
switch (Math.floor(asdf / 1000)) {
case 1 :
immunity = 1;
break;
case 2 :
immunity = 2;
break;
case 3 :
immunity = 3;
break;
case 4 :
immunity = 4;
}
i = 0;
while (i < _root.activeplayers.length) {
distance = Math.round(Math.sqrt(Math.pow(_root.activeplayers[i]._x - _x, 2) + Math.pow((_root.activeplayers[i]._y - 30) - _y, 2)));
if (distance <= 200) {
radians = Math.atan2((_root.activeplayers[i]._y - 30) - _y, _root.activeplayers[i]._x - _x);
degrees = (radians * 180) / Math.PI;
pushx = (Math.cos((degrees * Math.PI) / 180) * (350 - distance)) / 5;
pushy = (Math.sin((degrees * Math.PI) / 180) * (350 - distance)) / 10;
if (_root.activeplayers[i].PLAYERNUMBER == immunity) {
pushx = pushx * 0.5;
pushy = pushy * 0.5;
}
_root.activeplayers[i].vx = _root.activeplayers[i].vx + pushx;
_root.activeplayers[i].vy = _root.activeplayers[i].vy + pushy;
switch (Math.floor(asdf / 1000)) {
case 1 :
_root.activeplayers[i].gothitby = _root.p1name;
break;
case 2 :
_root.activeplayers[i].gothitby = _root.p2name;
break;
case 3 :
_root.activeplayers[i].gothitby = _root.p3name;
break;
case 4 :
_root.activeplayers[i].gothitby = _root.p4name;
}
_root.activeplayers[i].hitbynade = true;
}
i++;
}
shake = random(30) + 20;
if (random(2) == 0) {
shake = shake * -1;
}
_root._x = _root._x + shake;
_root.CP("fx_ex6", _x, _y - 20, 0);
_root.CP("fx_ex2", _x, _y - 20, 0);
_root.CP("fx_ex", _x, _y - 20, 0);
_root.CP("fx_ex4", _x, _y - 20, 0);
i = 0;
while (i < 5) {
_root.CP("fx_ex5", _x, _y - 20, 0);
i++;
}
i = 0;
while (i < 5) {
_root.CP("fx_ex3", _x, _y - 20, 0);
i++;
}
_root.CP("fx_combo", _x, _y - 50, 0, -2);
removeMovieClip(this);
delete this.onEnterFrame;
}
stop();
firepower = Math.abs(asdf % 1000);
firepower = 20;
vx = _rotation * firepower;
vy = -8;
if (firepower < 0) {
vy = vy + firepower;
}
fusetime = 0;
_rotation = random(360);
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
freepass = false;
hitground = false;
_xscale = 80;
_yscale = 80;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_rotation = (_rotation + rotationspeed);
if (vy < 24) {
vy = vy + (_root.gravity + 0.12);
}
_x = (_x + vx);
_y = (_y + vy);
if (!freepass) {
if (_root.ground.hitTest(_x, _y + 8, true) && (vy > 0)) {
_y = (_y - vy);
i = 1;
while (i <= 5) {
if (_root.ground.hitTest(_x, (_y + 8) + (i * (vy / 5)), true)) {
_y = (_y + ((vy / 5) * (i - 1)));
vx = vx * 0.8;
vy = vy * -0.8;
break;
}
i++;
}
}
}
i = 0;
while (i < _root.activeplayers.length) {
distance = Math.round(Math.sqrt(Math.pow(_root.activeplayers[i]._x - _x, 2) + Math.pow((_root.activeplayers[i]._y - 30) - _y, 2)));
if (distance < 40) {
blowup();
}
i++;
}
if ((!_root.ground.hitTest(_x, _y, true)) && (!_root.ground.hitTest(_x, _y + 10, true))) {
freepass = false;
}
if (_root.ground.hitTest(_x, _y, true) && (!freepass)) {
freepass = true;
}
fusetime = fusetime + 1;
if (fusetime > 40) {
blowup();
}
if ((((_y >= 900) || (_x < -500)) || (_x > 1400)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 341 MovieClip [bullet5_grenade] Frame 6
gotoAndPlay (2);
Symbol 342 MovieClip [bullet6] Frame 1
function tagplayer(mc) {
switch (Math.floor(asdf / 1000)) {
case 1 :
mc.gothitby = _root.p1name;
_root.pgsdata[0][4] = _root.pgsdata[0][4] + 1;
break;
case 2 :
mc.gothitby = _root.p2name;
_root.pgsdata[1][4] = _root.pgsdata[1][4] + 1;
break;
case 3 :
mc.gothitby = _root.p3name;
_root.pgsdata[2][4] = _root.pgsdata[2][4] + 1;
break;
case 4 :
mc.gothitby = _root.p4name;
_root.pgsdata[3][4] = _root.pgsdata[3][4] + 1;
}
mc.hitbynade = false;
}
function dothehittest() {
if (!freepass) {
if (_root.ground.hitTest(_x, _y, true)) {
_x = (_x - speed);
i = 1;
while (i <= 5) {
if (_root.ground.hitTest(_x + (i * (speed / 5)), _y, true)) {
_x = (_x + ((speed / 5) * (i - 1)));
break;
}
i++;
}
i = 0;
while (i < 3) {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
i++;
}
removethis = true;
}
}
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 25;
facing = 1;
if (_rotation != 0) {
speed = speed * -1;
facing = -1;
}
time = 1;
trail._width = 20;
trail._alpha = 0;
freepass = false;
firepower = Math.abs(asdf % 1000);
if (firepower > 50) {
trail.gotoAndStop(2);
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (!removethis) {
_x = (_x + speed);
if (!removethis) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].teamnumber != asdf2) {
if (((!_root.activeplayers[i].istarget) && (_root.activeplayers[i].PLAYERNUMBER != Math.floor(asdf / 1000))) && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
if (_root.activeplayers[i].shieldtime == 0) {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * _root.activeplayers[i].damagemulti);
} else {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + ((firepower * facing) * 0.3);
_root.activeplayers[i].shield.gotoAndPlay(23);
}
_root.activeplayers[i].hitnumber = _root.activeplayers[i].hitnumber + 1;
_root.activeplayers[i].hittimer = 0;
qwer = _root.activeplayers[i].hitnumber;
_root.hitsound();
if (!_root.activeplayers[i].iszombie) {
j = 0;
while (j < 4) {
_root.CP("fx_blood", _x, _y, 0, 0);
if (_root.activeplayers[i].iszombie && (j == 1)) {
break;
}
j++;
}
_root.CP("fx_bloodstain", _x + speed, _y, 0, 0);
} else {
j = 0;
while (j < 2) {
_root.CP("fx_spark", _x, _y, 0);
_root.CP("fx_debris", _x, _y, 0);
j++;
}
}
if (firepower >= 40) {
_root.CP("fx_combo", _x + speed, _y - 50, 0, -1);
} else {
_root.CP("fx_combo", _x + speed, _y - 50, 0, qwer);
}
tagplayer(_root.activeplayers[i]);
if ((_root.gotocampaign && (_root.missionnumber == 6)) && (_root.activeplayers[i].AI)) {
_root.activeplayers[i].invisibletime = -30;
}
deletethis();
}
if (_root.activeplayers[i].istarget && (_root.activeplayers[i].frame.hitTest(_x, _y, true))) {
_root.CP("fx_debris2", _x, _y, 0);
if (_root.activeplayers[i].facing == facing) {
_root.activeplayers[i].anim.gotoAndPlay(80);
}
if (_root.activeplayers[i].facing != facing) {
_root.activeplayers[i].anim.gotoAndPlay(60);
}
_root.activeplayers[i].damage(firepower);
deletethis();
}
}
i++;
}
}
if ((_x < -600) || (_x > 1500)) {
deletethis();
}
time = time + 1;
if ((time >= 5) && (trail._alpha < 100)) {
trail._alpha = trail._alpha + 50;
}
if (trail._width < 80) {
trail._width = trail._width + 10;
}
} else {
_alpha = (_alpha - 25);
if (_alpha <= 1) {
deletethis();
}
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 368 MovieClip Frame 1
gotoAndStop(_parent._parent.playernumber);
if ((_name == "gunhand") || (_name == "gunhand2")) {
gotoAndStop(_parent._parent._parent.playernumber);
}
Symbol 373 MovieClip [gun_m1911] Frame 1
shootx = 25;
shooty = 2;
handx = 30;
handy = -5;
shellX = 25;
flashX = 45;
Name = "COOL PISTOL";
_parent._parent.rof = 10;
_parent._parent.firepower = 20;
_parent._parent.recoil = 1;
_parent._parent.blowback = 30;
_parent._parent.bullets = 9;
if (_parent._parent.perknumber == 11) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 373 MovieClip [gun_m1911] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 373 MovieClip [gun_m1911] Frame 3
_parent._parent.ejectshell();
Symbol 373 MovieClip [gun_m1911] Frame 7
gotoAndPlay (2);
Symbol 373 MovieClip [gun_m1911] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 373 MovieClip [gun_m1911] Frame 19
_root.CP("fx_dropmag", _parent._parent._x + ((_parent._parent.hand1.hand._x - 5) * _parent._parent.facing), _parent._parent._y - 20, 0, 0);
Symbol 373 MovieClip [gun_m1911] Frame 47
_root.playsound("pistol_mag.wav");
Symbol 373 MovieClip [gun_m1911] Frame 56
_root.playsound("pistol_slide.wav");
Symbol 373 MovieClip [gun_m1911] Frame 60
gotoAndPlay (2);
_parent._parent.bullets = 9;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 379 MovieClip [gun_deagle] Frame 1
shootx = 25;
shooty = 2;
handx = 30;
handy = -5;
shellX = 20;
flashX = 47;
Name = "SAND HAWK";
_parent._parent.rof = 13;
_parent._parent.firepower = 24;
_parent._parent.recoil = 2;
_parent._parent.blowback = 30;
_parent._parent.bullets = 7;
if (_parent._parent.perknumber == 11) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 0.95;
Symbol 379 MovieClip [gun_deagle] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 379 MovieClip [gun_deagle] Frame 3
_parent._parent.ejectshell();
Symbol 379 MovieClip [gun_deagle] Frame 6
gotoAndPlay (2);
Symbol 379 MovieClip [gun_deagle] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 379 MovieClip [gun_deagle] Frame 28
asdf = _parent._parent;
_root.CP("fx_deagle", asdf._x + ((asdf.hand1.hand._x + 30) * asdf.facing), asdf._y - 55, -60 * asdf.facing, asdf.facing);
Symbol 379 MovieClip [gun_deagle] Frame 70
gotoAndPlay (2);
_parent._parent.bullets = 7;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 391 MovieClip [gun_glock] Frame 1
shootx = 25;
shooty = 2;
handx = 30;
handy = -5;
shellX = 25;
flashX = 45;
Name = "GLICK";
_parent._parent.rof = 5;
_parent._parent.firepower = 13;
_parent._parent.recoil = 0.7;
_parent._parent.blowback = 20;
_parent._parent.bullets = 21;
if (_parent._parent.perknumber == 11) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 391 MovieClip [gun_glock] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 391 MovieClip [gun_glock] Frame 3
_parent._parent.ejectshell();
Symbol 391 MovieClip [gun_glock] Frame 5
gotoAndPlay (2);
Symbol 391 MovieClip [gun_glock] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 391 MovieClip [gun_glock] Frame 12
_root.CP("fx_dropmag2", _parent._parent._x + ((_parent._parent.hand1.hand._x - 5) * _parent._parent.facing), _parent._parent._y - 20, 0, 0);
Symbol 391 MovieClip [gun_glock] Frame 42
_root.playsound("pistol_mag.wav");
Symbol 391 MovieClip [gun_glock] Frame 60
_root.playsound("pistol_slide.wav");
Symbol 391 MovieClip [gun_glock] Frame 75
gotoAndPlay (2);
_parent._parent.bullets = 21;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 399 MovieClip [gun_bull] Frame 1
shootx = 23;
shooty = 2;
handx = 28;
handy = -5;
shellX = 25;
flashX = 45;
Name = "ANGRY COW";
_parent._parent.rof = 16;
_parent._parent.firepower = 30;
_parent._parent.recoil = 3;
_parent._parent.blowback = 30;
_parent._parent.bullets = 6;
if (_parent._parent.perknumber == 11) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.95;
Symbol 399 MovieClip [gun_bull] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 399 MovieClip [gun_bull] Frame 3
gotoAndPlay (2);
Symbol 399 MovieClip [gun_bull] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
Symbol 399 MovieClip [gun_bull] Frame 19
_root.playsound("pistol_mag.wav");
Symbol 399 MovieClip [gun_bull] Frame 26
asdf = _parent._parent;
i = 0;
while (i < 6) {
_root.CP("fx_shell4", asdf._x + ((asdf.hand1.hand._x + 4) * asdf.facing), asdf._y - 38, -60 * asdf.facing, asdf.facing);
i++;
}
Symbol 399 MovieClip [gun_bull] Frame 57
_root.playsound("pistol_slide.wav");
Symbol 399 MovieClip [gun_bull] Frame 64
_root.CP("fx_speedloader", asdf._x + ((asdf.hand1.hand._x + 4) * asdf.facing), asdf._y - 38, -60 * asdf.facing, asdf.facing);
Symbol 399 MovieClip [gun_bull] Frame 70
gotoAndPlay (2);
_parent._parent.bullets = 6;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 408 MovieClip [gun_49] Frame 1
shootx = 25;
shooty = 2;
handx = 30;
handy = -5;
shellX = 25;
flashX = 45;
Name = "FIFTY EIGHT";
_parent._parent.rof = 8;
_parent._parent.firepower = 18;
_parent._parent.recoil = 0.7;
_parent._parent.blowback = 20;
_parent._parent.bullets = 16;
if (_parent._parent.perknumber == 11) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 408 MovieClip [gun_49] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 408 MovieClip [gun_49] Frame 3
_parent._parent.ejectshell();
Symbol 408 MovieClip [gun_49] Frame 7
gotoAndPlay (2);
Symbol 408 MovieClip [gun_49] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
_root.CP("fx_dropmag3", _parent._parent._x + ((_parent._parent.hand1.hand._x - 5) * _parent._parent.facing), _parent._parent._y - 20, 0, 0);
Symbol 408 MovieClip [gun_49] Frame 47
_root.playsound("pistol_mag.wav");
Symbol 408 MovieClip [gun_49] Frame 71
_root.playsound("pistol_slide.wav");
Symbol 408 MovieClip [gun_49] Frame 74
gotoAndPlay (2);
_parent._parent.bullets = 17;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 414 MovieClip [gun_python] Frame 1
shootx = 23;
shooty = 2;
handx = 28;
handy = -5;
shellX = 25;
flashX = 50;
Name = "SNAKE";
_parent._parent.rof = 25;
_parent._parent.firepower = 34;
_parent._parent.recoil = 5;
_parent._parent.blowback = 40;
_parent._parent.bullets = 5;
if (_parent._parent.perknumber == 11) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.95;
Symbol 414 MovieClip [gun_python] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 414 MovieClip [gun_python] Frame 3
gotoAndPlay (2);
Symbol 414 MovieClip [gun_python] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
Symbol 414 MovieClip [gun_python] Frame 23
_root.playsound("pistol_mag.wav");
Symbol 414 MovieClip [gun_python] Frame 31
asdf = _parent._parent;
i = 0;
while (i < 6) {
_root.CP("fx_shell4", asdf._x + ((asdf.hand1.hand._x + 4) * asdf.facing), asdf._y - 38, -60 * asdf.facing, asdf.facing);
i++;
}
Symbol 414 MovieClip [gun_python] Frame 77
_root.playsound("pistol_slide.wav");
Symbol 414 MovieClip [gun_python] Frame 80
_root.CP("fx_speedloader", asdf._x + ((asdf.hand1.hand._x + 4) * asdf.facing), asdf._y - 38, -60 * asdf.facing, asdf.facing);
Symbol 414 MovieClip [gun_python] Frame 86
gotoAndPlay (2);
_parent._parent.bullets = 5;
_parent._parent.idletime = 20;
Symbol 421 MovieClip [gun_m1911gold2] Frame 1
shootx = 25;
shooty = 2;
handx = 30;
handy = -5;
shellX = 25;
flashX = 45;
Name = "COOL PISTOL";
_parent._parent.rof = 10;
_parent._parent.firepower = 30;
_parent._parent.recoil = 1;
_parent._parent.blowback = 30;
_parent._parent.bullets = 9999;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 421 MovieClip [gun_m1911gold2] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 421 MovieClip [gun_m1911gold2] Frame 3
_parent._parent.ejectshell();
Symbol 421 MovieClip [gun_m1911gold2] Frame 7
gotoAndPlay (2);
Symbol 421 MovieClip [gun_m1911gold2] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 421 MovieClip [gun_m1911gold2] Frame 19
_root.CP("fx_dropmag", _parent._parent._x + ((_parent._parent.hand1.hand._x - 5) * _parent._parent.facing), _parent._parent._y - 20, 0, 0);
Symbol 421 MovieClip [gun_m1911gold2] Frame 47
_root.playsound("pistol_mag.wav");
Symbol 421 MovieClip [gun_m1911gold2] Frame 56
_root.playsound("pistol_slide.wav");
Symbol 421 MovieClip [gun_m1911gold2] Frame 60
gotoAndPlay (2);
_parent._parent.bullets = 9999;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 428 MovieClip [gun_m1911weak] Frame 1
shootx = 25;
shooty = 2;
handx = 30;
handy = -5;
shellX = 25;
flashX = 45;
Name = "HANDS EMPTY";
_parent._parent.rof = 10;
_parent._parent.firepower = 20;
_parent._parent.recoil = 1;
_parent._parent.blowback = 30;
_parent._parent.bullets = 9999;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 428 MovieClip [gun_m1911weak] Frame 2
stop();
Symbol 428 MovieClip [gun_m1911weak] Frame 3
stop();
Symbol 428 MovieClip [gun_m1911weak] Frame 4
_parent._parent.ejectshell();
Symbol 428 MovieClip [gun_m1911weak] Frame 8
gotoAndPlay (2);
Symbol 432 MovieClip [gun_instagib] Frame 1
shootx = 12;
shooty = 0;
handx = 42;
handy = -14;
shellX = 20;
flashX = 65;
Name = "DE- MATERIALIZER";
_parent._parent.rof = 12;
if (_root.gotocampaign && (_root.missionnumber == 15)) {
_parent._parent.rof = 18;
}
_parent._parent.firepower = 25;
_parent._parent.recoil = 7;
_parent._parent.blowback = 20;
_parent._parent.bullets = 5;
if (_root.gotocampaign && (_root.missionnumber == 15)) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 40;
_parent._parent.weight = 1;
Symbol 432 MovieClip [gun_instagib] Frame 2
stop();
Symbol 432 MovieClip [gun_instagib] Frame 10
gotoAndPlay (2);
Symbol 434 MovieClip [gun_ak47] Frame 1
shootx = 12;
shooty = -1;
handx = 42;
handy = -14;
shellX = 20;
flashX = 75;
Name = "CLASSIC ASSAULT RIFLE";
_parent._parent.rof = 4;
_parent._parent.firepower = 22;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 434 MovieClip [gun_ak47] Frame 2
stop();
Symbol 434 MovieClip [gun_ak47] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 436 MovieClip [gun_hk] Frame 1
shootx = 10;
shooty = 1;
handx = 42;
handy = -11;
shellX = 20;
flashX = 70;
Name = "COOL SNIPER";
_parent._parent.rof = 31;
_parent._parent.firepower = 60;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.7;
Symbol 436 MovieClip [gun_hk] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 436 MovieClip [gun_hk] Frame 3
_parent.hand._alpha = 0;
Symbol 436 MovieClip [gun_hk] Frame 10
_root.playsound("bolt1.wav");
Symbol 436 MovieClip [gun_hk] Frame 16
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 436 MovieClip [gun_hk] Frame 30
gotoAndPlay (2);
Symbol 438 MovieClip [gun_mp5k] Frame 1
shootx = 10;
shooty = 3;
handx = 42;
handy = -11;
shellX = 20;
flashX = 45;
Name = "SHORT SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 17;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.95;
Symbol 438 MovieClip [gun_mp5k] Frame 2
stop();
Symbol 438 MovieClip [gun_mp5k] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 442 MovieClip [gun_ithaca] Frame 1
shootx = 2;
shooty = -3;
handx = 48;
handy = -12;
shellX = 20;
flashX = 55;
Name = "SAWED OFF SHOTGUN";
_parent._parent.rof = 25;
_parent._parent.firepower = 8;
_parent._parent.recoil = 5;
_parent._parent.blowback = 20;
_parent._parent.bullets = 7;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
shotgun = 7;
Symbol 442 MovieClip [gun_ithaca] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 442 MovieClip [gun_ithaca] Frame 11
_parent._parent.hand2.hand._alpha = 0;
Symbol 442 MovieClip [gun_ithaca] Frame 15
_parent._parent.ejectshot();
Symbol 442 MovieClip [gun_ithaca] Frame 24
gotoAndPlay (2);
Symbol 444 MovieClip [gun_scar] Frame 1
shootx = 12;
shooty = -1;
handx = 48;
handy = -14;
shellX = 20;
flashX = 72;
Name = "MILITARY SNIPER";
_parent._parent.rof = 13;
_parent._parent.firepower = 58;
_parent._parent.recoil = 1.5;
_parent._parent.blowback = 8;
_parent._parent.bullets = 8;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.7;
Symbol 444 MovieClip [gun_scar] Frame 2
stop();
Symbol 444 MovieClip [gun_scar] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 446 MovieClip [gun_usas] Frame 1
shootx = 12;
shooty = 3;
handx = 49;
handy = -11;
shellX = 20;
flashX = 60;
Name = "FAT SHOTGUN";
_parent._parent.rof = 6;
_parent._parent.firepower = 5;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 12;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.85;
shotgun = 7;
Symbol 446 MovieClip [gun_usas] Frame 2
stop();
Symbol 446 MovieClip [gun_usas] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 448 MovieClip [gun_501] Frame 1
shootx = 15;
shooty = 1;
handx = 47;
handy = -11;
shellX = 20;
flashX = 85;
Name = "CLASSIC SNIPER";
_parent._parent.rof = 25;
_parent._parent.firepower = 56;
_parent._parent.recoil = 8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 6;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.75;
Symbol 448 MovieClip [gun_501] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 448 MovieClip [gun_501] Frame 3
_parent.hand._alpha = 0;
Symbol 448 MovieClip [gun_501] Frame 7
_root.playsound("bolt1.wav");
Symbol 448 MovieClip [gun_501] Frame 13
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 448 MovieClip [gun_501] Frame 23
gotoAndPlay (2);
Symbol 450 MovieClip [gun_mini14] Frame 1
shootx = 12;
shooty = 1;
handx = 48;
handy = -14;
shellX = 20;
flashX = 75;
Name = "COMPACT RIFLE";
_parent._parent.rof = 5;
_parent._parent.firepower = 30;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 8;
_parent._parent.bullets = 15;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 12;
_parent._parent.weight = 0.85;
Symbol 450 MovieClip [gun_mini14] Frame 2
stop();
Symbol 450 MovieClip [gun_mini14] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 454 MovieClip [gun_lever] Frame 1
shootx = 2;
shooty = 0;
handx = 40;
handy = -12;
shellX = 20;
flashX = 55;
Name = "LEVER SHOTGUN";
_parent._parent.rof = 18;
_parent._parent.firepower = 8;
_parent._parent.recoil = 5;
_parent._parent.blowback = 10;
_parent._parent.bullets = 7;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.8;
shotgun = 7;
Symbol 454 MovieClip [gun_lever] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 454 MovieClip [gun_lever] Frame 6
_root.playsound("bolt2.wav");
_parent.hand._alpha = 0;
Symbol 454 MovieClip [gun_lever] Frame 12
_parent._parent.ejectshot();
Symbol 454 MovieClip [gun_lever] Frame 17
gotoAndPlay (2);
Symbol 456 MovieClip [gun_p90] Frame 1
shootx = 30;
shooty = -5;
handx = 45;
handy = -11;
shellX = 5;
flashX = 65;
Name = "TACTICAL SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 14;
_parent._parent.recoil = 0.3;
_parent._parent.blowback = 5;
_parent._parent.bullets = 50;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 456 MovieClip [gun_p90] Frame 2
stop();
Symbol 456 MovieClip [gun_p90] Frame 3
_parent._parent.ejectshell3();
gotoAndPlay (2);
Symbol 458 MovieClip [gun_m17] Frame 1
shootx = 23;
shooty = -1;
handx = 51;
handy = -11;
shellX = -3;
flashX = 58;
Name = "BULLPUP ASSAULT RIFLE";
_parent._parent.rof = 4;
_parent._parent.firepower = 22;
_parent._parent.recoil = 0.5;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 458 MovieClip [gun_m17] Frame 2
stop();
Symbol 458 MovieClip [gun_m17] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 460 MovieClip [gun_bizon] Frame 1
shootx = 10;
shooty = 3;
handx = 42;
handy = -11;
shellX = 20;
flashX = 50;
Name = "COMPACT SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 14;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 48;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 460 MovieClip [gun_bizon] Frame 2
stop();
Symbol 460 MovieClip [gun_bizon] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 462 MovieClip [gun_tommy] Frame 1
shootx = 10;
shooty = 1;
handx = 42;
handy = -11;
shellX = 20;
flashX = 60;
Name = "MAFIA SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 25;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 8;
_parent._parent.weight = 0.8;
Symbol 462 MovieClip [gun_tommy] Frame 2
stop();
Symbol 462 MovieClip [gun_tommy] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 464 MovieClip [gun_ump] Frame 1
shootx = 15;
shooty = 3;
handx = 47;
handy = -12;
shellX = 25;
flashX = 50;
Name = "SLICK SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 21;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 25;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 464 MovieClip [gun_ump] Frame 2
stop();
Symbol 464 MovieClip [gun_ump] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 466 MovieClip [gun_augsmg] Frame 1
shootx = 25;
shooty = 2;
handx = 47;
handy = -10;
shellX = 0;
flashX = 53;
Name = "BULLPUP SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 466 MovieClip [gun_augsmg] Frame 2
stop();
Symbol 466 MovieClip [gun_augsmg] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 468 MovieClip [gun_mp5a3] Frame 1
shootx = 10;
shooty = 3;
handx = 42;
handy = -13;
shellX = 20;
flashX = 55;
Name = "POLICE SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 18;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 468 MovieClip [gun_mp5a3] Frame 2
stop();
Symbol 468 MovieClip [gun_mp5a3] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 470 MovieClip [gun_lusa] Frame 1
shootx = 15;
shooty = 3;
handx = 42;
handy = -12;
shellX = 25;
flashX = 50;
Name = "LOSER SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 4;
_parent._parent.recoil = 0.2;
_parent._parent.blowback = 10;
_parent._parent.bullets = 100;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.6;
Symbol 470 MovieClip [gun_lusa] Frame 2
stop();
Symbol 470 MovieClip [gun_lusa] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 472 MovieClip [gun_m12] Frame 1
shootx = 15;
shooty = 3;
handx = 47;
handy = -12;
shellX = 25;
flashX = 50;
Name = "LIGHT SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 15;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 32;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 472 MovieClip [gun_m12] Frame 2
stop();
Symbol 472 MovieClip [gun_m12] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 474 MovieClip [gun_mas38] Frame 1
shootx = 18;
shooty = 2;
handx = 40;
handy = -12;
shellX = 25;
flashX = 55;
Name = "ANTIQUE SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 15;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 32;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 474 MovieClip [gun_mas38] Frame 2
stop();
Symbol 474 MovieClip [gun_mas38] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 476 MovieClip [gun_aksu] Frame 1
shootx = 18;
shooty = -2;
handx = 52;
handy = -14;
shellX = 25;
flashX = 60;
Name = "COMPACT ASSAULT RIFLE";
_parent._parent.rof = 4;
_parent._parent.firepower = 22;
_parent._parent.recoil = 1;
_parent._parent.blowback = 10;
_parent._parent.bullets = 25;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 5;
_parent._parent.weight = 0.85;
Symbol 476 MovieClip [gun_aksu] Frame 2
stop();
Symbol 476 MovieClip [gun_aksu] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 478 MovieClip [gun_kriss] Frame 1
shootx = 15;
shooty = -6;
handx = 51;
handy = -12;
shellX = 25;
flashX = 53;
Name = "ADVANCED SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 16;
_parent._parent.recoil = 0.2;
_parent._parent.blowback = 5;
_parent._parent.bullets = 28;
_parent._parent.idlerotate = 20;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 478 MovieClip [gun_kriss] Frame 2
stop();
Symbol 478 MovieClip [gun_kriss] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 480 MovieClip [gun_mp9] Frame 1
shootx = 20;
shooty = 3;
handx = 43;
handy = -10;
shellX = 17;
flashX = 45;
Name = "MICRO SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 15;
_parent._parent.recoil = 0.5;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.95;
Symbol 480 MovieClip [gun_mp9] Frame 2
stop();
Symbol 480 MovieClip [gun_mp9] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 482 MovieClip [gun_mas] Frame 1
shootx = 18;
shooty = 2;
handx = 40;
handy = -12;
shellX = 25;
flashX = 55;
Name = "OLD SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 15;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 32;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 482 MovieClip [gun_mas] Frame 2
stop();
Symbol 482 MovieClip [gun_mas] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 484 MovieClip [gun_awm] Frame 1
shootx = 10;
shooty = 1;
handx = 42;
handy = -11;
shellX = 25;
flashX = 75;
Name = "MODERN SNIPER";
_parent._parent.rof = 31;
_parent._parent.firepower = 63;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.7;
Symbol 484 MovieClip [gun_awm] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 484 MovieClip [gun_awm] Frame 3
_parent.hand._alpha = 0;
Symbol 484 MovieClip [gun_awm] Frame 10
_root.playsound("bolt1.wav");
Symbol 484 MovieClip [gun_awm] Frame 16
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 484 MovieClip [gun_awm] Frame 30
gotoAndPlay (2);
Symbol 486 MovieClip [gun_hecate] Frame 1
shootx = 10;
shooty = 3;
handx = 47;
handy = -11;
shellX = 20;
flashX = 85;
Name = "HI-POWER SNIPER";
_parent._parent.rof = 31;
_parent._parent.firepower = 70;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.65;
Symbol 486 MovieClip [gun_hecate] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 486 MovieClip [gun_hecate] Frame 3
_parent.hand._alpha = 0;
Symbol 486 MovieClip [gun_hecate] Frame 10
_root.playsound("bolt1.wav");
Symbol 486 MovieClip [gun_hecate] Frame 16
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 486 MovieClip [gun_hecate] Frame 30
gotoAndPlay (2);
Symbol 488 MovieClip [gun_m95] Frame 1
shootx = 20;
shooty = 1;
handx = 42;
handy = -11;
shellX = -5;
flashX = 85;
Name = "BULLPUP SNIPER";
_parent._parent.rof = 31;
_parent._parent.firepower = 63;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = 25;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.7;
Symbol 488 MovieClip [gun_m95] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 488 MovieClip [gun_m95] Frame 3
_parent.hand._alpha = 0;
Symbol 488 MovieClip [gun_m95] Frame 7
_root.playsound("bolt1.wav");
Symbol 488 MovieClip [gun_m95] Frame 16
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 488 MovieClip [gun_m95] Frame 30
gotoAndPlay (2);
Symbol 490 MovieClip [gun_dsr] Frame 1
shootx = 20;
shooty = 1;
handx = 42;
handy = -11;
shellX = -5;
flashX = 75;
Name = "TACTICAL SNIPER";
_parent._parent.rof = 31;
_parent._parent.firepower = 60;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.75;
Symbol 490 MovieClip [gun_dsr] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 490 MovieClip [gun_dsr] Frame 3
_parent.hand._alpha = 0;
Symbol 490 MovieClip [gun_dsr] Frame 9
_root.playsound("bolt1.wav");
Symbol 490 MovieClip [gun_dsr] Frame 16
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 490 MovieClip [gun_dsr] Frame 30
gotoAndPlay (2);
Symbol 492 MovieClip [gun_ssg69] Frame 1
shootx = 10;
shooty = -3;
handx = 42;
handy = -11;
shellX = 25;
flashX = 75;
Name = "RELIABLE SNIPER";
_parent._parent.rof = 25;
_parent._parent.firepower = 60;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.8;
Symbol 492 MovieClip [gun_ssg69] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 492 MovieClip [gun_ssg69] Frame 3
_parent.hand._alpha = 0;
Symbol 492 MovieClip [gun_ssg69] Frame 6
_root.playsound("bolt1.wav");
Symbol 492 MovieClip [gun_ssg69] Frame 13
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 492 MovieClip [gun_ssg69] Frame 24
gotoAndPlay (2);
Symbol 494 MovieClip [gun_lrs2] Frame 1
shootx = 13;
shooty = 1;
handx = 42;
handy = -11;
shellX = 25;
flashX = 75;
Name = "ASSASSIN SNIPER";
_parent._parent.rof = 25;
_parent._parent.firepower = 60;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.9;
Symbol 494 MovieClip [gun_lrs2] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 494 MovieClip [gun_lrs2] Frame 3
_parent.hand._alpha = 0;
Symbol 494 MovieClip [gun_lrs2] Frame 6
_root.playsound("bolt1.wav");
Symbol 494 MovieClip [gun_lrs2] Frame 13
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 494 MovieClip [gun_lrs2] Frame 24
gotoAndPlay (2);
Symbol 496 MovieClip [gun_galatz] Frame 1
shootx = 12;
shooty = -1;
handx = 40;
handy = -16;
shellX = 20;
flashX = 77;
Name = "RAPID SNIPER";
_parent._parent.rof = 15;
_parent._parent.firepower = 51;
_parent._parent.recoil = 1.2;
_parent._parent.blowback = 8;
_parent._parent.bullets = 7;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.8;
Symbol 496 MovieClip [gun_galatz] Frame 2
stop();
Symbol 496 MovieClip [gun_galatz] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 498 MovieClip [gun_vss] Frame 1
shootx = 15;
shooty = -3;
handx = 45;
handy = -16;
shellX = 20;
flashX = 77;
Name = "STEALTH SNIPER";
_parent._parent.rof = 15;
_parent._parent.firepower = 56;
_parent._parent.recoil = 1.2;
_parent._parent.blowback = 8;
_parent._parent.bullets = 10;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.8;
Symbol 498 MovieClip [gun_vss] Frame 2
stop();
Symbol 498 MovieClip [gun_vss] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 500 MovieClip [gun_m76] Frame 1
shootx = 12;
shooty = -2;
handx = 50;
handy = -16;
shellX = 20;
flashX = 79;
Name = "RUGGED SNIPER";
_parent._parent.rof = 12;
_parent._parent.firepower = 55;
_parent._parent.recoil = 1.2;
_parent._parent.blowback = 8;
_parent._parent.bullets = 10;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.8;
Symbol 500 MovieClip [gun_m76] Frame 2
stop();
Symbol 500 MovieClip [gun_m76] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 502 MovieClip [gun_sr25] Frame 1
shootx = 12;
shooty = 3;
handx = 50;
handy = -12;
shellX = 20;
flashX = 79;
Name = "AMERICAN SNIPER";
_parent._parent.rof = 12;
_parent._parent.firepower = 55;
_parent._parent.recoil = 1.5;
_parent._parent.blowback = 8;
_parent._parent.bullets = 8;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.7;
Symbol 502 MovieClip [gun_sr25] Frame 2
stop();
Symbol 502 MovieClip [gun_sr25] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 504 MovieClip [gun_leversniper] Frame 1
shootx = 7;
shooty = 0;
handx = 45;
handy = -12;
shellX = 25;
flashX = 60;
Name = "LEVER SNIPER";
_parent._parent.rof = 18;
_parent._parent.firepower = 60;
_parent._parent.recoil = 5;
_parent._parent.blowback = 10;
_parent._parent.bullets = 7;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.8;
Symbol 504 MovieClip [gun_leversniper] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 504 MovieClip [gun_leversniper] Frame 6
_parent.hand._alpha = 0;
Symbol 504 MovieClip [gun_leversniper] Frame 8
_root.playsound("bolt2.wav");
Symbol 504 MovieClip [gun_leversniper] Frame 12
_parent._parent.ejectshell2();
Symbol 504 MovieClip [gun_leversniper] Frame 17
gotoAndPlay (2);
Symbol 511 MovieClip [gun_sawnoff] Frame 1
shootx = 6;
shooty = -3;
handx = 48;
handy = -12;
shellX = 20;
flashX = 40;
Name = "GANGSTER SHOTGUN";
_parent._parent.rof = 37;
_parent._parent.firepower = 10;
_parent._parent.recoil = 8;
_parent._parent.blowback = 4;
_parent._parent.bullets = 4;
if (_root.gotocampaign && (_root.missionnumber == 10)) {
_parent._parent.bullets = 9999;
}
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.75;
shotgun = 7;
Symbol 511 MovieClip [gun_sawnoff] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 511 MovieClip [gun_sawnoff] Frame 6
_root.playsound("bolt1.wav");
Symbol 511 MovieClip [gun_sawnoff] Frame 7
_parent._parent.hand2.hand._alpha = 0;
Symbol 511 MovieClip [gun_sawnoff] Frame 11
_parent._parent.ejectshot();
_parent._parent.ejectshot();
Symbol 511 MovieClip [gun_sawnoff] Frame 23
_root.playsound("bolt2.wav");
Symbol 511 MovieClip [gun_sawnoff] Frame 36
gotoAndPlay (2);
Symbol 515 MovieClip [gun_ksg] Frame 1
shootx = 16;
shooty = 2;
handx = 58;
handy = -7;
shellX = 0;
flashX = 50;
Name = "TACTICAL SHOTGUN";
_parent._parent.rof = 26;
_parent._parent.firepower = 8;
_parent._parent.recoil = 5;
_parent._parent.blowback = 20;
_parent._parent.bullets = 7;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.8;
shotgun = 7;
Symbol 515 MovieClip [gun_ksg] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 515 MovieClip [gun_ksg] Frame 13
_parent._parent.hand2.hand._alpha = 0;
Symbol 515 MovieClip [gun_ksg] Frame 17
_parent._parent.ejectshot3();
Symbol 515 MovieClip [gun_ksg] Frame 25
gotoAndPlay (2);
Symbol 517 MovieClip [gun_aa12] Frame 1
shootx = 12;
shooty = 3;
handx = 49;
handy = -15;
shellX = 20;
flashX = 60;
Name = "FULL AUTO SHOTGUN";
_parent._parent.rof = 6;
_parent._parent.firepower = 6;
_parent._parent.recoil = 0.2;
_parent._parent.blowback = 8;
_parent._parent.bullets = 12;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.75;
shotgun = 7;
Symbol 517 MovieClip [gun_aa12] Frame 2
stop();
Symbol 517 MovieClip [gun_aa12] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 519 MovieClip [gun_jackhammer] Frame 1
shootx = 23;
shooty = 3;
handx = 52;
handy = -12;
shellX = -1;
flashX = 62;
Name = "PROTOTYPE SHOTGUN";
_parent._parent.rof = 6;
_parent._parent.firepower = 8;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 8;
_parent._parent.bullets = 10;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.7;
shotgun = 7;
Symbol 519 MovieClip [gun_jackhammer] Frame 2
stop();
Symbol 519 MovieClip [gun_jackhammer] Frame 3
_parent._parent.ejectshot3();
gotoAndPlay (2);
Symbol 523 MovieClip [gun_pm12] Frame 1
shootx = 2;
shooty = -1;
handx = 58;
handy = -11;
shellX = 20;
flashX = 55;
Name = "AVERAGE SHOTGUN";
_parent._parent.rof = 25;
_parent._parent.firepower = 7;
_parent._parent.recoil = 5;
_parent._parent.blowback = 20;
_parent._parent.bullets = 10;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.8;
shotgun = 7;
Symbol 523 MovieClip [gun_pm12] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 523 MovieClip [gun_pm12] Frame 15
_parent._parent.hand2.hand._alpha = 0;
Symbol 523 MovieClip [gun_pm12] Frame 18
_parent._parent.ejectshot();
Symbol 523 MovieClip [gun_pm12] Frame 24
gotoAndPlay (2);
Symbol 527 MovieClip [gun_870] Frame 1
shootx = 11;
shooty = -7;
handx = 53;
handy = -13;
shellX = 20;
flashX = 50;
Name = "CHROME SHOTGUN";
_parent._parent.rof = 25;
_parent._parent.firepower = 8;
_parent._parent.recoil = 5;
_parent._parent.blowback = 20;
_parent._parent.bullets = 7;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.8;
shotgun = 7;
Symbol 527 MovieClip [gun_870] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 527 MovieClip [gun_870] Frame 12
_parent._parent.hand2.hand._alpha = 0;
Symbol 527 MovieClip [gun_870] Frame 16
_parent._parent.ejectshot();
Symbol 527 MovieClip [gun_870] Frame 24
gotoAndPlay (2);
Symbol 531 MovieClip [gun_spas12] Frame 1
shootx = 2;
shooty = 2;
handx = 50;
handy = -10;
shellX = 20;
flashX = 58;
Name = "ANTI AIRCRAFT GUN";
_parent._parent.rof = 25;
_parent._parent.firepower = 9;
_parent._parent.recoil = 10;
_parent._parent.blowback = 20;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 40;
_parent._parent.weight = 0.7;
shotgun = 7;
Symbol 531 MovieClip [gun_spas12] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 531 MovieClip [gun_spas12] Frame 15
_parent._parent.hand2.hand._alpha = 0;
Symbol 531 MovieClip [gun_spas12] Frame 18
_parent._parent.ejectshot();
Symbol 531 MovieClip [gun_spas12] Frame 24
gotoAndPlay (2);
Symbol 533 MovieClip [gun_saiga12] Frame 1
shootx = 12;
shooty = -1;
handx = 52;
handy = -14;
shellX = 20;
flashX = 63;
Name = "ASSAULT SHOTGUN";
_parent._parent.rof = 12;
_parent._parent.firepower = 7;
_parent._parent.recoil = 3;
_parent._parent.blowback = 10;
_parent._parent.bullets = 8;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.75;
shotgun = 7;
Symbol 533 MovieClip [gun_saiga12] Frame 2
stop();
Symbol 533 MovieClip [gun_saiga12] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 535 MovieClip [gun_saiga20] Frame 1
shootx = 12;
shooty = -4;
handx = 52;
handy = -14;
shellX = 20;
flashX = 63;
Name = "HUNTING SHOTGUN";
_parent._parent.rof = 12;
_parent._parent.firepower = 6;
_parent._parent.recoil = 2;
_parent._parent.blowback = 10;
_parent._parent.bullets = 7;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.75;
shotgun = 7;
Symbol 535 MovieClip [gun_saiga20] Frame 2
stop();
Symbol 535 MovieClip [gun_saiga20] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 540 MovieClip [gun_spas97] Frame 1
shootx = 2;
shooty = 2;
handx = 55;
handy = -10;
shellX = 20;
flashX = 53;
Name = "FUTURISTIC SHOTGUN";
_parent._parent.rof = 25;
_parent._parent.firepower = 9;
_parent._parent.recoil = 5;
_parent._parent.blowback = 20;
_parent._parent.bullets = 6;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 40;
_parent._parent.weight = 0.7;
shotgun = 7;
Symbol 540 MovieClip [gun_spas97] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 540 MovieClip [gun_spas97] Frame 15
_parent._parent.hand2.hand._alpha = 0;
Symbol 540 MovieClip [gun_spas97] Frame 18
_parent._parent.ejectshot();
Symbol 540 MovieClip [gun_spas97] Frame 24
gotoAndPlay (2);
Symbol 544 MovieClip [gun_moss500] Frame 1
shootx = 0;
shooty = 2;
handx = 51;
handy = -4;
shellX = 20;
flashX = 38;
Name = "STUBBY SHOTGUN";
_parent._parent.rof = 18;
_parent._parent.firepower = 6;
_parent._parent.recoil = 3;
_parent._parent.blowback = 20;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.9;
shotgun = 7;
Symbol 544 MovieClip [gun_moss500] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 544 MovieClip [gun_moss500] Frame 6
_parent._parent.hand2.hand._alpha = 0;
_root.playsound("bolt2.wav");
Symbol 544 MovieClip [gun_moss500] Frame 9
_parent._parent.ejectshot();
Symbol 544 MovieClip [gun_moss500] Frame 15
gotoAndPlay (2);
Symbol 548 MovieClip Frame 1
shootx = -10;
shooty = -3;
handx = 40;
handy = -22;
shellX = 20;
flashX = 71;
Name = "MINIGUN";
_parent._parent.rof = 2;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.5;
_parent._parent.blowback = 0;
_parent._parent.bullets = 150;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.7;
Symbol 550 MovieClip [gun_g36c] Frame 1
shootx = 16;
shooty = -1;
handx = 60;
handy = -12;
shellX = 25;
flashX = 57;
Name = "SHORT ASSAULT RIFLE";
_parent._parent.rof = 4;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 550 MovieClip [gun_g36c] Frame 2
stop();
Symbol 550 MovieClip [gun_g36c] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 552 MovieClip [gun_rpk] Frame 1
shootx = 7;
shooty = 1;
handx = 50;
handy = -13;
shellX = 15;
flashX = 70;
Name = "CLASSIC MACHINE GUN";
_parent._parent.rof = 3;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 40;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.75;
Symbol 552 MovieClip [gun_rpk] Frame 2
stop();
Symbol 552 MovieClip [gun_rpk] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 554 MovieClip [gun_sig552] Frame 1
shootx = 7;
shooty = 0;
handx = 42;
handy = -14;
shellX = 21;
flashX = 64;
Name = "COVERT ASSAULT RIFLE";
_parent._parent.rof = 5;
_parent._parent.firepower = 22;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 554 MovieClip [gun_sig552] Frame 2
stop();
Symbol 554 MovieClip [gun_sig552] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 556 MovieClip [gun_galil] Frame 1
shootx = 12;
shooty = -1;
handx = 48;
handy = -14;
shellX = 20;
flashX = 72;
Name = "GUERILLA ASSAULT RIFLE";
_parent._parent.rof = 5;
_parent._parent.firepower = 25;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 35;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 556 MovieClip [gun_galil] Frame 2
stop();
Symbol 556 MovieClip [gun_galil] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 559 MovieClip [gun_m4] Frame 1
shootx = 12;
shooty = 2;
handx = 51;
handy = -16;
shellX = 21;
flashX = 62;
Name = "ASSAULT CARBINE";
_parent._parent.rof = 4;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.85;
Symbol 559 MovieClip [gun_m4] Frame 2
stop();
Symbol 559 MovieClip [gun_m4] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 561 MovieClip [gun_hk33] Frame 1
shootx = 7;
shooty = 1;
handx = 50;
handy = -17;
shellX = 15;
flashX = 66;
Name = "LONG RANGE RIFLE";
_parent._parent.rof = 7;
_parent._parent.firepower = 32;
_parent._parent.recoil = 2;
_parent._parent.blowback = 7;
_parent._parent.bullets = 20;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.75;
Symbol 561 MovieClip [gun_hk33] Frame 2
stop();
Symbol 561 MovieClip [gun_hk33] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 563 MovieClip [gun_f2000] Frame 1
shootx = 23;
shooty = -1;
handx = 47;
handy = -9;
shellX = 40;
flashX = 56;
Name = "FUTURISTIC ASSAULT RIFLE";
_parent._parent.rof = 4;
_parent._parent.firepower = 25;
_parent._parent.recoil = 0.2;
_parent._parent.blowback = 3;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 563 MovieClip [gun_f2000] Frame 2
stop();
Symbol 563 MovieClip [gun_f2000] Frame 5
_parent._parent.ejectshell4();
gotoAndPlay (2);
Symbol 565 MovieClip [gun_scarh] Frame 1
shootx = 9;
shooty = 1;
handx = 48;
handy = -15;
shellX = 17;
flashX = 65;
Name = "HI-POWER RIFLE";
_parent._parent.rof = 7;
_parent._parent.firepower = 34;
_parent._parent.recoil = 2;
_parent._parent.blowback = 7;
_parent._parent.bullets = 20;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.75;
Symbol 565 MovieClip [gun_scarh] Frame 2
stop();
Symbol 565 MovieClip [gun_scarh] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 567 MovieClip [gun_stoner] Frame 1
shootx = 14;
shooty = 1;
handx = 50;
handy = -11;
shellX = 19;
flashX = 70;
Name = "TOP-LOAD MACHINE GUN";
_parent._parent.rof = 3;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 50;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.7;
Symbol 567 MovieClip [gun_stoner] Frame 2
stop();
Symbol 567 MovieClip [gun_stoner] Frame 3
_parent._parent.ejectshell4();
gotoAndPlay (2);
Symbol 569 MovieClip [gun_m249] Frame 1
shootx = 14;
shooty = 1;
handx = 50;
handy = -8;
shellX = 19;
flashX = 68;
Name = "MILITARY MACHINE GUN";
_parent._parent.rof = 3;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 60;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.7;
Symbol 569 MovieClip [gun_m249] Frame 2
stop();
Symbol 569 MovieClip [gun_m249] Frame 3
_parent._parent.ejectshell4();
gotoAndPlay (2);
Symbol 571 MovieClip [gun_hbar] Frame 1
shootx = 14;
shooty = 1;
handx = 45;
handy = -11;
shellX = 0;
flashX = 70;
Name = "BULLPUP MACHINE GUN";
_parent._parent.rof = 3;
_parent._parent.firepower = 18;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 7;
_parent._parent.bullets = 42;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 571 MovieClip [gun_hbar] Frame 2
stop();
Symbol 571 MovieClip [gun_hbar] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 573 MovieClip [gun_A1] Frame 1
shootx = 10;
shooty = 3;
handx = 42;
handy = -13;
shellX = 20;
flashX = 55;
Name = "GREY SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 15;
_parent._parent.recoil = 0.4;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 573 MovieClip [gun_A1] Frame 2
stop();
Symbol 573 MovieClip [gun_A1] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 575 MovieClip [gun_A2] Frame 1
shootx = 10;
shooty = 3;
handx = 42;
handy = -13;
shellX = 20;
flashX = 55;
Name = "CHEAP SMG";
_parent._parent.rof = 2;
_parent._parent.firepower = 12;
_parent._parent.recoil = 0.3;
_parent._parent.blowback = 10;
_parent._parent.bullets = 32;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 575 MovieClip [gun_A2] Frame 2
stop();
Symbol 575 MovieClip [gun_A2] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 577 MovieClip [gun_A3] Frame 1
shootx = 20;
shooty = 3;
handx = 43;
handy = -10;
shellX = 17;
flashX = 45;
Name = "MINI SMG";
_parent._parent.rof = 3;
_parent._parent.firepower = 16;
_parent._parent.recoil = 0.5;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.95;
Symbol 577 MovieClip [gun_A3] Frame 2
stop();
Symbol 577 MovieClip [gun_A3] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 579 MovieClip [gun_A4] Frame 1
shootx = 7;
shooty = 0;
handx = 42;
handy = -14;
shellX = 21;
flashX = 64;
Name = "CHROME SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.6;
_parent._parent.blowback = 7;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 579 MovieClip [gun_A4] Frame 2
stop();
Symbol 579 MovieClip [gun_A4] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 581 MovieClip [gun_A5] Frame 1
shootx = 15;
shooty = 3;
handx = 47;
handy = -12;
shellX = 25;
flashX = 50;
Name = "FANCY SMG";
_parent._parent.rof = 4;
_parent._parent.firepower = 21;
_parent._parent.recoil = 0.6;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 3;
_parent._parent.weight = 0.9;
Symbol 581 MovieClip [gun_A5] Frame 2
stop();
Symbol 581 MovieClip [gun_A5] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 583 MovieClip [gun_B1] Frame 1
shootx = 9;
shooty = 1;
handx = 48;
handy = -15;
shellX = 17;
flashX = 65;
Name = "RELIABLE RIFLE";
_parent._parent.rof = 5;
_parent._parent.firepower = 28;
_parent._parent.recoil = 1;
_parent._parent.blowback = 7;
_parent._parent.bullets = 20;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.75;
Symbol 583 MovieClip [gun_B1] Frame 2
stop();
Symbol 583 MovieClip [gun_B1] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 585 MovieClip [gun_B2] Frame 1
shootx = 12;
shooty = -1;
handx = 48;
handy = -14;
shellX = 20;
flashX = 72;
Name = "ANTIQUE RIFLE";
_parent._parent.rof = 5;
_parent._parent.firepower = 28;
_parent._parent.recoil = 1;
_parent._parent.blowback = 7;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 585 MovieClip [gun_B2] Frame 2
stop();
Symbol 585 MovieClip [gun_B2] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 587 MovieClip [gun_B3] Frame 1
shootx = 23;
shooty = -1;
handx = 51;
handy = -15;
shellX = -3;
flashX = 58;
Name = "BULLPUP STEALTH RIFLE";
_parent._parent.rof = 4;
_parent._parent.firepower = 24;
_parent._parent.recoil = 0.4;
_parent._parent.blowback = 10;
_parent._parent.bullets = 30;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 587 MovieClip [gun_B3] Frame 2
stop();
Symbol 587 MovieClip [gun_B3] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 589 MovieClip [gun_B4] Frame 1
shootx = 12;
shooty = 2;
handx = 51;
handy = -16;
shellX = 21;
flashX = 62;
Name = "PRECISION CARBINE";
_parent._parent.rof = 5;
_parent._parent.firepower = 26;
_parent._parent.recoil = 0.4;
_parent._parent.blowback = 7;
_parent._parent.bullets = 20;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.85;
Symbol 589 MovieClip [gun_B4] Frame 2
stop();
Symbol 589 MovieClip [gun_B4] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 591 MovieClip [gun_B5] Frame 1
shootx = 7;
shooty = 0;
handx = 42;
handy = -14;
shellX = 21;
flashX = 64;
Name = "OLD ASSAULT RIFLE";
_parent._parent.rof = 3;
_parent._parent.firepower = 19;
_parent._parent.recoil = 0.6;
_parent._parent.blowback = 7;
_parent._parent.bullets = 40;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.8;
Symbol 591 MovieClip [gun_B5] Frame 2
stop();
Symbol 591 MovieClip [gun_B5] Frame 3
_parent._parent.ejectshell();
gotoAndPlay (2);
Symbol 593 MovieClip [gun_C1] Frame 1
shootx = 12;
shooty = 3;
handx = 50;
handy = -16;
shellX = 20;
flashX = 79;
Name = ".50 SNIPER";
_parent._parent.rof = 18;
_parent._parent.firepower = 62;
_parent._parent.recoil = 1.5;
_parent._parent.blowback = 8;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.7;
Symbol 593 MovieClip [gun_C1] Frame 2
stop();
Symbol 593 MovieClip [gun_C1] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 595 MovieClip [gun_C2] Frame 1
shootx = 15;
shooty = -3;
handx = 53;
handy = -8;
shellX = -10;
flashX = 77;
Name = "STEADY SNIPER";
_parent._parent.rof = 12;
_parent._parent.firepower = 48;
_parent._parent.recoil = 1.2;
_parent._parent.blowback = 8;
_parent._parent.bullets = 10;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.8;
Symbol 595 MovieClip [gun_C2] Frame 2
stop();
Symbol 595 MovieClip [gun_C2] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 597 MovieClip [gun_C3] Frame 1
shootx = 10;
shooty = 1;
handx = 42;
handy = -11;
shellX = 25;
flashX = 75;
Name = "SINGLE SHOT SNIPER";
_parent._parent.rof = 31;
_parent._parent.firepower = 70;
_parent._parent.recoil = 10;
_parent._parent.blowback = 10;
_parent._parent.bullets = 1;
_parent._parent.idlerotate = -70;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.7;
Symbol 597 MovieClip [gun_C3] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 597 MovieClip [gun_C3] Frame 3
_parent.hand._alpha = 0;
Symbol 597 MovieClip [gun_C3] Frame 16
_parent._parent.ejectshell2();
Symbol 597 MovieClip [gun_C3] Frame 30
gotoAndPlay (2);
Symbol 599 MovieClip [gun_C4] Frame 1
shootx = 20;
shooty = 1;
handx = 42;
handy = -11;
shellX = -5;
flashX = 75;
Name = "TACTICAL STEALTH SNIPER";
_parent._parent.rof = 25;
_parent._parent.firepower = 55;
_parent._parent.recoil = 5;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.75;
Symbol 599 MovieClip [gun_C4] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 599 MovieClip [gun_C4] Frame 3
_parent.hand._alpha = 0;
Symbol 599 MovieClip [gun_C4] Frame 7
_root.playsound("bolt1.wav");
Symbol 599 MovieClip [gun_C4] Frame 12
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 599 MovieClip [gun_C4] Frame 22
gotoAndPlay (2);
Symbol 601 MovieClip [gun_C5] Frame 1
shootx = 10;
shooty = 1;
handx = 42;
handy = -11;
shellX = 20;
flashX = 70;
Name = "LIGHT SNIPER";
_parent._parent.rof = 31;
_parent._parent.firepower = 50;
_parent._parent.recoil = 7;
_parent._parent.blowback = 10;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 30;
_parent._parent.weight = 0.8;
Symbol 601 MovieClip [gun_C5] Frame 2
stop();
_parent.hand._alpha = 100;
Symbol 601 MovieClip [gun_C5] Frame 3
_parent.hand._alpha = 0;
Symbol 601 MovieClip [gun_C5] Frame 10
_root.playsound("bolt2.wav");
Symbol 601 MovieClip [gun_C5] Frame 16
_parent._parent.ejectshell2();
_root.playsound("bolt2.wav");
Symbol 601 MovieClip [gun_C5] Frame 30
gotoAndPlay (2);
Symbol 603 MovieClip [gun_D1] Frame 1
shootx = 12;
shooty = 3;
handx = 49;
handy = -11;
shellX = 20;
flashX = 60;
Name = "AUTOMATIC SHOTGUN";
_parent._parent.rof = 6;
_parent._parent.firepower = 7;
_parent._parent.recoil = 0.8;
_parent._parent.blowback = 10;
_parent._parent.bullets = 10;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.8;
shotgun = 7;
Symbol 603 MovieClip [gun_D1] Frame 2
stop();
Symbol 603 MovieClip [gun_D1] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 605 MovieClip [gun_D2] Frame 1
shootx = 12;
shooty = 3;
handx = 49;
handy = -8;
shellX = 20;
flashX = 60;
Name = "HI-CAP SHOTGUN";
_parent._parent.rof = 12;
_parent._parent.firepower = 7;
_parent._parent.recoil = 0.6;
_parent._parent.blowback = 8;
_parent._parent.bullets = 12;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.75;
shotgun = 7;
Symbol 605 MovieClip [gun_D2] Frame 2
stop();
Symbol 605 MovieClip [gun_D2] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 609 MovieClip [gun_D3] Frame 1
shootx = 2;
shooty = 2;
handx = 54;
handy = -10;
shellX = 20;
flashX = 58;
Name = "STANDARD SHOTGUN";
_parent._parent.rof = 25;
_parent._parent.firepower = 8;
_parent._parent.recoil = 5;
_parent._parent.blowback = 20;
_parent._parent.bullets = 5;
_parent._parent.idlerotate = -80;
_parent._parent.adjustrof();
_parent._parent.pushback = 40;
_parent._parent.weight = 0.8;
shotgun = 7;
Symbol 609 MovieClip [gun_D3] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
Symbol 609 MovieClip [gun_D3] Frame 15
_parent._parent.hand2.hand._alpha = 0;
Symbol 609 MovieClip [gun_D3] Frame 18
_parent._parent.ejectshot();
Symbol 609 MovieClip [gun_D3] Frame 24
gotoAndPlay (2);
Symbol 611 MovieClip [gun_D4] Frame 1
shootx = 12;
shooty = 3;
handx = 59;
handy = -10;
shellX = 20;
flashX = 60;
Name = "STREET SWEEPER";
_parent._parent.rof = 10;
_parent._parent.firepower = 7;
_parent._parent.recoil = 0.5;
_parent._parent.blowback = 8;
_parent._parent.bullets = 12;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 15;
_parent._parent.weight = 0.85;
shotgun = 7;
Symbol 611 MovieClip [gun_D4] Frame 2
stop();
Symbol 611 MovieClip [gun_D4] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 613 MovieClip [gun_D5] Frame 1
shootx = 12;
shooty = -4;
handx = 52;
handy = -14;
shellX = 20;
flashX = 63;
Name = "4 ROUND SHOTGUN";
_parent._parent.rof = 12;
_parent._parent.firepower = 8;
_parent._parent.recoil = 2;
_parent._parent.blowback = 10;
_parent._parent.bullets = 4;
_parent._parent.idlerotate = 25;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.85;
shotgun = 7;
Symbol 613 MovieClip [gun_D5] Frame 2
stop();
Symbol 613 MovieClip [gun_D5] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 614 MovieClip Frame 1
stop();
Symbol 620 MovieClip [gun_gloves] Frame 1
shootx = -5.5;
shooty = 10.85;
handx = 0;
handy = 0;
shellX = 0;
flashX = 0;
Name = "";
_parent._parent.rof = 12;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0;
_parent._parent.blowback = 0;
_parent._parent.bullets = 9999;
_parent._parent.idlerotate = 0;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
Symbol 620 MovieClip [gun_gloves] Frame 2
stop();
Symbol 620 MovieClip [gun_gloves] Frame 4
asdf = _parent._parent;
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].frame.hitTest(asdf._x + (70 * asdf.facing), asdf._y - 30, true) || (_root.activeplayers[i].frame.hitTest(asdf._x + (35 * asdf.facing), asdf._y - 30, true))) {
_root.activeplayers[i].vx = _root.activeplayers[i].vx + (50 * asdf.facing);
_root.activeplayers[i].hitnumber = _root.activeplayers[i].hitnumber + 1;
_root.activeplayers[i].hittimer = 0;
qwer = _root.activeplayers[i].hitnumber;
_root.CP("fx_combo", asdf._x + (100 * asdf.facing), asdf._y - 80, 0, -7);
}
i++;
}
Symbol 620 MovieClip [gun_gloves] Frame 9
gotoAndPlay (2);
Symbol 624 MovieClip [gun_m1911gold] Frame 1
shootx = 25;
shooty = 2;
handx = 0;
handy = 0;
shellX = 25;
flashX = 45;
Name = "LAME GUN";
_parent._parent.rof = 10;
_parent._parent.firepower = 20;
_parent._parent.recoil = 1;
_parent._parent.blowback = 30;
_parent._parent.bullets = 24;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
Symbol 624 MovieClip [gun_m1911gold] Frame 2
stop();
Symbol 624 MovieClip [gun_m1911gold] Frame 3
_parent._parent.ejectshell();
Symbol 624 MovieClip [gun_m1911gold] Frame 7
gotoAndPlay (2);
Symbol 640 MovieClip [hud_killfeed] Frame 1
_alpha = 0;
time = 0;
if (mckiller != "none") {
messagebox.text = mckiller;
messagebox3.text = mcname;
messagebox2._x = (mckiller.length * 11) + 23;
if (_currentframe == 1) {
messagebox2.text = "KILLED";
messagebox3._x = messagebox2._x + 80;
} else if (_currentframe == 3) {
messagebox2.text = "CHEAPSHOT'd";
messagebox3._x = messagebox2._x + 140;
} else if (_currentframe == 4) {
messagebox2.text = "EXPLODED";
messagebox3._x = messagebox2._x + 110;
} else if (_currentframe == 5) {
messagebox2.text = "GREEDYKILLED";
messagebox3._x = messagebox2._x + 150;
}
} else {
messagebox.text = mcname;
}
stop();
this.onEnterFrame = function () {
if (!_root.gamepaused) {
time = time + 1;
_y = (_y + ((((feednumber - 1) * 30) - _y) / 3));
if ((time <= 10) && (_alpha < 100)) {
_alpha = (_alpha + 10);
}
if (time > 110) {
_alpha = (_alpha - 10);
if (_alpha <= 1) {
_parent.feednumber--;
_parent.scrollup = true;
removeMovieClip(this);
delete this.onEnterFrame;
}
}
if (_parent.scrollup) {
feednumber = feednumber - 1;
}
}
};
Symbol 661 MovieClip [pausemenu] Frame 1
function kill() {
removeMovieClip(this);
delete this.onEnterFrame;
}
btn_exit.onRelease = function () {
_root.endgamefunction();
};
btn_resume.onRelease = function () {
_root.gamepaused = false;
_root.hud.PAUSEPAUSE2();
};
Symbol 664 MovieClip [mapfx_rain] Frame 1
_rotation = -20;
_x = 420;
_y = 350;
Symbol 664 MovieClip [mapfx_rain] Frame 39
gotoAndPlay (2);
Symbol 667 MovieClip [mapfx_snow] Frame 1
_rotation = -20;
_x = 420;
_y = 350;
Symbol 667 MovieClip [mapfx_snow] Frame 127
gotoAndPlay (2);
Symbol 669 MovieClip [mapfx_wall] Frame 1
this.cacheAsBitmap = true;
Symbol 672 MovieClip [fadeaway] Frame 1
_x = (-_root._x);
_y = (-_root._y);
this.onEnterFrame = function () {
_x = (-_root._x);
_y = (-_root._y);
};
_root.playsound2("whoosh.wav");
Symbol 672 MovieClip [fadeaway] Frame 8
if (_root._currentframe == 9) {
_root.menup.swapDepths(1);
removeMovieClip(_root.menup);
delete _root.menup.onEnterFrame;
}
if (_root._currentframe == 10) {
_root.returntomenu();
delete _root.onEnterFrame;
}
if (_root._currentframe == 8) {
_root.gunlib.swapDepths(1);
removeMovieClip(_root.gunlib);
delete _root.gunlib.onEnterFrame;
}
if (_root._currentframe == 7) {
_root.menu_credits.swapDepths(1);
removeMovieClip(_root.menu_credits);
delete _root.menu_credits.onEnterFrame;
}
if (_root._currentframe == 6) {
_root.pgs.swapDepths(1);
removeMovieClip(_root.pgs);
delete _root.pgs.onEnterFrame;
}
if (_root._currentframe == 5) {
Key.removeListener(_root.menu_options.keyListener);
_root.menu_options.swapDepths(1);
removeMovieClip(_root.menu_options);
delete _root.menu_options.onEnterFrame;
}
if (_root._currentframe == 4) {
_root.menu_campaign.swapDepths(1);
removeMovieClip(_root.menu_campaign);
delete _root.menu_campaign.onEnterFrame;
}
if (_root._currentframe == 3) {
_root.menu_challenges.swapDepths(1);
removeMovieClip(_root.menu_challenges);
delete _root.menu_challenges.onEnterFrame;
}
_root.gotoAndPlay(targetframe);
if ((_root._currentframe == 10) && (!_root.gotomenu)) {
_root.stopallmusic();
if (_root.savedata2.data.musicON) {
_root.menumusic = false;
switch (random(3)) {
case 0 :
_root.music2.start(1, 100);
break;
case 1 :
_root.music3.start(1, 100);
break;
case 2 :
_root.music4.start(1, 100);
}
}
} else if ((_root._currentframe == 10) && (_root.gotomenu)) {
_root.stopallmusic();
} else if (_root._currentframe != 10) {
_root.stopallmusic();
}
_root._x = 0;
_root._y = 0;
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
_root.playsound2("whoosh.wav");
Symbol 672 MovieClip [fadeaway] Frame 15
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
Symbol 677 MovieClip Frame 1
_alpha = 0;
switch (_name) {
case "btn1" :
btnNumber = 1;
break;
case "btn2" :
btnNumber = 2;
break;
case "btn3" :
btnNumber = 3;
break;
case "btn4" :
btnNumber = 4;
break;
case "btn5" :
btnNumber = 5;
break;
case "btn6" :
btnNumber = 6;
break;
case "btn7" :
btnNumber = 7;
break;
case "btn8" :
btnNumber = 8;
}
this.onRollOver = function () {
_parent.targety = _y;
if (_parent.slide._alpha < 20) {
_parent.slide._y = _y;
}
if (_parent.slide._currentframe != btnNumber) {
_parent.slide.gotoAndStop(btnNumber);
}
};
Symbol 688 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.facebook.com/ArmorGames", _blank);
};
Symbol 693 MovieClip Frame 1
this.onPress = function () {
getURL ("http://armor.ag/MoreGames", _blank);
};
Symbol 703 MovieClip [mainmenu] Frame 1
this.swapDepths(_root.mainmenudepth);
targety = -200;
slide._alpha = 0;
this.onEnterFrame = function () {
slide._y = slide._y + ((targety - slide._y) / 2);
if ((((_xmouse < btn1._x) || (_xmouse > (btn1._x + btn1._width))) || (_ymouse < btn1._y)) || (_ymouse > (btn8._y + 45))) {
if (slide._alpha > 0) {
slide._alpha = slide._alpha - 20;
}
} else if (slide._alpha < 80) {
slide._alpha = slide._alpha + 20;
}
};
btn1.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 4;
}
};
btn2.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 9;
}
};
btn3.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 8;
}
};
btn4.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 5;
}
};
btn5.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 7;
}
};
btn7.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 3;
}
};
btn8.onRelease = function () {
if (!_root.fadeaway) {
getURL ("http://armorgames.com/play/11419/gun-mayhem", _blank);
}
};
Symbol 712 MovieClip Frame 1
originx = _x;
_x = -200;
time = 0;
this.onEnterFrame = function () {
time = time + 1;
if (time >= 15) {
_x = (_x + ((originx - _x) / 3));
}
if (time > 20) {
if (overlay._alpha < 100) {
overlay._alpha = 100;
}
overlay._xscale = overlay._xscale + ((102 - overlay._xscale) / 3);
if (overlay._xscale >= 100) {
delete this.onEnterFrame;
}
}
};
Symbol 719 MovieClip Frame 1
stop();
Symbol 729 MovieClip Frame 1
switch (this._name) {
case "panel1" :
number = 0;
break;
case "panel2" :
number = 1;
break;
case "panel3" :
number = 2;
break;
case "panel4" :
number = 3;
}
playernumber.gotoAndStop(number + 1);
originY = _y;
_y = 600;
time = 0;
this.onEnterFrame = function () {
time = time + 1;
if (time >= ((number * 3) + 10)) {
_y = (_y + (((originY - 3) - _y) / 3));
if (_y < originY) {
_y = originY;
delete this.onEnterFrame;
}
}
};
if (_root.pgsdata[number][1] == -1) {
_alpha = 0;
} else {
text0.text = _root.pgsdata[number][0];
text1.text = _root.pgsdata[number][1];
text2.text = _root.pgsdata[number][2];
text3.text = Math.round((parseInt(text1.text) / parseInt(text2.text)) * 100) / 100;
if ((parseInt(text1.text) / parseInt(text2.text)) > 100000) {
text3.text = text1.text;
}
if (isNaN(parseInt(text1.text) / parseInt(text2.text))) {
text3.text = 0;
}
text4.text = _root.pgsdata[number][3];
text5.text = _root.pgsdata[number][4];
percentage = Math.round((parseInt(text5.text) / parseInt(text4.text)) * 100);
text6.text = percentage + "%";
text7.text = _root.pgsdata[number][5];
text8.text = _root.pgsdata[number][6];
text9.text = (_root.pgsdata[number][7] * percentage) / 100;
text11.text = _root.pgsdata[number][5] + _root.pgsdata[number][6];
if (isNaN(parseInt(text5.text) / parseInt(text4.text))) {
text6.text = "0%";
text9.text = 0;
}
}
Symbol 732 MovieClip Frame 1
originy = _y;
_y = -80;
this.onEnterFrame = function () {
_y = (_y + (((originy + 2) - _y) / 3));
if (_y >= originy) {
_y = originy;
delete this.onEnterFrame;
}
};
Symbol 738 MovieClip [menuScore] Frame 1
originy = btn_continue._y;
btn_continue._y = 590;
time = 0;
this.onEnterFrame = function () {
time = time + 1;
if ((time >= 20) && (btn_continue._y > originy)) {
btn_continue._y = btn_continue._y + (((originy - 5) - btn_continue._y) / 4);
}
};
btn_back.onRelease = function () {
if (!_root.fadeaway) {
btn_back3.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 9;
_root.gotomenu = false;
}
};
Symbol 760 MovieClip Frame 1
stop();
Symbol 764 MovieClip [player_arrow] Frame 1
_x = 480;
_y = 300;
_alpha = 0;
switch (this._name) {
case "arrow1" :
target = _root.player1;
break;
case "arrow2" :
target = _root.player2;
break;
case "arrow3" :
target = _root.player3;
break;
case "arrow4" :
target = _root.player4;
}
arrow.gotoAndStop(target.playernumber + 1);
this.onEnterFrame = function () {
if (!_root.gamepaused) {
radians = Math.atan2(target._y - _y, target._x - _x);
degrees = (radians * 180) / Math.PI;
_x = ((-_root._x) + 450);
_y = ((-_root._y) + 300);
_rotation = (degrees + 90);
dist._rotation = -_rotation;
dist.disttext.text = Math.round(Math.sqrt(Math.pow(target._x - _x, 2) + Math.pow(target._y - _y, 2)));
if ((((target._y <= ((-_root._y) + 50)) || (target._y >= ((-_root._y) + 550))) || (target._x <= ((-_root._x) + 50))) || (target._x >= ((-_root._x) + 910))) {
_alpha = 100;
} else {
_alpha = 0;
}
if ((target._alpha != 100) && (target.lives <= 0)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 769 MovieClip Frame 1
stop();
if (_parent.flawless == 1) {
gotoAndStop (2);
} else if (_parent.flawless == 2) {
gotoAndStop (3);
}
Symbol 770 MovieClip [player_winner] Frame 1
_x = 0;
_y = -150;
flawless = 0;
if (_parent.lives == _root.totallives) {
flawless = 1;
}
if (_parent.lives == (_root.totallives - 1)) {
flawless = 2;
}
Symbol 770 MovieClip [player_winner] Frame 41
stop();
Symbol 779 MovieClip [wep_ducky] Frame 1
vx = 0;
vy = -5;
fusetime = 0;
if (asdf < 0) {
vx = -2 + (asdf * 1.8);
_xscale = -100;
_rotation = (_rotation - 10);
} else {
vx = 2 + (asdf * 1.8);
}
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
freepass = true;
hitground = false;
_xscale = (_xscale * 0.8);
_yscale = (_yscale * 0.8);
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (vy < 24) {
vy = vy + _root.gravity;
}
if (_xscale > 0) {
if (vx > 2) {
vx = vx + ((2 - vx) / 10);
}
} else if (vx < -2) {
vx = vx + ((-2 - vx) / 10);
}
_x = (_x + vx);
_y = (_y + vy);
if (!freepass) {
if (_root.ground.hitTest(_x, _y + 8, true) && (vy > 0)) {
_y = (_y - vy);
i = 1;
while (i <= 5) {
if (_root.ground.hitTest(_x, (_y + 8) + (i * (vy / 5)), true)) {
_y = (_y + ((vy / 5) * (i - 1)));
vy = vy * -0.4;
break;
}
i++;
}
}
}
if ((!_root.ground.hitTest(_x, _y, true)) && (!_root.ground.hitTest(_x, _y + 10, true))) {
freepass = false;
}
if (_root.ground.hitTest(_x, _y, true) && (!freepass)) {
freepass = true;
}
fusetime = fusetime + 1;
if (fusetime > 80) {
i = 0;
while (i < _root.activeplayers.length) {
distance = Math.round(Math.sqrt(Math.pow(_root.activeplayers[i]._x - _x, 2) + Math.pow((_root.activeplayers[i]._y - 30) - _y, 2)));
if (distance <= 200) {
radians = Math.atan2((_root.activeplayers[i]._y - 30) - _y, _root.activeplayers[i]._x - _x);
degrees = (radians * 180) / Math.PI;
if ((_root.activeplayers[i].perknumber == 6) || (_root.activeplayers[i].shieldtime > 0)) {
pushx = (Math.cos((degrees * Math.PI) / 180) * (350 - distance)) / 20;
pushy = (Math.sin((degrees * Math.PI) / 180) * (350 - distance)) / 40;
if (_root.activeplayers[i].shield._alpha > 99) {
_root.activeplayers[i].shield.gotoAndPlay(23);
}
} else {
pushx = (Math.cos((degrees * Math.PI) / 180) * (350 - distance)) / 4;
pushy = (Math.sin((degrees * Math.PI) / 180) * (350 - distance)) / 8;
}
_root.activeplayers[i].vx = _root.activeplayers[i].vx + pushx;
_root.activeplayers[i].vy = _root.activeplayers[i].vy + pushy;
}
i++;
}
_root.shaketime = 20;
_root._x = _root._x + shake;
_root.CP("fx_ex6", _x, _y - 20, 0);
_root.CP("fx_ex2", _x, _y - 20, 0);
_root.CP("fx_ex", _x, _y - 20, 0);
_root.CP("fx_ex4", _x, _y - 20, 0);
if (_root._quality != "LOW") {
i = 0;
while (i < 5) {
_root.CP("fx_ex5", _x, _y - 20, 0);
i++;
}
i = 0;
while (i < 5) {
_root.CP("fx_ex7", _x, _y - 20, 0);
i++;
}
}
_root.explodesound();
_root.CP("fx_combo", _x, _y - 50, 0, -3);
removeMovieClip(this);
delete this.onEnterFrame;
}
if ((((_y >= 900) || (_x < -500)) || (_x > 1400)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 781 MovieClip [wep_grenade] Frame 1
vx = (Math.random() * 10) - 5;
vy = (Math.random() * 5) - 15;
firepower = Math.abs(asdf % 1000);
vx = _rotation * firepower;
vy = -firepower;
if (firepower < 0) {
vy = vy + firepower;
}
fusetime = 0;
_rotation = (_rotation * 50);
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
freepass = false;
hitground = false;
_xscale = 80;
_yscale = 80;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (!hitground) {
_rotation = (_rotation + rotationspeed);
} else if (Math.abs(90 - _rotation) < Math.abs(-90 - _rotation)) {
_rotation = (_rotation + ((90 - _rotation) / 5));
} else {
_rotation = (_rotation + ((-90 - _rotation) / 5));
}
if (vy < 24) {
vy = vy + (_root.gravity + 0.12);
}
dirx = Math.cos(((_rotation - 90) * Math.PI) / 180) * 25;
diry = Math.sin(((_rotation - 90) * Math.PI) / 180) * 25;
_root.CP("fx_dynamite", _x + dirx, _y + diry, 0);
_x = (_x + vx);
_y = (_y + vy);
if (!freepass) {
if (_root.ground.platform.hitTest(_x, _y + 8, true) && (vy > 0)) {
_y = (_y - vy);
i = 1;
while (i <= 5) {
if (_root.ground.platform.hitTest(_x, (_y + 8) + (i * (vy / 5)), true)) {
_y = (_y + ((vy / 5) * (i - 1)));
rotationspeed = rotationspeed * 0.5;
vx = vx * 0.4;
vy = vy * -0.4;
hitground = true;
break;
}
i++;
}
}
}
if ((!_root.ground.platform.hitTest(_x, _y, true)) && (!_root.ground.platform.hitTest(_x, _y + 10, true))) {
freepass = false;
}
if (_root.ground.platform.hitTest(_x, _y, true) && (!freepass)) {
freepass = true;
}
fusetime = fusetime + 1;
if (fusetime == 40) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].AI) {
distance = Math.round(Math.sqrt(Math.pow(_root.activeplayers[i]._x - _x, 2) + Math.pow((_root.activeplayers[i]._y - 30) - _y, 2)));
if ((_root.activeplayers[i]._y < (_y + 20)) && (distance <= 150)) {
_root.activeplayers[i].KEYUP = true;
if (_root.activeplayers[i]._x < _x) {
_root.activeplayers[i].lockright = 10;
}
if (_root.activeplayers[i]._x > _x) {
_root.activeplayers[i].lockleft = 10;
}
}
}
i++;
}
}
if (((fusetime > 50) && (Math.abs(vx) < 1)) && (Math.abs(vy) < 1)) {
i = 0;
while (i < _root.activeplayers.length) {
distance = Math.round(Math.sqrt(Math.pow(_root.activeplayers[i].actualx - _x, 2) + Math.pow((_root.activeplayers[i].actualy - 30) - _y, 2)));
if (distance <= 200) {
if (_root.activeplayers[i].istarget) {
if (distance < 125) {
_root.activeplayers[i].KILL();
}
} else {
radians = Math.atan2((_root.activeplayers[i]._y - 30) - _y, _root.activeplayers[i]._x - _x);
degrees = (radians * 180) / Math.PI;
if ((_root.activeplayers[i].perknumber == 6) || (_root.activeplayers[i].shieldtime > 0)) {
pushx = (Math.cos((degrees * Math.PI) / 180) * (350 - distance)) / 25;
pushy = (Math.sin((degrees * Math.PI) / 180) * (350 - distance)) / 50;
if (_root.activeplayers[i].shield._alpha > 99) {
_root.activeplayers[i].shield.gotoAndPlay(23);
}
} else {
pushx = (Math.cos((degrees * Math.PI) / 180) * (350 - distance)) / 5;
pushy = (Math.sin((degrees * Math.PI) / 180) * (350 - distance)) / 10;
}
_root.activeplayers[i].vx = _root.activeplayers[i].vx + pushx;
_root.activeplayers[i].vy = _root.activeplayers[i].vy + pushy;
switch (Math.floor(asdf / 1000)) {
case 1 :
_root.activeplayers[i].gothitby = _root.p1name;
break;
case 2 :
_root.activeplayers[i].gothitby = _root.p2name;
break;
case 3 :
_root.activeplayers[i].gothitby = _root.p3name;
break;
case 4 :
_root.activeplayers[i].gothitby = _root.p4name;
}
_root.activeplayers[i].hitbynade = true;
}
}
i++;
}
_root.shaketime = 15;
_root.CP("fx_ex6", _x, _y - 20, 0);
_root.CP("fx_ex2", _x, _y - 20, 0);
_root.CP("fx_ex", _x, _y - 20, 0);
_root.CP("fx_ex4", _x, _y - 20, 0);
if (_root._quality != "LOW") {
i = 0;
while (i < 5) {
_root.CP("fx_ex5", _x, _y - 20, 0);
i++;
}
i = 0;
while (i < 5) {
_root.CP("fx_ex3", _x, _y - 20, 0);
i++;
}
}
_root.explodesound();
_root.CP("fx_combo", _x, _y - 50, 0, -2);
removeMovieClip(this);
delete this.onEnterFrame;
}
if ((((_y >= 900) || (_x < -500)) || (_x > 1400)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 784 MovieClip [crate] Frame 1
function kill() {
j = 0;
while (j < _root.cratearray.length) {
if (_root.cratearray[j] == this) {
_root.cratearray.splice(j, 1);
}
j++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
falling = true;
vy = 10;
stop();
if (_x > ((_root.ground._x + _root.ground.platform._x) + (_root.ground.platform._width / 2))) {
_xscale = (_xscale * -1);
}
_root.cratearray[_root.cratearray.length] = this;
time = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (falling) {
if (vy < 18) {
vy = vy + 1;
}
_y = (_y + vy);
if (_root.ground.platform.hitTest(_x, _y, true)) {
falling = false;
_y = (_y - vy);
i = 1;
while (i <= 5) {
if (_root.ground.platform.hitTest(_x, _y + (i * (vy / 5)), true)) {
_y = (_y + ((vy / 5) * (i - 1)));
play();
break;
}
i++;
}
}
}
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].iszombie) {
break;
}
if (this.hitTest(_root.activeplayers[i].frame)) {
randgun = random(77) + 10;
if ((_root.activeplayers[i].perknumber == 4) && (random(3) == 0)) {
randgun = 55;
}
if (_root.activeplayers[i].perknumber == 12) {
randgun = 44;
}
if (_root.gamemode == 2) {
randgun = 9;
}
if ((randgun == 26) && (_root.activeplayers[i].AI)) {
randgun = 55;
}
_root.activeplayers[i].getgun(randgun);
_root.pgsdata[_root.activeplayers[i].PLAYERNUMBER - 1][5] = _root.pgsdata[_root.activeplayers[i].PLAYERNUMBER - 1][5] + 1;
i = 0;
while (i < 5) {
_root.CP("fx_package", _x, _y, 0);
i++;
}
_root.playsound2("bolt2.wav");
kill();
break;
}
i++;
}
time = time + 1;
if (time >= 350) {
time = 0;
gotoAndPlay (60);
}
if (_root.deleteeverything || (_root.gamewin)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 784 MovieClip [crate] Frame 55
gotoAndPlay (15);
Symbol 784 MovieClip [crate] Frame 73
kill();
Symbol 785 MovieClip [fx_dropgun] Frame 1
if (_rotation < 0) {
_xscale = -100;
}
vx = 5 * _rotation;
vy = -5;
vy = (Math.random() * 5) - 10;
dropgun.gotoAndStop(asdf);
rotationspeed = (Math.random() * 2) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 804 MovieClip [fx_jumpland] Frame 1
gotoAndStop(_root.ground._currentframe);
vx = (Math.random() * 24) - 12;
vy = (Math.random() * 1) - 1;
_alpha = (Math.round(Math.abs(vx) + 10) * 4);
_xscale = (_xscale + random(80));
_yscale = _xscale;
_x = (_x + (random(10) - 5));
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
this.onEnterFrame = function () {
if (!_root.gamepaused) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.8;
_rotation = (_rotation + rotationspeed);
_alpha = (_alpha - 3);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 807 MovieClip Frame 1
if (_currentframe == 1) {
stop();
}
Symbol 807 MovieClip Frame 5
if (_currentframe == 5) {
stop();
}
Symbol 807 MovieClip Frame 15
if (_currentframe == 15) {
gotoAndPlay (1);
}
Symbol 807 MovieClip Frame 28
facing = _parent.facing;
xx = _parent._x;
yy = _parent._y;
_root.CP("wep_ducky", xx + (35 * facing), yy - 25, 0, Math.abs(_parent.vx + facing) * facing);
_parent.offhandammo = _parent.offhandammo - 1;
Symbol 807 MovieClip Frame 35
if (_currentframe == 35) {
gotoAndPlay (1);
}
Symbol 807 MovieClip Frame 41
if (_currentframe == 41) {
gotoAndPlay (1);
}
Symbol 811 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 62
_parent.SELFDESTRUCT();
Symbol 817 MovieClip Frame 1
_alpha = 0;
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 22
stop();
Symbol 822 MovieClip Frame 30
gotoAndPlay (22);
Symbol 823 MovieClip [player] Frame 1
function getgun(wepnum) {
hand1.gun.swapDepths(1);
removeMovieClip(hand1.gun);
wepnumber = wepnum;
if (wepnumber == 8) {
idletime = idlemax;
}
switch (wepnum) {
case 1 :
hand1.attachMovie("gun_m1911", "gun", 1);
break;
case 2 :
hand1.attachMovie("gun_deagle", "gun", 1);
break;
case 3 :
hand1.attachMovie("gun_glock", "gun", 1);
break;
case 4 :
hand1.attachMovie("gun_bull", "gun", 1);
break;
case 5 :
hand1.attachMovie("gun_49", "gun", 1);
break;
case 6 :
hand1.attachMovie("gun_python", "gun", 1);
break;
case 7 :
hand1.attachMovie("gun_m1911gold2", "gun", 1);
break;
case 8 :
hand1.attachMovie("gun_m1911weak", "gun", 1);
break;
case 9 :
hand1.attachMovie("gun_instagib", "gun", 1);
break;
case 10 :
hand1.attachMovie("gun_ak47", "gun", 1);
break;
case 11 :
hand1.attachMovie("gun_hk", "gun", 1);
break;
case 12 :
hand1.attachMovie("gun_mp5k", "gun", 1);
break;
case 13 :
hand1.attachMovie("gun_ithaca", "gun", 1);
break;
case 14 :
hand1.attachMovie("gun_scar", "gun", 1);
break;
case 15 :
hand1.attachMovie("gun_usas", "gun", 1);
break;
case 16 :
hand1.attachMovie("gun_501", "gun", 1);
break;
case 17 :
hand1.attachMovie("gun_mini14", "gun", 1);
break;
case 18 :
hand1.attachMovie("gun_lever", "gun", 1);
break;
case 19 :
hand1.attachMovie("gun_p90", "gun", 1);
break;
case 20 :
hand1.attachMovie("gun_m17", "gun", 1);
break;
case 21 :
hand1.attachMovie("gun_bizon", "gun", 1);
break;
case 22 :
hand1.attachMovie("gun_tommy", "gun", 1);
break;
case 23 :
hand1.attachMovie("gun_ump", "gun", 1);
break;
case 24 :
hand1.attachMovie("gun_augsmg", "gun", 1);
break;
case 25 :
hand1.attachMovie("gun_mp5a3", "gun", 1);
break;
case 26 :
hand1.attachMovie("gun_lusa", "gun", 1);
break;
case 27 :
hand1.attachMovie("gun_m12", "gun", 1);
break;
case 28 :
hand1.attachMovie("gun_mas38", "gun", 1);
break;
case 29 :
hand1.attachMovie("gun_aksu", "gun", 1);
break;
case 30 :
hand1.attachMovie("gun_kriss", "gun", 1);
break;
case 31 :
hand1.attachMovie("gun_mp9", "gun", 1);
break;
case 32 :
hand1.attachMovie("gun_mas", "gun", 1);
break;
case 33 :
hand1.attachMovie("gun_awm", "gun", 1);
break;
case 34 :
hand1.attachMovie("gun_hecate", "gun", 1);
break;
case 35 :
hand1.attachMovie("gun_m95", "gun", 1);
break;
case 36 :
hand1.attachMovie("gun_dsr", "gun", 1);
break;
case 37 :
hand1.attachMovie("gun_ssg69", "gun", 1);
break;
case 38 :
hand1.attachMovie("gun_lrs2", "gun", 1);
break;
case 39 :
hand1.attachMovie("gun_galatz", "gun", 1);
break;
case 40 :
hand1.attachMovie("gun_vss", "gun", 1);
break;
case 41 :
hand1.attachMovie("gun_m76", "gun", 1);
break;
case 42 :
hand1.attachMovie("gun_sr25", "gun", 1);
break;
case 43 :
hand1.attachMovie("gun_leversniper", "gun", 1);
break;
case 44 :
hand1.attachMovie("gun_sawnoff", "gun", 1);
break;
case 45 :
hand1.attachMovie("gun_ksg", "gun", 1);
break;
case 46 :
hand1.attachMovie("gun_aa12", "gun", 1);
break;
case 47 :
hand1.attachMovie("gun_jackhammer", "gun", 1);
break;
case 48 :
hand1.attachMovie("gun_pm12", "gun", 1);
break;
case 49 :
hand1.attachMovie("gun_870", "gun", 1);
break;
case 50 :
hand1.attachMovie("gun_spas12", "gun", 1);
break;
case 51 :
hand1.attachMovie("gun_saiga12", "gun", 1);
break;
case 52 :
hand1.attachMovie("gun_saiga20", "gun", 1);
break;
case 53 :
hand1.attachMovie("gun_spas97", "gun", 1);
break;
case 54 :
hand1.attachMovie("gun_moss500", "gun", 1);
break;
case 55 :
hand1.attachMovie("gun_mini", "gun", 1);
break;
case 56 :
hand1.attachMovie("gun_g36c", "gun", 1);
break;
case 57 :
hand1.attachMovie("gun_rpk", "gun", 1);
break;
case 58 :
hand1.attachMovie("gun_sig552", "gun", 1);
break;
case 59 :
hand1.attachMovie("gun_galil", "gun", 1);
break;
case 60 :
hand1.attachMovie("gun_m4", "gun", 1);
break;
case 61 :
hand1.attachMovie("gun_hk33", "gun", 1);
break;
case 62 :
hand1.attachMovie("gun_f2000", "gun", 1);
break;
case 63 :
hand1.attachMovie("gun_scarh", "gun", 1);
break;
case 64 :
hand1.attachMovie("gun_stoner", "gun", 1);
break;
case 65 :
hand1.attachMovie("gun_m249", "gun", 1);
break;
case 66 :
hand1.attachMovie("gun_hbar", "gun", 1);
break;
case 67 :
hand1.attachMovie("gun_A1", "gun", 1);
break;
case 68 :
hand1.attachMovie("gun_A2", "gun", 1);
break;
case 69 :
hand1.attachMovie("gun_A3", "gun", 1);
break;
case 70 :
hand1.attachMovie("gun_A4", "gun", 1);
break;
case 71 :
hand1.attachMovie("gun_A5", "gun", 1);
break;
case 72 :
hand1.attachMovie("gun_B1", "gun", 1);
break;
case 73 :
hand1.attachMovie("gun_B2", "gun", 1);
break;
case 74 :
hand1.attachMovie("gun_B3", "gun", 1);
break;
case 75 :
hand1.attachMovie("gun_B4", "gun", 1);
break;
case 76 :
hand1.attachMovie("gun_B5", "gun", 1);
break;
case 77 :
hand1.attachMovie("gun_C1", "gun", 1);
break;
case 78 :
hand1.attachMovie("gun_C2", "gun", 1);
break;
case 79 :
hand1.attachMovie("gun_C3", "gun", 1);
break;
case 80 :
hand1.attachMovie("gun_C4", "gun", 1);
break;
case 81 :
hand1.attachMovie("gun_C5", "gun", 1);
break;
case 82 :
hand1.attachMovie("gun_D1", "gun", 1);
break;
case 83 :
hand1.attachMovie("gun_D2", "gun", 1);
break;
case 84 :
hand1.attachMovie("gun_D3", "gun", 1);
break;
case 85 :
hand1.attachMovie("gun_D4", "gun", 1);
break;
case 86 :
hand1.attachMovie("gun_D5", "gun", 1);
}
if (wepnumber >= 9) {
greedykill = true;
}
waittime = 0;
hand1.hand.swapDepths(2);
hand1.hand._alpha = 100;
hand2.hand._alpha = 100;
}
function FIREBULLET() {
if (firepower > 3) {
if (wepnumber == 55) {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (25 * minimulti), -90 + (facing * 90), 0);
}
temp = (Math.random() * 14) - 7;
if (facing == 1) {
_root.CP("bullet6", _x + (23 * minimulti), (_y - (25 * minimulti)) + temp, 0, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
} else {
_root.CP("bullet6", _x - (23 * minimulti), (_y - (25 * minimulti)) + temp, 180, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
}
} else if (wepnumber == 9) {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (38 * minimulti), -90 + (facing * 90), 0);
}
temp = (Math.random() * 6) - 3;
if (facing == 1) {
_root.CP("bullet3", _x + (23 * minimulti), (_y - (38 * minimulti)) + temp, 0, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
} else {
_root.CP("bullet3", _x - (23 * minimulti), (_y - (38 * minimulti)) + temp, 180, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
}
} else if (hand1.gun.shotgun > 0) {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (38 * minimulti), -90 + (facing * 90), 0);
}
i = 0;
while (i < hand1.gun.shotgun) {
_root.CP("bullet2", _x + ((23 * minimulti) * facing), _y - (38 * minimulti), ((-90 + (90 * facing)) - (hand1.gun.shotgun / 1.9)) + (i * 2), firepower + (PLAYERNUMBER * 1000), teamnumber);
i++;
}
} else {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (38 * minimulti), -90 + (facing * 90), 0);
}
temp = (Math.random() * 6) - 3;
if (facing == 1) {
_root.CP("bullet", _x + (23 * minimulti), (_y - (38 * minimulti)) + temp, 0, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
} else {
_root.CP("bullet", _x - (23 * minimulti), (_y - (38 * minimulti)) + temp, 180, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
}
}
_root.gunsound(wepnumber);
}
}
function adjustrof() {
waittime = rof - 2;
if (wepnumber < 10) {
waittime = -10;
}
if (((wepnumber >= 10) && (_root.gamemode != 4)) && (_root.gamemode != 10)) {
_root.CP("fx_cratename", _x, _y - 70, 0, PLAYERNUMBER);
}
if (perknumber == 7) {
bullets = bullets + Math.ceil(bullets * 0.333);
}
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
waittime = -10;
}
if (_root.gamemode == 5) {
bullets = bullets * 2;
}
if (_root.gotochallenge && (_root.p1gun >= 10)) {
bullets = 9999;
}
}
function adjustrof2() {
if (perknumber == 7) {
bullets = bullets + Math.ceil(bullets * 0.333);
}
}
function ejectshell() {
_root.CP("fx_shell", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshell2() {
_root.CP("fx_shell2", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshell3() {
_root.CP("fx_shell3", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (27 * minimulti), 0, 0);
}
function ejectshell4() {
_root.CP("fx_shell3", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshot() {
_root.CP("fx_shot", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshot3() {
_root.CP("fx_shot3", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (27 * minimulti), 0, 0);
}
function gotkilled() {
_root.diesound();
_root.shaketime = 15;
_root.pgsdata[PLAYERNUMBER - 1][2] = _root.pgsdata[PLAYERNUMBER - 1][2] + 1;
lives = lives - 1;
if (lives < 0) {
lives = 0;
}
_root.pDepth = _root.pDepth + 1;
newmc = _root.attachMovie("fx_bling", "trash" + _root.pDepth, _root.pDepth);
if (gothitby == _root.p1name) {
newmc.asdf = _root.player1;
_root.pgsdata[0][1] = _root.pgsdata[0][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player1.UPGRADE();
}
} else if (gothitby == _root.p2name) {
newmc.asdf = _root.player2;
_root.pgsdata[1][1] = _root.pgsdata[1][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player2.UPGRADE();
}
} else if (gothitby == _root.p3name) {
newmc.asdf = _root.player3;
_root.pgsdata[2][1] = _root.pgsdata[2][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player3.UPGRADE();
}
} else if (gothitby == _root.p4name) {
newmc.asdf = _root.player4;
_root.pgsdata[3][1] = _root.pgsdata[3][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player4.UPGRADE();
}
}
newmc.mod = 1;
if (cheapshottimer < 120) {
newmc.mod = 2;
} else if (greedykill) {
newmc.mod = 3;
} else if (hitbynade) {
newmc.mod = 4;
}
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
newmc.mod = 5;
newmc.leveldisplay = newmc.asdf.currentlevel;
}
if (cheapshottimer < 120) {
_root.hud.killupdate(nametag.nametext.text, gothitby, 2);
} else if (greedykill) {
_root.hud.killupdate(nametag.nametext.text, gothitby, 4);
} else if (hitbynade) {
_root.hud.killupdate(nametag.nametext.text, gothitby, 3);
} else {
_root.hud.killupdate(nametag.nametext.text, gothitby, 1);
}
if (lives > 0) {
respawn();
} else {
currentwave = 0;
_root.hud.update();
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i] == this) {
_root.activeplayers.splice(i, 1);
}
i++;
}
_x = 0;
_y = 1100;
_alpha = 0;
shieldtime = 0;
invisibletime = 0;
jetfuel = 0;
speedtime = 0;
delete this.onEnterFrame;
}
}
function lifebling() {
_root.pDepth = _root.pDepth + 1;
newmc = _root.attachMovie("fx_bling", "trash" + _root.pDepth, _root.pDepth);
newmc.asdf = this;
newmc.mod = 6;
}
function respawn() {
cheapshottimer = 0;
gothitby = "none";
hitbynade = false;
if (((((_root.gamemode == 1) || (_root.gamemode == 3)) || (_root.gamemode == 5)) || (_root.gamemode == 11)) || (_root.gamemode == 12)) {
getgun(defaultgun);
}
if (_root.gamemode == 2) {
getgun(9);
}
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
getgun(currentgun);
}
_y = -500;
_x = ((_root.ground._x + _root.ground.spawnarea._x) + random(_root.ground.spawnarea._width));
vy = 0;
vx = 0;
jumpnum = 1;
offhandammo = 3;
if (_root.gotochallenge) {
offhandammo = 0;
}
if ((_root.gotochallenge && (_root.challengenumber == 6)) || (_root.gotochallenge && (_root.challengenumber == 7))) {
offhandammo = 99999 /* 0x01869F */;
}
if (perknumber == 8) {
offhandammo = offhandammo + 2;
}
if (_root.gotocampaign && (_root.missionnumber == 8)) {
offhandammo = 99999 /* 0x01869F */;
}
_root.hud.update();
invisibletime = 0;
shieldtime = 0;
jetfuel = 0;
if (_root.gamemode == 11) {
jetfuel = 100;
}
speedtime = 0;
minitime = 0;
_xscale = 80;
_yscale = 80;
instagib.gotoAndStop(1);
minimulti = 1;
if ((((perknumber == 9) && (_root.gamemode != 4)) && (_root.gamemode != 2)) && (_root.gamemode != 10)) {
randgun = random(57) + 10;
getgun(randgun);
}
shieldtime = 100;
if (_root.gamemode == 5) {
shieldtime = 140;
}
if (_root.gotochallenge) {
shieldtime = 0;
}
if (_root.gotochallenge) {
switch (_root.challengenumber) {
case 1 :
_x = 464;
break;
case 2 :
_x = 574;
break;
case 3 :
_x = 461;
break;
case 4 :
_x = 452;
break;
case 5 :
_x = 452;
break;
case 6 :
_x = 455;
break;
case 7 :
_x = 178;
}
}
if (_root.gotocampaign && (_root.missionnumber == 1)) {
_x = 178;
}
}
function startwalk() {
if (leg1._currentframe == 1) {
leg1.gotoAndPlay(2);
leg2.gotoAndPlay(2);
}
}
function SELFDESTRUCT() {
_root.CP("fx_ex6", _x, _y - 20, 0);
i = 0;
while (i < 3) {
_root.CP("fx_ex5", _x, _y - 20, 0);
i++;
}
i = 0;
while (i < 3) {
_root.CP("fx_ex3", _x, _y - 20, 0);
i++;
}
j = 0;
while (j < 3) {
_root.CP("fx_blood", _x, _y, 0, 0);
j++;
}
_root.CP("fx_combo", _x, _y - 50, 0, -5);
_root.CP("fx_bloodstain", _x, _y, 0, 0);
_root.explodesound();
gotkilled();
}
function selfexplosive() {
i = 0;
while (i < _root.activeplayers.length) {
distance = Math.round(Math.sqrt(Math.pow(_root.activeplayers[i]._x - _x, 2) + Math.pow((_root.activeplayers[i]._y - 30) - _y, 2)));
if (distance <= 200) {
radians = Math.atan2((_root.activeplayers[i]._y - 30) - _y, _root.activeplayers[i]._x - _x);
degrees = (radians * 180) / Math.PI;
if ((_root.activeplayers[i].perknumber == 6) || (_root.activeplayers[i].shieldtime > 0)) {
pushx = (Math.cos((degrees * Math.PI) / 180) * (350 - distance)) / 25;
pushy = (Math.sin((degrees * Math.PI) / 180) * (350 - distance)) / 50;
if (_root.activeplayers[i].shield._alpha > 99) {
_root.activeplayers[i].shield.gotoAndPlay(23);
}
} else {
pushx = (Math.cos((degrees * Math.PI) / 180) * (350 - distance)) / 5;
pushy = (Math.sin((degrees * Math.PI) / 180) * (350 - distance)) / 10;
}
_root.activeplayers[i].vx = _root.activeplayers[i].vx + pushx;
_root.activeplayers[i].vy = _root.activeplayers[i].vy + pushy;
switch (PLAYERNUMBER) {
case 1 :
_root.activeplayers[i].gothitby = _root.p1name;
break;
case 2 :
_root.activeplayers[i].gothitby = _root.p2name;
break;
case 3 :
_root.activeplayers[i].gothitby = _root.p3name;
break;
case 4 :
_root.activeplayers[i].gothitby = _root.p4name;
}
_root.activeplayers[i].hitbynade = true;
}
i++;
}
_root.activeplayers[PLAYERNUMBER - 1].gothitby = "none";
_root.shaketime = 15;
_root.CP("fx_ex6", _x, _y - 20, 0);
_root.CP("fx_ex2", _x, _y - 20, 0);
_root.CP("fx_ex", _x, _y - 20, 0);
_root.CP("fx_ex4", _x, _y - 20, 0);
if (_root._quality != "LOW") {
i = 0;
while (i < 5) {
_root.CP("fx_ex5", _x, _y - 20, 0);
i++;
}
i = 0;
while (i < 5) {
_root.CP("fx_ex3", _x, _y - 20, 0);
i++;
}
}
_root.explodesound();
_root.CP("fx_combo", _x, _y - 50, 0, -2);
gotkilled();
}
function spawnfriend() {
newmc = _root.attachMovie("playerAI", "double", -5);
newmc._x = _x;
newmc._y = _y;
newmc.asdf = this.PLAYERNUMBER;
}
function UPGRADE() {
currentlevel = currentlevel + 1;
if (_root.gamemode == 4) {
switch (currentlevel) {
case 1 :
currentgun = 2;
break;
case 2 :
currentgun = 29;
break;
case 3 :
currentgun = 19;
break;
case 4 :
currentgun = 46;
break;
case 5 :
currentgun = 13;
break;
case 6 :
currentgun = 51;
break;
case 7 :
currentgun = 50;
break;
case 8 :
currentgun = 11;
break;
case 9 :
currentgun = 38;
break;
case 10 :
currentgun = 33;
break;
case 11 :
currentgun = 58;
break;
case 12 :
currentgun = 62;
break;
case 13 :
currentgun = 66;
break;
case 14 :
currentgun = 65;
break;
case 15 :
currentgun = 44;
}
if (currentlevel == 16) {
j = 0;
while (j < _root.activeplayers.length) {
if (_root.activeplayers[j]._name != this._name) {
_root.activeplayers[j].lives = 0;
_root.activeplayers[j].killself = true;
}
j++;
}
} else {
getgun(currentgun);
}
}
if (_root.gamemode == 10) {
switch (currentlevel) {
case 1 :
currentgun = 55;
break;
case 2 :
currentgun = 11;
break;
case 3 :
currentgun = 16;
break;
case 4 :
currentgun = 41;
break;
case 5 :
currentgun = 66;
break;
case 6 :
currentgun = 56;
break;
case 7 :
currentgun = 75;
break;
case 8 :
currentgun = 50;
break;
case 9 :
currentgun = 85;
break;
case 10 :
currentgun = 46;
break;
case 11 :
currentgun = 71;
break;
case 12 :
currentgun = 68;
break;
case 13 :
currentgun = 31;
break;
case 14 :
currentgun = 1;
}
if (currentlevel == 15) {
j = 0;
while (j < _root.activeplayers.length) {
if (_root.activeplayers[j]._name != this._name) {
_root.activeplayers[j].lives = 0;
_root.activeplayers[j].killself = true;
}
j++;
}
} else {
getgun(currentgun);
}
}
}
actualx = _x;
actualy = _y;
vy = 0;
vx = 0;
jumpnum = 0;
jumpkey = false;
nadekey = false;
downkey = false;
freepass = false;
facing = 1;
walkanim = 0;
lives = _root.totallives;
if (_root.gotocampaign && (_root.missionnumber == 13)) {
lives = 1;
}
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
lives = 99999 /* 0x01869F */;
}
offhandnumber = 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
offhandnumber = -1;
}
offhandammo = 3;
if (_root.gotochallenge) {
offhandammo = 0;
}
if ((_root.gotochallenge && (_root.challengenumber == 6)) || (_root.gotochallenge && (_root.challengenumber == 7))) {
offhandammo = 99999 /* 0x01869F */;
}
gothitby = "none";
hitbynade = false;
greedykill = false;
cheapshottimer = 0;
destructkey = false;
AI = false;
waittime = 100;
idletime = 40;
idlemax = 40;
nadepower = 0;
wepnumber = 1;
rof = 12;
firepower = 25;
recoil = 0.8;
blowback = 30;
bullets = 9999;
idlerotate = 40;
pushback = 0;
disabled = false;
hitnumber = 0;
hittimer = 0;
_xscale = 80;
_yscale = 80;
switch (this._name) {
case "player1" :
PLAYERNUMBER = 1;
playernumber = _root.p1color;
KEYSPLODE = 75;
displayname = _root.p1name;
_root.attachMovie("player_arrow", "arrow1", _root.arrow1depth);
defaultgun = _root.p1gun;
perknumber = _root.p1perk;
teamnumber = _root.p1team;
break;
case "player2" :
PLAYERNUMBER = 2;
playernumber = _root.p2color;
KEYSPLODE = 76;
displayname = _root.p2name;
_root.attachMovie("player_arrow", "arrow2", _root.arrow2depth);
defaultgun = _root.p2gun;
perknumber = _root.p2perk;
teamnumber = _root.p2team;
break;
case "player3" :
PLAYERNUMBER = 3;
playernumber = _root.p3color;
KEYSPLODE = 186;
displayname = _root.p3name;
_root.attachMovie("player_arrow", "arrow3", _root.arrow3depth);
defaultgun = _root.p3gun;
perknumber = _root.p3perk;
teamnumber = _root.p3team;
break;
case "player4" :
PLAYERNUMBER = 4;
playernumber = _root.p4color;
KEYSPLODE = 222;
displayname = _root.p4name;
_root.attachMovie("player_arrow", "arrow4", _root.arrow4depth);
defaultgun = _root.p4gun;
perknumber = _root.p4perk;
teamnumber = _root.p4team;
}
KEYUP = _root.savedata2.data.controlarray[PLAYERNUMBER - 1][0];
KEYLEFT = _root.savedata2.data.controlarray[PLAYERNUMBER - 1][1];
KEYDOWN = _root.savedata2.data.controlarray[PLAYERNUMBER - 1][2];
KEYRIGHT = _root.savedata2.data.controlarray[PLAYERNUMBER - 1][3];
KEYSHOOT = _root.savedata2.data.controlarray[PLAYERNUMBER - 1][4];
KEYNADE = _root.savedata2.data.controlarray[PLAYERNUMBER - 1][5];
if (_root.gotocampaign && (_root.missionnumber == 16)) {
perknumber = 0;
}
if (_root.gotocampaign && (_root.missionnumber == 13)) {
perknumber = 0;
}
if (_root.gotocampaign && (_root.missionnumber == 8)) {
perknumber = 0;
defaultgun = 8;
}
if (_root.teamgame) {
nametag.gotoAndStop(teamnumber + 1);
nametag.nametext.text = displayname;
} else {
nametag.gotoAndStop(1);
nametag.nametext.text = displayname;
}
triplejump = false;
if (perknumber == 3) {
triplejump = true;
}
if (perknumber == 8) {
offhandammo = offhandammo + 2;
}
if (perknumber == 10) {
offhandnumber = 2;
}
if (perknumber == 13) {
offhandnumber = 4;
}
invisibletime = 0;
shieldtime = 0;
jetfuel = 0;
if (_root.gamemode == 11) {
jetfuel = 100;
}
speedtime = 0;
minitime = 0;
minimulti = 1;
playerspeed = _root.speed;
killsself = false;
damagemulti = 1;
currentlevel = 0;
UPGRADE();
currentgun = 2;
if (_root.gamemode == 10) {
currentgun = 55;
}
currentwave = 1;
respawn();
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (_root.gamewin) {
vx = 0;
vy = 0;
}
_x = (_x + vx);
_y = (_y + vy);
if (!freepass) {
if (_root.ground.platform.hitTest(_x, _y, true) && (vy > 0)) {
if (Math.abs(vx) < 3) {
gothitby = "none";
hitbynade = false;
greedykill = false;
}
jumpnum = 2;
if (perknumber == 3) {
triplejump = true;
}
_y = (_y - (vy * 1.01));
i = 1;
while (i <= 5) {
if (_root.ground.platform.hitTest(_x, _y + (i * (vy / 5)), true)) {
_y = (_y + ((vy / 5) * (i - 0.5)));
break;
}
i++;
}
if (Math.abs(vy) > 3) {
eyes._y = eyes._y + 10;
hand1._y = hand1._y + 10;
hand2._y = hand2._y + 8;
i = 0;
while (i < 10) {
_root.CP("fx_jumpland", _x, _y, 0);
i++;
}
_root.dropsound();
}
vy = 0;
} else if (jumpnum == 2) {
jumpnum = 1;
}
}
if ((!_root.ground.platform.hitTest(_x, _y - 8, true)) && (!_root.ground.platform.hitTest(_x, _y, true))) {
freepass = false;
}
if (_root.ground.platform.hitTest(_x, _y - 8, true) && (!freepass)) {
freepass = true;
}
if (((_y > 1000) || (_x < -600)) || (_x > 1500)) {
gotkilled();
}
actualx = _x;
actualy = _y;
if ((!disabled) && (!_root.gamewin)) {
if ((((Key.isDown(KEYDOWN) && (jumpnum == 2)) && (!freepass)) && (!downkey)) && (!_root.ground.box.hitTest(_x, _y - 15))) {
if (_y < (_root.ground._y + _root.ground.lowest._y)) {
freepass = true;
vy = vy + 1;
_y = (_y + 5);
jumpnum = 1;
downkey = true;
}
} else if ((!Key.isDown(KEYDOWN)) && (downkey)) {
downkey = false;
}
if (Key.isDown(KEYDOWN)) {
if (_root.ground.box.hitTest(_x, _y - 15, true) && (_root.ground.box._currentframe == 2)) {
_root.ground.box.target = this;
_root.ground.box.play();
}
if (((_root.ground.box.hitTest(_x, _y - 15, true) && (_root.ground.box.randgun > 0)) && (_root.ground.box._currentframe < 160)) && (_root.ground.box._currentframe > 73)) {
getgun(_root.ground.box.randgun);
_root.ground.box.randgun = -1;
_root.ground.box.gotoAndPlay(160);
}
}
if ((Key.isDown(KEYUP) && (!jumpkey)) && (jumpnum > 0)) {
jumpkey = true;
jumpnum = jumpnum - 1;
if (jumpnum == 1) {
vy = (-_root.power) * 1;
i = 0;
while (i < 10) {
_root.CP("fx_jumpland", _x, _y, 0);
i++;
}
} else if (jumpnum == 0) {
vy = (-_root.power) * 0.83;
_root.CP("fx_double", _x, _y);
if (triplejump && (jumpnum == 0)) {
jumpnum = 11;
triplejump = false;
}
}
if (jumpnum == 10) {
jumpnum = 0;
if (vy < -4) {
vy = vy - (_root.power * 0.2);
} else {
vy = (-_root.power) * 0.55;
}
_root.CP("fx_double", _x, _y);
}
_y = (_y - 1);
}
if (!Key.isDown(KEYUP)) {
jumpkey = false;
}
if (((Key.isDown(KEYUP) && (jumpnum <= 0)) && (jetfuel > 0)) && (!jumpkey)) {
if (body.jetpack._alpha != 100) {
body.jetpack._alpha = 100;
}
if (Key.isDown(KEYUP)) {
vy = vy + ((-15 - vy) / 4);
_root.CP("fx_jetpack", _x - (22 * facing), _y - 18, 0);
jetfuel = jetfuel - 1.5;
if (_root.gamemode == 11) {
jetfuel = jetfuel - 0.5;
}
}
}
if (body.jetpack._alpha >= 100) {
body.jetpack.fuel._yscale = jetfuel;
}
if (((body.jetpack._alpha != 0) && (jetfuel <= 0)) && (_root.gamemode != 11)) {
_root.CP("fx_droppack", _x - (20 * facing), _y - 40, facing * -1, 0);
body.jetpack._alpha = 0;
}
if ((jetfuel > 0) && (body.jetpack._alpha != 100)) {
body.jetpack._alpha = 100;
}
if (Key.isDown(KEYLEFT)) {
startwalk();
if (jumpnum == 2) {
vx = vx - (playerspeed * weight);
} else if (_root.ground.lowfriction) {
vx = vx - (playerspeed / 1.4);
} else {
vx = vx - ((playerspeed / 1.1) * weight);
}
if (facing == 1) {
leg1._rotation = leg1._rotation * -1;
leg2._rotation = leg2._rotation * -1;
}
facing = -1;
}
if (Key.isDown(KEYRIGHT)) {
startwalk();
if (jumpnum == 2) {
vx = vx + (playerspeed * weight);
} else if (_root.ground.lowfriction) {
vx = vx + (playerspeed / 1.4);
} else {
vx = vx + ((playerspeed / 1.1) * weight);
}
if (facing == -1) {
leg1._rotation = leg1._rotation * -1;
leg2._rotation = leg2._rotation * -1;
}
facing = 1;
}
}
if (_root.gamewin) {
if (Key.isDown(32)) {
body._rotation = body._rotation + (((-15 * facing) - body._rotation) / 2);
hand1._x = hand1._x + (((-10 * facing) - hand1._x) / 2);
hand2._x = hand2._x + (((-10 * facing) - hand2._x) / 2);
} else {
body._rotation = body._rotation + ((-body._rotation) / 3);
hand1._x = hand1._x + ((-hand1._x) / 3);
hand2._x = hand2._x + ((-hand2._x) / 3);
}
}
if ((!_root.gamewin) && (_root.gamemode != 2)) {
if ((offhandnumber == 1) && (offhandammo > 0)) {
if (Key.isDown(KEYNADE) && (!nadekey)) {
nadekey = true;
hand2.gotoAndPlay(2);
nadepower = 1;
} else if ((!Key.isDown(KEYNADE)) && (nadekey)) {
nadekey = false;
_root.CP("wep_grenade", _x + (30 * facing), _y - 35, facing, nadepower + (PLAYERNUMBER * 1000));
offhandammo = offhandammo - 1;
hand2.gotoAndPlay(6);
}
if (Key.isDown(KEYNADE)) {
if (nadepower < 14) {
nadepower = nadepower + 0.5;
}
}
} else if ((offhandnumber == 2) && (offhandammo > 0)) {
if (Key.isDown(KEYNADE) && (!nadekey)) {
nadekey = true;
if (hand2._currentframe == 1) {
hand2.gotoAndPlay(20);
}
} else if ((!Key.isDown(KEYNADE)) && (nadekey)) {
nadekey = false;
}
} else if (offhandnumber == 3) {
if (Key.isDown(KEYNADE) && (!nadekey)) {
nadekey = true;
if (hand2._currentframe == 1) {
hand2.gotoAndPlay(40);
}
} else if ((!Key.isDown(KEYNADE)) && (nadekey)) {
nadekey = false;
}
} else if (offhandnumber == 4) {
if (Key.isDown(KEYNADE) && (!nadekey)) {
nadekey = true;
selfexplosive();
} else if ((!Key.isDown(KEYNADE)) && (nadekey)) {
nadekey = false;
}
}
}
if (waittime < rof) {
waittime = waittime + 1;
}
if (((((Key.isDown(KEYSHOOT) && (waittime >= rof)) && (!_root.gamewin)) && (hand1.gun._currentframe == 2)) && (bullets > 0)) && (wepnumber != 8)) {
waittime = 0;
idletime = 0;
vx = vx - (recoil * facing);
if (firepower == 0) {
_root.CP("bullet5_grenade", _x + (30 * facing), _y - 20, facing, 20 + (PLAYERNUMBER * 1000));
}
hand2.hand._y = hand1.gun.handy;
hand1.gun._rotation = -blowback;
hand1.hand._x = hand1.gun.shootx;
hand1.hand._y = hand1.gun.shooty;
hand2.hand._x = hand1.gun.handx;
hand2.hand._y = hand1.gun.handy;
hand1.gun._x = hand1.gun.shootx;
hand1.gun._y = hand1.gun.shooty;
hand1.hand._x = hand1.hand._x - pushback;
hand2.hand._x = hand2.hand._x - pushback;
if ((blowback >= 20) && (hand1.gun.handx > 40)) {
hand2.hand._y = -blowback;
}
hand1.gun.play();
FIREBULLET();
_root.pgsdata[PLAYERNUMBER - 1][3] = _root.pgsdata[PLAYERNUMBER - 1][3] + 1;
if (bullets != 9999) {
bullets = bullets - 1;
}
if (bullets <= 0) {
if (wepnumber >= 9) {
if ((_root.gamemode != 4) && (_root.gamemode != 10)) {
_root.CP("fx_dropgun", _x + (20 * facing), _y - 40, facing, wepnumber);
}
if (((((_root.gamemode == 1) || (_root.gamemode == 3)) || (_root.gamemode == 5)) || (_root.gamemode == 11)) || (_root.gamemode == 12)) {
getgun(defaultgun);
}
if (_root.gamemode == 2) {
getgun(8);
}
} else {
hand1.gun.gotoAndPlay(10);
}
}
}
if (idletime <= idlemax) {
idletime = idletime + 1;
}
if (((idletime >= idlemax) && (wepnumber != 55)) && (hand1.gun._currentframe < 40)) {
hand1.gun._x = hand1.gun._x + ((-5.5 - hand1.gun._x) / 3);
hand1.gun._y = hand1.gun._y + ((10.85 - hand1.gun._y) / 3);
hand1.gun._rotation = hand1.gun._rotation + ((idlerotate - hand1.gun._rotation) / 3);
} else {
hand1.hand._x = hand1.hand._x + ((hand1.gun.shootx - hand1.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((hand1.gun.shooty - hand1.hand._y) / 3);
hand2.hand._x = hand2.hand._x + ((hand1.gun.handx - hand2.hand._x) / 3);
hand2.hand._y = hand2.hand._y + ((hand1.gun.handy - hand2.hand._y) / 3);
hand1.gun._x = hand1.gun._x + ((hand1.gun.shootx - hand1.gun._x) / 3);
hand1.gun._y = hand1.gun._y + ((hand1.gun.shooty - hand1.gun._y) / 3);
hand1.gun._rotation = hand1.gun._rotation + ((-hand1.gun._rotation) / 3);
}
if (hittimer <= 40) {
hittimer = hittimer + 1;
}
if (hittimer > 40) {
hitnumber = 0;
}
if (cheapshottimer < 120) {
cheapshottimer = cheapshottimer + 1;
}
if (((((!_root.gotocampaign) && (_root.activeplayers.length == 1)) && (_root.gamemode != 5)) && (_root.gamemode != 3)) && (!_root.gotochallenge)) {
_root.hud.countdown.play();
}
if (_root.gamewin && (!player_winner)) {
this.attachMovie("player_winner", "player_winner", this.getNextHighestDepth());
}
vx = vx * _root.friction;
if (vy > 30) {
vy = 30;
}
if (vy < -30) {
vy = -30;
}
if (vy < 24) {
vy = vy + _root.gravity;
}
if (Math.abs(vx) <= 0.1) {
vx = 0;
}
if ((perknumber == 2) && (weight != 1)) {
weight = 1;
}
if ((perknumber == 5) && (recoil != 0)) {
recoil = 0;
}
if (jetfuel > 0) {
jetfuel = jetfuel - 0.12;
}
if (_root.gamemode == 11) {
if (jetfuel < 100) {
jetfuel = jetfuel + 0.24;
if (jetfuel > 100) {
jetfuel = 100;
}
}
}
if (_root.gamemode == 5) {
if (damagemulti != _root.sr.playermulti) {
damagemulti = _root.sr.playermulti;
}
}
if (_root.gotocampaign) {
if (damagemulti != _root.playermulti) {
damagemulti = _root.playermulti;
}
}
if (((idletime >= idlemax) && (wepnumber != 55)) && (hand1.gun._currentframe < 40)) {
if (walkanim == 1) {
hand1.hand._x = hand1.hand._x + ((-hand1.hand._x) / 3);
hand2.hand._x = hand2.hand._x + ((15 - hand2.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((10.5 - hand1.hand._y) / 3);
hand2.hand._y = hand2.hand._y + ((-3.75 - hand2.hand._y) / 3);
} else if (walkanim == 2) {
hand1.hand._x = hand1.hand._x + ((-10 - hand1.hand._x) / 3);
hand2.hand._x = hand2.hand._x + ((25 - hand2.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((10.5 - hand1.hand._y) / 3);
hand2.hand._y = hand2.hand._y + ((-3.75 - hand2.hand._y) / 3);
} else {
hand1.hand._x = hand1.hand._x + ((-5 - hand1.hand._x) / 3);
hand2.hand._x = hand2.hand._x + ((20 - hand2.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((10.5 - hand1.hand._y) / 3);
hand2.hand._y = hand2.hand._y + ((-3.75 - hand2.hand._y) / 3);
}
}
hand1.gun._x = hand1.hand._x;
if (wepnumber == 6) {
hand1.gun.glove2._x = ((hand1.gun._x * 2) - 5) * -1;
}
if (Math.abs(vx) > 3) {
leg1.play();
leg2.play();
} else if (leg1._currentframe == 1) {
walkanim = 0;
}
if (jumpnum != 2) {
leg1.gotoAndStop(1);
leg2.gotoAndStop(1);
walkanim = 0;
}
if (vy <= -2) {
leg1._rotation = leg1._rotation + (((80 * facing) - leg1._rotation) / 3);
leg2._rotation = leg2._rotation + (((80 * facing) - leg2._rotation) / 3);
body._y = body._y + ((-70 - body._y) / 5);
} else if (vy >= 2) {
leg1._rotation = leg1._rotation + (((-10 * facing) - leg1._rotation) / 3);
leg2._rotation = leg2._rotation + (((-10 * facing) - leg2._rotation) / 3);
body._y = body._y + ((-55 - body._y) / 5);
} else {
leg1._rotation = leg1._rotation + ((-leg1._rotation) / 1.5);
leg2._rotation = leg2._rotation + ((-leg2._rotation) / 1.5);
body._y = body._y + ((-60 - body._y) / 2);
}
leg1._x = -12 * facing;
leg2._x = 9 * facing;
if (Math.abs((-46 + body.head.head._y) - eyes._y) >= 1) {
eyes._y = eyes._y + ((-46 - eyes._y) / 5);
hand1._y = hand1._y + ((-35 - hand1._y) / 5);
hand2._y = hand2._y + ((-25 - hand2._y) / 5);
} else {
eyes._y = -46 + body.head.head._y;
eyes._y = Math.round(eyes._y);
}
if (facing == 1) {
body._xscale = 100;
instagib._xscale = 100;
eyes._xscale = 100;
hand1._xscale = 100;
hand2._xscale = 100;
leg1._xscale = 100;
leg2._xscale = 100;
player_hat._xscale = 100;
player_hat._x = 9.55 * facing;
} else {
body._xscale = -100;
instagib._xscale = -100;
eyes._xscale = -100;
hand1._xscale = -100;
hand2._xscale = -100;
leg1._xscale = -100;
leg2._xscale = -100;
player_hat._xscale = -100;
player_hat._x = 9.55 * facing;
}
player_hat._y = (-75 + body.head.head._y) + (body._y + 60);
if (invisibletime > 0) {
invisibletime = invisibletime - 1;
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_alpha = 0;
}
} else if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (shieldtime > 0) {
shieldtime = shieldtime - 1;
if (shield._alpha < 100) {
shield._alpha = shield._alpha + 100;
}
if (shield._currentframe == 1) {
shield.play();
}
} else {
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 10;
}
if ((shield._alpha <= 1) && (shield._currentframe != 1)) {
shield.gotoAndPlay(1);
}
}
if (speedtime >= 0) {
speedtime = speedtime - 1;
if (playerspeed != (_root.speed * 2)) {
playerspeed = _root.speed * 2;
}
if ((speedtime % 2) == 0) {
if (minitime <= 0) {
_root.CP2("fx_playertrail", _x, _y, PLAYERNUMBER, facing);
}
if (minitime > 0) {
_root.CP2("fx_playertrail", _x, _y, PLAYERNUMBER * -1, facing);
}
}
} else if (playerspeed != _root.speed) {
playerspeed = _root.speed;
}
if (minitime >= 0) {
minitime = minitime - 1;
if (minitime > 260) {
minimulti = minimulti + ((0.6 - minimulti) / 6);
_xscale = (_xscale + ((50 - _xscale) / 3));
_yscale = _xscale;
}
if (minitime == 260) {
if (minimulti != 0.6) {
minimulti = 0.6;
}
_xscale = 50;
_yscale = 50;
}
if (minitime <= 40) {
minimulti = minimulti + ((1 - minimulti) / 6);
_xscale = (_xscale + ((80 - _xscale) / 3));
_yscale = _xscale;
}
} else {
if (minimulti != 1) {
minimulti = 1;
}
if (_xscale != 80) {
_xscale = 80;
_yscale = 80;
}
}
instagib._y = (body._y + 60) - 2.65;
if ((_root.gamemode == 5) && (currentwave != _root.zombiewave)) {
currentwave = _root.zombiewave;
}
if (killself) {
SELFDESTRUCT();
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 825 MovieClip Frame 1
_alpha = 0;
Symbol 826 MovieClip [playerAI] Frame 1
function getgun(wepnum) {
hand1.gun.swapDepths(1);
removeMovieClip(hand1.gun);
wepnumber = wepnum;
if (wepnumber == 8) {
idletime = idlemax;
}
switch (wepnum) {
case 1 :
hand1.attachMovie("gun_m1911", "gun", 1);
break;
case 2 :
hand1.attachMovie("gun_deagle", "gun", 1);
break;
case 3 :
hand1.attachMovie("gun_glock", "gun", 1);
break;
case 4 :
hand1.attachMovie("gun_bull", "gun", 1);
break;
case 5 :
hand1.attachMovie("gun_49", "gun", 1);
break;
case 6 :
hand1.attachMovie("gun_python", "gun", 1);
break;
case 7 :
hand1.attachMovie("gun_m1911gold2", "gun", 1);
break;
case 8 :
hand1.attachMovie("gun_m1911weak", "gun", 1);
break;
case 9 :
hand1.attachMovie("gun_instagib", "gun", 1);
break;
case 10 :
hand1.attachMovie("gun_ak47", "gun", 1);
break;
case 11 :
hand1.attachMovie("gun_hk", "gun", 1);
break;
case 12 :
hand1.attachMovie("gun_mp5k", "gun", 1);
break;
case 13 :
hand1.attachMovie("gun_ithaca", "gun", 1);
break;
case 14 :
hand1.attachMovie("gun_scar", "gun", 1);
break;
case 15 :
hand1.attachMovie("gun_usas", "gun", 1);
break;
case 16 :
hand1.attachMovie("gun_501", "gun", 1);
break;
case 17 :
hand1.attachMovie("gun_mini14", "gun", 1);
break;
case 18 :
hand1.attachMovie("gun_lever", "gun", 1);
break;
case 19 :
hand1.attachMovie("gun_p90", "gun", 1);
break;
case 20 :
hand1.attachMovie("gun_m17", "gun", 1);
break;
case 21 :
hand1.attachMovie("gun_bizon", "gun", 1);
break;
case 22 :
hand1.attachMovie("gun_tommy", "gun", 1);
break;
case 23 :
hand1.attachMovie("gun_ump", "gun", 1);
break;
case 24 :
hand1.attachMovie("gun_augsmg", "gun", 1);
break;
case 25 :
hand1.attachMovie("gun_mp5a3", "gun", 1);
break;
case 26 :
hand1.attachMovie("gun_lusa", "gun", 1);
break;
case 27 :
hand1.attachMovie("gun_m12", "gun", 1);
break;
case 28 :
hand1.attachMovie("gun_mas38", "gun", 1);
break;
case 29 :
hand1.attachMovie("gun_aksu", "gun", 1);
break;
case 30 :
hand1.attachMovie("gun_kriss", "gun", 1);
break;
case 31 :
hand1.attachMovie("gun_mp9", "gun", 1);
break;
case 32 :
hand1.attachMovie("gun_mas", "gun", 1);
break;
case 33 :
hand1.attachMovie("gun_awm", "gun", 1);
break;
case 34 :
hand1.attachMovie("gun_hecate", "gun", 1);
break;
case 35 :
hand1.attachMovie("gun_m95", "gun", 1);
break;
case 36 :
hand1.attachMovie("gun_dsr", "gun", 1);
break;
case 37 :
hand1.attachMovie("gun_ssg69", "gun", 1);
break;
case 38 :
hand1.attachMovie("gun_lrs2", "gun", 1);
break;
case 39 :
hand1.attachMovie("gun_galatz", "gun", 1);
break;
case 40 :
hand1.attachMovie("gun_vss", "gun", 1);
break;
case 41 :
hand1.attachMovie("gun_m76", "gun", 1);
break;
case 42 :
hand1.attachMovie("gun_sr25", "gun", 1);
break;
case 43 :
hand1.attachMovie("gun_leversniper", "gun", 1);
break;
case 44 :
hand1.attachMovie("gun_sawnoff", "gun", 1);
break;
case 45 :
hand1.attachMovie("gun_ksg", "gun", 1);
break;
case 46 :
hand1.attachMovie("gun_aa12", "gun", 1);
break;
case 47 :
hand1.attachMovie("gun_jackhammer", "gun", 1);
break;
case 48 :
hand1.attachMovie("gun_pm12", "gun", 1);
break;
case 49 :
hand1.attachMovie("gun_870", "gun", 1);
break;
case 50 :
hand1.attachMovie("gun_spas12", "gun", 1);
break;
case 51 :
hand1.attachMovie("gun_saiga12", "gun", 1);
break;
case 52 :
hand1.attachMovie("gun_saiga20", "gun", 1);
break;
case 53 :
hand1.attachMovie("gun_spas97", "gun", 1);
break;
case 54 :
hand1.attachMovie("gun_moss500", "gun", 1);
break;
case 55 :
hand1.attachMovie("gun_mini", "gun", 1);
break;
case 56 :
hand1.attachMovie("gun_g36c", "gun", 1);
break;
case 57 :
hand1.attachMovie("gun_rpk", "gun", 1);
break;
case 58 :
hand1.attachMovie("gun_sig552", "gun", 1);
break;
case 59 :
hand1.attachMovie("gun_galil", "gun", 1);
break;
case 60 :
hand1.attachMovie("gun_m4", "gun", 1);
break;
case 61 :
hand1.attachMovie("gun_hk33", "gun", 1);
break;
case 62 :
hand1.attachMovie("gun_f2000", "gun", 1);
break;
case 63 :
hand1.attachMovie("gun_scarh", "gun", 1);
break;
case 64 :
hand1.attachMovie("gun_stoner", "gun", 1);
break;
case 65 :
hand1.attachMovie("gun_m249", "gun", 1);
break;
case 66 :
hand1.attachMovie("gun_hbar", "gun", 1);
break;
case 67 :
hand1.attachMovie("gun_A1", "gun", 1);
break;
case 68 :
hand1.attachMovie("gun_A2", "gun", 1);
break;
case 69 :
hand1.attachMovie("gun_A3", "gun", 1);
break;
case 70 :
hand1.attachMovie("gun_A4", "gun", 1);
break;
case 71 :
hand1.attachMovie("gun_A5", "gun", 1);
break;
case 72 :
hand1.attachMovie("gun_B1", "gun", 1);
break;
case 73 :
hand1.attachMovie("gun_B2", "gun", 1);
break;
case 74 :
hand1.attachMovie("gun_B3", "gun", 1);
break;
case 75 :
hand1.attachMovie("gun_B4", "gun", 1);
break;
case 76 :
hand1.attachMovie("gun_B5", "gun", 1);
break;
case 77 :
hand1.attachMovie("gun_C1", "gun", 1);
break;
case 78 :
hand1.attachMovie("gun_C2", "gun", 1);
break;
case 79 :
hand1.attachMovie("gun_C3", "gun", 1);
break;
case 80 :
hand1.attachMovie("gun_C4", "gun", 1);
break;
case 81 :
hand1.attachMovie("gun_C5", "gun", 1);
break;
case 82 :
hand1.attachMovie("gun_D1", "gun", 1);
break;
case 83 :
hand1.attachMovie("gun_D2", "gun", 1);
break;
case 84 :
hand1.attachMovie("gun_D3", "gun", 1);
break;
case 85 :
hand1.attachMovie("gun_D4", "gun", 1);
break;
case 86 :
hand1.attachMovie("gun_D5", "gun", 1);
}
if (wepnumber >= 9) {
greedykill = true;
}
waittime = 0;
hand1.hand.swapDepths(2);
hand1.hand._alpha = 100;
hand2.hand._alpha = 100;
}
function FIREBULLET() {
if (firepower > 3) {
if (wepnumber == 55) {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (25 * minimulti), -90 + (facing * 90), 0);
}
temp = (Math.random() * 14) - 7;
if (facing == 1) {
_root.CP("bullet6", _x + (23 * minimulti), (_y - (25 * minimulti)) + temp, 0, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
} else {
_root.CP("bullet6", _x - (23 * minimulti), (_y - (25 * minimulti)) + temp, 180, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
}
} else if (wepnumber == 9) {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (38 * minimulti), -90 + (facing * 90), 0);
}
temp = (Math.random() * 6) - 3;
if (facing == 1) {
_root.CP("bullet3", _x + (23 * minimulti), (_y - (38 * minimulti)) + temp, 0, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
} else {
_root.CP("bullet3", _x - (23 * minimulti), (_y - (38 * minimulti)) + temp, 180, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
}
} else if (hand1.gun.shotgun > 0) {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (38 * minimulti), -90 + (facing * 90), 0);
}
i = 0;
while (i < hand1.gun.shotgun) {
_root.CP("bullet2", _x + ((23 * minimulti) * facing), _y - (38 * minimulti), ((-90 + (90 * facing)) - (hand1.gun.shotgun / 1.9)) + (i * 2), firepower + (PLAYERNUMBER * 1000), teamnumber);
i++;
}
} else {
if (firepower > 3) {
_root.CP("fx_flash", _x + ((hand1.gun.flashX * facing) * minimulti), _y - (38 * minimulti), -90 + (facing * 90), 0);
}
temp = (Math.random() * 6) - 3;
if (facing == 1) {
_root.CP("bullet", _x + (23 * minimulti), (_y - (38 * minimulti)) + temp, 0, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
} else {
_root.CP("bullet", _x - (23 * minimulti), (_y - (38 * minimulti)) + temp, 180, ((firepower + random(8)) - 4) + (PLAYERNUMBER * 1000), teamnumber);
}
}
_root.gunsound(wepnumber);
}
}
function adjustrof() {
waittime = rof - 2;
if (wepnumber < 10) {
waittime = -10;
}
if (((wepnumber >= 10) && (_root.gamemode != 4)) && (_root.gamemode != 10)) {
_root.CP("fx_cratename", _x, _y - 70, 0, PLAYERNUMBER);
}
if (perknumber == 7) {
bullets = bullets + Math.ceil(bullets * 0.333);
}
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
waittime = -10;
}
if ((_root.gamemode == 5) && (iszombie)) {
bullets = 9999;
}
}
function adjustrof2() {
if (perknumber == 7) {
bullets = bullets + Math.ceil(bullets * 0.333);
}
}
function ejectshell() {
_root.CP("fx_shell", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshell2() {
_root.CP("fx_shell2", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshell3() {
_root.CP("fx_shell3", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (27 * minimulti), 0, 0);
}
function ejectshell4() {
_root.CP("fx_shell3", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshot() {
_root.CP("fx_shot", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (38 * minimulti), 0, 0);
}
function ejectshot3() {
_root.CP("fx_shot3", _x + ((hand1.gun.shellX * minimulti) * facing), _y - (27 * minimulti), 0, 0);
}
function gotkilled() {
_root.diesound();
_root.shaketime = 15;
if (_name != "double") {
_root.pgsdata[PLAYERNUMBER - 1][2] = _root.pgsdata[PLAYERNUMBER - 1][2] + 1;
}
lives = lives - 1;
_root.pDepth = _root.pDepth + 1;
newmc = _root.attachMovie("fx_bling", "trash" + _root.pDepth, _root.pDepth);
if (gothitby == _root.p1name) {
newmc.asdf = _root.player1;
_root.pgsdata[0][1] = _root.pgsdata[0][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player1.UPGRADE();
}
} else if (gothitby == _root.p2name) {
newmc.asdf = _root.player2;
_root.pgsdata[1][1] = _root.pgsdata[1][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player2.UPGRADE();
}
} else if (gothitby == _root.p3name) {
newmc.asdf = _root.player3;
_root.pgsdata[2][1] = _root.pgsdata[2][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player3.UPGRADE();
}
} else if (gothitby == _root.p4name) {
newmc.asdf = _root.player4;
_root.pgsdata[3][1] = _root.pgsdata[3][1] + 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
_root.player4.UPGRADE();
}
}
newmc.mod = 1;
if (cheapshottimer < 120) {
newmc.mod = 2;
} else if (greedykill) {
newmc.mod = 3;
} else if (hitbynade) {
newmc.mod = 4;
}
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
newmc.mod = 5;
newmc.leveldisplay = newmc.asdf.currentlevel;
}
if (cheapshottimer < 120) {
_root.hud.killupdate(nametag.nametext.text, gothitby, 2);
} else if (greedykill) {
_root.hud.killupdate(nametag.nametext.text, gothitby, 4);
} else if (hitbynade) {
_root.hud.killupdate(nametag.nametext.text, gothitby, 3);
} else {
_root.hud.killupdate(nametag.nametext.text, gothitby, 1);
}
if (lives > 0) {
respawn();
} else {
_root.hud.update();
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i] == this) {
_root.activeplayers.splice(i, 1);
}
i++;
}
_x = 0;
_y = 1100;
_alpha = 0;
shieldtime = 0;
invisibletime = 0;
jetfuel = 0;
if (this._name == "double") {
this.swapDepths(1);
removeMovieClip(this);
}
delete this.onEnterFrame;
}
}
function respawn() {
cheapshottimer = 0;
gothitby = "none";
hitbynade = false;
if (((((_root.gamemode == 1) || (_root.gamemode == 3)) || (_root.gamemode == 11)) || (_root.gamemode == 12)) || (_root.gamemode == 5)) {
getgun(defaultgun);
}
if (_root.gamemode == 2) {
getgun(9);
}
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
getgun(currentgun);
}
if (_name != "double") {
_y = -500;
_x = ((_root.ground._x + _root.ground.spawnarea._x) + random(_root.ground.spawnarea._width));
}
vy = 0;
vx = 0;
jumpnum = 1;
offhandammo = 3;
shieldtime = 0;
invisibletime = 0;
jetfuel = 0;
if (_root.gamemode == 11) {
jetfuel = 100;
}
speedtime = 0;
minitime = 0;
instagib.gotoAndStop(1);
_xscale = 80;
_yscale = 80;
minimulti = 1;
_root.hud.update();
if ((((perknumber == 9) && (_root.gamemode != 4)) && (_root.gamemode != 2)) && (_root.gamemode != 10)) {
randgun = random(57) + 10;
getgun(randgun);
}
if ((!iszombie) && (!dummy)) {
shieldtime = 100;
}
}
function startwalk() {
if (leg1._currentframe == 1) {
leg1.gotoAndPlay(2);
leg2.gotoAndPlay(2);
}
}
function SELFDESTRUCT() {
_root.CP("fx_ex6", _x, _y - 20, 0);
i = 0;
while (i < 5) {
_root.CP("fx_ex5", _x, _y - 20, 0);
i++;
}
i = 0;
while (i < 5) {
_root.CP("fx_ex3", _x, _y - 20, 0);
i++;
}
j = 0;
while (j < 5) {
_root.CP("fx_blood", _x, _y, 0, 0);
j++;
}
_root.CP("fx_combo", _x, _y - 50, 0, -5);
_root.CP("fx_bloodstain", _x, _y, 0, 0);
_root.explodesound();
gotkilled();
}
function spawnfriend() {
newmc = _root.attachMovie("playerAI", "double", -5);
newmc._x = _x;
newmc._y = _y;
newmc.asdf = this.PLAYERNUMBER;
}
function lifebling() {
_root.pDepth = _root.pDepth + 1;
newmc = _root.attachMovie("fx_bling", "trash" + _root.pDepth, _root.pDepth);
newmc.asdf = this;
newmc.mod = 6;
}
function UPGRADE() {
currentlevel = currentlevel + 1;
if (_root.gamemode == 4) {
switch (currentlevel) {
case 1 :
currentgun = 2;
break;
case 2 :
currentgun = 29;
break;
case 3 :
currentgun = 19;
break;
case 4 :
currentgun = 46;
break;
case 5 :
currentgun = 13;
break;
case 6 :
currentgun = 51;
break;
case 7 :
currentgun = 50;
break;
case 8 :
currentgun = 11;
break;
case 9 :
currentgun = 38;
break;
case 10 :
currentgun = 33;
break;
case 11 :
currentgun = 58;
break;
case 12 :
currentgun = 62;
break;
case 13 :
currentgun = 66;
break;
case 14 :
currentgun = 65;
break;
case 15 :
currentgun = 44;
}
if (currentlevel == 16) {
j = 0;
while (j < _root.activeplayers.length) {
if (_root.activeplayers[j]._name != this._name) {
_root.activeplayers[j].lives = 0;
_root.activeplayers[j].killself = true;
}
j++;
}
} else {
getgun(currentgun);
}
}
if (_root.gamemode == 10) {
switch (currentlevel) {
case 1 :
currentgun = 55;
break;
case 2 :
currentgun = 11;
break;
case 3 :
currentgun = 16;
break;
case 4 :
currentgun = 41;
break;
case 5 :
currentgun = 66;
break;
case 6 :
currentgun = 56;
break;
case 7 :
currentgun = 75;
break;
case 8 :
currentgun = 50;
break;
case 9 :
currentgun = 85;
break;
case 10 :
currentgun = 46;
break;
case 11 :
currentgun = 71;
break;
case 12 :
currentgun = 68;
break;
case 13 :
currentgun = 31;
break;
case 14 :
currentgun = 1;
}
if (currentlevel == 15) {
j = 0;
while (j < _root.activeplayers.length) {
if (_root.activeplayers[j]._name != this._name) {
_root.activeplayers[j].lives = 0;
_root.activeplayers[j].killself = true;
}
j++;
}
} else {
getgun(currentgun);
}
}
}
AI = true;
actualx = _x;
actualy = _y;
vy = 0;
vx = 0;
jumpnum = 0;
jumpkey = false;
nadekey = false;
downkey = false;
freepass = false;
facing = 1;
walkanim = 0;
lives = _root.totallives;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
lives = 99999 /* 0x01869F */;
}
offhandnumber = 1;
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
offhandnumber = -1;
}
offhandammo = 3;
gothitby = "none";
hitbynade = false;
greedykill = false;
cheapshottimer = 0;
destructkey = false;
waittime = 100;
idletime = 40;
idlemax = 40;
nadepower = 0;
wepnumber = 1;
rof = 12;
firepower = 25;
recoil = 0.8;
blowback = 30;
bullets = 9999;
idlerotate = 40;
pushback = 0;
disabled = false;
hitnumber = 0;
hittimer = 0;
_xscale = 80;
_yscale = 80;
KEYUP = false;
KEYDOWN = false;
KEYLEFT = false;
KEYRIGHT = false;
KEYSHOOT = false;
KEYNADE = false;
doubletime = -100;
switch (this._name) {
case "player1" :
PLAYERNUMBER = 1;
playernumber = _root.p1color;
KEYSPLODE = 75;
displayname = _root.p1name;
_root.attachMovie("player_arrow", "arrow1", _root.arrow1depth);
defaultgun = _root.p1gun;
perknumber = _root.p1perk;
teamnumber = _root.p1team;
break;
case "player2" :
PLAYERNUMBER = 2;
playernumber = _root.p2color;
KEYSPLODE = 76;
displayname = _root.p2name;
_root.attachMovie("player_arrow", "arrow2", _root.arrow2depth);
defaultgun = _root.p2gun;
perknumber = _root.p2perk;
teamnumber = _root.p2team;
break;
case "player3" :
PLAYERNUMBER = 3;
playernumber = _root.p3color;
KEYSPLODE = 186;
displayname = _root.p3name;
_root.attachMovie("player_arrow", "arrow3", _root.arrow3depth);
defaultgun = _root.p3gun;
perknumber = _root.p3perk;
teamnumber = _root.p3team;
break;
case "player4" :
PLAYERNUMBER = 4;
playernumber = _root.p4color;
KEYSPLODE = 222;
displayname = _root.p4name;
_root.attachMovie("player_arrow", "arrow4", _root.arrow4depth);
defaultgun = _root.p4gun;
perknumber = _root.p4perk;
teamnumber = _root.p4team;
}
if (this._name == "double") {
doubletime = 600;
_root.activeplayers[_root.activeplayers.length] = this;
lives = 1;
PLAYERNUMBER = asdf;
switch (asdf) {
case 1 :
playernumber = _root.p1color;
displayname = _root.p1name;
defaultgun = _root.p1gun;
teamnumber = _root.p1team;
break;
case 2 :
playernumber = _root.p2color;
displayname = _root.p2name;
defaultgun = _root.p2gun;
teamnumber = _root.p2team;
break;
case 3 :
playernumber = _root.p3color;
displayname = _root.p3name;
defaultgun = _root.p3gun;
teamnumber = _root.p3team;
break;
case 4 :
playernumber = _root.p4color;
displayname = _root.p4name;
defaultgun = _root.p4gun;
teamnumber = _root.p4team;
}
}
if (iszombie) {
PLAYERNUMBER = 10;
playernumber = 12;
teamnumber = -1;
lives = 1;
perknumber = 0;
}
if (_root.teamgame) {
nametag.gotoAndStop(teamnumber + 1);
nametag.nametext.text = displayname;
} else {
nametag.gotoAndStop(1);
nametag.nametext.text = displayname;
}
triplejump = false;
if (perknumber == 3) {
triplejump = true;
}
if (perknumber == 8) {
offhandammo = offhandammo + 2;
}
currentlevel = 0;
UPGRADE();
currentgun = 2;
if (_root.gamemode == 10) {
currentgun = 55;
}
targettime = 0;
groundleft = _root.ground._x + _root.ground.platform._x;
groundright = (_root.ground._x + _root.ground.platform._x) + _root.ground.platform._width;
groundmiddle = (groundleft + groundright) / 2;
lockleft = 0;
lockright = 0;
lockup = 0;
cratearray = new Array();
targetplayer = false;
idletime2 = 0;
prevx = 0;
invisibletime = 0;
shieldtime = 0;
jetfuel = 0;
if (_root.gamemode == 11) {
jetfuel = 100;
}
speedtime = 0;
minitime = 0;
minimulti = 1;
playerspeed = _root.speed;
dummy = false;
if (_root.gototest) {
dummy = true;
}
killself = false;
if (!iszombie) {
damagemulti = 1;
}
if (_root.gotocampaign) {
damagemulti = _root.missionmulti;
}
respawn();
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (_root.gamewin) {
vx = 0;
vy = 0;
}
if (doubletime >= 0) {
doubletime = doubletime - 1;
if (doubletime <= 30) {
SELFDESTRUCT();
}
}
targettime = targettime + 1;
if (targettime >= 40) {
low = 5000;
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].teamnumber != teamnumber) {
if (_root.activeplayers[i].PLAYERNUMBER != this.PLAYERNUMBER) {
distance = Math.round(Math.sqrt(Math.pow(_root.activeplayers[i]._x - _x, 2) + Math.pow((_root.activeplayers[i]._y - 30) - _y, 2)));
if (distance < low) {
low = distance;
target = _root.activeplayers[i];
targetplayer = true;
}
}
}
i++;
}
if (!iszombie) {
i = 0;
while (i < _root.cratearray.length) {
distance = Math.round(Math.sqrt(Math.pow(_root.cratearray[i]._x - _x, 2) + Math.pow((_root.cratearray[i]._y - 30) - _y, 2)));
if (distance < low) {
low = distance;
target = _root.cratearray[i];
targetplayer = false;
}
if (((this._name != "double") && (_root.cratearray[i].powerupnumber == 0)) || (_root.cratearray[i].powerupnumber == 3)) {
target = _root.cratearray[i];
targetplayer = false;
break;
}
i++;
}
}
targettime = 0;
}
_x = (_x + vx);
_y = (_y + vy);
if (!freepass) {
if (_root.ground.platform.hitTest(_x, _y, true) && (vy > 0)) {
if (Math.abs(vx) < 3) {
gothitby = "none";
hitbynade = false;
greedykill = false;
}
jumpnum = 2;
if (perknumber == 3) {
triplejump = true;
}
_y = (_y - (vy * 1.01));
i = 1;
while (i <= 5) {
if (_root.ground.platform.hitTest(_x, _y + (i * (vy / 5)), true)) {
_y = (_y + ((vy / 5) * (i - 0.5)));
break;
}
i++;
}
if (Math.abs(vy) > 3) {
eyes._y = eyes._y + 10;
hand1._y = hand1._y + 10;
hand2._y = hand2._y + 8;
i = 0;
while (i < 10) {
_root.CP("fx_jumpland", _x, _y, 0);
i++;
}
_root.dropsound();
}
vy = 0;
} else if (jumpnum == 2) {
jumpnum = 1;
}
}
if ((!_root.ground.platform.hitTest(_x, _y - 8, true)) && (!_root.ground.platform.hitTest(_x, _y, true))) {
freepass = false;
}
if (_root.ground.platform.hitTest(_x, _y - 8, true) && (!freepass)) {
freepass = true;
}
if (((_y > 1000) || (_x < -600)) || (_x > 1500)) {
gotkilled();
}
actualx = _x;
actualy = _y;
land1x = _x + (land1._x * 0.8);
land1y = _y + (land1._y * 0.8);
land2x = _x + (land2._x * 0.8);
land2y = _y + (land2._y * 0.8);
noland = _y + (noland._y * 0.8);
if ((prevx == Math.round(_x)) && (!dummy)) {
idletime2 = idletime2 + 1;
if (idletime2 >= 4) {
idletime2 = 0;
if (jumpnum == 2) {
KEYUP = true;
}
if (target._x < _x) {
lockleft = 10;
}
if (target._x >= _x) {
lockright = 10;
}
}
} else {
idletime2 = 0;
}
prevx = Math.round(_x);
if (((target._y <= (_y + 10)) && (target._y >= (_y - 80))) && (jumpnum == 2)) {
if (targetplayer) {
if (target._x >= groundmiddle) {
dir = 1;
}
if (target._x < groundmiddle) {
dir = -1;
}
optimalx = target._x - (150 * dir);
} else {
optimalx = target._x;
}
if (_x > (groundleft + 200)) {
if (optimalx < (_x - 40)) {
KEYLEFT = true;
}
}
if (_x < (groundright - 200)) {
if (optimalx > (_x + 40)) {
KEYRIGHT = true;
}
}
if ((_x > (optimalx - 40)) && (_x < (optimalx + 40))) {
if ((target._x > _x) && (facing == -1)) {
KEYRIGHT = true;
}
if ((target._x <= _x) && (facing == 1)) {
KEYLEFT = true;
}
}
} else if (target._y > (_y + 10)) {
if (((_x > (groundleft + 50)) && (target.jumpnum == 2)) || ((_x > (groundleft - 10)) && (!targetplayer))) {
if (target._x < (_x - 30)) {
KEYLEFT = true;
}
}
if (((_x < (groundright - 50)) && (target.jumpnum == 2)) || ((_x < (groundright + 10)) && (!targetplayer))) {
if (target._x > (_x + 30)) {
KEYRIGHT = true;
}
}
if (((((_x > (target._x - 30)) && (_x < (target._x + 30))) && (Math.round(target.vy) == 1)) && (target.jumpnum == 2)) || (((_x > (target._x - 30)) && (_x < (target._x + 30))) && (!targetplayer))) {
KEYDOWN = true;
}
if (_root.ground.platform.hitTest(_x, _y + 95, true) && (target.jumpnum == 2)) {
KEYDOWN = true;
}
} else if (target._y < (_y - 80)) {
if ((((vy < 0) && (jumpnum == 1)) && (_root.ground.platform.hitTest(_x, _y - 30, true))) && (Math.abs(vx) <= 5)) {
KEYUP = true;
}
if ((((jumpnum == 2) && (_root.ground.platform.hitTest(_x, _y - 75, true))) && (Math.abs(vx) <= 5)) || (((jumpnum == 2) && (_root.ground.platform.hitTest(_x, _y - 120, true))) && (Math.abs(vx) <= 5))) {
KEYUP = true;
} else if (((((jumpnum == 2) && (_root.ground.platform.hitTest(_x - 100, _y - 80, true))) && (lockleft == 0)) && (vx >= -5)) || ((((jumpnum == 2) && (_root.ground.platform.hitTest(_x - 100, _y - 120, true))) && (lockleft == 0)) && (vx >= -5))) {
KEYUP = true;
lockleft = 20;
} else if (((((jumpnum == 2) && (_root.ground.platform.hitTest(_x + 100, _y - 80, true))) && (lockright == 0)) && (vx <= 5)) || ((((jumpnum == 2) && (_root.ground.platform.hitTest(_x + 100, _y - 120, true))) && (lockright == 0)) && (vx <= 5))) {
KEYUP = true;
lockright = 20;
} else if (jumpnum == 2) {
if ((target._x < _x) && (lockright == 0)) {
lockleft = 10;
} else if ((target._x > _x) && (lockleft == 0)) {
lockright = 10;
}
}
}
if ((_x < (groundleft + 100)) || (_x > (groundright - 100))) {
if (groundmiddle < (_x - 40)) {
KEYLEFT = true;
}
if (groundmiddle > (_x + 40)) {
KEYRIGHT = true;
}
}
if (Math.abs(vx) > 30) {
if (jumpnum == 2) {
KEYUP = true;
}
}
if ((vx > 15) || (vx < -15)) {
if (jumpnum == 2) {
KEYUP = true;
}
}
if ((!_root.ground.platform.hitTest(land2x, land2y, true)) && (vx > 10)) {
if (jumpnum == 2) {
KEYUP = true;
}
}
if ((!_root.ground.platform.hitTest(land1x, land1y, true)) && (vx < -10)) {
if (jumpnum == 2) {
KEYUP = true;
}
}
if (((_x > (groundright - 100)) && (targetplayer)) || ((_x > groundright) && (!targetplayer))) {
if (((jetfuel > 0) && (_x > groundright)) && (vy > -1)) {
lockup = 10;
}
if (jumpnum == 2) {
KEYUP = true;
}
if (((((vy > 0) && (vx < -1)) && (jumpnum == 1)) && (_x < (groundright + 100))) || ((((vy > 0) && (vx < -1)) && (jumpnum == 11)) && (_x < (groundright + 100)))) {
KEYUP = true;
}
if (((((_x > groundright) && (!_root.ground.platform.hitTest(_x, noland, true))) && (jumpnum == 1)) && (_y > ((_root.ground._y + _root.ground.lowest._y) - 100))) || ((((jumpnum == 11) && (_x > groundright)) && (!_root.ground.platform.hitTest(_x, noland, true))) && (_y > ((_root.ground._y + _root.ground.lowest._y) - 100)))) {
KEYUP = true;
}
}
if (((_x < (groundleft + 100)) && (targetplayer)) || ((_x < groundleft) && (!targetplayer))) {
if (((jetfuel > 0) && (_x < groundleft)) && (vy > -1)) {
lockup = 10;
}
if (jumpnum == 2) {
KEYUP = true;
}
if (((((vy > 0) && (vx > 1)) && (jumpnum == 1)) && (_x > (groundleft - 100))) || ((((vy > 0) && (vx > 1)) && (jumpnum == 11)) && (_x > (groundleft - 100)))) {
KEYUP = true;
}
if (((((_x < groundleft) && (!_root.ground.platform.hitTest(_x, noland, true))) && (jumpnum == 1)) && (_y > ((_root.ground._y + _root.ground.lowest._y) - 100))) || ((((jumpnum == 11) && (_x < groundleft)) && (!_root.ground.platform.hitTest(_x, noland, true))) && (_y > ((_root.ground._y + _root.ground.lowest._y) - 100)))) {
KEYUP = true;
}
}
if ((!_root.ground.platform.hitTest(land2x, land2y, true)) && (jumpnum == 2)) {
KEYRIGHT = false;
}
if ((!_root.ground.platform.hitTest(land1x, land1y, true)) && (jumpnum == 2)) {
KEYLEFT = false;
}
if ((!_root.ground.platform.hitTest(land2x - 15, land2y, true)) && (jumpnum == 2)) {
KEYRIGHT = false;
KEYLEFT = true;
}
if ((!_root.ground.platform.hitTest(land1x + 15, land1y, true)) && (jumpnum == 2)) {
KEYLEFT = false;
KEYRIGHT = true;
}
if (lockright >= lockleft) {
lockleft = 0;
}
if (lockleft > lockright) {
lockright = 0;
}
if (lockright > 0) {
KEYRIGHT = true;
lockright = lockright - 1;
}
if (lockleft > 0) {
KEYLEFT = true;
lockleft = lockleft - 1;
}
if (lockup > 0) {
KEYUP = true;
lockup = lockup - 1;
}
if ((targetplayer && (target._y < (_y + 20))) && (target._y > (_y - 80))) {
if (((target._x > _x) && (facing == 1)) || ((target._x < _x) && (facing == -1))) {
if (hand1.gun.shotgun > 0) {
if ((Math.abs(target._x - _x) > 15) && (Math.abs(target._x - _x) < 150)) {
KEYSHOOT = true;
}
} else {
KEYSHOOT = true;
}
}
}
if ((!disabled) && (!_root.gamewin)) {
if (((KEYDOWN && (jumpnum == 2)) && (!freepass)) && (!downkey)) {
if (_y < (_root.ground._y + _root.ground.lowest._y)) {
freepass = true;
vy = vy + 1;
_y = (_y + 5);
jumpnum = 1;
downkey = true;
}
} else if ((!KEYDOWN) && (downkey)) {
downkey = false;
}
if ((KEYUP && (!jumpkey)) && (jumpnum > 0)) {
jumpkey = true;
jumpnum = jumpnum - 1;
if (jumpnum == 1) {
vy = (-_root.power) * 1;
i = 0;
while (i < 10) {
_root.CP("fx_jumpland", _x, _y, 0);
i++;
}
} else if (jumpnum == 0) {
vy = (-_root.power) * 0.83;
_root.CP("fx_double", _x, _y);
if (triplejump && (jumpnum == 0)) {
jumpnum = 11;
triplejump = false;
}
}
if (jumpnum == 10) {
jumpnum = 0;
if (vy < -4) {
vy = vy - (_root.power * 0.2);
} else {
vy = (-_root.power) * 0.65;
}
_root.CP("fx_double", _x, _y);
}
_y = (_y - 1);
}
if (!KEYUP) {
jumpkey = false;
}
if (((KEYUP && (jumpnum <= 0)) && (jetfuel > 0)) && (!jumpkey)) {
if (body.jetpack._alpha != 100) {
body.jetpack._alpha = 100;
}
if (KEYUP) {
vy = vy + ((-15 - vy) / 4);
_root.CP("fx_jetpack", _x - (22 * facing), _y - 18, 0);
jetfuel = jetfuel - 1.5;
if (_root.gamemode == 11) {
jetfuel = jetfuel - 0.5;
}
}
}
if (body.jetpack._alpha >= 100) {
body.jetpack.fuel._yscale = jetfuel;
}
if (((body.jetpack._alpha != 0) && (jetfuel <= 0)) && (_root.gamemode != 11)) {
_root.CP("fx_droppack", _x - (20 * facing), _y - 40, facing * -1, 0);
body.jetpack._alpha = 0;
}
if ((jetfuel > 0) && (body.jetpack._alpha != 100)) {
body.jetpack._alpha = 100;
}
if (KEYLEFT) {
startwalk();
if (jumpnum == 2) {
vx = vx - (playerspeed * weight);
} else if (_root.ground.lowfriction) {
vx = vx - (playerspeed / 1.4);
} else {
vx = vx - ((playerspeed / 1.1) * weight);
}
if (facing == 1) {
leg1._rotation = leg1._rotation * -1;
leg2._rotation = leg2._rotation * -1;
}
facing = -1;
}
if (KEYRIGHT) {
startwalk();
if (jumpnum == 2) {
vx = vx + (playerspeed * weight);
} else if (_root.ground.lowfriction) {
vx = vx + (playerspeed / 1.4);
} else {
vx = vx + ((playerspeed / 1.1) * weight);
}
if (facing == -1) {
leg1._rotation = leg1._rotation * -1;
leg2._rotation = leg2._rotation * -1;
}
facing = 1;
}
}
if (_root.gamewin && (perknumber == 1)) {
if (Key.isDown(32)) {
body._rotation = body._rotation + (((-15 * facing) - body._rotation) / 2);
hand1._x = hand1._x + (((-10 * facing) - hand1._x) / 2);
hand2._x = hand2._x + (((-10 * facing) - hand2._x) / 2);
} else {
body._rotation = body._rotation + ((-body._rotation) / 3);
hand1._x = hand1._x + ((-hand1._x) / 3);
hand2._x = hand2._x + ((-hand2._x) / 3);
}
}
if ((!_root.gamewin) && (_root.gamemode != 2)) {
if ((offhandnumber == 1) && (offhandammo > 0)) {
if (KEYNADE && (!nadekey)) {
nadekey = true;
hand2.gotoAndPlay(2);
nadepower = 1;
} else if ((!KEYNADE) && (nadekey)) {
nadekey = false;
_root.CP("wep_grenade", _x + (30 * facing), _y - 35, facing, nadepower + (PLAYERNUMBER * 1000));
offhandammo = offhandammo - 1;
hand2.gotoAndPlay(6);
}
if (KEYNADE) {
if (nadepower < 14) {
nadepower = nadepower + 0.5;
}
}
} else if ((offhandnumber == 2) && (offhandammo > 0)) {
if (KEYNADE && (!nadekey)) {
nadekey = true;
if (hand2._currentframe == 1) {
hand2.gotoAndPlay(20);
}
} else if (KEYNADE && (nadekey)) {
nadekey = false;
}
} else if (offhandnumber == 3) {
if (KEYNADE && (!nadekey)) {
nadekey = true;
if (hand2._currentframe == 1) {
hand2.gotoAndPlay(40);
}
} else if (KEYNADE && (nadekey)) {
nadekey = false;
}
}
}
if (dummy) {
KEYSHOOT = false;
}
if (waittime < rof) {
waittime = waittime + 1;
}
if (((((KEYSHOOT && (waittime >= rof)) && (!_root.gamewin)) && (hand1.gun._currentframe == 2)) && (bullets > 0)) && (wepnumber != 8)) {
waittime = 0;
idletime = 0;
vx = vx - (recoil * facing);
if (firepower == 0) {
_root.CP("bullet5_grenade", _x + (30 * facing), _y - 20, facing, 20 + (PLAYERNUMBER * 1000));
}
hand2.hand._y = hand1.gun.handy;
hand1.gun._rotation = -blowback;
hand1.hand._x = hand1.gun.shootx;
hand1.hand._y = hand1.gun.shooty;
hand2.hand._x = hand1.gun.handx;
hand2.hand._y = hand1.gun.handy;
hand1.gun._x = hand1.gun.shootx;
hand1.gun._y = hand1.gun.shooty;
hand1.hand._x = hand1.hand._x - pushback;
hand2.hand._x = hand2.hand._x - pushback;
if ((blowback >= 20) && (hand1.gun.handx > 40)) {
hand2.hand._y = -blowback;
}
hand1.gun.play();
FIREBULLET();
_root.pgsdata[PLAYERNUMBER - 1][3] = _root.pgsdata[PLAYERNUMBER - 1][3] + 1;
bullets = bullets - 1;
if (bullets <= 0) {
if (wepnumber >= 9) {
if ((_root.gamemode != 4) && (_root.gamemode != 10)) {
_root.CP("fx_dropgun", _x + (20 * facing), _y - 40, facing, wepnumber);
}
if (((((_root.gamemode == 1) || (_root.gamemode == 3)) || (_root.gamemode == 11)) || (_root.gamemode == 12)) || (_root.gamemode == 5)) {
getgun(defaultgun);
}
if (_root.gamemode == 2) {
getgun(8);
}
} else {
hand1.gun.gotoAndPlay(10);
}
}
}
if (idletime <= idlemax) {
idletime = idletime + 1;
}
if (((idletime >= idlemax) && (wepnumber != 55)) && (hand1.gun._currentframe < 40)) {
hand1.gun._x = hand1.gun._x + ((-5.5 - hand1.gun._x) / 3);
hand1.gun._y = hand1.gun._y + ((10.85 - hand1.gun._y) / 3);
hand1.gun._rotation = hand1.gun._rotation + ((idlerotate - hand1.gun._rotation) / 3);
} else {
hand1.hand._x = hand1.hand._x + ((hand1.gun.shootx - hand1.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((hand1.gun.shooty - hand1.hand._y) / 3);
hand2.hand._x = hand2.hand._x + ((hand1.gun.handx - hand2.hand._x) / 3);
hand2.hand._y = hand2.hand._y + ((hand1.gun.handy - hand2.hand._y) / 3);
hand1.gun._x = hand1.gun._x + ((hand1.gun.shootx - hand1.gun._x) / 3);
hand1.gun._y = hand1.gun._y + ((hand1.gun.shooty - hand1.gun._y) / 3);
hand1.gun._rotation = hand1.gun._rotation + ((-hand1.gun._rotation) / 3);
}
if (hittimer <= 40) {
hittimer = hittimer + 1;
}
if (hittimer > 40) {
hitnumber = 0;
}
if (cheapshottimer < 120) {
cheapshottimer = cheapshottimer + 1;
}
if ((((!_root.gotocampaign) && (_root.activeplayers.length == 1)) && (_root.gamemode != 3)) && (_root.gamemode != 5)) {
_root.hud.countdown.play();
}
if ((_root.gamewin && (!player_winner)) && (!iszombie)) {
this.attachMovie("player_winner", "player_winner", this.getNextHighestDepth());
}
vx = vx * _root.friction;
if (vy < 24) {
vy = vy + _root.gravity;
}
if (Math.abs(vx) <= 0.1) {
vx = 0;
}
if ((perknumber == 2) && (weight != 1)) {
weight = 1;
}
if ((perknumber == 5) && (recoil != 0)) {
recoil = 0;
}
if (jetfuel > 0) {
jetfuel = jetfuel - 0.12;
}
if (_root.gamemode == 11) {
if (jetfuel < 100) {
jetfuel = jetfuel + 0.24;
if (jetfuel > 100) {
jetfuel = 100;
}
}
}
if ((_root.gamemode == 5) && (!iszombie)) {
if (damagemulti != _root.sr.playermulti) {
damagemulti = _root.sr.playermulti;
}
}
if (((idletime >= idlemax) && (wepnumber != 55)) && (hand1.gun._currentframe < 40)) {
if (walkanim == 1) {
hand1.hand._x = hand1.hand._x + ((-hand1.hand._x) / 3);
hand2.hand._x = hand2.hand._x + ((15 - hand2.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((10.5 - hand1.hand._y) / 3);
hand2.hand._y = hand2.hand._y + ((-3.75 - hand2.hand._y) / 3);
} else if (walkanim == 2) {
hand1.hand._x = hand1.hand._x + ((-10 - hand1.hand._x) / 3);
hand2.hand._x = hand2.hand._x + ((25 - hand2.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((10.5 - hand1.hand._y) / 3);
hand2.hand._y = hand2.hand._y + ((-3.75 - hand2.hand._y) / 3);
} else {
hand1.hand._x = hand1.hand._x + ((-5 - hand1.hand._x) / 3);
hand2.hand._x = hand2.hand._x + ((20 - hand2.hand._x) / 3);
hand1.hand._y = hand1.hand._y + ((10.5 - hand1.hand._y) / 3);
hand2.hand._y = hand2.hand._y + ((-3.75 - hand2.hand._y) / 3);
}
}
hand1.gun._x = hand1.hand._x;
if (wepnumber == 6) {
hand1.gun.glove2._x = ((hand1.gun._x * 2) - 5) * -1;
}
if (Math.abs(vx) > 3) {
leg1.play();
leg2.play();
} else if (leg1._currentframe == 1) {
walkanim = 0;
}
if (jumpnum != 2) {
leg1.gotoAndStop(1);
leg2.gotoAndStop(1);
walkanim = 0;
}
if (vy <= -2) {
leg1._rotation = leg1._rotation + (((80 * facing) - leg1._rotation) / 3);
leg2._rotation = leg2._rotation + (((80 * facing) - leg2._rotation) / 3);
body._y = body._y + ((-70 - body._y) / 5);
} else if (vy >= 2) {
leg1._rotation = leg1._rotation + (((-10 * facing) - leg1._rotation) / 3);
leg2._rotation = leg2._rotation + (((-10 * facing) - leg2._rotation) / 3);
body._y = body._y + ((-55 - body._y) / 5);
} else {
leg1._rotation = leg1._rotation + ((-leg1._rotation) / 1.5);
leg2._rotation = leg2._rotation + ((-leg2._rotation) / 1.5);
body._y = body._y + ((-60 - body._y) / 2);
}
leg1._x = -12 * facing;
leg2._x = 9 * facing;
if (Math.abs((-46 + body.head.head._y) - eyes._y) >= 1) {
eyes._y = eyes._y + ((-46 - eyes._y) / 5);
hand1._y = hand1._y + ((-35 - hand1._y) / 5);
hand2._y = hand2._y + ((-25 - hand2._y) / 5);
} else {
eyes._y = -46 + body.head.head._y;
eyes._y = Math.round(eyes._y);
}
if (facing == 1) {
body._xscale = 100;
eyes._xscale = 100;
hand1._xscale = 100;
hand2._xscale = 100;
leg1._xscale = 100;
leg2._xscale = 100;
instagib._xscale = 100;
player_hat._xscale = 100;
player_hat._x = 9.55 * facing;
} else {
body._xscale = -100;
eyes._xscale = -100;
hand1._xscale = -100;
hand2._xscale = -100;
leg1._xscale = -100;
leg2._xscale = -100;
instagib._xscale = -100;
player_hat._xscale = -100;
player_hat._x = 9.55 * facing;
}
player_hat._y = (-75 + body.head.head._y) + (body._y + 60);
if ((_root.gotocampaign && (_root.missionnumber == 6)) && (invisibletime <= 0)) {
invisibletime = invisibletime + 1;
}
if (invisibletime > 0) {
invisibletime = invisibletime - 1;
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_alpha = 0;
}
} else if (_alpha < 100) {
_alpha = (_alpha + 10);
}
if (shieldtime > 0) {
shieldtime = shieldtime - 1;
if (shield._alpha < 100) {
shield._alpha = shield._alpha + 100;
}
if (shield._currentframe == 1) {
shield.play();
}
} else {
if (shield._alpha > 0) {
shield._alpha = shield._alpha - 10;
}
if ((shield._alpha <= 1) && (shield._currentframe != 1)) {
shield.gotoAndPlay(1);
}
}
if ((_root.gotocampaign && (_root.missionnumber == 14)) && (speedtime <= 9)) {
speedtime = 12;
}
if (speedtime >= 0) {
speedtime = speedtime - 1;
if (playerspeed != (_root.speed * 2)) {
playerspeed = _root.speed * 2;
}
if ((speedtime % 3) == 0) {
if (minitime <= 0) {
_root.CP2("fx_playertrail", _x, _y, PLAYERNUMBER, facing);
}
if (minitime > 0) {
_root.CP2("fx_playertrail", _x, _y, PLAYERNUMBER * -1, facing);
}
}
} else if (playerspeed != _root.speed) {
playerspeed = _root.speed;
}
if (_root.gotocampaign && (_root.missionnumber == 11)) {
minitime = 500;
}
if (minitime >= 0) {
minitime = minitime - 1;
if (minitime > 260) {
minimulti = minimulti + ((0.6 - minimulti) / 6);
_xscale = (_xscale + ((50 - _xscale) / 3));
_yscale = _xscale;
}
if (minitime == 260) {
if (minimulti != 0.6) {
minimulti = 0.6;
}
_xscale = 50;
_yscale = 50;
}
if (minitime <= 40) {
minimulti = minimulti + ((1 - minimulti) / 6);
_xscale = (_xscale + ((80 - _xscale) / 3));
_yscale = _xscale;
}
} else {
if (minimulti != 1) {
minimulti = 1;
}
if (_xscale != 80) {
_xscale = 80;
_yscale = 80;
}
}
instagib._y = (body._y + 60) - 2.65;
KEYUP = false;
KEYDOWN = false;
KEYLEFT = false;
KEYRIGHT = false;
KEYSHOOT = false;
KEYNADE = false;
if ((this._name == "double") && (lives > 1)) {
lives = 0;
}
if ((this._name == "double") && (jetfuel != 0)) {
jetfuel = 0;
}
if ((this._name == "double") && (invisibletime != 0)) {
invisibletime = 0;
}
if ((this._name == "double") && (shieldtime != 0)) {
shieldtime = 0;
}
if ((this._name == "double") && (speedtime != 0)) {
speedtime = 0;
playerspeed = _root.speed;
}
if (killself) {
SELFDESTRUCT();
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 831 MovieClip Frame 31
_parent.play();
Symbol 831 MovieClip Frame 72
stop();
Symbol 851 MovieClip Frame 1
this.gotoAndStop(_parent.powerupnumber + 1);
Symbol 856 MovieClip [powerup] Frame 1
function kill() {
j = 0;
while (j < _root.cratearray.length) {
if (_root.cratearray[j] == this) {
_root.cratearray.splice(j, 1);
}
j++;
}
removeMovieClip(this);
delete this.onEnterFrame;
}
stop();
pickedup = false;
do {
powerupnumber = random(7);
} while ((powerupnumber == 1) || ((_root.gamemode == 11) && (powerupnumber == 3)));
if ((powerupnumber == 4) && (_root.double)) {
powerupnumber = 2;
}
_root.cratearray[_root.cratearray.length] = this;
time = 0;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if ((_currentframe >= 20) && (!pickedup)) {
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].iszombie) {
break;
}
if (_root.activeplayers[i].frame.hitTest(frame)) {
j = 0;
while (j < 10) {
_root.CP("fx_pickup", _x, _y + 40, 0);
j++;
}
_root.CP("fx_powerupname", _x, _y, 0, powerupnumber + 1);
pickedup = true;
_root.playsound("emp.wav");
_root.pgsdata[_root.activeplayers[i].PLAYERNUMBER - 1][6] = _root.pgsdata[_root.activeplayers[i].PLAYERNUMBER - 1][6] + 1;
if (_root.activeplayers[i]._name != "double") {
switch (powerupnumber) {
case 0 :
_root.activeplayers[i].lives = parseInt(_root.activeplayers[i].lives) + 1;
_root.activeplayers[i].lifebling();
break;
case 1 :
_root.activeplayers[i].invisibletime = 200;
break;
case 2 :
_root.activeplayers[i].shieldtime = 300;
break;
case 3 :
_root.activeplayers[i].jetfuel = 100;
break;
case 4 :
_root.activeplayers[i].spawnfriend();
break;
case 5 :
_root.activeplayers[i].speedtime = 300;
break;
case 6 :
_root.activeplayers[i].minitime = 400;
}
break;
}
}
i++;
}
}
if (pickedup && (stuff._alpha != 0)) {
stuff._alpha = 0;
aura._alpha = 0;
}
if (pickedup && (flashystuff._currentframe == flashystuff._totalframes)) {
kill();
}
time = time + 1;
if (time >= 400) {
time = 0;
gotoAndPlay (100);
}
if (_root.deleteeverything || (_root.gamewin)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 856 MovieClip [powerup] Frame 98
gotoAndPlay (20);
Symbol 856 MovieClip [powerup] Frame 109
kill();
Symbol 857 MovieClip [sr] Frame 1
function spawnenemy() {
switch (wave) {
case 1 :
playermulti = 0.6;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 1;
newmc.displayname = "Weak Robot";
newmc.damagemulti = 1.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 2 :
playermulti = 0.6;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 1.4;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 1.4;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 3 :
playermulti = 0.7;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 75;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 1.3;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 4 :
playermulti = 0.7;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 84;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 1.2;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 5 :
playermulti = 0.7;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 16;
newmc.displayname = "Sniper Bot";
newmc.damagemulti = 1.2;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 6 :
playermulti = 0.8;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 7 :
playermulti = 0.8;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 8 :
playermulti = 0.8;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie3", 10003);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 9 :
playermulti = 0.9;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 9;
newmc.displayname = "De-materializer Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 10 :
playermulti = 0.9;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 55;
newmc.displayname = "Terminator Bot";
newmc.damagemulti = 1.1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 11 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 5;
newmc.displayname = "Weak Robot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 12 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 13 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 75;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 14 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 84;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 15 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 16;
newmc.displayname = "Sniper Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 16 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 17 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 18 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie3", 10003);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 19 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 9;
newmc.displayname = "De-materializer Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 20 :
playermulti = 1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 55;
newmc.displayname = "Terminator Bot";
newmc.damagemulti = 1;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 21 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 5;
newmc.displayname = "Weak Robot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 22 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 23 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 75;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 24 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 84;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 25 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 16;
newmc.displayname = "Sniper Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 26 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 27 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 28 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie3", 10003);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 29 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 9;
newmc.displayname = "De-materializer Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 30 :
playermulti = 1.1;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 55;
newmc.displayname = "Terminator Bot";
newmc.damagemulti = 0.9;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 31 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 5;
newmc.displayname = "Weak Robot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 32 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 33 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 75;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 34 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 84;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 35 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 16;
newmc.displayname = "Sniper Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 36 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 37 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 38 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie3", 10003);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 39 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 9;
newmc.displayname = "De-materializer Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 40 :
playermulti = 1.2;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 55;
newmc.displayname = "Terminator Bot";
newmc.damagemulti = 0.8;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 41 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 5;
newmc.displayname = "Weak Robot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 42 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 43 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 75;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 44 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 84;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 45 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 16;
newmc.displayname = "Sniper Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 46 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 47 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 48 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie3", 10003);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 49 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 9;
newmc.displayname = "De-materializer Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 50 :
playermulti = 1.3;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 55;
newmc.displayname = "Terminator Bot";
newmc.damagemulti = 0.7;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 51 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 5;
newmc.displayname = "Weak Robot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 52 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 53 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 75;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 54 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 84;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 55 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 16;
newmc.displayname = "Sniper Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 56 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 57 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 58 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie3", 10003);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 59 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 9;
newmc.displayname = "De-materializer Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 60 :
playermulti = 1.4;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 55;
newmc.displayname = "Terminator Bot";
newmc.damagemulti = 0.6;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 61 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 5;
newmc.displayname = "Weak Robot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 62 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 71;
newmc.displayname = "SMG Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 63 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 75;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 64 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 84;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 65 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 16;
newmc.displayname = "Sniper Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 66 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 62;
newmc.displayname = "Assault Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 67 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 45;
newmc.displayname = "Shotgun Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 68 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie2", 10002);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
newmc = _root.attachMovie("playerAI", "zombie3", 10003);
newmc.iszombie = true;
newmc.defaultgun = 2;
newmc.displayname = "Pistol Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 69 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 9;
newmc.displayname = "De-materializer Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
break;
case 70 :
playermulti = 1.5;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 55;
newmc.displayname = "Terminator Bot";
newmc.damagemulti = 0.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
}
}
wave = 1;
resttime = 0;
resting = true;
playermulti = 1;
this.onEnterFrame = function () {
if (!_root.gamepaused) {
if (resting) {
resttime = resttime + 1;
if (resttime == 175) {
_root.attachMovie("fxsr_waveup", "fx_teamwin", _root.teamwindepth);
}
if (resttime >= 280) {
resttime = 0;
resting = false;
spawnenemy();
j = 0;
while (j < _root.activeplayers.length) {
if (!_root.activeplayers[j].iszombie) {
_root.activeplayers[j].shieldtime = 100;
}
j++;
}
}
} else {
temp = false;
j = 0;
while (j < _root.activeplayers.length) {
if (_root.activeplayers[j].iszombie) {
temp = true;
}
j++;
}
if (!temp) {
wave = wave + 1;
_root.attachMovie("fxsr_levelup", "fx_teamwin", _root.teamwindepth);
resting = true;
resttime = 0;
}
}
if (_root.deleteeverything || (_root.gamewin)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 871 MovieClip Frame 1
function depththingy() {
this.swapDepths(_parent.highest);
_parent.highest = this;
}
switch (_name) {
case "pane1" :
NUMBER = 1;
break;
case "pane2" :
NUMBER = 2;
break;
case "pane3" :
NUMBER = 3;
break;
case "pane4" :
NUMBER = 4;
break;
case "pane5" :
NUMBER = 5;
break;
case "pane6" :
NUMBER = 6;
break;
case "pane7" :
NUMBER = 7;
break;
case "pane8" :
NUMBER = 8;
break;
case "pane9" :
NUMBER = 9;
break;
case "pane10" :
NUMBER = 10;
break;
case "pane11" :
NUMBER = 11;
break;
case "pane12" :
NUMBER = 12;
break;
case "pane13" :
NUMBER = 13;
break;
case "pane14" :
NUMBER = 14;
break;
case "pane15" :
NUMBER = 15;
break;
case "pane16" :
NUMBER = 16;
break;
case "pane17" :
NUMBER = 17;
break;
case "pane18" :
NUMBER = 18;
break;
case "pane19" :
NUMBER = 19;
break;
case "pane20" :
NUMBER = 20;
break;
case "pane21" :
NUMBER = 21;
break;
case "pane22" :
NUMBER = 22;
break;
case "pane23" :
NUMBER = 23;
break;
case "pane24" :
NUMBER = 24;
break;
case "pane25" :
NUMBER = 25;
break;
case "pane26" :
NUMBER = 26;
break;
case "pane27" :
NUMBER = 27;
break;
case "pane28" :
NUMBER = 28;
break;
case "pane29" :
NUMBER = 29;
break;
case "pane30" :
NUMBER = 30;
break;
case "pane31" :
NUMBER = 31;
break;
case "pane32" :
NUMBER = 32;
break;
case "pane33" :
NUMBER = 33;
break;
case "pane34" :
NUMBER = 34;
break;
case "pane35" :
NUMBER = 35;
break;
case "pane36" :
NUMBER = 36;
break;
case "pane37" :
NUMBER = 37;
break;
case "pane38" :
NUMBER = 38;
break;
case "pane39" :
NUMBER = 39;
break;
case "pane40" :
NUMBER = 40;
break;
case "pane41" :
NUMBER = 41;
break;
case "pane42" :
NUMBER = 42;
break;
case "pane43" :
NUMBER = 43;
break;
case "pane44" :
NUMBER = 44;
break;
case "pane45" :
NUMBER = 45;
break;
case "pane46" :
NUMBER = 46;
break;
case "pane47" :
NUMBER = 47;
break;
case "pane48" :
NUMBER = 48;
break;
case "pane49" :
NUMBER = 49;
break;
case "pane50" :
NUMBER = 50;
}
_rotation = -3;
hat.gotoAndStop(NUMBER);
mouseover = false;
this.onEnterFrame = function () {
if (mouseover) {
_xscale = (_xscale + ((130 - _xscale) / 2));
_yscale = _xscale;
_rotation = (_rotation + ((-_rotation) / 2));
} else {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
_rotation = (_rotation + ((-3 - _rotation) / 3));
}
};
fram.onPress = function () {
_parent.target.player.hat.gotoAndStop(NUMBER);
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = hat.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 877 MovieClip Frame 1
function depththingy() {
this.swapDepths(_parent.highest);
_parent.highest = this;
}
switch (_name) {
case "pane1" :
NUMBER = 1;
break;
case "pane2" :
NUMBER = 2;
break;
case "pane3" :
NUMBER = 3;
break;
case "pane4" :
NUMBER = 4;
break;
case "pane5" :
NUMBER = 5;
break;
case "pane6" :
NUMBER = 6;
break;
case "pane7" :
NUMBER = 7;
break;
case "pane8" :
NUMBER = 8;
break;
case "pane9" :
NUMBER = 9;
break;
case "pane10" :
NUMBER = 10;
break;
case "pane11" :
NUMBER = 11;
break;
case "pane12" :
NUMBER = 12;
break;
case "pane13" :
NUMBER = 13;
break;
case "pane14" :
NUMBER = 14;
break;
case "pane15" :
NUMBER = 15;
break;
case "pane16" :
NUMBER = 16;
break;
case "pane17" :
NUMBER = 17;
break;
case "pane18" :
NUMBER = 18;
break;
case "pane19" :
NUMBER = 19;
break;
case "pane20" :
NUMBER = 20;
break;
case "pane21" :
NUMBER = 21;
break;
case "pane22" :
NUMBER = 22;
break;
case "pane23" :
NUMBER = 23;
break;
case "pane24" :
NUMBER = 24;
break;
case "pane25" :
NUMBER = 25;
break;
case "pane26" :
NUMBER = 26;
break;
case "pane27" :
NUMBER = 27;
}
_rotation = -3;
eyes.gotoAndStop(NUMBER);
mouseover = false;
this.onEnterFrame = function () {
if (mouseover) {
_xscale = (_xscale + ((150 - _xscale) / 2));
_yscale = _xscale;
_rotation = (_rotation + ((-_rotation) / 2));
} else {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
_rotation = (_rotation + ((-3 - _rotation) / 3));
}
};
fram.onPress = function () {
_parent.target.player.eyes.gotoAndStop(NUMBER);
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = eyes.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 883 MovieClip Frame 1
function depththingy() {
this.swapDepths(_parent.highest);
_parent.highest = this;
}
switch (_name) {
case "pane1" :
NUMBER = 1;
break;
case "pane2" :
NUMBER = 2;
break;
case "pane3" :
NUMBER = 3;
break;
case "pane4" :
NUMBER = 4;
break;
case "pane5" :
NUMBER = 5;
break;
case "pane6" :
NUMBER = 6;
break;
case "pane7" :
NUMBER = 7;
break;
case "pane8" :
NUMBER = 8;
break;
case "pane9" :
NUMBER = 9;
break;
case "pane10" :
NUMBER = 10;
break;
case "pane11" :
NUMBER = 11;
break;
case "pane12" :
NUMBER = 12;
break;
case "pane13" :
NUMBER = 13;
break;
case "pane14" :
NUMBER = 14;
break;
case "pane15" :
NUMBER = 15;
break;
case "pane16" :
NUMBER = 16;
break;
case "pane17" :
NUMBER = 17;
break;
case "pane18" :
NUMBER = 18;
break;
case "pane19" :
NUMBER = 19;
break;
case "pane20" :
NUMBER = 20;
break;
case "pane21" :
NUMBER = 21;
break;
case "pane22" :
NUMBER = 22;
break;
case "pane23" :
NUMBER = 23;
break;
case "pane24" :
NUMBER = 24;
break;
case "pane25" :
NUMBER = 25;
break;
case "pane26" :
NUMBER = 26;
break;
case "pane27" :
NUMBER = 27;
}
_rotation = -3;
shirt.gotoAndStop(NUMBER);
mouseover = false;
this.onEnterFrame = function () {
if (mouseover) {
_xscale = (_xscale + ((130 - _xscale) / 2));
_yscale = _xscale;
_rotation = (_rotation + ((-_rotation) / 2));
} else {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
_rotation = (_rotation + ((-3 - _rotation) / 3));
}
};
fram.onPress = function () {
_parent.target.player.shirt.gotoAndStop(NUMBER);
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = shirt.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 907 MovieClip Frame 1
switch (_name) {
case "pane1" :
NUMBER = 1;
break;
case "pane2" :
NUMBER = 2;
break;
case "pane3" :
NUMBER = 3;
break;
case "pane4" :
NUMBER = 4;
break;
case "pane5" :
NUMBER = 5;
break;
case "pane6" :
NUMBER = 6;
break;
case "pane7" :
NUMBER = 7;
break;
case "pane8" :
NUMBER = 8;
break;
case "pane9" :
NUMBER = 9;
break;
case "pane10" :
NUMBER = 10;
break;
case "pane11" :
NUMBER = 11;
break;
case "pane12" :
NUMBER = 12;
break;
case "pane13" :
NUMBER = 13;
break;
case "pane14" :
NUMBER = 14;
break;
case "pane15" :
NUMBER = 15;
break;
case "pane16" :
NUMBER = 16;
break;
case "pane17" :
NUMBER = 17;
break;
case "pane18" :
NUMBER = 18;
break;
case "pane19" :
NUMBER = 19;
break;
case "pane20" :
NUMBER = 20;
}
_rotation = -3;
gotoAndStop(NUMBER);
mouseover = false;
this.onEnterFrame = function () {
if (mouseover) {
_xscale = (_xscale + ((170 - _xscale) / 2));
_yscale = _xscale;
_rotation = (_rotation + ((-_rotation) / 2));
} else {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
_rotation = (_rotation + ((-3 - _rotation) / 3));
}
};
this.onPress = function () {
_parent.target.colornumber = NUMBER;
_parent.target.update();
_parent.deletethis = true;
};
this.onRollOver = function () {
mouseover = true;
this.swapDepths(_parent.highest);
_parent.highest = this;
};
this.onRollOut = function () {
mouseover = false;
};
Symbol 924 MovieClip Frame 1
stop();
Symbol 926 MovieClip Frame 1
stop();
id = "COOL PISTOL";
Symbol 926 MovieClip Frame 2
id = "SAND HAWK";
Symbol 926 MovieClip Frame 3
id = "GLICK";
Symbol 926 MovieClip Frame 4
id = "ANGRY COW";
Symbol 926 MovieClip Frame 5
id = "FIFTY EIGHT";
Symbol 926 MovieClip Frame 6
id = "SNAKE";
Symbol 926 MovieClip Frame 7
id = "GOLD PISTOL";
Symbol 927 MovieClip Frame 1
function depththingy() {
this.swapDepths(_parent.highest);
_parent.highest = this;
}
switch (_name) {
case "pane1" :
NUMBER = 1;
break;
case "pane2" :
NUMBER = 2;
break;
case "pane3" :
NUMBER = 3;
break;
case "pane4" :
NUMBER = 4;
break;
case "pane5" :
NUMBER = 5;
break;
case "pane6" :
NUMBER = 6;
break;
case "pane7" :
NUMBER = 7;
break;
case "pane8" :
NUMBER = 8;
break;
case "pane9" :
NUMBER = 9;
break;
case "pane10" :
NUMBER = 10;
break;
case "pane11" :
NUMBER = 11;
break;
case "pane12" :
NUMBER = 12;
break;
case "pane13" :
NUMBER = 13;
break;
case "pane14" :
NUMBER = 14;
break;
case "pane15" :
NUMBER = 15;
break;
case "pane16" :
NUMBER = 16;
break;
case "pane17" :
NUMBER = 17;
break;
case "pane18" :
NUMBER = 18;
break;
case "pane19" :
NUMBER = 19;
break;
case "pane20" :
NUMBER = 20;
break;
case "pane21" :
NUMBER = 21;
break;
case "pane22" :
NUMBER = 22;
break;
case "pane23" :
NUMBER = 23;
break;
case "pane24" :
NUMBER = 24;
break;
case "pane25" :
NUMBER = 25;
break;
case "pane26" :
NUMBER = 26;
break;
case "pane27" :
NUMBER = 27;
}
gun.gotoAndStop(NUMBER);
mouseover = false;
this.onEnterFrame = function () {
if (mouseover) {
_xscale = (_xscale + ((180 - _xscale) / 2));
_yscale = _xscale;
} else {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
}
};
fram.onPress = function () {
_parent.target.player.gundisplay.gotoAndStop(NUMBER);
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.junks.gotoAndStop(NUMBER + 1);
};
fram.onRollOut = function () {
mouseover = false;
_parent.junks.gotoAndStop(1);
};
Symbol 969 MovieClip Frame 1
stop();
id = "I don't need perks";
Symbol 969 MovieClip Frame 2
id = "Weight of guns does not affect movement speed";
Symbol 969 MovieClip Frame 3
id = "Triple jump";
Symbol 969 MovieClip Frame 4
id = "33% chance of getting minigun in crates";
Symbol 969 MovieClip Frame 5
id = "No recoil from firing guns";
Symbol 969 MovieClip Frame 6
id = "Pushback from explosions are minimized";
Symbol 969 MovieClip Frame 7
id = "+33% more ammo for all guns";
Symbol 969 MovieClip Frame 8
id = "+2 extra explosive weapons";
Symbol 969 MovieClip Frame 9
id = "Random gun at spawn";
Symbol 969 MovieClip Frame 10
id = "Throw duck bombs instead of dynamite";
Symbol 969 MovieClip Frame 11
id = "Infinite pistol ammo, never have to reload";
Symbol 969 MovieClip Frame 12
id = "100% chance of getting Gangster Shotgun in crates";
Symbol 969 MovieClip Frame 13
id = "Instead of throwing explosives, YOU are the explosive";
Symbol 970 MovieClip Frame 1
function depththingy() {
this.swapDepths(_parent.highest);
_parent.highest = this;
}
switch (_name) {
case "pane1" :
NUMBER = 1;
break;
case "pane2" :
NUMBER = 2;
break;
case "pane3" :
NUMBER = 3;
break;
case "pane4" :
NUMBER = 4;
break;
case "pane5" :
NUMBER = 5;
break;
case "pane6" :
NUMBER = 6;
break;
case "pane7" :
NUMBER = 7;
break;
case "pane8" :
NUMBER = 8;
break;
case "pane9" :
NUMBER = 9;
break;
case "pane10" :
NUMBER = 10;
break;
case "pane11" :
NUMBER = 11;
break;
case "pane12" :
NUMBER = 12;
break;
case "pane13" :
NUMBER = 13;
break;
case "pane14" :
NUMBER = 14;
break;
case "pane15" :
NUMBER = 15;
break;
case "pane16" :
NUMBER = 16;
break;
case "pane17" :
NUMBER = 17;
break;
case "pane18" :
NUMBER = 18;
break;
case "pane19" :
NUMBER = 19;
break;
case "pane20" :
NUMBER = 20;
break;
case "pane21" :
NUMBER = 21;
break;
case "pane22" :
NUMBER = 22;
break;
case "pane23" :
NUMBER = 23;
break;
case "pane24" :
NUMBER = 24;
break;
case "pane25" :
NUMBER = 25;
break;
case "pane26" :
NUMBER = 26;
break;
case "pane27" :
NUMBER = 27;
}
perkdisplay.gotoAndStop(NUMBER);
mouseover = false;
this.onEnterFrame = function () {
if (mouseover) {
_xscale = (_xscale + ((160 - _xscale) / 2));
_yscale = _xscale;
} else {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
}
};
fram.onPress = function () {
_parent.target.perkdisplay.gotoAndStop(NUMBER);
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = perkdisplay.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 971 MovieClip [menup_editedit] Frame 1
function kill() {
_parent.unfreezeall();
removeMovieClip(this);
delete this.onEnterFrame;
}
_alpha = 0;
if (_name == "tempmc") {
this.swapDepths(10);
removeMovieClip(this);
delete this.onEnterFrame;
}
displaytext.text = "";
gotoAndStop(pagenumber);
deletethis = false;
this.onEnterFrame = function () {
if (!deletethis) {
if (_alpha < 100) {
_alpha = (_alpha + 34);
if (_alpha >= 100) {
_alpha = 100;
}
}
} else {
_alpha = (_alpha - 34);
if (_alpha <= 1) {
kill();
}
}
};
btn_cancel.onRelease = function () {
deletethis = true;
};
highest = pane1;
pane1.swapDepths(10);
Symbol 974 MovieClip [gun_mini] Frame 1
shootx = -10;
shooty = -3;
handx = 40;
handy = -22;
shellX = 20;
flashX = 71;
Name = "MINIGUN";
_parent._parent.rof = 2;
_parent._parent.firepower = 20;
_parent._parent.recoil = 0.5;
_parent._parent.blowback = 0;
_parent._parent.bullets = 150;
_parent._parent.idlerotate = 30;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.7;
Symbol 974 MovieClip [gun_mini] Frame 2
stop();
Symbol 974 MovieClip [gun_mini] Frame 3
_parent._parent.ejectshell3();
gotoAndPlay (2);
Symbol 1008 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 1
stop();
Symbol 1034 MovieClip Frame 1
stop();
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
Symbol 1048 MovieClip Frame 1
if (startanim) {
gotoAndPlay (2);
}
this.onPress = function () {
getURL ("http://armor.ag/MoreGames", _blank);
};
Symbol 1048 MovieClip Frame 225
stop();
_root.start_name.play();
Symbol 1052 MovieClip Frame 54
stop();
Symbol 1062 MovieClip Frame 1
frame.onPress = function () {
getURL ("http://www.thekevingu.com", _blank);
};
stop();
Symbol 1062 MovieClip Frame 101
stop();
this.onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 1) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 1066 MovieClip Frame 1
_alpha = 0;
this.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_alpha < 50) {
_alpha = (_alpha + ((60 - _alpha) / 2));
}
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
}
};
Symbol 1107 MovieClip Frame 1
stop();
Symbol 1119 MovieClip Frame 1
function fresh() {
gotoAndStop(_root.savedata.data.challenge[NUMBER][0] + 1);
}
stop();
switch (_name) {
case "star1" :
NUMBER = 0;
break;
case "star2" :
NUMBER = 1;
break;
case "star3" :
NUMBER = 2;
break;
case "star4" :
NUMBER = 3;
break;
case "star5" :
NUMBER = 4;
break;
case "star6" :
NUMBER = 5;
break;
case "star7" :
NUMBER = 6;
}
fresh();
Symbol 1131 MovieClip Frame 1
function updateall() {
timedisplay.text = Math.round(_root.savedata.data.challenge[display._currentframe - 1][1] / 10) / 100;
if (timedisplay.text == 0) {
timedisplay.text = "NONE";
}
star1.fresh();
star2.fresh();
star3.fresh();
star4.fresh();
star5.fresh();
star6.fresh();
star7.fresh();
}
function checkstars() {
if (_root.savedata.data.challenge[0][1] <= 37000) {
_root.savedata.data.challenge[0][0] = 1;
}
if (_root.savedata.data.challenge[0][1] <= 30000) {
_root.savedata.data.challenge[0][0] = 2;
}
if (_root.savedata.data.challenge[0][1] <= 23000) {
_root.savedata.data.challenge[0][0] = 3;
}
if (_root.savedata.data.challenge[1][1] <= 34000) {
_root.savedata.data.challenge[1][0] = 1;
}
if (_root.savedata.data.challenge[1][1] <= 27000) {
_root.savedata.data.challenge[1][0] = 2;
}
if (_root.savedata.data.challenge[1][1] <= 20000) {
_root.savedata.data.challenge[1][0] = 3;
}
if (_root.savedata.data.challenge[2][1] <= 36000) {
_root.savedata.data.challenge[2][0] = 1;
}
if (_root.savedata.data.challenge[2][1] <= 29000) {
_root.savedata.data.challenge[2][0] = 2;
}
if (_root.savedata.data.challenge[2][1] <= 22000) {
_root.savedata.data.challenge[2][0] = 3;
}
if (_root.savedata.data.challenge[3][1] <= 35000) {
_root.savedata.data.challenge[3][0] = 1;
}
if (_root.savedata.data.challenge[3][1] <= 28000) {
_root.savedata.data.challenge[3][0] = 2;
}
if (_root.savedata.data.challenge[3][1] <= 21000) {
_root.savedata.data.challenge[3][0] = 3;
}
if (_root.savedata.data.challenge[4][1] <= 34000) {
_root.savedata.data.challenge[4][0] = 1;
}
if (_root.savedata.data.challenge[4][1] <= 27000) {
_root.savedata.data.challenge[4][0] = 2;
}
if (_root.savedata.data.challenge[4][1] <= 20000) {
_root.savedata.data.challenge[4][0] = 3;
}
if (_root.savedata.data.challenge[5][1] <= 27000) {
_root.savedata.data.challenge[5][0] = 1;
}
if (_root.savedata.data.challenge[5][1] <= 20000) {
_root.savedata.data.challenge[5][0] = 2;
}
if (_root.savedata.data.challenge[5][1] <= 13000) {
_root.savedata.data.challenge[5][0] = 3;
}
if (_root.savedata.data.challenge[6][1] <= 34000) {
_root.savedata.data.challenge[6][0] = 1;
}
if (_root.savedata.data.challenge[6][1] <= 29000) {
_root.savedata.data.challenge[6][0] = 2;
}
if (_root.savedata.data.challenge[6][1] <= 24000) {
_root.savedata.data.challenge[6][0] = 3;
}
i = 0;
while (i < 7) {
if (_root.savedata.data.challenge[i][1] == 0) {
_root.savedata.data.challenge[i][0] = 0;
}
i++;
}
}
display.gotoAndStop(_root.savedata.data.menuchallenge);
btn_back.onRelease = function () {
if (!_root.fadeaway) {
btn_back3.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gotomenu = true;
}
};
btn1.onRelease = function () {
display.gotoAndStop(1);
_root.savedata.data.menuchallenge = 1;
updateall();
};
btn2.onRelease = function () {
display.gotoAndStop(2);
_root.savedata.data.menuchallenge = 2;
updateall();
};
btn3.onRelease = function () {
display.gotoAndStop(3);
_root.savedata.data.menuchallenge = 3;
updateall();
};
btn4.onRelease = function () {
display.gotoAndStop(4);
_root.savedata.data.menuchallenge = 4;
updateall();
};
btn5.onRelease = function () {
display.gotoAndStop(5);
_root.savedata.data.menuchallenge = 5;
updateall();
};
btn6.onRelease = function () {
display.gotoAndStop(6);
_root.savedata.data.menuchallenge = 6;
updateall();
};
btn7.onRelease = function () {
display.gotoAndStop(7);
_root.savedata.data.menuchallenge = 7;
updateall();
};
btn_start.onRelease = function () {
if (!_root.fadeaway) {
_root.challengenumber = display._currentframe;
_root.gotochallenge = true;
btn_start.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
}
};
updateall();
checkstars();
Symbol 1150 MovieClip Frame 1
switch (_name) {
case "btn1" :
NUMBER = 1;
break;
case "btn2" :
NUMBER = 2;
break;
case "btn3" :
NUMBER = 3;
break;
case "btn4" :
NUMBER = 4;
break;
case "btn5" :
NUMBER = 5;
break;
case "btn6" :
NUMBER = 6;
break;
case "btn7" :
NUMBER = 7;
break;
case "btn8" :
NUMBER = 8;
break;
case "btn9" :
NUMBER = 9;
break;
case "btn10" :
NUMBER = 10;
break;
case "btn11" :
NUMBER = 11;
break;
case "btn12" :
NUMBER = 12;
break;
case "btn13" :
NUMBER = 13;
break;
case "btn14" :
NUMBER = 14;
break;
case "btn15" :
NUMBER = 15;
break;
case "btn16" :
NUMBER = 16;
}
gotoAndStop(_root.savedata.data.campaign[NUMBER - 1] + 1);
btnbtn._alpha = 0;
this.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (btnbtn._alpha < 100) {
btnbtn._alpha = 100;
}
} else if (btnbtn._alpha > 0) {
btnbtn._alpha = 0;
}
if (_currentframe == 1) {
this.useHandCursor = false;
delete this.onEnterFrame;
btnbtn._alpha = 0;
}
};
this.onRelease = function () {
if (_currentframe != 1) {
_parent.gotomission(NUMBER);
}
};
Symbol 1255 MovieClip Frame 1
stop();
Symbol 1261 MovieClip Frame 1
defstate = _currentframe;
gotoAndStop(defstate);
this.onRollOver = function () {
if (defstate == 2) {
gotoAndStop (3);
}
};
this.onRollOut = function () {
gotoAndStop(defstate);
};
this.onRelease = function () {
if (_name == "teamA") {
_parent.team = 1;
}
if (_name == "teamB") {
_parent.team = 2;
}
_parent.teamA.defstate = 2;
_parent.teamB.defstate = 2;
_parent.teamA.gotoAndStop(2);
_parent.teamB.gotoAndStop(2);
this.defstate = 4;
gotoAndStop (4);
};
Symbol 1268 MovieClip Frame 1
stop();
if (_parent._parent.modedisplay._currentframe == 3) {
gotoAndStop (2);
}
Symbol 1268 MovieClip Frame 2
if (team == 1) {
teamA.gotoAndStop(4);
teamA.defstate = 4;
} else if (team == 2) {
teamB.gotoAndStop(4);
teamB.defstate = 4;
}
Symbol 1269 MovieClip Frame 1
gotoAndStop (2);
this.onRollOver = function () {
gotoAndStop (3);
};
this.onRollOut = function () {
gotoAndStop (2);
};
Symbol 1275 MovieClip Frame 1
Symbol 1276 MovieClip Frame 1
Symbol 1277 MovieClip Frame 1
playernumber = 1;
stop();
Symbol 1278 MovieClip Frame 1
stop();
Symbol 1295 MovieClip Frame 2
function summon_editedit(temp) {
newmc = _parent.attachMovie("menup_editedit", "editedit", 1);
newmc.pagenumber = temp;
newmc.target = this;
_parent.freezeall();
}
function freeze() {
btn_player_human.useHandCursor = false;
btn_player_ai.useHandCursor = false;
btn_clear.useHandCursor = false;
edit_hat.useHandCursor = false;
edit_shirt.useHandCursor = false;
edit_color.useHandCursor = false;
edit_eyes.useHandCursor = false;
edit_gun.useHandCursor = false;
edit_perk.useHandCursor = false;
inputname._y = 1000;
}
function unfreeze() {
btn_player_human.useHandCursor = true;
btn_player_ai.useHandCursor = true;
btn_clear.useHandCursor = true;
edit_hat.useHandCursor = true;
edit_shirt.useHandCursor = true;
edit_color.useHandCursor = true;
edit_eyes.useHandCursor = true;
edit_gun.useHandCursor = true;
edit_perk.useHandCursor = true;
inputname._y = 300;
}
function slideback() {
if (_parent.menu1.slide == 2) {
_parent.menu1.slide = 1;
}
if (_parent.menu2.slide == 2) {
_parent.menu2.slide = 1;
}
if (_parent.menu3.slide == 2) {
_parent.menu3.slide = 1;
}
if (_parent.menu4.slide == 2) {
_parent.menu4.slide = 1;
}
}
function update() {
player.head.gotoAndStop(colornumber);
player.body.gotoAndStop(colornumber);
player.leg1.leg.gotoAndStop(colornumber);
player.leg2.leg.gotoAndStop(colornumber);
player.hand2.hand.gotoAndStop(colornumber);
player.gundisplayhand.gotoAndStop(colornumber);
pane1.gotoAndStop(colornumber);
}
stop();
switch (_name) {
case "menu1" :
colornumber = _root.savedata.data.p1color;
inputname.text = _root.savedata.data.p1name;
player.shirt.gotoAndStop(_root.savedata.data.p1shirt);
player.hat.gotoAndStop(_root.savedata.data.p1hat);
player.eyes.gotoAndStop(_root.savedata.data.p1eyes);
player.gundisplay.gotoAndStop(_root.savedata.data.p1gun);
perkdisplay.gotoAndStop(_root.savedata.data.p1perk);
playertype = _root.savedata.data.p1ptype;
teamselect.team = _root.savedata.data.p1team;
break;
case "menu2" :
colornumber = _root.savedata.data.p2color;
inputname.text = _root.savedata.data.p2name;
player.shirt.gotoAndStop(_root.savedata.data.p2shirt);
player.hat.gotoAndStop(_root.savedata.data.p2hat);
player.eyes.gotoAndStop(_root.savedata.data.p2eyes);
player.gundisplay.gotoAndStop(_root.savedata.data.p2gun);
perkdisplay.gotoAndStop(_root.savedata.data.p2perk);
playertype = _root.savedata.data.p2ptype;
teamselect.team = _root.savedata.data.p2team;
break;
case "menu3" :
colornumber = _root.savedata.data.p3color;
inputname.text = _root.savedata.data.p3name;
player.shirt.gotoAndStop(_root.savedata.data.p3shirt);
player.hat.gotoAndStop(_root.savedata.data.p3hat);
player.eyes.gotoAndStop(_root.savedata.data.p3eyes);
player.gundisplay.gotoAndStop(_root.savedata.data.p3gun);
perkdisplay.gotoAndStop(_root.savedata.data.p3perk);
playertype = _root.savedata.data.p3ptype;
teamselect.team = _root.savedata.data.p3team;
break;
case "menu4" :
colornumber = _root.savedata.data.p4color;
inputname.text = _root.savedata.data.p4name;
player.shirt.gotoAndStop(_root.savedata.data.p4shirt);
player.hat.gotoAndStop(_root.savedata.data.p4hat);
player.eyes.gotoAndStop(_root.savedata.data.p4eyes);
player.gundisplay.gotoAndStop(_root.savedata.data.p4gun);
perkdisplay.gotoAndStop(_root.savedata.data.p4perk);
playertype = _root.savedata.data.p4ptype;
teamselect.team = _root.savedata.data.p4team;
}
updated = false;
updatetime = 1;
originy = 100;
ai_notice._alpha = 0;
if (playertype == 0) {
slide = 0;
_y = (originy + 400);
} else if (playertype == 1) {
slide = 1;
_y = originy;
} else if (playertype == 2) {
slide = 0;
_y = (originy + 400);
playertype = 0;
}
this.onEnterFrame = function () {
if (!updated) {
update();
updated = true;
}
if (updatetime != 0) {
updatetime = updatetime + 1;
}
if (updatetime == 2) {
updatetime = 0;
}
if (slide == 0) {
_y = (_y + (((originy + 400) - _y) / 2));
} else if (slide == 1) {
_y = (_y + ((originy - _y) / 2));
} else if (slide == 2) {
_y = (_y + (((originy - 400) - _y) / 2));
}
if ((_y % 1) != 0) {
_y = Math.round(_y);
}
if (player.hat.getDepth() < player.eyes.getDepth()) {
player.hat.swapDepths(player.eyes);
}
if (gundisplay._currentframe != player.gundisplay._currentframe) {
gundisplay.gotoAndStop(player.gundisplay._currentframe);
}
};
edit_hat.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(1);
}
};
edit_eyes.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(2);
}
};
edit_shirt.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(3);
}
};
edit_color.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(4);
}
};
edit_gun.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(5);
}
};
edit_perk.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(6);
}
};
btn_clear.onRelease = function () {
if (!_parent.editedit) {
slide = 0;
playertype = 0;
_root.playsound2("slide.wav");
}
};
btn_player_human.onRelease = function () {
if (!_parent.editedit) {
slide = 1;
playertype = 1;
ai_notice._alpha = 0;
_root.playsound2("slide.wav");
}
};
btn_player_ai.onRelease = function () {
if (!_parent.editedit) {
slide = 1;
playertype = 2;
ai_notice._alpha = 100;
_root.playsound2("slide.wav");
}
};
Symbol 1300 MovieClip Frame 1
_x = -1800;
_y = 0;
gotoAndPlay (2);
Symbol 1300 MovieClip Frame 2
stop();
Symbol 1300 MovieClip Frame 7
switch (_parent.frame) {
case 1 :
_parent._x = 0;
break;
case 2 :
_parent._x = 900;
break;
case 3 :
_parent._x = 1800;
}
Symbol 1300 MovieClip Frame 12
gotoAndPlay (2);
Symbol 1301 MovieClip Frame 1
function gotomission(temp) {
if ((menufade._currentframe == 2) && (!editedit)) {
currentmission = temp;
menufade.gotoAndPlay(3);
WRITE_DATA();
frame = 1;
switch (temp) {
case 1 :
mapdisplay.gotoAndStop(5);
break;
case 2 :
mapdisplay.gotoAndStop(9);
break;
case 3 :
mapdisplay.gotoAndStop(19);
break;
case 4 :
mapdisplay.gotoAndStop(2);
break;
case 5 :
mapdisplay.gotoAndStop(7);
break;
case 6 :
mapdisplay.gotoAndStop(4);
break;
case 7 :
mapdisplay.gotoAndStop(6);
break;
case 8 :
mapdisplay.gotoAndStop(14);
break;
case 9 :
mapdisplay.gotoAndStop(1);
break;
case 10 :
mapdisplay.gotoAndStop(20);
break;
case 11 :
mapdisplay.gotoAndStop(12);
break;
case 12 :
mapdisplay.gotoAndStop(3);
break;
case 13 :
mapdisplay.gotoAndStop(21);
break;
case 14 :
mapdisplay.gotoAndStop(18);
break;
case 15 :
mapdisplay.gotoAndStop(10);
break;
case 16 :
mapdisplay.gotoAndStop(16);
}
brief.gotoAndStop(temp);
nocoop._alpha = 0;
menu2._x = 260;
if ((temp == 16) || (temp == 1)) {
nocoop._alpha = 100;
menu2._x = 1200;
}
_root.playsound2("btn.wav");
}
}
function WRITE_DATA() {
_root.savedata.data.p1name = menu1.inputname.text;
_root.savedata.data.p1color = menu1.colornumber;
_root.savedata.data.p1shirt = menu1.player.shirt._currentframe;
_root.savedata.data.p1hat = menu1.player.hat._currentframe;
_root.savedata.data.p1eyes = menu1.player.eyes._currentframe;
_root.savedata.data.p1gun = menu1.player.gundisplay._currentframe;
_root.savedata.data.p1perk = menu1.perkdisplay._currentframe;
_root.savedata.data.p1ptype = menu1.playertype;
_root.savedata.data.p2name = menu2.inputname.text;
_root.savedata.data.p2color = menu2.colornumber;
_root.savedata.data.p2shirt = menu2.player.shirt._currentframe;
_root.savedata.data.p2hat = menu2.player.hat._currentframe;
_root.savedata.data.p2eyes = menu2.player.eyes._currentframe;
_root.savedata.data.p2gun = menu2.player.gundisplay._currentframe;
_root.savedata.data.p2perk = menu2.perkdisplay._currentframe;
_root.savedata.data.p2ptype = menu2.playertype;
}
function freezeall() {
btn_back2.useHandCursor = false;
btn_start.useHandCursor = false;
menu1.freeze();
menu2.freeze();
menu3.freeze();
menu4.freeze();
}
function unfreezeall() {
btn_back2.useHandCursor = true;
btn_start.useHandCursor = true;
menu1.unfreeze();
menu2.unfreeze();
menu3.unfreeze();
menu4.unfreeze();
}
_x = 900;
nocoop._alpha = 0;
btn_back.onRelease = function () {
if (!_root.fadeaway) {
btn_back3.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gotomenu = true;
}
};
currentmission = 1;
mapdisplay.gotoAndStop(1);
btn_back2.onRelease = function () {
if ((menufade._currentframe == 2) && (!editedit)) {
_root.playsound2("btn.wav");
menufade.gotoAndPlay(3);
WRITE_DATA();
frame = 2;
}
};
btn_start.onRelease = function () {
if (((!_root.fadeaway) && (menu1._currentframe == menu1._totalframes)) && (!editedit)) {
if (menufade._currentframe == 2) {
temp = 0;
if (menu1.slide != 0) {
temp = temp + 1;
}
if (menu2.slide != 0) {
temp = temp + 1;
}
if (temp >= 1) {
_root.gotocampaign = true;
_root.missionnumber = currentmission;
WRITE_DATA();
_root.mapnumber = mapdisplay._currentframe;
_root.toggle_crates = true;
_root.toggle_powerups = true;
_root.p1name = menu1.inputname.text;
_root.p1color = menu1.colornumber;
_root.p1shirt = menu1.player.shirt._currentframe;
_root.p1hat = menu1.player.hat._currentframe;
_root.p1eyes = menu1.player.eyes._currentframe;
_root.p1gun = menu1.player.gundisplay._currentframe;
_root.p1perk = menu1.perkdisplay._currentframe;
_root.p1ptype = menu1.playertype;
_root.p1team = 1;
_root.p2name = menu2.inputname.text;
_root.p2color = menu2.colornumber;
_root.p2shirt = menu2.player.shirt._currentframe;
_root.p2hat = menu2.player.hat._currentframe;
_root.p2eyes = menu2.player.eyes._currentframe;
_root.p2gun = menu2.player.gundisplay._currentframe;
_root.p2perk = menu2.perkdisplay._currentframe;
_root.p2ptype = menu2.playertype;
_root.p2team = 1;
_root.totallives = 24;
btn_start.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gototest = false;
} else {
attachMovie("fx_notenough", "fx_notenough", 1357);
}
}
}
};
Symbol 1315 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_currentframe == 1) {
gotoAndStop (2);
}
};
this.onRollOut = function () {
if (_currentframe == 2) {
gotoAndStop (1);
}
};
this.useHandCursor = true;
Symbol 1315 MovieClip Frame 3
this.useHandCursor = false;
Symbol 1321 MovieClip Frame 1
stop();
Symbol 1325 MovieClip Frame 1
stop();
Symbol 1331 MovieClip Frame 1
function lockup() {
islock = true;
this.useHandCursor = false;
frame.gotoAndStop(1);
}
function lockup2() {
islock = false;
this.useHandCursor = true;
frame.gotoAndStop(1);
}
function taketheinput() {
_root.savedata2.data.controlarray[_parent.number][number] = _parent._parent.getinput;
_parent.refreshkeys();
}
_parent._parent.btnarray[_parent._parent.btnarray.length] = this;
islock = false;
if (keytext.text == "Up Arrow") {
gotoAndStop (3);
}
if (keytext.text == "Left Arrow") {
gotoAndStop (4);
}
if (keytext.text == "Down Arrow") {
gotoAndStop (5);
}
if (keytext.text == "Right Arrow") {
gotoAndStop (6);
}
switch (this._name) {
case "key1" :
number = 0;
break;
case "key2" :
number = 1;
break;
case "key3" :
number = 2;
break;
case "key4" :
number = 3;
break;
case "key5" :
number = 4;
break;
case "key6" :
number = 5;
}
this.onRollOver = function () {
if (!islock) {
frame.gotoAndStop(2);
}
};
this.onRollOut = function () {
if (!islock) {
frame.gotoAndStop(1);
}
};
this.onPress = function () {
if (!islock) {
_parent._parent.targetkey = this;
frame.gotoAndStop(3);
_parent._parent.disableall();
_parent._parent.lockup._alpha = 100;
}
};
Symbol 1331 MovieClip Frame 2
stop();
Symbol 1338 MovieClip Frame 1
function refreshkeys() {
key1.gotoAndPlay(1);
key2.gotoAndPlay(1);
key3.gotoAndPlay(1);
key4.gotoAndPlay(1);
key5.gotoAndPlay(1);
key6.gotoAndPlay(1);
key1.keytext.text = codeToChar(_root.savedata2.data.controlarray[number][0]);
key2.keytext.text = codeToChar(_root.savedata2.data.controlarray[number][1]);
key3.keytext.text = codeToChar(_root.savedata2.data.controlarray[number][2]);
key4.keytext.text = codeToChar(_root.savedata2.data.controlarray[number][3]);
key5.keytext.text = codeToChar(_root.savedata2.data.controlarray[number][4]);
key6.keytext.text = codeToChar(_root.savedata2.data.controlarray[number][5]);
}
function codeToChar(input) {
returnvalue = " ";
switch (input) {
case 8 :
returnvalue = "BS";
break;
case 13 :
returnvalue = "Entr";
break;
case 16 :
returnvalue = "Shft";
break;
case 17 :
returnvalue = "Ctrl";
break;
case 18 :
returnvalue = "Alt";
break;
case 20 :
returnvalue = "Cpsl";
break;
case 27 :
returnvalue = "Esc";
break;
case 32 :
returnvalue = "SPC";
break;
case 33 :
returnvalue = "PgU";
break;
case 34 :
returnvalue = "PgD";
break;
case 35 :
returnvalue = "End";
break;
case 36 :
returnvalue = "Home";
break;
case 37 :
returnvalue = "Left Arrow";
break;
case 38 :
returnvalue = "Up Arrow";
break;
case 39 :
returnvalue = "Right Arrow";
break;
case 40 :
returnvalue = "Down Arrow";
break;
case 45 :
returnvalue = "Ins";
break;
case 46 :
returnvalue = "Del";
break;
case 145 :
returnvalue = "Scrl";
break;
case 96 :
returnvalue = "np0";
break;
case 97 :
returnvalue = "np1";
break;
case 98 :
returnvalue = "np2";
break;
case 99 :
returnvalue = "np3";
break;
case 100 :
returnvalue = "np4";
break;
case 101 :
returnvalue = "np5";
break;
case 102 :
returnvalue = "np6";
break;
case 103 :
returnvalue = "np7";
break;
case 104 :
returnvalue = "np8";
break;
case 105 :
returnvalue = "np9";
break;
case 106 :
returnvalue = "np*";
break;
case 107 :
returnvalue = "np+";
break;
case 109 :
returnvalue = "np-";
break;
case 110 :
returnvalue = "np.";
break;
case 111 :
returnvalue = "np/";
break;
case 113 :
returnvalue = "F2";
break;
case 115 :
returnvalue = "F4";
break;
case 118 :
returnvalue = "F7";
break;
case 119 :
returnvalue = "F8";
break;
case 120 :
returnvalue = "F9";
break;
case 121 :
returnvalue = "F10";
break;
case 123 :
returnvalue = "F12";
break;
case 186 :
returnvalue = ";";
break;
case 187 :
returnvalue = "=";
break;
case 188 :
returnvalue = ",";
break;
case 189 :
returnvalue = "-";
break;
case 190 :
returnvalue = ".";
break;
case 191 :
returnvalue = "/";
break;
case 192 :
returnvalue = "'";
break;
case 219 :
returnvalue = "[";
break;
case 220 :
returnvalue = "\\";
break;
case 221 :
returnvalue = "]";
break;
case 222 :
returnvalue = "'";
}
if (((input >= 65) && (input <= 90)) || ((input >= 48) && (input <= 57))) {
returnvalue = String.fromCharCode(input);
}
return(returnvalue);
}
stop();
switch (_name) {
case "p1" :
number = 0;
break;
case "p2" :
number = 1;
break;
case "p3" :
number = 2;
break;
case "p4" :
number = 3;
}
pnumber.gotoAndStop(number + 1);
refreshkeys();
Symbol 1347 MovieClip Frame 1
function disableall() {
i = 0;
while (i < btnarray.length) {
btnarray[i].lockup();
i++;
}
btn_back.useHandCursor = false;
islocked = true;
lockup._alpha = 100;
}
function enableall() {
i = 0;
while (i < btnarray.length) {
btnarray[i].lockup2();
i++;
}
btn_back.useHandCursor = true;
islocked = false;
lockup._alpha = 0;
}
btn_back.onRelease = function () {
if ((!_root.fadeaway) && (!islocked)) {
btn_back3.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gotomenu = true;
}
};
lockup._alpha = 0;
btnarray = new Array();
islocked = false;
getinput = -1;
keyListener = new Object();
keyListener.onKeyDown = function () {
if ((Key.getCode() != 32) && (Key.getCode() != 27)) {
if (islocked) {
islocked = false;
getinput = Key.getCode();
enableall();
targetkey.taketheinput();
}
}
};
Key.addListener(keyListener);
switch (_root.savedata2.data.Q) {
case 1 :
btn1.gotoAndStop(3);
break;
case 2 :
btn2.gotoAndStop(3);
break;
case 3 :
btn3.gotoAndStop(3);
}
if (_root.savedata2.data.musicON) {
btn4.gotoAndStop(3);
}
if (!_root.savedata2.data.musicON) {
btn5.gotoAndStop(3);
}
if (_root.savedata2.data.soundON) {
btn6.gotoAndStop(3);
}
if (!_root.savedata2.data.soundON) {
btn7.gotoAndStop(3);
}
btn1.onRelease = function () {
btn1.gotoAndStop(3);
btn2.gotoAndStop(1);
btn3.gotoAndStop(1);
_root.savedata2.data.Q = 1;
};
btn2.onRelease = function () {
btn1.gotoAndStop(1);
btn2.gotoAndStop(3);
btn3.gotoAndStop(1);
_root.savedata2.data.Q = 2;
};
btn3.onRelease = function () {
btn1.gotoAndStop(1);
btn2.gotoAndStop(1);
btn3.gotoAndStop(3);
_root.savedata2.data.Q = 3;
};
btn4.onRelease = function () {
btn4.gotoAndStop(3);
btn5.gotoAndStop(1);
_root.savedata2.data.musicON = true;
_root.music1.start(5, 100);
};
btn5.onRelease = function () {
btn4.gotoAndStop(1);
btn5.gotoAndStop(3);
_root.savedata2.data.musicON = false;
_root.stopallmusic();
};
btn6.onRelease = function () {
btn6.gotoAndStop(3);
btn7.gotoAndStop(1);
_root.savedata2.data.soundON = true;
};
btn7.onRelease = function () {
btn6.gotoAndStop(1);
btn7.gotoAndStop(3);
_root.savedata2.data.soundON = false;
};
Symbol 1364 MovieClip Frame 1
btn_back.onRelease = function () {
if (!_root.fadeaway) {
btn_back3.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gotomenu = true;
}
};
btn_hamster.onRelease = function () {
getURL ("http://www.hamsteralliance.com", _blank);
};
btn_kev.onRelease = function () {
getURL ("http://www.thekevingu.com", _blank);
};
Symbol 1369 MovieClip Frame 1
if (_currentframe == 1) {
gotoAndStop (2);
}
switch (this._name) {
case "btn1" :
NUMBER = 1;
break;
case "btn2" :
NUMBER = 2;
break;
case "btn3" :
NUMBER = 3;
break;
case "btn4" :
NUMBER = 4;
break;
case "btn5" :
NUMBER = 5;
}
this.onRelease = function () {
_parent.btn1.gotoAndStop(2);
_parent.btn2.gotoAndStop(2);
_parent.btn3.gotoAndStop(2);
_parent.btn4.gotoAndStop(2);
_parent.btn5.gotoAndStop(2);
gotoAndStop (4);
_parent.panel = NUMBER;
_root.savedata.data.menugunlib = NUMBER;
};
this.onRollOver = function () {
if (_currentframe != 4) {
gotoAndStop (3);
}
};
this.onRollOut = function () {
if (_currentframe != 4) {
gotoAndStop (2);
}
};
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1472 MovieClip Frame 1
statdisplay.gotoAndStop(8);
dropgun.gotoAndStop(8);
asdf = testbtn._y;
testbtn._y = testbtn._y + 500;
testbtn.onRelease = function () {
if (statdisplay._currentframe != 8) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.mapnumber = 13;
_root.gototest = true;
_root.gototestnumber = dropgun._currentframe;
}
};
Symbol 1475 MovieClip Frame 1
_alpha = 0;
Symbol 1476 MovieClip Frame 1
gunnumber = Math.round(_rotation);
dropgun.gotoAndStop(gunnumber);
_rotation = -30;
_xscale = 120;
_yscale = 120;
if (dropgun._currentframe <= 7) {
_xscale = 150;
_yscale = 150;
}
this.onRelease = function () {
_parent._parent.guncard.statdisplay.gotoAndStop(gunnumber);
_parent._parent.guncard.dropgun.gotoAndStop(gunnumber);
_parent._parent.guncard.testbtn._y = _parent._parent.guncard.asdf;
};
Symbol 1478 MovieClip Frame 1
btn_back.onRelease = function () {
if (!_root.fadeaway) {
btn_back3.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gotomenu = true;
}
};
panel = _root.savedata.data.menugunlib;
boards._x = (panel - 1) * -900;
switch (panel) {
case 1 :
btn1.gotoAndStop(4);
break;
case 2 :
btn2.gotoAndStop(4);
break;
case 3 :
btn3.gotoAndStop(4);
break;
case 4 :
btn4.gotoAndStop(4);
break;
case 5 :
btn5.gotoAndStop(4);
}
this.onEnterFrame = function () {
boards._x = boards._x + ((((panel - 1) * -900) - boards._x) / 3);
boards._x = Math.round(boards._x);
};
Symbol 1508 MovieClip Frame 1
stop();
switch (_name) {
case "modebtn1" :
NUMBER = 1;
break;
case "modebtn2" :
NUMBER = 2;
break;
case "modebtn3" :
NUMBER = 3;
break;
case "modebtn4" :
NUMBER = 4;
break;
case "modebtn5" :
NUMBER = 5;
break;
case "modebtn6" :
NUMBER = 6;
break;
case "modebtn10" :
NUMBER = 10;
break;
case "modebtn11" :
NUMBER = 11;
break;
case "modebtn12" :
NUMBER = 12;
break;
case "modebtn13" :
NUMBER = 13;
}
this.onRollOver = function () {
gotoAndPlay (2);
_parent.modeallplay();
};
this.onRollOut = function () {
gotoAndPlay (9);
};
this.onRelease = function () {
_parent.modealldisable();
chosen._alpha = 100;
_parent.modedisplay.gotoAndStop(NUMBER);
_root.gamemode = NUMBER;
if (NUMBER == 5) {
_parent.lifepanel.gotoAndStop(2);
_parent.inputlives._y = 900;
} else {
_parent.lifepanel.gotoAndStop(1);
_parent.inputlives._y = _parent.lifehide;
}
};
Symbol 1508 MovieClip Frame 8
stop();
Symbol 1508 MovieClip Frame 14
gotoAndPlay (1);
Symbol 1530 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndPlay (2);
_parent.allplay();
};
this.onRollOut = function () {
gotoAndPlay (9);
};
switch (this._name) {
case "mapbtn1" :
NUMBER = 1;
break;
case "mapbtn2" :
NUMBER = 2;
break;
case "mapbtn3" :
NUMBER = 3;
break;
case "mapbtn4" :
NUMBER = 4;
break;
case "mapbtn5" :
NUMBER = 5;
break;
case "mapbtn6" :
NUMBER = 6;
break;
case "mapbtn7" :
NUMBER = 7;
break;
case "mapbtn8" :
NUMBER = 8;
break;
case "mapbtn9" :
NUMBER = 9;
break;
case "mapbtn10" :
NUMBER = 10;
break;
case "mapbtn11" :
NUMBER = 11;
break;
case "mapbtn12" :
NUMBER = 12;
break;
case "mapbtn13" :
NUMBER = 13;
break;
case "mapbtn14" :
NUMBER = 14;
break;
case "mapbtn15" :
NUMBER = 15;
break;
case "mapbtn16" :
NUMBER = 16;
break;
case "mapbtn17" :
NUMBER = 17;
break;
case "mapbtn18" :
NUMBER = 18;
break;
case "mapbtn19" :
NUMBER = 19;
break;
case "mapbtn20" :
NUMBER = 20;
break;
case "mapbtn21" :
NUMBER = 21;
break;
case "mapbtn_rnd1" :
NUMBER = 22;
break;
case "mapbtn_rnd2" :
NUMBER = 23;
}
this.onRelease = function () {
_parent.alldisable();
chosen._alpha = 100;
_parent.mapdisplay.gotoAndStop(NUMBER);
_root.mapnumber = NUMBER;
};
Symbol 1530 MovieClip Frame 8
stop();
Symbol 1530 MovieClip Frame 14
gotoAndPlay (1);
Symbol 1567 MovieClip Frame 1
stop();
Symbol 1573 MovieClip Frame 2
function summon_editedit(temp) {
newmc = _parent.attachMovie("menup_editedit", "editedit", 1);
newmc.pagenumber = temp;
newmc.target = this;
_parent.freezeall();
}
function freeze() {
btn_player_human.useHandCursor = false;
btn_player_ai.useHandCursor = false;
btn_clear.useHandCursor = false;
edit_hat.useHandCursor = false;
edit_shirt.useHandCursor = false;
edit_color.useHandCursor = false;
edit_eyes.useHandCursor = false;
edit_gun.useHandCursor = false;
edit_perk.useHandCursor = false;
inputname._y = 1000;
}
function unfreeze() {
btn_player_human.useHandCursor = true;
btn_player_ai.useHandCursor = true;
btn_clear.useHandCursor = true;
edit_hat.useHandCursor = true;
edit_shirt.useHandCursor = true;
edit_color.useHandCursor = true;
edit_eyes.useHandCursor = true;
edit_gun.useHandCursor = true;
edit_perk.useHandCursor = true;
inputname._y = 300;
}
function slideback() {
if (_parent.menu1.slide == 2) {
_parent.menu1.slide = 1;
}
if (_parent.menu2.slide == 2) {
_parent.menu2.slide = 1;
}
if (_parent.menu3.slide == 2) {
_parent.menu3.slide = 1;
}
if (_parent.menu4.slide == 2) {
_parent.menu4.slide = 1;
}
}
function update() {
player.head.gotoAndStop(colornumber);
player.body.gotoAndStop(colornumber);
player.leg1.leg.gotoAndStop(colornumber);
player.leg2.leg.gotoAndStop(colornumber);
player.hand2.hand.gotoAndStop(colornumber);
player.gundisplayhand.gotoAndStop(colornumber);
pane1.gotoAndStop(colornumber);
}
stop();
switch (_name) {
case "menu1" :
colornumber = _parent.savedata.data.p1color;
inputname.text = _parent.savedata.data.p1name;
player.shirt.gotoAndStop(_parent.savedata.data.p1shirt);
player.hat.gotoAndStop(_parent.savedata.data.p1hat);
player.eyes.gotoAndStop(_parent.savedata.data.p1eyes);
player.gundisplay.gotoAndStop(_parent.savedata.data.p1gun);
perkdisplay.gotoAndStop(_parent.savedata.data.p1perk);
playertype = _parent.savedata.data.p1ptype;
teamselect.team = _parent.savedata.data.p1team;
break;
case "menu2" :
colornumber = _parent.savedata.data.p2color;
inputname.text = _parent.savedata.data.p2name;
player.shirt.gotoAndStop(_parent.savedata.data.p2shirt);
player.hat.gotoAndStop(_parent.savedata.data.p2hat);
player.eyes.gotoAndStop(_parent.savedata.data.p2eyes);
player.gundisplay.gotoAndStop(_parent.savedata.data.p2gun);
perkdisplay.gotoAndStop(_parent.savedata.data.p2perk);
playertype = _parent.savedata.data.p2ptype;
teamselect.team = _parent.savedata.data.p2team;
break;
case "menu3" :
colornumber = _parent.savedata.data.p3color;
inputname.text = _parent.savedata.data.p3name;
player.shirt.gotoAndStop(_parent.savedata.data.p3shirt);
player.hat.gotoAndStop(_parent.savedata.data.p3hat);
player.eyes.gotoAndStop(_parent.savedata.data.p3eyes);
player.gundisplay.gotoAndStop(_parent.savedata.data.p3gun);
perkdisplay.gotoAndStop(_parent.savedata.data.p3perk);
playertype = _parent.savedata.data.p3ptype;
teamselect.team = _parent.savedata.data.p3team;
break;
case "menu4" :
colornumber = _parent.savedata.data.p4color;
inputname.text = _parent.savedata.data.p4name;
player.shirt.gotoAndStop(_parent.savedata.data.p4shirt);
player.hat.gotoAndStop(_parent.savedata.data.p4hat);
player.eyes.gotoAndStop(_parent.savedata.data.p4eyes);
player.gundisplay.gotoAndStop(_parent.savedata.data.p4gun);
perkdisplay.gotoAndStop(_parent.savedata.data.p4perk);
playertype = _parent.savedata.data.p4ptype;
teamselect.team = _parent.savedata.data.p4team;
}
updated = false;
updatetime = 1;
originy = 100;
ai_notice._alpha = 0;
if (playertype == 0) {
slide = 0;
_y = (originy + 400);
} else if (playertype == 1) {
slide = 1;
_y = originy;
} else if (playertype == 2) {
slide = 1;
_y = originy;
ai_notice._alpha = 100;
}
this.onEnterFrame = function () {
if (!updated) {
update();
updated = true;
}
if (updatetime != 0) {
updatetime = updatetime + 1;
}
if (updatetime == 2) {
updatetime = 0;
}
if (slide == 0) {
_y = (_y + (((originy + 400) - _y) / 2));
} else if (slide == 1) {
_y = (_y + ((originy - _y) / 2));
} else if (slide == 2) {
_y = (_y + (((originy - 400) - _y) / 2));
}
if ((_y % 1) != 0) {
_y = Math.round(_y);
}
if (player.hat.getDepth() < player.eyes.getDepth()) {
player.hat.swapDepths(player.eyes);
}
if (gundisplay._currentframe != player.gundisplay._currentframe) {
gundisplay.gotoAndStop(player.gundisplay._currentframe);
}
};
edit_hat.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(1);
}
};
edit_eyes.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(2);
}
};
edit_shirt.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(3);
}
};
edit_color.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(4);
}
};
edit_gun.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(5);
}
};
edit_perk.onRelease = function () {
if (!_parent.editedit) {
summon_editedit(6);
}
};
btn_clear.onRelease = function () {
if (!_parent.editedit) {
slide = 0;
playertype = 0;
_root.playsound2("slide.wav");
}
};
btn_player_human.onRelease = function () {
if (!_parent.editedit) {
slide = 1;
playertype = 1;
ai_notice._alpha = 0;
_root.playsound2("slide.wav");
}
};
btn_player_ai.onRelease = function () {
if (!_parent.editedit) {
slide = 1;
playertype = 2;
ai_notice._alpha = 100;
_root.playsound2("slide.wav");
}
};
Symbol 1574 MovieClip Frame 1
function freezeall() {
btn_back.useHandCursor = false;
btn_start.useHandCursor = false;
menu1.freeze();
menu2.freeze();
menu3.freeze();
menu4.freeze();
}
function unfreezeall() {
btn_back.useHandCursor = true;
btn_start.useHandCursor = true;
menu1.unfreeze();
menu2.unfreeze();
menu3.unfreeze();
menu4.unfreeze();
}
function modeallplay() {
if (modebtn1._currentframe != 1) {
modebtn1.play();
}
if (modebtn2._currentframe != 1) {
modebtn2.play();
}
if (modebtn3._currentframe != 1) {
modebtn3.play();
}
if (modebtn4._currentframe != 1) {
modebtn4.play();
}
if (modebtn5._currentframe != 1) {
modebtn5.play();
}
if (modebtn6._currentframe != 1) {
modebtn6.play();
}
if (modebtn10._currentframe != 1) {
modebtn10.play();
}
if (modebtn11._currentframe != 1) {
modebtn11.play();
}
if (modebtn12._currentframe != 1) {
modebtn12.play();
}
if (modebtn13._currentframe != 1) {
modebtn13.play();
}
}
function modealldisable() {
modebtn1.chosen._alpha = 0;
modebtn2.chosen._alpha = 0;
modebtn3.chosen._alpha = 0;
modebtn4.chosen._alpha = 0;
modebtn5.chosen._alpha = 0;
modebtn6.chosen._alpha = 0;
modebtn10.chosen._alpha = 0;
modebtn11.chosen._alpha = 0;
modebtn12.chosen._alpha = 0;
modebtn13.chosen._alpha = 0;
}
function allplay() {
if (mapbtn0._currentframe != 1) {
mapbtn0.play();
}
if (mapbtn1._currentframe != 1) {
mapbtn1.play();
}
if (mapbtn2._currentframe != 1) {
mapbtn2.play();
}
if (mapbtn3._currentframe != 1) {
mapbtn3.play();
}
if (mapbtn4._currentframe != 1) {
mapbtn4.play();
}
if (mapbtn5._currentframe != 1) {
mapbtn5.play();
}
if (mapbtn6._currentframe != 1) {
mapbtn6.play();
}
if (mapbtn7._currentframe != 1) {
mapbtn7.play();
}
if (mapbtn8._currentframe != 1) {
mapbtn8.play();
}
if (mapbtn9._currentframe != 1) {
mapbtn9.play();
}
if (mapbtn10._currentframe != 1) {
mapbtn10.play();
}
if (mapbtn11._currentframe != 1) {
mapbtn11.play();
}
if (mapbtn12._currentframe != 1) {
mapbtn12.play();
}
if (mapbtn13._currentframe != 1) {
mapbtn13.play();
}
if (mapbtn14._currentframe != 1) {
mapbtn14.play();
}
if (mapbtn15._currentframe != 1) {
mapbtn15.play();
}
if (mapbtn16._currentframe != 1) {
mapbtn16.play();
}
if (mapbtn17._currentframe != 1) {
mapbtn17.play();
}
if (mapbtn18._currentframe != 1) {
mapbtn18.play();
}
if (mapbtn19._currentframe != 1) {
mapbtn19.play();
}
if (mapbtn20._currentframe != 1) {
mapbtn20.play();
}
if (mapbtn21._currentframe != 1) {
mapbtn21.play();
}
if (mapbtn_rnd1._currentframe != 1) {
mapbtn_rnd1.play();
}
if (mapbtn_rnd2._currentframe != 1) {
mapbtn_rnd2.play();
}
}
function alldisable() {
mapbtn1.chosen._alpha = 0;
mapbtn2.chosen._alpha = 0;
mapbtn3.chosen._alpha = 0;
mapbtn4.chosen._alpha = 0;
mapbtn5.chosen._alpha = 0;
mapbtn6.chosen._alpha = 0;
mapbtn7.chosen._alpha = 0;
mapbtn8.chosen._alpha = 0;
mapbtn9.chosen._alpha = 0;
mapbtn10.chosen._alpha = 0;
mapbtn11.chosen._alpha = 0;
mapbtn12.chosen._alpha = 0;
mapbtn13.chosen._alpha = 0;
mapbtn14.chosen._alpha = 0;
mapbtn15.chosen._alpha = 0;
mapbtn16.chosen._alpha = 0;
mapbtn17.chosen._alpha = 0;
mapbtn18.chosen._alpha = 0;
mapbtn19.chosen._alpha = 0;
mapbtn20.chosen._alpha = 0;
mapbtn21.chosen._alpha = 0;
mapbtn_rnd1.chosen._alpha = 0;
mapbtn_rnd2.chosen._alpha = 0;
}
function WRITE_DATA() {
savedata.data.mapnumber = mapdisplay._currentframe;
savedata.data.gamemode = modedisplay._currentframe;
if (cratetoggle._currentframe == 1) {
savedata.data.toggle_crates = true;
}
if (cratetoggle._currentframe == 2) {
savedata.data.toggle_crates = false;
}
if (powertoggle._currentframe == 1) {
savedata.data.toggle_powerups = true;
}
if (powertoggle._currentframe == 2) {
savedata.data.toggle_powerups = false;
}
savedata.data.customlives = inputlives.text;
savedata.data.p1name = menu1.inputname.text;
savedata.data.p1color = menu1.colornumber;
savedata.data.p1shirt = menu1.player.shirt._currentframe;
savedata.data.p1hat = menu1.player.hat._currentframe;
savedata.data.p1eyes = menu1.player.eyes._currentframe;
savedata.data.p1gun = menu1.player.gundisplay._currentframe;
savedata.data.p1perk = menu1.perkdisplay._currentframe;
savedata.data.p1ptype = menu1.playertype;
savedata.data.p1team = menu1.teamselect.team;
savedata.data.p2name = menu2.inputname.text;
savedata.data.p2color = menu2.colornumber;
savedata.data.p2shirt = menu2.player.shirt._currentframe;
savedata.data.p2hat = menu2.player.hat._currentframe;
savedata.data.p2eyes = menu2.player.eyes._currentframe;
savedata.data.p2gun = menu2.player.gundisplay._currentframe;
savedata.data.p2perk = menu2.perkdisplay._currentframe;
savedata.data.p2ptype = menu2.playertype;
savedata.data.p2team = menu2.teamselect.team;
savedata.data.p3name = menu3.inputname.text;
savedata.data.p3color = menu3.colornumber;
savedata.data.p3shirt = menu3.player.shirt._currentframe;
savedata.data.p3hat = menu3.player.hat._currentframe;
savedata.data.p3eyes = menu3.player.eyes._currentframe;
savedata.data.p3gun = menu3.player.gundisplay._currentframe;
savedata.data.p3perk = menu3.perkdisplay._currentframe;
savedata.data.p3ptype = menu3.playertype;
savedata.data.p3team = menu3.teamselect.team;
savedata.data.p4name = menu4.inputname.text;
savedata.data.p4color = menu4.colornumber;
savedata.data.p4shirt = menu4.player.shirt._currentframe;
savedata.data.p4hat = menu4.player.hat._currentframe;
savedata.data.p4eyes = menu4.player.eyes._currentframe;
savedata.data.p4gun = menu4.player.gundisplay._currentframe;
savedata.data.p4perk = menu4.perkdisplay._currentframe;
savedata.data.p4ptype = menu4.playertype;
savedata.data.p4team = menu4.teamselect.team;
}
savedata = SharedObject.getLocal("arena2gamedata");
inputlives.text = savedata.data.customlives;
if (savedata.data.toggle_crates) {
cratetoggle.gotoAndStop(1);
} else {
cratetoggle.gotoAndStop(2);
}
cratetoggle.onRelease = function () {
if (cratetoggle._currentframe == 1) {
cratetoggle.gotoAndStop(2);
} else if (cratetoggle._currentframe == 2) {
cratetoggle.gotoAndStop(1);
}
};
if (savedata.data.toggle_powerups) {
powertoggle.gotoAndStop(1);
} else {
powertoggle.gotoAndStop(2);
}
powertoggle.onRelease = function () {
if (powertoggle._currentframe == 1) {
powertoggle.gotoAndStop(2);
} else if (powertoggle._currentframe == 2) {
powertoggle.gotoAndStop(1);
}
};
_x = 1800;
frame = 3;
lifehide = inputlives._y;
if (savedata.data.gamemode == 5) {
lifepanel.gotoAndStop(2);
inputlives._y = 900;
}
_root.gamemode = 1;
modedisplay.gotoAndStop(1);
alldisable();
modealldisable();
mapdisplay.gotoAndStop(savedata.data.mapnumber);
_root.mapnumber = mapdisplay._currentframe;
modedisplay.gotoAndStop(savedata.data.gamemode);
_root.gamemode = modedisplay._currentframe;
switch (savedata.data.mapnumber) {
case 1 :
mapbtn1.chosen._alpha = 100;
break;
case 2 :
mapbtn2.chosen._alpha = 100;
break;
case 3 :
mapbtn3.chosen._alpha = 100;
break;
case 4 :
mapbtn4.chosen._alpha = 100;
break;
case 5 :
mapbtn5.chosen._alpha = 100;
break;
case 6 :
mapbtn6.chosen._alpha = 100;
break;
case 7 :
mapbtn7.chosen._alpha = 100;
break;
case 8 :
mapbtn8.chosen._alpha = 100;
break;
case 9 :
mapbtn9.chosen._alpha = 100;
break;
case 10 :
mapbtn10.chosen._alpha = 100;
break;
case 11 :
mapbtn11.chosen._alpha = 100;
break;
case 12 :
mapbtn12.chosen._alpha = 100;
break;
case 13 :
mapbtn13.chosen._alpha = 100;
break;
case 14 :
mapbtn14.chosen._alpha = 100;
break;
case 15 :
mapbtn15.chosen._alpha = 100;
break;
case 16 :
mapbtn16.chosen._alpha = 100;
break;
case 17 :
mapbtn17.chosen._alpha = 100;
break;
case 18 :
mapbtn18.chosen._alpha = 100;
break;
case 19 :
mapbtn19.chosen._alpha = 100;
break;
case 20 :
mapbtn20.chosen._alpha = 100;
break;
case 21 :
mapbtn21.chosen._alpha = 100;
break;
case 22 :
mapbtn_rnd1.chosen._alpha = 100;
break;
case 23 :
mapbtn_rnd2.chosen._alpha = 100;
}
switch (modedisplay._currentframe) {
case 1 :
modebtn1.chosen._alpha = 100;
break;
case 2 :
modebtn2.chosen._alpha = 100;
break;
case 3 :
modebtn3.chosen._alpha = 100;
break;
case 4 :
modebtn4.chosen._alpha = 100;
break;
case 5 :
modebtn5.chosen._alpha = 100;
break;
case 6 :
modebtn6.chosen._alpha = 100;
break;
case 10 :
modebtn10.chosen._alpha = 100;
break;
case 11 :
modebtn11.chosen._alpha = 100;
break;
case 12 :
modebtn12.chosen._alpha = 100;
break;
case 13 :
modebtn13.chosen._alpha = 100;
}
btn_continue.onRelease = function () {
if (menufade._currentframe == 2) {
menufade.gotoAndPlay(3);
frame = 1;
menu1.play();
menu2.play();
menu3.play();
menu4.play();
_root.playsound2("btn.wav");
}
};
btn_continue2.onRelease = function () {
if (menufade._currentframe == 2) {
menufade.gotoAndPlay(3);
frame = 2;
_root.playsound2("btn.wav");
}
};
btn_back.onRelease = function () {
if ((menufade._currentframe == 2) && (!editedit)) {
menufade.gotoAndPlay(3);
WRITE_DATA();
frame = 2;
_root.playsound2("btn.wav");
}
};
btn_back2.onRelease = function () {
if (menufade._currentframe == 2) {
menufade.gotoAndPlay(3);
frame = 3;
_root.playsound2("btn.wav");
}
};
btn_back3.onRelease = function () {
if (!_root.fadeaway) {
if (menufade._currentframe == 2) {
btn_back3.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gotomenu = true;
}
}
};
btn_start.onRelease = function () {
if (((!_root.fadeaway) && (menu1._currentframe == menu1._totalframes)) && (!editedit)) {
if (menufade._currentframe == 2) {
temp = 0;
if (menu1.slide != 0) {
temp = temp + 1;
}
if (menu2.slide != 0) {
temp = temp + 1;
}
if (menu3.slide != 0) {
temp = temp + 1;
}
if (menu4.slide != 0) {
temp = temp + 1;
}
if ((temp >= 2) || ((temp >= 1) && (modedisplay._currentframe == 5))) {
WRITE_DATA();
if (_root.mapnumber == 22) {
_root.mapnumber = random(9) + 1;
}
if (_root.mapnumber == 23) {
_root.mapnumber = random(21) + 1;
}
_root.toggle_crates = savedata.data.toggle_crates;
_root.toggle_powerups = savedata.data.toggle_powerups;
_root.p1name = menu1.inputname.text;
_root.p1color = menu1.colornumber;
_root.p1shirt = menu1.player.shirt._currentframe;
_root.p1hat = menu1.player.hat._currentframe;
_root.p1eyes = menu1.player.eyes._currentframe;
_root.p1gun = menu1.player.gundisplay._currentframe;
_root.p1perk = menu1.perkdisplay._currentframe;
_root.p1ptype = menu1.playertype;
_root.p1team = menu1.teamselect.team;
_root.p2name = menu2.inputname.text;
_root.p2color = menu2.colornumber;
_root.p2shirt = menu2.player.shirt._currentframe;
_root.p2hat = menu2.player.hat._currentframe;
_root.p2eyes = menu2.player.eyes._currentframe;
_root.p2gun = menu2.player.gundisplay._currentframe;
_root.p2perk = menu2.perkdisplay._currentframe;
_root.p2ptype = menu2.playertype;
_root.p2team = menu2.teamselect.team;
_root.p3name = menu3.inputname.text;
_root.p3color = menu3.colornumber;
_root.p3shirt = menu3.player.shirt._currentframe;
_root.p3hat = menu3.player.hat._currentframe;
_root.p3eyes = menu3.player.eyes._currentframe;
_root.p3gun = menu3.player.gundisplay._currentframe;
_root.p3perk = menu3.perkdisplay._currentframe;
_root.p3ptype = menu3.playertype;
_root.p3team = menu3.teamselect.team;
_root.p4name = menu4.inputname.text;
_root.p4color = menu4.colornumber;
_root.p4shirt = menu4.player.shirt._currentframe;
_root.p4hat = menu4.player.hat._currentframe;
_root.p4eyes = menu4.player.eyes._currentframe;
_root.p4gun = menu4.player.gundisplay._currentframe;
_root.p4perk = menu4.perkdisplay._currentframe;
_root.p4ptype = menu4.playertype;
_root.p4team = menu4.teamselect.team;
_root.totallives = inputlives.text;
btn_start.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.fadedepth);
newmc.targetframe = 10;
_root.gototest = false;
} else {
attachMovie("fx_notenough", "fx_notenough", 1357);
}
}
}
};
Symbol 1642 MovieClip Frame 1
function update() {
_x = ((-_root._x) * 0.9);
_y = ((-_root._y) * 0.9);
}
gotoAndStop(_root.mapnumber);
Symbol 1690 MovieClip Frame 1
function update() {
_x = ((-_root._x) * 0.5);
_y = ((-_root._y) * 0.5);
}
gotoAndStop(_root.mapnumber);
Symbol 1835 MovieClip Frame 1
gotoAndStop(_root.mapnumber);
Symbol 1840 MovieClip Frame 1
_width = 1;
_x = -1000;
Symbol 1842 MovieClip Frame 1
_alpha = 0;
Symbol 1844 MovieClip Frame 1
_alpha = 0;
Symbol 1855 MovieClip Frame 1
this.onEnterFrame = function () {
_parent.swaptime = _parent.swaptime + 1;
if (_parent.swaptime >= _parent.swaptotal) {
if (_parent.swaptotal >= 10) {
_parent.randgun = dropgun._currentframe;
delete this.onEnterFrame;
} else {
dropgun.gotoAndStop(random(77) + 10);
_parent.randgun = dropgun._currentframe * -1;
}
_parent.swaptime = 0;
_parent.swaptotal = _parent.swaptotal * 1.25;
}
};
Symbol 1857 MovieClip Frame 1
if (_root.gamemode != 5) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
swaptime = 0;
swaptotal = 2;
Symbol 1857 MovieClip Frame 2
stop();
swaptime = 0;
swaptotal = 0.3;
Symbol 1857 MovieClip Frame 186
gotoAndPlay (2);
Symbol 1861 MovieClip Frame 1
timer = 0;
randgun = Math.round(this._rotation);
_rotation = 0;
originx = _x;
originy = _y;
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
this.onEnterFrame = function () {
if (!disabled) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].iszombie) {
break;
}
if (this.hitTest(_root.activeplayers[i].frame)) {
_root.activeplayers[i].getgun(randgun);
j = 0;
while (j < 10) {
_root.CP("fx_pickup", _x + _parent._x, (_y + _parent._y) + 20, 0);
j++;
}
_root.playsound2("bolt2.wav");
disabled = true;
_x = -300;
_y = 0;
_alpha = 0;
break;
}
i++;
}
} else {
timer = timer + 1;
if (timer >= 120) {
gotoAndPlay(random(40) + 10);
timer = 0;
disabled = false;
_x = originx;
_y = originy;
}
}
};
Symbol 1861 MovieClip Frame 2
if (dropgun._currentframe != randgun) {
dropgun.gotoAndStop(randgun);
}
Symbol 1861 MovieClip Frame 61
gotoAndPlay (2);
Symbol 1865 MovieClip Frame 50
if (_currentframe == 50) {
gotoAndPlay (1);
}
Symbol 1865 MovieClip Frame 75
if (_currentframe == 75) {
gotoAndPlay (1);
}
Symbol 1865 MovieClip Frame 95
if (_currentframe == 95) {
gotoAndPlay (25);
}
Symbol 1869 MovieClip Frame 1
function damage(firepower) {
hp = hp - firepower;
if (hp <= 0) {
KILL();
}
}
function KILL() {
i = 0;
while (i < _parent.activeplayers.length) {
if (_parent.activeplayers[i] == this) {
_parent.activeplayers.splice(i, 1);
}
i++;
}
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i] == this) {
_root.activeplayers.splice(i, 1);
}
i++;
}
_x = actualx;
_y = actualy;
_root.CP("fx_ex6", _x, _y - 20, 0);
i = 0;
while (i < 3) {
_root.CP("fx_ex5", _x, _y - 20, 0);
i++;
}
i = 0;
while (i < 3) {
_root.CP("fx_ex3", _x, _y - 20, 0);
i++;
}
j = 0;
while (j < 3) {
_root.CP("fx_spark", _x, _y, 0, 0);
j++;
}
_root.explodesound();
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
hp = 50;
facing = 1;
actualx = _x + _parent._parent._x;
actualy = _y + _parent._parent._y;
if (actualx > ((_root.ground._x + _root.ground.platform._x) + (_root.ground.platform._width / 2))) {
facing = -1;
_xscale = -100;
targettext._xscale = -100;
}
istarget = true;
_name = ("target" + _root.activeplayers.length);
_parent.activeplayers[_parent.activeplayers.length] = this;
_root.activeplayers[_root.activeplayers.length] = this;
_xscale = (5 * facing);
_yscale = 5;
phase = 0;
this.onEnterFrame = function () {
if (phase == 0) {
phase = 1;
i = 0;
while (i < 5) {
_root.CP("fx_ex5_2", actualx, actualy - 20, 0);
i++;
}
} else if (phase == 1) {
_xscale = (_xscale + (((110 * facing) - _xscale) / 3));
_yscale = (_yscale + ((110 - _yscale) / 3));
if (Math.abs(_xscale) >= 105) {
phase = 2;
}
} else if (phase == 2) {
_xscale = (_xscale + (((95 * facing) - _xscale) / 4));
_yscale = (_yscale + ((95 - _yscale) / 4));
if (Math.abs(_xscale) <= 100) {
_xscale = (100 * facing);
_yscale = 100;
phase = 3;
delete this.onEnterFrame;
}
}
};
Symbol 1870 MovieClip Frame 1
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1870 MovieClip Frame 4
stop();
Symbol 1870 MovieClip Frame 7
stop();
Symbol 1870 MovieClip Frame 10
stop();
Symbol 1870 MovieClip Frame 13
stop();
Symbol 1870 MovieClip Frame 16
stop();
Symbol 1870 MovieClip Frame 19
stop();
Symbol 1870 MovieClip Frame 20
stop();
_root.challengefinished = true;
delete this.onEnterFrame;
_root.hud.challengedone();
Symbol 1873 MovieClip Frame 1
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1873 MovieClip Frame 4
stop();
Symbol 1873 MovieClip Frame 7
stop();
Symbol 1873 MovieClip Frame 10
stop();
Symbol 1873 MovieClip Frame 13
stop();
Symbol 1873 MovieClip Frame 16
stop();
Symbol 1873 MovieClip Frame 17
stop();
_root.challengefinished = true;
delete this.onEnterFrame;
_root.hud.challengedone();
Symbol 1880 MovieClip Frame 1
function kill() {
i = 0;
while (i < _parent.activeplayers.length) {
if (_parent.activeplayers[i] == this) {
_parent.activeplayers.splice(i, 1);
}
i++;
}
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i] == this) {
_root.activeplayers.splice(i, 1);
}
i++;
}
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
falling = false;
vy = 0;
istarget = true;
stop();
actualx = _x + _parent._parent._x;
actualy = _y + _parent._parent._y;
if (actualx > ((_root.ground._x + _root.ground.platform._x) + (_root.ground.platform._width / 2))) {
_xscale = (_xscale * -1);
}
_name = ("target" + _root.activeplayers.length);
_parent.activeplayers[_parent.activeplayers.length] = this;
_root.activeplayers[_root.activeplayers.length] = this;
i = 0;
while (i < 5) {
_root.CP("fx_ex5_2", actualx, actualy - 20, 0);
i++;
}
gotoAndPlay (15);
this.onEnterFrame = function () {
i = 0;
while (i < _root.activeplayers.length) {
if (this.hitTest(_root.activeplayers[i].frame)) {
_root.playsound2("bolt2.wav");
i = 0;
while (i < 5) {
_root.CP("fx_package", actualx, actualy, 0);
i++;
}
kill();
break;
}
i++;
}
if (_root.deleteeverything || (_root.gamewin)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 1880 MovieClip Frame 55
gotoAndPlay (15);
Symbol 1881 MovieClip Frame 1
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1881 MovieClip Frame 4
stop();
Symbol 1881 MovieClip Frame 7
stop();
Symbol 1881 MovieClip Frame 10
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1881 MovieClip Frame 11
stop();
_root.challengefinished = true;
delete this.onEnterFrame;
_root.hud.challengedone();
Symbol 1884 MovieClip Frame 1
function kill() {
i = 0;
while (i < _parent.activeplayers.length) {
if (_parent.activeplayers[i] == this) {
_parent.activeplayers.splice(i, 1);
}
i++;
}
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i] == this) {
_root.activeplayers.splice(i, 1);
}
i++;
}
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
falling = false;
vy = 0;
istarget = true;
stop();
gotoAndPlay (2);
actualx = _x + _parent._parent._x;
actualy = _y + _parent._parent._y;
if (actualx > ((_root.ground._x + _root.ground.platform._x) + (_root.ground.platform._width / 2))) {
_xscale = (_xscale * -1);
}
_name = ("target" + _root.activeplayers.length);
_parent.activeplayers[_parent.activeplayers.length] = this;
_root.activeplayers[_root.activeplayers.length] = this;
i = 0;
while (i < 5) {
_root.CP("fx_ex5_2", actualx, actualy - 20, 0);
i++;
}
this.onEnterFrame = function () {
i = 0;
while (i < _root.activeplayers.length) {
if (this.hitTest(_root.activeplayers[i].frame)) {
i = 0;
while (i < 5) {
_root.CP("fx_ex5_2", actualx, actualy - 20, 0);
i++;
}
kill();
break;
}
i++;
}
if (_root.deleteeverything || (_root.gamewin)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 1884 MovieClip Frame 18
gotoAndPlay (2);
Symbol 1895 MovieClip Frame 1
function kill() {
i = 0;
while (i < _parent.activeplayers.length) {
if (_parent.activeplayers[i] == this) {
_parent.activeplayers.splice(i, 1);
}
i++;
}
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i] == this) {
_root.activeplayers.splice(i, 1);
}
i++;
}
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
falling = false;
vy = 0;
istarget = true;
stop();
actualx = _x + _parent._parent._x;
actualy = _y + _parent._parent._y;
if (actualx > ((_root.ground._x + _root.ground.platform._x) + (_root.ground.platform._width / 2))) {
_xscale = (_xscale * -1);
}
_name = ("target" + _root.activeplayers.length);
_parent.activeplayers[_parent.activeplayers.length] = this;
_root.activeplayers[_root.activeplayers.length] = this;
i = 0;
while (i < 5) {
_root.CP("fx_ex5_2", actualx, actualy - 20, 0);
i++;
}
gotoAndPlay (15);
this.onEnterFrame = function () {
i = 0;
while (i < _root.activeplayers.length) {
if (this.hitTest(_root.activeplayers[i].frame)) {
i = 0;
while (i < 5) {
_root.CP("fx_package", actualx, actualy, 0);
i++;
}
_root.player1.getgun(23);
_root.player2.getgun(23);
kill();
break;
}
i++;
}
if (_root.deleteeverything || (_root.gamewin)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 1895 MovieClip Frame 55
gotoAndPlay (15);
Symbol 1898 MovieClip Frame 1
stop();
if ((!_root.gotocampaign) || (_root.missionnumber != 1)) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
pausd = false;
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1898 MovieClip Frame 4
stop();
Symbol 1898 MovieClip Frame 7
stop();
Symbol 1898 MovieClip Frame 10
stop();
Symbol 1898 MovieClip Frame 13
stop();
_root.player1.getgun(8);
_root.player1.offhandammo = 3;
Symbol 1898 MovieClip Frame 15
_root.player1.getgun(_root.player1.defaultgun);
Symbol 1898 MovieClip Frame 16
stop();
Symbol 1898 MovieClip Frame 19
stop();
delete this.onEnterFrame;
newmc = _root.attachMovie("playerAI", "zombie1", 10001);
newmc.iszombie = true;
newmc.defaultgun = 1;
newmc.displayname = "Simple AI";
newmc.damagemulti = 1.5;
_root.activeplayers[_root.activeplayers.length] = newmc;
this.onEnterFrame = function () {
if (_root.missiondone == 0) {
temp = false;
j = 0;
while (j < _root.activeplayers.length) {
if (_root.activeplayers[j].iszombie) {
temp = true;
}
j++;
}
if (!temp) {
_root.missiondone = 1;
_root.hud.missiondone(1);
}
}
};
Symbol 1901 MovieClip Frame 1
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1901 MovieClip Frame 4
stop();
Symbol 1901 MovieClip Frame 7
stop();
Symbol 1901 MovieClip Frame 10
stop();
Symbol 1901 MovieClip Frame 13
stop();
Symbol 1901 MovieClip Frame 16
stop();
Symbol 1901 MovieClip Frame 17
stop();
_root.challengefinished = true;
delete this.onEnterFrame;
_root.hud.challengedone();
Symbol 1905 MovieClip Frame 1
timer = 0;
randgun = Math.round(this._rotation);
_rotation = 0;
originx = _x;
originy = _y;
disabled = true;
_x = -300;
_y = 0;
_alpha = 0;
this.onEnterFrame = function () {
if ((((((!_root.toggle_powerups) || (_root.gamemode == 2)) || (_root.gamemode == 4)) || (_root.gamemode == 5)) || (_root.tournament)) || (_root.gamemode == 10)) {
_x = -300;
_y = 0;
_alpha = 0;
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
if (!disabled) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
i = 0;
while (i < _root.activeplayers.length) {
if (_root.activeplayers[i].iszombie) {
break;
}
if (this.hitTest(_root.activeplayers[i].frame)) {
_root.activeplayers[i].getgun(randgun);
j = 0;
while (j < 10) {
_root.CP("fx_pickup", _x + _parent._x, (_y + _parent._y) + 20, 0);
j++;
}
_root.playsound2("bolt2.wav");
disabled = true;
_x = -300;
_y = 0;
_alpha = 0;
break;
}
i++;
}
} else {
timer = timer + 1;
if (timer >= 600) {
gotoAndPlay(random(40) + 10);
timer = 0;
disabled = false;
_x = originx;
_y = originy;
}
}
};
Symbol 1905 MovieClip Frame 2
if (dropgun._currentframe != randgun) {
dropgun.gotoAndStop(randgun);
}
Symbol 1905 MovieClip Frame 61
gotoAndPlay (2);
Symbol 1906 MovieClip Frame 1
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1906 MovieClip Frame 4
stop();
Symbol 1906 MovieClip Frame 7
stop();
Symbol 1906 MovieClip Frame 10
stop();
Symbol 1906 MovieClip Frame 11
stop();
_root.challengefinished = true;
delete this.onEnterFrame;
_root.hud.challengedone();
Symbol 1909 MovieClip Frame 1
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1909 MovieClip Frame 4
stop();
Symbol 1909 MovieClip Frame 7
stop();
Symbol 1909 MovieClip Frame 10
stop();
Symbol 1909 MovieClip Frame 11
stop();
_root.challengefinished = true;
delete this.onEnterFrame;
_root.hud.challengedone();
Symbol 1912 MovieClip Frame 1
stop();
if (!_root.gotochallenge) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
activeplayers = new Array();
this.onEnterFrame = function () {
if (activeplayers.length <= 0) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1912 MovieClip Frame 4
stop();
Symbol 1912 MovieClip Frame 7
stop();
Symbol 1912 MovieClip Frame 10
stop();
Symbol 1912 MovieClip Frame 13
stop();
Symbol 1912 MovieClip Frame 14
stop();
_root.challengefinished = true;
delete this.onEnterFrame;
_root.hud.challengedone();
Symbol 1939 MovieClip Frame 1
timer = 0;
disabled = false;
_rotation = _root.gototestnumber;
randgun = Math.round(this._rotation);
_rotation = 0;
originx = _x;
originy = _y;
if (_root.gototestnumber <= 7) {
this.swapDepths(1);
removeMovieClip(this);
delete this.onEnterFrame;
}
this.onEnterFrame = function () {
if ((_root.gamemode == 2) || (_root.gamemode == 4)) {
_x = -300;
_y = 0;
_alpha = 0;
this.swapDepths(1);
delete this.onEnterFrame;
}
if (!disabled) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
if (this.hitTest(_root.activeplayers[0].frame)) {
_root.activeplayers[0].getgun(randgun);
j = 0;
while (j < 10) {
_root.CP("fx_pickup", _x + _parent._x, (_y + _parent._y) + 20, 0);
j++;
}
disabled = true;
_x = -300;
_y = 0;
_alpha = 0;
}
} else {
timer = timer + 1;
if (timer >= 100) {
gotoAndPlay(random(40) + 10);
timer = 0;
disabled = false;
_x = originx;
_y = originy;
}
}
};
Symbol 1939 MovieClip Frame 2
if (dropgun._currentframe != randgun) {
dropgun.gotoAndStop(randgun);
}
Symbol 1939 MovieClip Frame 61
gotoAndPlay (2);
Symbol 1940 MovieClip Frame 1
gotoAndStop(_root.mapnumber);
lowfriction = false;
_alpha = 100;
platform._alpha = 0;
Symbol 1940 MovieClip Frame 6
_root.attachMovie("mapfx_rain", "mapfx", _root.mapfxdepth);
Symbol 1940 MovieClip Frame 8
_root.attachMovie("mapfx_snow", "mapfx", _root.mapfxdepth);
Symbol 1940 MovieClip Frame 13
_root.gravity = 0.6;
Symbol 1940 MovieClip Frame 14
_root.attachMovie("mapfx_wall", "mapfx", _root.mapfxdepth);
Symbol 1940 MovieClip Frame 19
_root.attachMovie("mapfx_snow", "mapfx", _root.mapfxdepth);
Symbol 1941 MovieClip Frame 1
_alpha = 0;
Symbol 1943 MovieClip Frame 1
fps = 40;
starttime = new Date();
lasttime = starttime.getMilliseconds();
counter = 0;
this.onEnterFrame = function () {
counter = counter + 1;
if (counter >= 10) {
counter = 0;
time = new Date();
timepassed = (((time.getMilliseconds() - lasttime) >= 0) ? (time.getMilliseconds() - lasttime) : (1000 + (time.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed);
lasttime = time.getMilliseconds();
}
};
Symbol 1951 MovieClip Frame 1
stop();
Symbol 1951 MovieClip Frame 90
stop();
Symbol 1951 MovieClip Frame 180
stop();
Symbol 1951 MovieClip Frame 270
stop();
Symbol 1954 MovieClip Frame 1
stop();
Symbol 1966 MovieClip Frame 1
stop();
Symbol 1971 MovieClip Frame 1
stop();
Symbol 1975 MovieClip Frame 1
function update() {
lastlife.gotoAndStop(1);
updated = true;
player.head.gotoAndStop(colornumber);
player.body.gotoAndStop(colornumber);
player.leg1.leg.gotoAndStop(colornumber);
player.leg2.leg.gotoAndStop(colornumber);
player.hand1.hand.gotoAndStop(colornumber);
player.hand2.hand.gotoAndStop(colornumber);
if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
displayheader.gotoAndStop(2);
flawless._alpha = 0;
} else if (_root.gamemode == 5) {
flawless._alpha = 0;
}
if (_root.gotochallenge || (_root.gotocampaign)) {
flawless._alpha = 0;
}
}
switch (_name) {
case "card1" :
colornumber = _root.p1color;
inputname.text = _root.p1name;
player.shirt.gotoAndStop(_root.p1shirt);
player.hat.gotoAndStop(_root.p1hat);
player.eyes.gotoAndStop(_root.p1eyes);
bg.gotoAndStop(_root.p1color + 1);
target = _root.player1;
break;
case "card2" :
colornumber = _root.p2color;
inputname.text = _root.p2name;
player.shirt.gotoAndStop(_root.p2shirt);
player.hat.gotoAndStop(_root.p2hat);
player.eyes.gotoAndStop(_root.p2eyes);
bg.gotoAndStop(_root.p2color + 1);
target = _root.player2;
break;
case "card3" :
colornumber = _root.p3color;
inputname.text = _root.p3name;
player.shirt.gotoAndStop(_root.p3shirt);
player.hat.gotoAndStop(_root.p3hat);
player.eyes.gotoAndStop(_root.p3eyes);
bg.gotoAndStop(_root.p3color + 1);
target = _root.player3;
break;
case "card4" :
colornumber = _root.p4color;
inputname.text = _root.p4name;
player.shirt.gotoAndStop(_root.p4shirt);
player.hat.gotoAndStop(_root.p4hat);
player.eyes.gotoAndStop(_root.p4eyes);
bg.gotoAndStop(_root.p4color + 1);
target = _root.player4;
}
updated = false;
lastlevel = target.currentlevel;
this.onEnterFrame = function () {
if (((_root.gamemode != 4) && (_root.gamemode != 5)) && (_root.gamemode != 10)) {
if ((livedisplay.text == _root.totallives) && (flawless._currentframe != 1)) {
flawless.gotoAndStop(1);
} else if ((livedisplay.text == (_root.totallives - 1)) && (flawless._currentframe != 2)) {
flawless.gotoAndStop(2);
} else if ((parseInt(livedisplay.text) > _root.totallives) && (flawless._currentframe != 4)) {
flawless.gotoAndStop(4);
} else if ((parseInt(livedisplay.text) < (_root.totallives - 1)) && (flawless._currentframe != 3)) {
flawless.gotoAndStop(3);
}
if ((livedisplay.text == "0") && (player._currentframe == 1)) {
player.gotoAndStop(2);
ammodisplay.text = "";
gunname.text = "";
}
if ((livedisplay.text == "1") && (lastlife._currentframe == 1)) {
lastlife.play();
}
if ((livedisplay.text == "0") && (lastlife._currentframe == 90)) {
lastlife.play();
}
} else {
if (lastlevel < target.currentlevel) {
lastlife.gotoAndPlay(181);
}
lastlevel = target.currentlevel;
}
if (!updated) {
update();
}
};
Symbol 1982 MovieClip Frame 1
_alpha = 0;
stop();
_x = -50;
_y = -50;
Symbol 1982 MovieClip Frame 2
_alpha = 100;
_x = 450;
_y = 280;
Symbol 1982 MovieClip Frame 72
stop();
_root.gamewin = true;
Symbol 1984 MovieClip Frame 1
function PAUSEPAUSE() {
attachMovie("pausemenu", "pausemenu", 24689);
}
function PAUSEPAUSE2() {
pausemenu.kill();
}
function challengedone() {
if (_root.savedata.data.challenge[_root.challengenumber - 1][1] == 0) {
_root.savedata.data.challenge[_root.challengenumber - 1][1] = time2 - time1;
}
if ((time2 - time1) < _root.savedata.data.challenge[_root.challengenumber - 1][1]) {
_root.savedata.data.challenge[_root.challengenumber - 1][1] = time2 - time1;
}
_root.challengetime = time2 - time1;
this.attachMovie("fxsr_challengedone", "fx_random", 1235);
}
function missiondone(temp) {
if (temp == 1) {
_root.savedata.data.campaign[_root.missionnumber - 1] = 2;
temp2 = 0;
i = 0;
while (i < 16) {
if (_root.savedata.data.campaign[i] == 1) {
temp2 = temp2 + 1;
}
if (temp2 == 2) {
break;
}
if (_root.savedata.data.campaign[i] == 0) {
_root.savedata.data.campaign[i] = 1;
break;
}
i++;
}
this.attachMovie("fxsr_missionwin", "fx_random", 1235);
} else {
this.attachMovie("fxsr_missionfail", "fx_random", 1235);
}
}
function killupdate(mcname, mckiller, mod) {
if ((_root.gamemode != 5) && (!_root.gotochallenge)) {
newmc = this.attachMovie("hud_killfeed", "mc" + this.getNextHighestDepth(), this.getNextHighestDepth());
newmc.mckiller = mckiller;
newmc.mcname = mcname;
if (mckiller != "none") {
if (mod == 2) {
newmc.gotoAndStop(3);
}
if (mod == 3) {
newmc.gotoAndStop(4);
}
if (mod == 4) {
newmc.gotoAndStop(5);
}
} else {
newmc.gotoAndStop(2);
}
newmc._x = 0;
feednumber = feednumber + 1;
newmc._y = (feednumber - 1) * 30;
newmc.feednumber = feednumber;
if (countdown._currentframe != 1) {
countdown.gotoAndStop(1);
_root._x = 0;
_root._y = 0;
}
}
}
function update() {
if (((_root.gamemode != 4) && (_root.gamemode != 5)) && (_root.gamemode != 10)) {
card1.livedisplay.text = _root.player1.lives;
card2.livedisplay.text = _root.player2.lives;
card3.livedisplay.text = _root.player3.lives;
card4.livedisplay.text = _root.player4.lives;
if (_root.gotochallenge) {
card1.livedisplay.text = "\u221E";
}
} else if ((_root.gamemode == 4) || (_root.gamemode == 10)) {
card1.livedisplay.text = _root.player1.currentlevel;
card2.livedisplay.text = _root.player2.currentlevel;
card3.livedisplay.text = _root.player3.currentlevel;
card4.livedisplay.text = _root.player4.currentlevel;
} else if (_root.gamemode == 5) {
card1.livedisplay.text = _root.player1.lives;
card2.livedisplay.text = _root.player2.lives;
card3.livedisplay.text = _root.player3.lives;
card4.livedisplay.text = _root.player4.lives;
if (_root.player1.lives == 0) {
card1.player.gotoAndStop(2);
}
if (_root.player2.lives == 0) {
card2.player.gotoAndStop(2);
}
if (_root.player3.lives == 0) {
card3.player.gotoAndStop(2);
}
if (_root.player4.lives == 0) {
card4.player.gotoAndStop(2);
}
}
if (card1.livedisplay.text != "0") {
card1.ammodisplay.text = _root.player1.bullets;
}
if (card2.livedisplay.text != "0") {
card2.ammodisplay.text = _root.player2.bullets;
}
if (card3.livedisplay.text != "0") {
card3.ammodisplay.text = _root.player3.bullets;
}
if (card4.livedisplay.text != "0") {
card4.ammodisplay.text = _root.player4.bullets;
}
if (card1.livedisplay.text != "0") {
if (_root.player1.bullets > 1000) {
card1.ammodisplay.text = "\u221E";
}
}
if (card2.livedisplay.text != "0") {
if (_root.player2.bullets > 1000) {
card2.ammodisplay.text = "\u221E";
}
}
if (card3.livedisplay.text != "0") {
if (_root.player3.bullets > 1000) {
card3.ammodisplay.text = "\u221E";
}
}
if (card4.livedisplay.text != "0") {
if (_root.player4.bullets > 1000) {
card4.ammodisplay.text = "\u221E";
}
}
if (card1.livedisplay.text != "0") {
if (card1.gunname.text != _root.player1.hand1.gun.Name) {
card1.gunname.text = _root.player1.hand1.gun.Name;
}
}
if (card2.livedisplay.text != "0") {
if (card2.gunname.text != _root.player2.hand1.gun.Name) {
card2.gunname.text = _root.player2.hand1.gun.Name;
}
}
if (card3.livedisplay.text != "0") {
if (card3.gunname.text != _root.player3.hand1.gun.Name) {
card3.gunname.text = _root.player3.hand1.gun.Name;
}
}
if (card4.livedisplay.text != "0") {
if (card4.gunname.text != _root.player4.hand1.gun.Name) {
card4.gunname.text = _root.player4.hand1.gun.Name;
}
}
if (((_root.player1.lives >= 9000) && (_root.gamemode != 4)) && (_root.gamemode != 10)) {
if (card1.livedisplay.text != "\u221E") {
card1.livedisplay.text = "\u221E";
}
}
if (!_root.player1) {
card1._alpha = 0;
}
if (!_root.player2) {
card2._alpha = 0;
}
if (!_root.player3) {
card3._alpha = 0;
}
if (!_root.player4) {
card4._alpha = 0;
}
}
this.swapDepths(_root.huddepth);
scrollup = false;
time = 0;
activecards = new Array();
if (_root.player1) {
activecards[activecards.length] = card1;
}
if (_root.player2) {
activecards[activecards.length] = card2;
}
if (_root.player3) {
activecards[activecards.length] = card3;
}
if (_root.player4) {
activecards[activecards.length] = card4;
}
switch (activecards.length) {
case 1 :
activecards[0]._x = 450;
break;
case 2 :
activecards[0]._x = 340;
activecards[1]._x = 560;
break;
case 3 :
activecards[0]._x = 230;
activecards[1]._x = 450;
activecards[2]._x = 670;
}
time1 = new Date();
this.onEnterFrame = function () {
_x = (-_root._x);
_y = (-_root._y);
update();
if (scrollup) {
time = time + 1;
if (time >= 2) {
scrollup = false;
time = 0;
}
}
if (_root.gamemode == 5) {
if (wavedisplay.wavedisplay.text != _root.sr.wave) {
wavedisplay.wavedisplay.text = _root.sr.wave;
}
}
if (_root.gotochallenge && (!_root.challengefinished)) {
time2 = new Date();
displaytime = Math.round((time2 - time1) / 10) / 100;
timedisplay.timedisplay.text = displaytime;
}
};
feednumber = 0;
if (_root.gamemode == 5) {
this.attachMovie("hud_wavedisplay", "wavedisplay", 2);
}
if (_root.gotochallenge) {
this.attachMovie("hud_timedisplay", "timedisplay", 2);
}