Frame 1
function sitelock() {
asdf = _url;
if (asdf.indexOf("armorgames.com") >= 0) {
gotoAndPlay (2);
} else {
gotoAndStop (3);
}
}
depth_everything = 1;
depth_menu = 2;
depth_fade = 10;
stop();
Stage.showMenu = false;
total = _root.getBytesTotal();
this.onEnterFrame = function () {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
if (loaded == total) {
total = 0;
sitelock();
delete this.onEnterFrame;
}
};
Frame 2
function start_start() {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = true;
_root.gototest = false;
}
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();
music5.stop();
}
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");
}
}
savedata2 = SharedObject.getLocal("arenagamedata2");
if (!savedata2.data.filled) {
savedata2.data.filled = true;
savedata2.data.musicON = true;
savedata2.data.soundON = true;
savedata2.data.def_quality = 3;
savedata2.data.controlarray = new Array();
i = 0;
while (i < 4) {
savedata2.data.controlarray[i] = new Array();
j = 0;
while (j < 7) {
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[0][6] = 220;
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[1][6] = 85;
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;
}
stop();
soundnumber = 20000;
musictemp1 = _root.createEmptyMovieClip("sound20602", 20602);
music1 = new Sound(musictemp2);
music1.attachSound("music1.mp3");
musictemp2 = _root.createEmptyMovieClip("sound20602", 20602);
music2 = new Sound(musictemp2);
music2.attachSound("music2.mp3");
musictemp3 = _root.createEmptyMovieClip("sound20603", 20603);
music3 = new Sound(musictemp3);
music3.attachSound("music3.mp3");
musictemp4 = _root.createEmptyMovieClip("sound20604", 20604);
music4 = new Sound(musictemp4);
music4.attachSound("music4.mp3");
musictemp5 = _root.createEmptyMovieClip("sound20604", 20604);
music5 = new Sound(musictemp4);
music5.attachSound("scorescreen.mp3");
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 9
stop();
Frame 10
stop();
EVERYTHING.swapDepths(depth_everything);
if (gotomainmenu) {
attachMovie("MENU_main", "mainmenu", depth_menu);
EVERYTHING.hud._alpha = 0;
}
this.onEnterFrame = function () {
if (gotomainmenu) {
EVERYTHING.hud._alpha = 0;
}
};
Symbol 11 MovieClip Frame 1
this.onPress = function () {
getURL ("http://armor.ag/MoreGames", _blank);
};
Symbol 16 MovieClip [fx_blood] Frame 1
vx = (Math.random() * 15) + 5;
vx = vx * valueA;
vy = (Math.random() * 10) - 5;
rotationspeed = (Math.random() * 10) - 5;
alphafade = (Math.random() * 7) + 2;
art._rotation = random(360);
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.95;
vy = vy + (_root.EVERYTHING.gravity * 0.3);
_rotation = (_rotation + rotationspeed);
_xscale = (_xscale - alphafade);
_yscale = _xscale;
if ((_xscale <= 5) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 18 MovieClip [fx_crateopen] Frame 1
_x = (_x + ((Math.random() * 20) - 10));
_y = (_y + ((Math.random() * 20) - 10));
vx = (Math.random() * 16) - 8;
vy = (Math.random() * 10) - 15;
rotationspeed = (Math.random() * 30) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
if (valueB >= 30) {
_xscale = 160;
_yscale = 140;
}
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.EVERYTHING.gravity * 1.2);
if ((_y >= 700) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 20 MovieClip [fx_crateopen2] Frame 1
_x = (_x + ((Math.random() * 20) - 10));
_y = (_y + ((Math.random() * 20) - 10));
vx = (Math.random() * 16) - 8;
vy = (Math.random() * 10) - 15;
rotationspeed = (Math.random() * 30) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
if (valueB >= 30) {
_xscale = 160;
_yscale = 140;
}
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.EVERYTHING.gravity * 1.2);
if ((_y >= 700) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 46 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
if (_parent._parent._parent.NUMBER >= 0) {
gotoAndStop(_parent._parent._parent.colornumber);
}
Symbol 100 MovieClip [fx_ex_bodypart] Frame 1
target = valueD;
speed = (Math.random() * 5) + 10;
_rotation = (random(90) - 135);
vx = (Math.cos((_rotation * Math.PI) / 180) * speed) + valueC;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
vx = vx * 0.8;
rotationspeed = (Math.random() * 8) + 10;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
alphafade = (Math.random() * 1) + 1;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.95;
if (vy < 20) {
vy = vy + 1.2;
}
_rotation = (_rotation + rotationspeed);
if (_y >= 800) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
gotoAndStop(valueA);
body.gotoAndStop(target.shirtnumber);
head.facecolor.gotoAndStop(target.colornumber);
hand.hand.handcolor.gotoAndStop(target.colornumber);
colornumber = _root.p1color;
facenumber = _root.p1face;
hatnumber = _root.p1hat;
defaultgun = _root.p1gun;
shirtnumber = _root.p1shirt;
perknumber = _root.p1perk;
playername = _root.p1name;
playerteam = _root.p1team;
Symbol 102 MovieClip [fx_ex_flash] Frame 1
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_xscale = (_xscale + 300);
_yscale = _xscale;
_alpha = (_alpha - 25);
if (_alpha <= 1) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 105 MovieClip [fx_ex_part1] Frame 1
speed = (Math.random() * 15) + 10;
_rotation = (random(90) - 135);
vx = (Math.cos((_rotation * Math.PI) / 180) * speed) + valueC;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
rotationspeed = (Math.random() * 10) + 25;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
alphafade = (Math.random() * 1) + 1;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.95;
vy = vy + 1.6;
_rotation = (_rotation + rotationspeed);
if (_y >= 800) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 107 MovieClip [fx_ex_part2] Frame 1
speed = (Math.random() * 5) + 5;
vx = ((Math.random() * 20) - 10) + valueC;
vy = (Math.random() * 6) - 7;
phase = 1;
size = 300 + random(400);
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.9;
if (phase == 1) {
_xscale = (_xscale + ((size - _xscale) / 1.5));
_yscale = _xscale;
if (_xscale > (size - 10)) {
phase = 2;
}
} else if (phase == 2) {
_xscale = (_xscale - 25);
_yscale = _xscale;
}
if (_xscale <= 5) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 110 MovieClip [fx_ex_wave] Frame 1
_xscale = 10;
_yscale = 10;
this.onEnterFrame = function () {
_xscale = (_xscale + ((700 - _xscale) / 2.5));
_yscale = _xscale;
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 110 MovieClip [fx_ex_wave] Frame 15
removeMovieClip(this);
delete this.onEnterFrame;
Symbol 111 MovieClip [fx_ex_wavesmall] Frame 1
_xscale = 10;
_yscale = 10;
this.onEnterFrame = function () {
_xscale = (_xscale + ((400 - _xscale) / 2));
_yscale = _xscale;
if (_root.deleteeverything) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 111 MovieClip [fx_ex_wavesmall] Frame 15
removeMovieClip(this);
delete this.onEnterFrame;
Symbol 125 MovieClip Frame 21
_parent.deletethis();
Symbol 126 MovieClip [fx_explosion1] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
Symbol 136 MovieClip Frame 19
_parent.deletethis();
Symbol 137 MovieClip [fx_explosion2] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
Symbol 139 MovieClip [fx_homing] Frame 1
_rotation = valueA;
_x = (_x + (random(6) - 3));
_y = (_y + (random(6) - 3));
vx = -Math.cos((_rotation * Math.PI) / 180);
vy = -Math.sin((_rotation * Math.PI) / 180);
vx = vx + ((Math.random() * 2) - 1);
vy = vy + ((Math.random() * 2) - 1);
alphafade = (Math.random() * 8) + 5;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vy = vy * 0.9;
vx = vx * 0.9;
_xscale = (_xscale - alphafade);
_yscale = _xscale;
if ((_xscale <= 5) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 140 MovieClip [fx_jump] Frame 1
_y = (_y - 20);
vx = (Math.random() * 4) - 2;
vy = (Math.random() * 5) + 1.5;
alphafade = (Math.random() * 8) + 5;
_width = (_width + Math.random(10));
_height = _width;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vy = vy * 0.9;
vx = vx * 0.9;
_xscale = (_xscale - alphafade);
_yscale = _xscale;
if ((_xscale <= 5) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 144 MovieClip [fx_money] Frame 1
facing = valueA;
vx = (Math.random() * 7) + 5;
vx = vx * valueA;
vy = (Math.random() * 8) - 5;
rotationspeed = (Math.random() * 15) - 5;
rotationspeed = rotationspeed * facing;
alphafade = (Math.random() * 2) + 1;
terminalvelocity = (Math.random() * 3) + 4;
anim.gotoAndPlay(random(anim._totalframes - 1) + 1);
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.95;
if (vy < terminalvelocity) {
vy = vy + (_root.EVERYTHING.gravity * 0.5);
}
if (random(30) == 0) {
vx = vx + ((Math.random() * 10) - 5);
rotationspeed = (Math.random() * 20) - 10;
}
if (random(15) == 0) {
vy = vy - (Math.random() * 2);
}
_rotation = (_rotation + rotationspeed);
if (((((_xscale <= 5) || (_alpha <= 1)) || (_y > 900)) || (_y < -100)) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 150 MovieClip Frame 1
gotoAndStop(random(_totalframes) + 1);
Symbol 151 MovieClip [fx_muzzleflash] Frame 1
_xscale = (_xscale * valueA);
_xscale = (_xscale * valueB);
_yscale = (_yscale * valueB);
_xscale = (_xscale * ((Math.random() / 5) + 0.9));
if (random(2) == 0) {
_yscale = (_yscale * -1);
}
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if ((_alpha <= 50) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (valueB == 0) {
_alpha = (_alpha - 50);
} else {
_alpha = (_alpha - 25);
}
}
};
Symbol 153 MovieClip [fx_p_trail] Frame 1
_rotation = valueA;
alphafade = (Math.random() * 8) + 5;
_xscale = (80 + random(20));
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_xscale = (_xscale - alphafade);
if ((_xscale <= 5) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 156 MovieClip [fx_shell] Frame 1
vx = (Math.random() * 6) - 3;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
_xscale = 130;
_yscale = 120;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.EVERYTHING.gravity * 1.2);
if ((_y >= 800) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 159 MovieClip [fx_shell2] Frame 1
vx = (Math.random() * 6) - 3;
vy = (Math.random() * 5) - 10;
rotationspeed = (Math.random() * 10) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
_xscale = 130;
_yscale = 120;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.EVERYTHING.gravity * 1.2);
if ((_y >= 800) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 160 MovieClip [fx_shrapnel] Frame 1
vx = (Math.random() * 15) + 5;
vx = vx * valueA;
vy = (Math.random() * 10) - 5;
rotationspeed = (Math.random() * 10) - 5;
alphafade = (Math.random() * 15) + 4;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.95;
_rotation = (_rotation + rotationspeed);
_xscale = (_xscale - alphafade);
_yscale = _xscale;
if ((_xscale <= 5) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 164 MovieClip [fx_stun] Frame 1
_x = (_x + ((Math.random() * 20) - 10));
_y = (_y - (Math.random() * 5));
vx = ((Math.random() * 4) - 2) + valueC;
vy = (Math.random() * 2) - 3;
phase = 1;
size = 200 + random(100);
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * 0.9;
if (phase == 1) {
_xscale = (_xscale + ((size - _xscale) / 1.5));
_yscale = _xscale;
if (_xscale > (size - 10)) {
phase = 2;
}
} else if (phase == 2) {
_xscale = (_xscale - 10);
_yscale = _xscale;
}
if ((_xscale <= 5) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 166 MovieClip [fx_text] Frame 1
time = 0;
phase = 1;
_xscale = 1;
_yscale = _xscale;
_y = (_y - 20);
_rotation = (random(30) - 15);
displaytext.text = valueA;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
time = time + 1;
if (time < 15) {
if (phase == 1) {
_xscale = (_xscale + ((150 - _xscale) / 2));
if (_xscale > 145) {
phase = 2;
}
} else if (phase == 2) {
_xscale = (_xscale + ((100 - _xscale) / 2));
}
_yscale = _xscale;
} else {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
_alpha = (_alpha - 34);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
}
};
Symbol 168 MovieClip [fx_text2] Frame 1
time = 0;
phase = 1;
_xscale = 1;
_yscale = _xscale;
_y = (_y - 20);
displaytext.text = valueA;
vx = 0;
vy = -1.5;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
time = time + 1;
_x = (_x + vx);
_y = (_y + vy);
if (time < 20) {
if (phase == 1) {
_xscale = (_xscale + ((150 - _xscale) / 2));
if (_xscale > 145) {
phase = 2;
}
} else if (phase == 2) {
_xscale = (_xscale + ((100 - _xscale) / 2));
}
_yscale = _xscale;
} else {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
_alpha = (_alpha - 20);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
}
};
Symbol 170 MovieClip [fx_text3] Frame 1
time = 0;
phase = 1;
_xscale = 1;
_yscale = _xscale;
_y = (_y - 20);
displaytext.text = valueA;
vx = 0;
vy = -2;
target = valueB;
yoff = 0;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
time = time + 1;
_x = target._x;
yoff = yoff + vy;
_y = ((target._y + yoff) - 30);
if (time < 20) {
if (phase == 1) {
_xscale = (_xscale + ((150 - _xscale) / 2));
if (_xscale > 145) {
phase = 2;
}
} else if (phase == 2) {
_xscale = (_xscale + ((100 - _xscale) / 2));
}
_yscale = _xscale;
} else {
_xscale = (_xscale - 3);
_yscale = (_yscale - 3);
_alpha = (_alpha - 10);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
}
};
Symbol 172 MovieClip [fx_textbig] Frame 1
time = 0;
phase = 1;
_xscale = 1;
_yscale = _xscale;
_y = (_y - 20);
displaytext.text = valueA;
vx = 0;
vy = -1.5;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
time = time + 1;
_x = (_x + vx);
_y = (_y + vy);
if (time < 20) {
if (phase == 1) {
_xscale = (_xscale + ((150 - _xscale) / 2));
if (_xscale > 145) {
phase = 2;
}
} else if (phase == 2) {
_xscale = (_xscale + ((100 - _xscale) / 2));
}
_yscale = _xscale;
} else {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
_alpha = (_alpha - 20);
if ((_alpha <= 1) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
}
};
Symbol 174 MovieClip [hud_killfeed] Frame 1
textdisplay.text = phrase;
_alpha = 0;
targety = _y;
time = 0;
this.onEnterFrame = function () {
_y = (_y + ((targety - _y) / 3));
time = time + 1;
if (time > 160) {
_alpha = (_alpha - 5);
if (_alpha <= 1) {
_parent.removefeed(this);
removeMovieClip(this);
delete this.onEnterFrame;
}
} else if (_alpha < 100) {
_alpha = (_alpha + 26);
}
};
Symbol 177 MovieClip [fadeaway] Frame 1
_x = (-_root._x);
_y = (-_root._y);
this.onEnterFrame = function () {
_x = (-_root._x);
_y = (-_root._y);
};
Symbol 177 MovieClip [fadeaway] Frame 8
if (_root._currentframe == 10) {
if (_root.mainmenu) {
_root.mainmenu.deletethis();
}
if (_root.EVERYTHING) {
removeMovieClip(_root.EVERYTHING);
delete _root.EVERYTHING.onEnterFrame;
}
}
if (_root._currentframe == 9) {
_root.pgs.swapDepths(1);
removeMovieClip(_root.pgs);
delete _root.pgs.onEnterFrame;
}
if (_root._currentframe == 7) {
_root.menusolo.swapDepths(1);
removeMovieClip(_root.menusolo);
delete _root.menusolo.onEnterFrame;
}
if (_root._currentframe == 6) {
_root.menup.swapDepths(1);
removeMovieClip(_root.menup);
delete _root.menup.onEnterFrame;
}
if (_root._currentframe == 5) {
_root.menu_credits.swapDepths(1);
removeMovieClip(_root.menu_credits);
delete _root.menu_credits.onEnterFrame;
}
if (_root._currentframe == 4) {
Key.removeListener(_root.menu_options.keyListener);
_root.menu_options.swapDepths(1);
removeMovieClip(_root.menu_options);
delete _root.menu_options.onEnterFrame;
}
_root.gotoAndPlay(targetframe);
_root._x = 0;
_root._y = 0;
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
if (_root._currentframe == 10) {
_root.stopallmusic();
if (_root.savedata2.data.musicON) {
switch (random(4)) {
case 0 :
_root.music1.start(1, 100);
break;
case 1 :
_root.music2.start(1, 100);
break;
case 2 :
_root.music3.start(1, 100);
break;
case 3 :
_root.music4.start(1, 100);
}
}
}
Symbol 177 MovieClip [fadeaway] Frame 15
this.swapDepths(20);
removeMovieClip(this);
delete this.onEnterFrame;
Symbol 183 MovieClip Frame 30
stop();
Symbol 185 MovieClip Frame 30
stop();
Symbol 187 MovieClip Frame 30
stop();
Symbol 189 MovieClip Frame 59
_root.EVERYTHING.actuallyend();
stop();
Symbol 190 MovieClip Frame 59
savedata = SharedObject.getLocal("arenagamedata3");
if (savedata.data.campaign[_root.cnumber - 1] == 1) {
i = 0;
while (i < 10) {
if (savedata.data.campaign[i] == 0) {
savedata.data.campaign[i] = 1;
break;
}
i++;
}
}
savedata.data.campaign[_root.cnumber - 1] = 2;
_root.EVERYTHING.actuallyend();
stop();
Symbol 192 MovieClip Frame 59
_root.EVERYTHING.actuallyend();
stop();
Symbol 193 MovieClip [wintext] Frame 1
stop();
this.onEnterFrame = function () {
_x = (-_parent._x);
_y = (-_parent._y);
};
Symbol 208 MovieClip Frame 1
gotoAndStop(_parent._parent.playernumber + 1);
if ((_name == "gunhand") || (_name == "gunhand2")) {
gotoAndStop(_parent._parent._parent.playernumber + 1);
}
Symbol 214 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 = 1;
_parent._parent.blowback = 30;
_parent._parent.bullets = 16;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 214 MovieClip [gun_49] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 214 MovieClip [gun_49] Frame 3
_parent._parent.ejectshell();
Symbol 214 MovieClip [gun_49] Frame 7
gotoAndPlay (2);
Symbol 214 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 214 MovieClip [gun_49] Frame 74
gotoAndPlay (2);
_parent._parent.bullets = 16;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 222 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;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 10;
_parent._parent.weight = 0.95;
Symbol 222 MovieClip [gun_bull] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 222 MovieClip [gun_bull] Frame 3
gotoAndPlay (2);
Symbol 222 MovieClip [gun_bull] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
Symbol 222 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 222 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 222 MovieClip [gun_bull] Frame 70
gotoAndPlay (2);
_parent._parent.bullets = 6;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 230 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;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 0.95;
Symbol 230 MovieClip [gun_deagle] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 230 MovieClip [gun_deagle] Frame 3
_parent._parent.ejectshell();
Symbol 230 MovieClip [gun_deagle] Frame 6
gotoAndPlay (2);
Symbol 230 MovieClip [gun_deagle] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 230 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 230 MovieClip [gun_deagle] Frame 70
gotoAndPlay (2);
_parent._parent.bullets = 7;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 243 MovieClip [gun_glock] Frame 1
shootx = 25;
shooty = 2;
handx = 30;
handy = -5;
shellX = 25;
flashX = 45;
Name = "SINE PISTOL";
_parent._parent.rof = 6;
_parent._parent.firepower = 16;
_parent._parent.recoil = 0.7;
_parent._parent.blowback = 20;
_parent._parent.bullets = 17;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 243 MovieClip [gun_glock] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 243 MovieClip [gun_glock] Frame 3
_parent._parent.ejectshell();
Symbol 243 MovieClip [gun_glock] Frame 6
gotoAndPlay (2);
Symbol 243 MovieClip [gun_glock] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 243 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 243 MovieClip [gun_glock] Frame 75
gotoAndPlay (2);
_parent._parent.bullets = 17;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 253 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;
_parent._parent.idlerotate = 40;
_parent._parent.adjustrof();
_parent._parent.pushback = 0;
_parent._parent.weight = 1;
Symbol 253 MovieClip [gun_m1911] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 253 MovieClip [gun_m1911] Frame 3
_parent._parent.ejectshell();
Symbol 253 MovieClip [gun_m1911] Frame 7
gotoAndPlay (2);
Symbol 253 MovieClip [gun_m1911] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 253 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 253 MovieClip [gun_m1911] Frame 60
gotoAndPlay (2);
_parent._parent.bullets = 9;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 259 MovieClip [gun_python] Frame 1
shootx = 23;
shooty = 2;
handx = 28;
handy = -5;
shellX = 25;
flashX = 50;
Name = "SNAKE";
_parent._parent.rof = 22;
_parent._parent.firepower = 36;
_parent._parent.recoil = 5;
_parent._parent.blowback = 40;
_parent._parent.bullets = 6;
_parent._parent.idlerotate = -60;
_parent._parent.adjustrof();
_parent._parent.pushback = 20;
_parent._parent.weight = 0.95;
Symbol 259 MovieClip [gun_python] Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 259 MovieClip [gun_python] Frame 3
gotoAndPlay (2);
Symbol 259 MovieClip [gun_python] Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
Symbol 259 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 259 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 259 MovieClip [gun_python] Frame 86
gotoAndPlay (2);
_parent._parent.bullets = 6;
_parent._parent.idletime = 20;
Symbol 265 MovieClip [CRATE] Frame 1
function fx() {
yoffset = -10;
i = 0;
while (i < 4) {
_parent.CP("fx_crateopen", _x, _y + yoffset, 0, 0, 0, 0);
i++;
}
_parent.CP("fx_crateopen2", _x, _y + yoffset, 0, 0, 0, 0);
_parent.CP("fx_crateopen2", _x, _y + yoffset, 0, 0, 0, 0);
}
function collected() {
_parent.CP("fx_text2", _x, _y - 30, weaponname(randomweapon), 0, 0, 0);
_root.playsound2("pump2.wav");
fx();
selectweapon();
if (_root.gamemode == 11) {
_parent.TUTORIAL.t_text.play();
}
deletethis();
}
function selectweapon() {
target.switchweapon(randomweapon);
}
function weaponname(select) {
switch (select) {
case 20 :
return("AK-47");
case 21 :
return("Baseball Bat");
case 22 :
return("Bow and Arrow");
case 23 :
return("Rocket Launcher");
case 24 :
return("Double Barrel");
case 25 :
return("Sniper Rifle");
case 26 :
return("Submachine Gun");
case 27 :
return("Machine Pistol");
case 28 :
return("Tactical Rifle");
case 29 :
return("Minigun");
case 30 :
return("Umbrella");
case 31 :
return("Knives");
case 32 :
return("Bombs");
}
return("not sure");
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
stop();
facing = 1;
if (_x < 500) {
_xscale = -100;
facing = -1;
}
time = 0;
valid = false;
i = 0;
while (i < 13) {
if (_root.EVERYTHING.cratearray[i]) {
valid = true;
break;
}
i++;
}
if (valid) {
do {
randomweapon = 20 + random(13);
} while (!_root.EVERYTHING.cratearray[randomweapon - 20]);
} else {
removeMovieClip(this);
delete this.onEnterFrame;
}
_parent.CP("fx_ex_wavesmall", _x, _y - 15, 0, 0, 0, 0);
if (_root.gamemode == 11) {
randomweapon = 22;
}
vy = 0;
playertype = 3;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
anim.anim.Q._xscale = 100 * facing;
time = time + 1;
if (_root.gamemode == 11) {
time = time - 1;
}
if (time >= 250) {
play();
}
i = 0;
while (i < _parent.activeplayers.length) {
if (_parent.activeplayers[i].frame.hitTest(this)) {
target = _parent.activeplayers[i];
target.stat_pickups = target.stat_pickups + 1;
collected();
}
i++;
}
if (_root.deleteeverything) {
deletethis();
}
}
};
Symbol 265 MovieClip [CRATE] Frame 8
removeMovieClip(this);
delete this.onEnterFrame;
Symbol 266 MovieClip [dummycameraobject] Frame 1
a = _parent;
a.cameraobjects[a.cameraobjects.length] = this;
time = 0;
this.onEnterFrame = function () {
time = time + 1;
if ((time > valueA) || (_root.deleteeverything)) {
a.cameraremove(this);
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 298 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 1
Symbol 301 MovieClip [FLAG] Frame 1
function start_cap() {
flagradius._width = 1;
flagradius._height = 1;
completion = 0;
capturing._alpha = 100;
capture._alpha = 0;
capturing.dude.head.facecolor.gotoAndStop(player.colornumber);
capturing.dude.head.eyes.gotoAndStop(player.facenumber);
capturing.dude.head.hat.gotoAndStop(player.hatnumber);
capturing.dude.hands.gotoAndStop(player.defaultgun);
capturing.dude.hands.hand1.handcolor.gotoAndStop(player.colornumber);
capturing.dude.hands.hand2.handcolor.gotoAndStop(player.colornumber);
capturing.dude.body.gotoAndStop(player.shirtnumber);
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
stop();
time = 0;
_parent.CP("fx_ex_wavesmall", _x, _y - 15, 0, 0, 0, 0);
capturing._alpha = 0;
a = _parent;
player = null;
flagradius._alpha = 0;
completion = 0;
completion_speed = 0.5;
completion_radius = 180;
vy = 0;
playertype = 4;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (player == null) {
i = 0;
while (i < a.activeplayers.length) {
target = a.activeplayers[i];
distance = Math.sqrt(Math.pow(_x - target._x, 2) + Math.pow(_y - target._y, 2));
if (distance <= 30) {
player = target;
start_cap();
}
i++;
}
if (flagradius._alpha > 1) {
flagradius._alpha = flagradius._alpha - 10;
}
} else {
target = player;
distance = Math.sqrt(Math.pow(_x - target._x, 2) + Math.pow(_y - target._y, 2));
if (distance >= completion_radius) {
capturing.cap.text = "failed";
player = null;
completion = 0;
capturing._alpha = 0;
capture._alpha = 100;
}
if (flagradius._alpha <= 1) {
flagradius._alpha = 100;
}
flagradius._width = flagradius._width + (((completion_radius * 2) - flagradius._width) * 0.1);
flagradius._height = flagradius._width;
completion = completion + completion_speed;
if (completion >= 100) {
player.pointcap = player.pointcap + 1;
_root.playsound2("ding.wav");
_parent.CP("fx_text3", player._x, player._y - 35, "+1000", player, 0, 0);
_parent.CP("fx_text", _x, _y - 70, "Captured!", this, 0, 0);
removeMovieClip(this);
delete this.onEnterFrame;
}
}
capturing.bar._xscale = completion;
if (_root.deleteeverything) {
deletethis();
}
}
};
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
play();
Symbol 342 MovieClip Frame 5
gotoAndPlay (2);
Symbol 344 MovieClip [fx_dropgun] Frame 1
_xscale = 120;
_yscale = 120;
facing = valueA;
if (facing == -1) {
_xscale = -100;
}
vx = 2 * facing;
vy = -4;
obj.gotoAndStop(valueB);
rotationspeed = (Math.random() * 2) + 5;
if (random(2) == 0) {
rotationspeed = rotationspeed * -1;
}
if (valueB == "mag") {
rotationspeed = Math.random() - 0.5;
vy = 2;
vx = 0;
}
if (valueB == "case") {
rotationspeed = (Math.random() * 20) - 10;
vy = 1.6 + (Math.random() * 3);
vx = (Math.random() * 2) - 1;
}
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + rotationspeed);
vy = vy + (_root.EVERYTHING.gravity * 1.3);
if ((_y >= 900) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 352 MovieClip [fx_jump2] Frame 1
_y = (_y - 20);
vx = (Math.random() * 4) + 1;
if (random(2) == 0) {
vx = vx * -1;
}
vy = Math.random() - 0.5;
alphafade = (Math.random() * 6) + 3;
_width = (_width + Math.random(10));
_height = _width;
art.gotoAndStop(_root.EVERYTHING.mapnumber);
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + vx);
_y = (_y + vy);
vy = vy * 0.9;
vx = vx * 0.9;
_xscale = (_xscale - alphafade);
_yscale = _xscale;
if ((_xscale <= 5) || (_root.deleteeverything)) {
removeMovieClip(this);
delete this.onEnterFrame;
}
}
};
Symbol 360 MovieClip Frame 1
stop();
Symbol 371 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;
}
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 374 MovieClip Frame 1
this.onPress = function () {
getURL ("http://www.facebook.com/ArmorGames", _blank);
};
Symbol 376 MovieClip Frame 1
this.onPress = function () {
getURL ("http://armor.ag/MoreGames", _blank);
};
Symbol 377 MovieClip [MENU_main] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
targety = -50;
slide._alpha = 0;
this.onEnterFrame = function () {
slide._y = slide._y + ((targety - slide._y) / 1.5);
if ((((_xmouse < btn1._x) || (_xmouse > (btn1._x + btn1._width))) || (_ymouse < btn1._y)) || ((_ymouse > (btn3._y + 32)) && (_ymouse < btn4._y))) {
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.depth_fade);
newmc.targetframe = 7;
}
};
btn2.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 6;
}
};
btn3.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 4;
}
};
btn4.onRelease = function () {
getURL ("http://armor.ag/MoreGames", _blank);
};
btn5.onRelease = function () {
if (!_root.fadeaway) {
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 5;
}
};
Symbol 398 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 401 MovieClip [player_arrow] Frame 1
function destroy() {
removeMovieClip(this);
delete this.onEnterFrame;
}
ANGLE = 30.34;
offsety = 0;
offsety = -20;
switch (target.NUMBER) {
case 0 :
AA_color = _root.p1color;
break;
case 1 :
AA_color = _root.p2color;
break;
case 2 :
AA_color = _root.p3color;
break;
case 3 :
AA_color = _root.p4color;
}
arrow.colour.gotoAndStop(AA_color);
_alpha = 0;
screenwidth = 1000;
hw = screenwidth / 2;
this.onEnterFrame = function () {
targetx = target._x;
targety = target._y + offsety;
radians = Math.atan2((targety - 280) + _parent._y, (targetx - hw) + _parent._x);
degrees = (radians * 180) / Math.PI;
distance = Math.sqrt(Math.pow(target._y - _y, 2) + Math.pow(target._x - _x, 2));
distance = Math.round(distance);
txt_distance.text = distance;
if ((degrees > (-ANGLE)) && (degrees < ANGLE)) {
_x = (((-_parent._x) + hw) + 440);
_y = (((-_parent._y) + 280) + (440 * Math.tan(radians)));
}
if ((degrees >= ANGLE) && (degrees <= (180 - ANGLE))) {
_x = (((-_parent._x) + hw) + (240 * Math.tan((Math.PI/2) - radians)));
_y = (((-_parent._y) + 280) + 220);
}
if ((degrees > (180 - ANGLE)) || (degrees < (-180 + ANGLE))) {
_x = (((-_parent._x) + hw) - 440);
_y = (((-_parent._y) + 280) - (440 * Math.tan(radians)));
}
if ((degrees <= (-ANGLE)) && (degrees >= (-180 + ANGLE))) {
_x = (((-_parent._x) + hw) - (240 * Math.tan((Math.PI/2) - radians)));
_y = (((-_parent._y) + 280) - 220);
}
arrow._rotation = degrees;
if ((((targety < ((-_parent._y) - 30)) || (targety > ((-_parent._y) + 560))) || (targetx < ((-_parent._x) + 0))) || (targetx > (((-_parent._x) + 1000) - 0))) {
if (_alpha < 100) {
_alpha = (_alpha + 26);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 26);
}
if (_root.deleteeverything) {
destroy();
}
};
Symbol 404 MovieClip [player_healthdisplay] Frame 1
function kill() {
removeMovieClip(this);
delete this.onEnterFrame;
}
target.healthdisplay = this;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + ((target._x - _x) / 1.5));
_y = (_y + ((target._y - _y) / 1.5));
playerhealth = target.weaponammo;
if (!target) {
_alpha = 0;
}
if ((_alpha <= 0) && (target)) {
_alpha = 100;
}
if (target) {
_alpha = target._alpha;
}
}
};
Symbol 408 MovieClip Frame 1
_alpha = 0;
Symbol 409 MovieClip [shoottarget] Frame 1
function killed() {
_parent.TUTORIAL.t_text.play();
_parent.CP("fx_ex_wavesmall", _x, _y, 0, 0, 0, 0);
removeMovieClip(this);
delete this.onEnterFrame;
}
_alpha = 0;
_name = "tutorialtarget";
this.onEnterFrame = function () {
_alpha = (_alpha + 10);
};
Symbol 409 MovieClip [shoottarget] Frame 40
gotoAndPlay (2);
Symbol 412 MovieClip [touchtarget] Frame 1
_alpha = 0;
this.onEnterFrame = function () {
_alpha = (_alpha + 10);
if (_parent.player1.hitTest(_parent._x + _x, _parent._y + _y, true)) {
_parent.TUTORIAL.t_text.play();
_parent.CP("fx_ex_wavesmall", _x, _y, 0, 0, 0, 0);
removeMovieClip(this);
delete this.onEnterFrame;
}
};
Symbol 412 MovieClip [touchtarget] Frame 40
gotoAndPlay (2);
Symbol 415 MovieClip Frame 1
_alpha = 0;
Symbol 420 MovieClip Frame 1
gotoAndStop (2);
Symbol 420 MovieClip Frame 2
stop();
_alpha = 0;
Symbol 430 MovieClip Frame 70
stop();
a = _parent._parent;
a.CP("touchtarget", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 90
stop();
a = _parent._parent;
a.CP("shoottarget", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 110
stop();
a = _parent._parent;
a.CP("shoottarget", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 130
stop();
a = _parent._parent;
a.CP("CRATE", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 150
stop();
a = _parent._parent;
a.CP("shoottarget", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 152
stop();
a = _parent._parent;
a.CP("shoottarget", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 154
stop();
a = _parent._parent;
a.CP("shoottarget", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 156
stop();
a = _parent._parent;
a.CP("shoottarget", frame._x, frame._y, 0, 0, 0, 0);
Symbol 430 MovieClip Frame 166
stop();
_parent._parent.endmission();
Symbol 436 MovieClip Frame 1
this.useHandCursor = false;
this.onRollOver = function () {
_alpha = 100;
};
this.onRollOut = function () {
_alpha = 30;
};
Symbol 442 MovieClip [pausescreen] Frame 1
function exitgame() {
if (_parent.ENDGAME == 0) {
_parent.ENDGAME = 1;
_root.deleteeverything = true;
}
}
_x = (-_parent._x);
_y = (-_parent._y);
_parent.hud._alpha = 0;
this.onEnterFrame = function () {
if (Key.isDown(88)) {
exitgame();
}
};
btn_resume.onRelease = function () {
_parent.resumegame();
};
btn_exit.onRelease = function () {
exitgame();
};
Symbol 445 MovieClip [wpn_ak] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 5) && (_currentframe < 40)) {
return(true);
}
return(false);
}
stop();
a = _parent;
this.onEnterFrame = function () {
if ((_currentframe > 6) && (_currentframe <= 30)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
};
Symbol 445 MovieClip [wpn_ak] Frame 2
a = _parent;
xpos = a._x + (a.facing * 38);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.5 * a.facing);
}
gun_DAM = 18.5;
gun_ACC = 4;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
a.stat_shots = a.stat_shots + 1;
_root.playsound("rifle1.wav");
Symbol 445 MovieClip [wpn_ak] Frame 5
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 445 MovieClip [wpn_ak] Frame 32
gotoAndPlay(_totalframes);
Symbol 445 MovieClip [wpn_ak] Frame 50
_root.playsound2("whoosh.wav");
Symbol 445 MovieClip [wpn_ak] Frame 53
function gethit() {
_parent._parent.activeplayers[i].stuntime = 15;
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 20, "POW", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = (batpower - (Math.random() * 10)) * _parent.facing;
_parent.vx = _parent.vx + (_parent._parent.activeplayers[i].vx * -0.4);
_parent.jumpnum = 1;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy * 0.5;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy - 1;
_parent._parent.activeplayers[i].jumpnum = 1;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
_parent.stat_hits = _parent.stat_hits + 1;
}
ax = _parent._x;
ay = _parent._y;
batpower = 22.5;
batdamage = 9;
freezetime = 2;
a = _parent;
a.stat_shots = a.stat_shots + 1;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else {
target = _parent._parent.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == _parent.playerteam)) {
} else {
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
target = _parent._parent.activeplayers[i];
if ((disty > -40) && (disty < 30)) {
if (_parent.facing == 1) {
if ((distx > -10) && (distx < 75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 10) && (distx > -75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
}
}
}
i++;
}
Symbol 445 MovieClip [wpn_ak] Frame 62
gotoAndPlay (6);
Symbol 451 MovieClip [wpn_bat] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
return(false);
}
stop();
a = _parent;
defaultspeed = _parent.movespeed;
Symbol 451 MovieClip [wpn_bat] Frame 9
stop();
this.onEnterFrame = function () {
if (((_parent.playertype == 1) && (!Key.isDown(_parent.KEY_SHOOT))) || ((_parent.playertype == 2) && (!_parent.KEY_SHOOT))) {
_parent.movespeed = defaultspeed;
delete this.onEnterFrame;
play();
}
};
_root.playsound2("whoosh.wav");
Symbol 451 MovieClip [wpn_bat] Frame 11
function gethit() {
_parent.stat_hits = _parent.stat_hits + 1;
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 20, "POW", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = (batpower - (Math.random() * 10)) * _parent.facing;
_parent.vx = _parent.vx + (_parent._parent.activeplayers[i].vx * -0.2);
_parent.jumpnum = 1;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy * 0.5;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy - 10;
_parent._parent.activeplayers[i].jumpnum = 1;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
_parent.weaponammo = _parent.weaponammo - 1;
}
ax = _parent._x;
ay = _parent._y;
batpower = 70;
batdamage = 34;
freezetime = 2;
_parent.stat_shots = _parent.stat_shots + 1;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else {
target = _parent._parent.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == _parent.playerteam)) {
} else {
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
if ((disty > -30) && (disty < 20)) {
if (_parent.facing == 1) {
if ((distx > -3) && (distx < 75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 3) && (distx > -75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
}
}
}
i++;
}
Symbol 451 MovieClip [wpn_bat] Frame 13
_parent.movespeed = defaultspeed;
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 451 MovieClip [wpn_bat] Frame 24
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay ("pause");
}
if (Key.isDown(_parent.KEY_2) || ((_parent.playertype == 2) && (_parent.KEY_2))) {
gotoAndPlay ("sec");
}
Symbol 451 MovieClip [wpn_bat] Frame 30
gotoAndPlay(_totalframes);
Symbol 451 MovieClip [wpn_bat] Frame 46
gotoAndPlay ("cocked");
Symbol 451 MovieClip [wpn_bat] Frame 51
defaultspeed = _parent.movespeed;
_parent.movespeed = _parent.movespeed * 0.8;
Symbol 451 MovieClip [wpn_bat] Frame 59
stop();
this.onEnterFrame = function () {
if (((_parent.playertype == 1) && (!Key.isDown(_parent.KEY_2))) || ((_parent.playertype == 2) && (!_parent.KEY_2))) {
_parent.movespeed = defaultspeed;
delete this.onEnterFrame;
play();
}
};
Symbol 451 MovieClip [wpn_bat] Frame 64
_root.playsound2("whoosh.wav");
Symbol 451 MovieClip [wpn_bat] Frame 66
function gethit() {
hitplayer = true;
_parent.stat_hits = _parent.stat_hits + 1;
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 20, "POW", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = (batpower - (Math.random() * 10)) * _parent.facing;
_parent.vx = _parent.vx + (_parent._parent.activeplayers[i].vx * -0.2);
_parent.jumpnum = 1;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy * 0.5;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy - 10;
_parent._parent.activeplayers[i].jumpnum = 1;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
}
ax = _parent._x;
ay = _parent._y;
batpower = 70;
batdamage = 34;
a.weaponammo = a.weaponammo - 1;
freezetime = 2;
a = _parent;
_parent.stat_shots = _parent.stat_shots + 1;
hitplayer = false;
i = 0;
while (i < _parent._parent.activeplayers.length) {
target = _parent._parent.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == _parent.playerteam)) {
} else {
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
if ((disty > -30) && (disty < 20)) {
if (_parent.facing == 1) {
if ((distx > 3) && (distx < 70)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < -3) && (distx > -70)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
}
}
i++;
}
if (!hitplayer) {
xpos = a._x + (a.facing * 20);
ypos = ((a._y - 20) + a.hand1._y) + a.vy;
a._parent.CP("fx_ex_wavesmall", xpos, ypos, 0, 0, 0, 0);
a._parent.CP("fx_text", xpos, ypos - 20, "CRACK", 0, 0, 0);
a._parent.CP("p_baseball", xpos, ypos + 2, a.facing, _parent, -3, 0);
}
_root.playsound("smg3.wav");
Symbol 451 MovieClip [wpn_bat] Frame 69
_parent.movespeed = defaultspeed;
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 453 MovieClip [wpn_bomb] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
return(false);
}
stop();
a = _parent;
Symbol 453 MovieClip [wpn_bomb] Frame 4
xpos = (a._x + (a.facing * 30)) + a.vx;
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 3;
a._parent.CP("p_bomb", xpos - (15 * a.facing), ypos - 2, a.facing, _parent, 1, 0);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
Symbol 453 MovieClip [wpn_bomb] Frame 8
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 453 MovieClip [wpn_bomb] Frame 20
gotoAndPlay(_totalframes);
Symbol 453 MovieClip [wpn_bomb] Frame 28
xpos = (a._x + (a.facing * 30)) + a.vx;
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 3;
a._parent.CP("p_bomb", xpos - (15 * a.facing), ypos - 2, a.facing, _parent, -1, 0);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
Symbol 453 MovieClip [wpn_bomb] Frame 32
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 453 MovieClip [wpn_bomb] Frame 44
gotoAndPlay(_totalframes);
Symbol 462 MovieClip [wpn_bow] Frame 1
function secondready() {
if (a.weaponammo < 3) {
return(false);
}
if (_currentframe == 1) {
return(true);
}
return(false);
}
stop();
a = _parent;
Symbol 462 MovieClip [wpn_bow] Frame 9
stop();
this.onEnterFrame = function () {
if (((_parent.playertype == 1) && (!Key.isDown(_parent.KEY_SHOOT))) || ((_parent.playertype == 2) && (!_parent.KEY_SHOOT))) {
delete this.onEnterFrame;
play();
}
};
Symbol 462 MovieClip [wpn_bow] Frame 10
a = _parent;
xpos = a._x + (a.facing * 20);
ypos = ((a._y - 20) + a.hand1._y) + a.vy;
a._parent.CP("p_arrow", xpos, ypos + 2, a.facing, _parent, -3, 0);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound2("slide.wav");
Symbol 462 MovieClip [wpn_bow] Frame 14
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 462 MovieClip [wpn_bow] Frame 21
gotoAndPlay(_totalframes);
Symbol 462 MovieClip [wpn_bow] Frame 38
stop();
this.onEnterFrame = function () {
if (((_parent.playertype == 1) && (!Key.isDown(_parent.KEY_2))) || ((_parent.playertype == 2) && (!_parent.KEY_2))) {
delete this.onEnterFrame;
play();
}
};
Symbol 462 MovieClip [wpn_bow] Frame 39
a = _parent;
xpos = a._x + (a.facing * 20);
ypos = ((a._y - 20) + a.hand1._y) + a.vy;
a._parent.CP("p_arrow", xpos, ypos + 2, a.facing, _parent, -13, 0);
a._parent.CP("p_arrow", xpos, ypos + 2, a.facing, _parent, 7, 0);
a._parent.CP("p_arrow", xpos, ypos + 2, a.facing, _parent, -3, 0);
a.weaponammo = a.weaponammo - 3;
_parent.stat_shots = _parent.stat_shots + 1;
_parent.stat_shots = _parent.stat_shots + 1;
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound2("slide.wav");
Symbol 462 MovieClip [wpn_bow] Frame 43
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 463 MovieClip [wpn_homing] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
return(false);
}
stop();
Symbol 463 MovieClip [wpn_homing] Frame 2
a = _parent;
if (_parent.perknumber != 3) {
a.vx = a.vx + (a.facing * -8);
}
xpos = a._x + (a.facing * 15);
ypos = ((a._y - 28) + a.hand1._y) + a.vy;
a._parent.CP("p_homing", xpos, ypos, a.facing, _parent, 0, 0);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
Symbol 463 MovieClip [wpn_homing] Frame 12
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 463 MovieClip [wpn_homing] Frame 39
gotoAndPlay(_totalframes);
Symbol 463 MovieClip [wpn_homing] Frame 60
a = _parent;
if (_parent.perknumber != 3) {
a.vx = a.vx + (a.facing * -8);
}
xpos = a._x + (a.facing * 15);
ypos = ((a._y - 28) + a.hand1._y) + a.vy;
a._parent.CP("p_homing_jokes", xpos, ypos, a.facing, _parent, 0, 0);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
gotoAndPlay (3);
Symbol 467 MovieClip [wpn_knife] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
return(false);
}
stop();
a = _parent;
Symbol 467 MovieClip [wpn_knife] Frame 3
xpos = (a._x + (a.facing * 30)) + a.vx;
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 3;
a._parent.CP("p_knife", xpos - (15 * a.facing), ypos + 4, a.facing, _parent, -7, 0);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
Symbol 467 MovieClip [wpn_knife] Frame 6
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 467 MovieClip [wpn_knife] Frame 15
gotoAndPlay(_totalframes);
Symbol 467 MovieClip [wpn_knife] Frame 23
function gethit() {
j = 0;
while (j < 5) {
_parent._parent.CP("fx_blood", a._x + (30 * a.facing), a._y - 20, a.facing, 0, 0, 0);
j++;
}
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 40, "SHANKED", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = ((batpower - (Math.random() * 10)) * _parent.facing) + _parent.vx;
_parent._parent.activeplayers[i].noexplosion = 3;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
}
ax = _parent._x;
ay = _parent._y;
batpower = 15;
batdamage = 25;
freezetime = 2;
a = _parent;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else if ((_root.gamemode == 2) && (_parent._parent.activeplayers[i].playerteam == _parent.playerteam)) {
} else {
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
target = _parent._parent.activeplayers[i];
if ((disty > -40) && (disty < 30)) {
if ((!target.umbrellaopen) || (target.facing == a.facing)) {
if (_parent.facing == 1) {
if ((distx > -10) && (distx < 65)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 10) && (distx > -65)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else {
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
target.weaponammo = target.weaponammo - (batpower * 0.8);
target.weaponammo = Math.round(target.weaponammo);
if (target.weaponammo <= 0) {
target.dropgun();
}
}
}
}
i++;
}
Symbol 467 MovieClip [wpn_knife] Frame 30
if (Key.isDown(_parent.KEY_2) || ((_parent.playertype == 2) && (_parent.KEY_2))) {
gotoAndPlay (22);
}
Symbol 467 MovieClip [wpn_knife] Frame 31
if (Key.isDown(_parent.KEY_2) || ((_parent.playertype == 2) && (_parent.KEY_2))) {
gotoAndPlay (22);
}
Symbol 467 MovieClip [wpn_knife] Frame 32
if (Key.isDown(_parent.KEY_2) || ((_parent.playertype == 2) && (_parent.KEY_2))) {
gotoAndPlay (22);
}
Symbol 467 MovieClip [wpn_knife] Frame 33
if (Key.isDown(_parent.KEY_2) || ((_parent.playertype == 2) && (_parent.KEY_2))) {
gotoAndPlay (22);
}
Symbol 467 MovieClip [wpn_knife] Frame 34
gotoAndPlay(_totalframes);
Symbol 468 MovieClip [wpn_m4] Frame 1
function secondready() {
if (a.weaponammo >= 4) {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 10) && (_currentframe < 40)) {
return(true);
}
}
return(false);
}
stop();
a = _parent;
this.onEnterFrame = function () {
if ((_currentframe > 5) && (_currentframe <= 30)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
};
Symbol 468 MovieClip [wpn_m4] Frame 2
a = _parent;
xpos = a._x + (a.facing * 38);
xpos2 = a._x + (a.facing * 10);
ypos = (((a._y - 24) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.5 * a.facing);
}
gun_DAM = 17;
gun_ACC = 4;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("rifle2.wav");
Symbol 468 MovieClip [wpn_m4] Frame 5
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 468 MovieClip [wpn_m4] Frame 32
gotoAndPlay(_totalframes);
Symbol 468 MovieClip [wpn_m4] Frame 50
a = _parent;
xpos = a._x + (a.facing * 20);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 2;
if (_parent.perknumber != 3) {
a.vx = a.vx - (8 * a.facing);
}
gun_DAM = 10;
gun_ACC = 30;
i = 0;
while (i < 5) {
a._parent.CP("fx_shrapnel", xpos - (5 * a.facing), ypos, a.facing, 0, 0, 0);
a._parent.CP("BULLET_shell", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
i++;
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 3, 0, 0);
a.weaponammo = a.weaponammo - 4;
_parent.stat_shots = _parent.stat_shots + 4;
_root.playsound("snipe5.wav");
Symbol 468 MovieClip [wpn_m4] Frame 55
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 468 MovieClip [wpn_m4] Frame 63
xpos2 = a._x + (a.facing * 12);
ypos = (((a._y - 18) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_shell2", xpos2, ypos, a.facing, _parent, 0, 0, 0);
Symbol 468 MovieClip [wpn_m4] Frame 74
gotoAndPlay (6);
Symbol 471 MovieClip [wpn_mini] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
return(false);
}
stop();
a = _parent;
this.onEnterFrame = function () {
if ((_currentframe >= 28) && (_currentframe < 50)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (25);
}
}
if ((_currentframe >= 50) && (_currentframe < 70)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (9);
}
}
};
Symbol 471 MovieClip [wpn_mini] Frame 5
if (Key.isDown(_parent.KEY_2)) {
gotoAndPlay (45);
}
Symbol 471 MovieClip [wpn_mini] Frame 24
if (((_parent.playertype == 1) && (!Key.isDown(_parent.KEY_SHOOT))) || ((_parent.playertype == 2) && (!_parent.KEY_SHOOT))) {
gotoAndPlay (45);
}
Symbol 471 MovieClip [wpn_mini] Frame 25
a = _parent;
xpos = a._x + (a.facing * 45);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 7;
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.6 * a.facing);
}
gun_DAM = 13;
gun_ACC = 7;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("smg1.wav");
Symbol 471 MovieClip [wpn_mini] Frame 27
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 471 MovieClip [wpn_mini] Frame 46
if (Key.isDown(_parent.KEY_2) || ((_parent.playertype == 2) && (_parent.KEY_2))) {
gotoAndPlay (40);
}
Symbol 471 MovieClip [wpn_mini] Frame 64
gotoAndPlay(_totalframes);
Symbol 472 MovieClip [wpn_mp5k] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 7) && (_currentframe < 40)) {
return(true);
}
return(false);
}
stop();
this.onEnterFrame = function () {
if ((_currentframe > 4) && (_currentframe <= 30)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
};
Symbol 472 MovieClip [wpn_mp5k] Frame 2
a = _parent;
xpos = a._x + (a.facing * 33);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 27) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.4 * a.facing);
}
gun_DAM = 14;
gun_ACC = 6;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("smg2.wav");
Symbol 472 MovieClip [wpn_mp5k] Frame 5
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 472 MovieClip [wpn_mp5k] Frame 32
gotoAndPlay(_totalframes);
Symbol 472 MovieClip [wpn_mp5k] Frame 50
a = _parent;
xpos = a._x + (a.facing * 33);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 27) + a.hand1._y) + a.vy) + 2;
gun_DAM = 14;
gun_ACC = 6;
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.35 * a.facing);
}
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
if (a.weaponammo <= 0) {
a.dropgun();
}
_root.playsound("smg2.wav");
Symbol 472 MovieClip [wpn_mp5k] Frame 52
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.35 * a.facing);
}
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
if (a.weaponammo <= 0) {
a.dropgun();
}
_root.playsound("smg2.wav");
Symbol 472 MovieClip [wpn_mp5k] Frame 54
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.35 * a.facing);
}
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
if (a.weaponammo <= 0) {
a.dropgun();
}
_root.playsound("smg2.wav");
Symbol 472 MovieClip [wpn_mp5k] Frame 63
gotoAndPlay (6);
Symbol 473 MovieClip [wpn_shotgun] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 15) && (_currentframe < 40)) {
return(true);
}
return(false);
}
stop();
a = _parent;
gun_DAM = 10;
gun_ACC = 30;
this.onEnterFrame = function () {
if ((_currentframe > 15) && (_currentframe <= 40)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
};
Symbol 473 MovieClip [wpn_shotgun] Frame 2
a = _parent;
xpos = a._x + (a.facing * 20);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 2;
if (_parent.perknumber != 3) {
a.vx = a.vx - (8 * a.facing);
}
i = 0;
while (i < 5) {
a._parent.CP("fx_shrapnel", xpos - (5 * a.facing), ypos, a.facing, 0, 0, 0);
a._parent.CP("BULLET_shell", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
i++;
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 3, 0, 0);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 5;
_root.playsound("snipe1.wav");
Symbol 473 MovieClip [wpn_shotgun] Frame 8
if (a.weaponammo <= 0) {
a.dropgun();
}
if ((a.weaponammo % 2) == 0) {
gotoAndPlay ("reload");
}
Symbol 473 MovieClip [wpn_shotgun] Frame 41
gotoAndPlay(_totalframes);
Symbol 473 MovieClip [wpn_shotgun] Frame 47
_root.playsound2("bolt1.wav");
Symbol 473 MovieClip [wpn_shotgun] Frame 49
xpos2 = a._x + (a.facing * 8);
ypos = (((a._y - 15) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_shell2", xpos2, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell2", xpos2, ypos, a.facing, _parent, 0, 0, 0);
Symbol 473 MovieClip [wpn_shotgun] Frame 60
_root.playsound2("pistol_slide.wav");
Symbol 473 MovieClip [wpn_shotgun] Frame 62
_root.playsound2("pump2.wav");
Symbol 473 MovieClip [wpn_shotgun] Frame 68
gotoAndPlay ("loaded");
Symbol 473 MovieClip [wpn_shotgun] Frame 70
if ((a.weaponammo % 2) == 0) {
gotoAndPlay ("secondary_true");
} else {
gotoAndPlay (2);
}
Symbol 473 MovieClip [wpn_shotgun] Frame 71
a = _parent;
xpos = a._x + (a.facing * 20);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 2;
if (_parent.perknumber != 3) {
a.vx = a.vx - (16 * a.facing);
}
a._parent.CP("fx_text", xpos + (10 * a.facing), ypos - 20, "BOOM!", 0, 0, 0);
i = 0;
while (i < 8) {
if (i < 5) {
a._parent.CP("fx_shrapnel", xpos - (5 * a.facing), ypos, a.facing, 0, 0, 0);
}
a._parent.CP("BULLET_shell", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
i++;
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 3, 0, 0);
a.weaponammo = a.weaponammo - 2;
_parent.stat_shots = _parent.stat_shots + 10;
_root.playsound("snipe1.wav");
Symbol 473 MovieClip [wpn_shotgun] Frame 77
gotoAndPlay ("shotfired");
Symbol 477 MovieClip [wpn_sniper] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 40) && (_currentframe < 55)) {
return(true);
}
return(false);
}
stop();
a = _parent;
this.onEnterFrame = function () {
if ((_currentframe > 40) && (_currentframe <= 53)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay ("aim");
}
}
if (_currentframe == 11) {
a.slowdown = true;
if (((_parent.playertype == 1) && (!Key.isDown(a.KEY_SHOOT))) || ((_parent.playertype == 2) && (!_parent.KEY_SHOOT))) {
play();
}
}
};
Symbol 477 MovieClip [wpn_sniper] Frame 4
_parent.stealthed = false;
Symbol 477 MovieClip [wpn_sniper] Frame 11
stop();
Symbol 477 MovieClip [wpn_sniper] Frame 12
a = _parent;
xpos = a._x + (a.facing * 38);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 26) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_text", xpos + (10 * a.facing), ypos - 20, "BOOM!", 0, 0, 0);
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 3, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (5 * a.facing);
}
gun_DAM = 65;
gun_ACC = 1;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("snipe6.wav");
Symbol 477 MovieClip [wpn_sniper] Frame 15
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 477 MovieClip [wpn_sniper] Frame 22
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 26) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
_root.playsound2("bolt2.wav");
Symbol 477 MovieClip [wpn_sniper] Frame 53
gotoAndPlay(_totalframes);
Symbol 477 MovieClip [wpn_sniper] Frame 74
if (_parent.stealthed) {
_parent.stealthed = false;
} else {
_parent.stealthed = true;
}
Symbol 484 MovieClip [wpn_umbrella] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 6) && (_currentframe < 30)) {
return(true);
}
return(false);
}
stop();
a = _parent;
defaultspeed = _parent.movespeed;
_parent.umbrellaopen = false;
Symbol 484 MovieClip [wpn_umbrella] Frame 2
_root.playsound2("whoosh.wav");
Symbol 484 MovieClip [wpn_umbrella] Frame 4
function gethit() {
_parent.stat_hits = _parent.stat_hits + 1;
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 20, "POW", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = (batpower - (Math.random() * 10)) * _parent.facing;
_parent.vx = _parent.vx + (_parent._parent.activeplayers[i].vx * -0.2);
_parent.jumpnum = 1;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy * 0.5;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy - 10;
_parent._parent.activeplayers[i].jumpnum = 1;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
_parent._parent.activeplayers[i].stuntime = 15;
}
ax = _parent._x;
ay = _parent._y;
batpower = 28;
batdamage = 17;
freezetime = 2;
_parent.stat_shots = _parent.stat_shots + 1;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else if ((_root.gamemode == 2) && (_parent._parent.activeplayers[i].playerteam == _parent.playerteam)) {
} else {
target = _parent._parent.activeplayers[i];
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
if ((disty > -30) && (disty < 20)) {
if (_parent.facing == 1) {
if ((distx > -3) && (distx < 80)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 3) && (distx > -80)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
}
}
i++;
}
Symbol 484 MovieClip [wpn_umbrella] Frame 6
_parent.movespeed = defaultspeed;
Symbol 484 MovieClip [wpn_umbrella] Frame 22
gotoAndPlay(_totalframes);
Symbol 484 MovieClip [wpn_umbrella] Frame 42
function gethit() {
_parent._parent.activeplayers[i].vx = batpower * _parent.facing;
}
stop();
batpower = 7;
batdamage = 0;
this.onEnterFrame = function () {
_parent.umbrellaopen = true;
ax = _parent._x;
ay = _parent._y;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else if ((_root.gamemode == 2) && (_parent._parent.activeplayers[i].playerteam == _parent.playerteam)) {
} else {
target = _parent._parent.activeplayers[i];
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
if ((disty > -30) && (disty < 20)) {
if (_parent.facing == 1) {
if ((distx > -3) && (distx < 38)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 3) && (distx > -38)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
}
}
i++;
}
if (((_parent.playertype == 1) && (!Key.isDown(_parent.KEY_2))) || ((_parent.playertype == 2) && (!_parent.KEY_2))) {
_parent.movespeed = defaultspeed;
play();
}
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
_parent.movespeed = defaultspeed;
delete this.onEnterFrame;
_parent.umbrellaopen = false;
gotoAndPlay (2);
}
};
Symbol 484 MovieClip [wpn_umbrella] Frame 45
delete this.onEnterFrame;
_parent.umbrellaopen = false;
Symbol 485 MovieClip [wpn_uzi] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 4) && (_currentframe < 40)) {
return(true);
}
return(false);
}
stop();
this.onEnterFrame = function () {
if ((_currentframe > 4) && (_currentframe <= 30)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
};
Symbol 485 MovieClip [wpn_uzi] Frame 2
a = _parent;
xpos = a._x + (a.facing * 33);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 27) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.3 * a.facing);
}
gun_DAM = 13;
gun_ACC = 7;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("smg2.wav");
Symbol 485 MovieClip [wpn_uzi] Frame 5
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 485 MovieClip [wpn_uzi] Frame 32
gotoAndPlay(_totalframes);
Symbol 485 MovieClip [wpn_uzi] Frame 50
a = _parent;
xpos = a._x + (a.facing * 33);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 27) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.3 * a.facing);
}
gun_DAM = 11.5;
gun_ACC = 20;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
a.weaponammo = a.weaponammo - 1;
_parent.stat_shots = _parent.stat_shots + 1;
gotoAndPlay (3);
_root.playsound("smg2.wav");
Symbol 488 MovieClip [BULLET] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
facing = valueA;
firepower = valueB;
speed = 25;
facing = valueA;
acc = valueC;
_rotation = (-90 + (90 * valueA));
_rotation = (_rotation + ((Math.random() * acc) - (acc / 2)));
minigun2 = false;
if (firepower >= 60) {
speed = 47;
}
if (firepower == 1337) {
firepower = 26.5;
speed = 35;
}
if (firepower == 1338) {
firepower = 37;
speed = 47;
}
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
_alpha = 0;
time = 0;
owner = valueD;
if (firepower <= 15) {
_xscale = 70;
}
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
time = time + 1;
if (time == 2) {
_alpha = 100;
}
if ((!minigun2) || (time >= 2)) {
i = 0;
while (i < _parent.activeplayers.length) {
if (owner != _parent.activeplayers[i]) {
if ((_parent.activeplayers[i].frame.hitTest(_parent._x + _x, _parent._y + _y, true) || (_parent.activeplayers[i].frame.hitTest((_parent._x + _x) + (vx * 0.333), (_parent._y + _y) + (vy * 0), true))) || (_parent.activeplayers[i].frame.hitTest((_parent._x + _x) + (vx * 0.667), (_parent._y + _y) + (vy * 0.8), true))) {
target = _parent.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else {
if ((!target.umbrellaopen) || (target.facing == facing)) {
target.vx = target.vx + ((firepower * facing) * target.pppmulti);
if (firepower < 60) {
_parent.activeplayers[i].changehealth(firepower * -0.4);
_parent.CP("fx_ex_wavesmall", _x, _y, 0, 0, 0, 0);
if (target.hittimer == 0) {
_parent.CP("fx_text", _x, _y, "HIT", 0, 0, 0);
}
target.hittimer = 5;
} else {
_parent.activeplayers[i].changehealth(firepower * -0.6);
_parent.CP("fx_ex_wave", _x, _y, 0, 0, 0, 0);
_parent.CP("fx_textbig", _x, _y, "SNIPED", 0, 0, 0);
}
} else {
target.weaponammo = target.weaponammo - (firepower * 0.8);
target.weaponammo = Math.round(target.weaponammo);
if (target.weaponammo <= 0) {
target.dropgun();
}
i = 0;
while (i < 5) {
_parent.CP("fx_shrapnel", _x, _y, facing * -1, 0, 0, 0);
i++;
}
target.vx = target.vx + (((firepower * facing) * 0.25) * target.pppmulti);
}
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
deletethis();
}
}
}
i++;
}
i = 0;
while (i < _parent.activeplayers.length) {
if (owner != _parent.activeplayers[i]) {
target2 = _parent.activeplayers[i];
if (target2.playertype != 2) {
} else if ((_parent.activeplayers[i].frame.hitTest((_parent._x + _x) + (vx * 4), _parent._y + _y, true) || (_parent.activeplayers[i].frame.hitTest((_parent._x + _x) + (vx * 4.333), (_parent._y + _y) + (vy * 0), true))) || (_parent.activeplayers[i].frame.hitTest((_parent._x + _x) + (vx * 4.667), (_parent._y + _y) + (vy * 0.8), true))) {
if ((_root.gamemode == 2) && (target2.playerteam == owner.playerteam)) {
} else if (random(4) == 0) {
target2.key_up(1);
}
}
}
i++;
}
if (_parent.tutorialtarget) {
if ((_parent.tutorialtarget.frame.hitTest(_parent._x + _x, _parent._y + _y, true) || (_parent.tutorialtarget.frame.hitTest((_parent._x + _x) + (vx * 0.333), (_parent._y + _y) + (vy * 0), true))) || (_parent.tutorialtarget.frame.hitTest((_parent._x + _x) + (vx * 0.667), (_parent._y + _y) + (vy * 0.8), true))) {
_parent.tutorialtarget.killed();
}
}
}
_x = (_x + vx);
_y = (_y + vy);
if (firepower > 40) {
_xscale = (_xscale + ((500 - _xscale) / 6));
}
if (((_x < -600) || (_x > 1500)) || (_root.deleteeverything)) {
deletethis();
}
}
};
Symbol 489 MovieClip [BULLET_shell] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
speed = 25;
speed = 25 + (Math.random() * 5);
facing = 1;
acc = valueC;
_rotation = (-90 + (90 * valueA));
_rotation = (_rotation + ((Math.random() * acc) - (acc / 2)));
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
facing = valueA;
firepower = valueB;
_alpha = 0;
time = 0;
owner = valueD;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
time = time + 1;
if (time == 2) {
_alpha = 100;
}
i = 0;
while (i < _parent.activeplayers.length) {
if (owner != _parent.activeplayers[i]) {
if (_parent.activeplayers[i].frame.hitTest(_parent._x + _x, _parent._y + _y, true) || (_parent.activeplayers[i].frame.hitTest((_parent._x + _x) + (vx / 2), (_parent._y + _y) + (vy / 2), true))) {
target = _parent.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else {
if ((!target.umbrellaopen) || (target.facing == facing)) {
_parent.activeplayers[i].vx = _parent.activeplayers[i].vx + ((firepower * facing) * target.pppmulti);
_parent.activeplayers[i].changehealth(firepower * -0.4);
_parent.CP("fx_ex_wavesmall", (_x + (Math.random() * 8)) - 4, (_y + (Math.random() * 8)) - 4, 0, 0, 0, 0);
_parent.activeplayers[i].shotgunhits = _parent.activeplayers[i].shotgunhits + 1;
if (_parent.activeplayers[i].shotgunhits == 5) {
_parent.shakescreen(12);
_parent.CP("fx_textbig", _x - 10, _y, "PWNED", 0, 0, 0);
}
} else {
target.weaponammo = target.weaponammo - (firepower * 0.8);
target.weaponammo = Math.round(target.weaponammo);
if (target.weaponammo <= 0) {
target.dropgun();
}
_parent.CP("fx_shrapnel", _x, _y, facing * -1, 0, 0, 0);
target.vx = target.vx + (((firepower * facing) * 0.3) * target.pppmulti);
}
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
deletethis();
}
}
}
i++;
}
_x = (_x + vx);
_y = (_y + vy);
if (firepower >= 30) {
_xscale = (_xscale + ((350 - _xscale) / 8));
}
_xscale = (_xscale - 16);
if (_xscale <= 1) {
deletethis();
}
if (((_x < -600) || (_x > 1500)) || (_root.deleteeverything)) {
deletethis();
}
}
};
Symbol 490 MovieClip [p_arrow] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
facing = valueA;
owner = valueB;
power = 34;
damage = -20;
speed = 30;
_rotation = valueC;
if (facing == -1) {
_rotation = (180 + (facing * valueC));
}
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
time = 0;
a = _parent;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
i = 0;
for ( ; i < a.activeplayers.length ; i++) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
if (target.frame.hitTest(a._x + _x, a._y + _y, true) || (target.frame.hitTest((a._x + _x) + (vx / 2), (a._y + _y) + (vy / 2), true))) {
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
continue;
}
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
if ((!target.umbrellaopen) || (target.facing == facing)) {
if (target.hitbyarrow == 0) {
target.hitbyarrow = 10;
target.vx = target.vx + ((power * facing) * target.damagemulti);
target.changehealth(damage);
_parent.CP("fx_ex_wavesmall", target._x, target._y - 20, 0, 0, 0, 0);
_parent.CP("fx_text", target._x, target._y - 20, "POW", 0, 0, 0);
deletethis();
}
} else if (target.hitbyarrow == 0) {
target.hitbyarrow = 10;
target.vx = target.vx + (((power * facing) * target.damagemulti) * 0.25);
target.weaponammo = target.weaponammo - (power * 0.8);
target.weaponammo = Math.round(target.weaponammo);
if (target.weaponammo <= 0) {
target.dropgun();
}
_parent.CP("fx_ex_wavesmall", target._x, target._y - 20, 0, 0, 0, 0);
deletethis();
}
}
if (target.playertype != 2) {
} else if (target.frame.hitTest((a._x + _x) + (vx * 3), (a._y + _y) + (vy * 3), true) || (target.frame.hitTest((a._x + _x) + (vx * 3.5), (a._y + _y) + (vy * 3.5), true))) {
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else if (random(4) == 0) {
target.key_up(1);
}
}
}
}
if (_parent.tutorialtarget) {
if (_parent.tutorialtarget.frame.hitTest(a._x + _x, a._y + _y, true) || (_parent.tutorialtarget.frame.hitTest((a._x + _x) + (vx / 2), (a._y + _y) + (vy / 2), true))) {
_parent.tutorialtarget.killed();
}
}
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + (0.5 * facing));
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
if (time < 2) {
time = time + 1;
} else {
_parent.CP("fx_p_trail", _x - vx, _y - vy, _rotation, 0, 0, 0);
_parent.CP("fx_p_trail", _x - (vx * 1.5), _y - (vy * 1.5), _rotation, 0, 0, 0);
}
if (((((_x < -400) || (_x > 1300)) || (_y > 800)) || (_y < -200)) || (_root.deleteeverything)) {
deletethis();
}
}
};
Symbol 491 MovieClip [p_baseball] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
facing = valueA;
owner = valueB;
power = 35;
damage = -10;
speed = 40;
_rotation = valueC;
if (facing == -1) {
_rotation = (180 + (facing * valueC));
}
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
time = 0;
a = _parent;
active = true;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (active) {
i = 0;
while (i < a.activeplayers.length) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else {
if ((target.frame.hitTest(a._x + _x, a._y + _y, true) || (target.frame.hitTest((a._x + _x) + (vx * 0.66), (a._y + _y) + (vy * 0.66), true))) || (target.frame.hitTest((a._x + _x) + (vx * 0.33), (a._y + _y) + (vy * 0.33), true))) {
if ((!target.umbrellaopen) || (target.facing == facing)) {
target.stuntime = 30;
target.vx = target.vx + ((power * facing) * target.damagemulti);
target.changehealth(damage);
_parent.CP("fx_ex_wavesmall", target._x, target._y - 20, 0, 0, 0, 0);
_parent.CP("fx_text", target._x, target._y - 20, "POW", 0, 0, 0);
} else {
_parent.CP("fx_ex_wavesmall", _x, _y, 0, 0, 0, 0);
}
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
active = false;
vx = vx * -0.1;
vy = -8;
}
if (target.playertype != 2) {
} else if ((target.frame.hitTest((a._x + _x) + (vx * 3), (a._y + _y) + (vy * 3), true) || (target.frame.hitTest((a._x + _x) + (vx * 3.66), (a._y + _y) + (vy * 3.66), true))) || (target.frame.hitTest((a._x + _x) + (vx * 3.33), (a._y + _y) + (vy * 3.33), true))) {
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else if (random(4) == 0) {
target.key_up(1);
}
}
}
}
i++;
}
if (active) {
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + (0.5 * facing));
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
if (time < 2) {
time = time + 1;
} else {
_parent.CP("fx_p_trail", _x - vx, _y - vy, _rotation, 0, 0, 0);
_parent.CP("fx_p_trail", _x - (vx * 1.5), _y - (vy * 1.5), _rotation, 0, 0, 0);
}
}
} else {
vy = vy + (a.gravity * 1.2);
_y = (_y + vy);
_x = (_x + vx);
if ((_y >= 800) || (_root.deleteeverything)) {
deletethis();
}
}
if (((((_x < -400) || (_x > 1300)) || (_y > 800)) || (_y < -200)) || (_root.deleteeverything)) {
deletethis();
}
}
};
Symbol 492 MovieClip [p_bomb] Frame 1
function explode() {
_root.explodesound();
_root.EVERYTHING.shakescreen(8);
_parent.CP("fx_ex_wave", _x, _y - 20, 0, 0, 0, 0);
_parent.CP("fx_explosion1", _x, _y, 0, 0, 0, 0);
_parent.CP("fx_text", _x, _y - 20, "BOOM!", 0, 0, 0);
push();
deletethis();
}
function explode2() {
_root.explodesound();
_root.EVERYTHING.shakescreen(8);
_parent.CP("fx_ex_wave", _x, _y - 20, 0, 0, 0, 0);
_parent.CP("fx_explosion2", _x, _y + 30, 0, 0, 0, 0);
_parent.CP("fx_text", _x, _y - 20, "BOOM!", 0, 0, 0);
push();
deletethis();
}
function push() {
i = 0;
while (i < a.activeplayers.length) {
target = a.activeplayers[i];
distance = Math.sqrt(Math.pow(_x - target._x, 2) + Math.pow(_y - target._y, 2));
if (distance < 50) {
targetpos = 1;
if (target._x < _x) {
targetpos = -1;
}
target.vx = target.vx + (40 * targetpos);
target.vy = -10;
target.changehealth(-32);
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
}
i++;
}
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
facing = valueA;
owner = valueB;
power = 35;
damage = -10;
speed = 10;
if (facing == -1) {
_rotation = (180 + (facing * valueC));
}
vx = 11 * facing;
vy = -5;
hittesting = true;
if (valueC < 0) {
hittesting = false;
vx = vx * 1.5;
vy = -6;
}
time = 0;
a = _parent;
active = true;
freepass = false;
rotationspeed = 15 * facing;
art.gotoAndPlay(2);
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (active) {
_rotation = (_rotation + rotationspeed);
_x = (_x + vx);
_y = (_y + vy);
vy = vy + (_root.EVERYTHING.gravity * 1.4);
if (hittesting) {
if ((_parent.platform.hitTest((_parent._x + _x) + vx, (_parent._y + _y) + vy, true) && (vy > 0)) && (!freepass)) {
vy = vy * -0.5;
if (vy < -9) {
vy = -9;
}
vx = vx * 0.8;
rotationspeed = rotationspeed + (3 * facing);
if (Math.abs(vx) <= 3) {
explode();
}
} else if (_parent.platform.hitTest((_parent._x + _x) + vx, (_parent._y + _y) + vy, true) && (!freepass)) {
freepass = true;
} else if ((!_parent.platform.hitTest((_parent._x + _x) + vx, (_parent._y + _y) + vy, true)) && (freepass)) {
freepass = false;
}
}
i = 0;
while (i < a.activeplayers.length) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
distance = Math.sqrt(Math.pow(_x - target._x, 2) + Math.pow(_y - target._y, 2));
if (distance < 50) {
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else {
explode2();
}
}
}
i++;
}
} else if ((_y >= 800) || (_root.deleteeverything)) {
deletethis();
}
if (((((_x < -400) || (_x > 1300)) || (_y > 800)) || (_y < -200)) || (_root.deleteeverything)) {
deletethis();
}
}
};
Symbol 493 MovieClip [p_gun] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
facing = valueA;
owner = valueB;
power = 25;
damage = -10;
speed = 25;
_rotation = valueC;
if (facing == -1) {
_rotation = (180 + (facing * valueC));
_xscale = (_xscale * -1);
art._rotation = art._rotation + 180;
}
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
time = 0;
a = _parent;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
i = 0;
while (i < a.activeplayers.length) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
if (target.frame.hitTest(a._x + _x, a._y + _y, true) || (target.frame.hitTest((a._x + _x) + (vx / 2), (a._y + _y) + (vy / 2), true))) {
if (target.hitbyarrow == 0) {
target.hitbyarrow = 10;
target.vx = target.vx + ((power * facing) * target.damagemulti);
target.changehealth(damage);
target.stuntime = 10;
_parent.CP("fx_ex_wavesmall", target._x, target._y - 20, 0, 0, 0, 0);
_parent.CP("fx_text", target._x, target._y - 20, "POW", 0, 0, 0);
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
deletethis();
}
}
if (target.playertype != 2) {
} else if (target.frame.hitTest((a._x + _x) + (vx * 3), (a._y + _y) + (vy * 3), true) || (target.frame.hitTest((a._x + _x) + (vx * 3.5), (a._y + _y) + (vy * 3.5), true))) {
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else if (random(4) == 0) {
target.key_up(1);
}
}
}
i++;
}
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + (1.5 * facing));
art._rotation = art._rotation + 9;
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
if (time < 2) {
time = time + 1;
} else {
_parent.CP("fx_p_trail", _x - vx, _y - vy, _rotation, 0, 0, 0);
}
if (((((_x < -400) || (_x > 1300)) || (_y > 800)) || (_y < -200)) || (_root.deleteeverything)) {
deletethis();
}
}
};
Symbol 496 MovieClip [p_homing] Frame 1
function smallexplode() {
_root.explodesound();
_parent.CP("fx_ex_wavesmall", _x, _y, 0, 0, 0, 0);
_parent.CP("fx_text", _x, _y - 20, "POOF", 0, 0, 0);
deletethis();
}
function explode() {
_root.explodesound();
a.shakescreen(8);
_parent.CP("fx_ex_flash", _x, _y - 20, 0, 0, 0, 0);
_parent.CP("fx_ex_wave", _x, _y - 20, 0, 0, 0, 0);
i = 0;
while (i < 5) {
_parent.CP("fx_ex_part1", _x, _y - 20, 0, 0, dirx, 0);
_parent.CP("fx_ex_part2", _x, _y - 20, 0, 0, dirx, 0);
i++;
}
_parent.CP("fx_text", _x, _y - 20, "KABOOM!", 0, 0, 0);
if ((_rotation > -90) && (_rotation <= 90)) {
target.vx = target.vx + 32;
} else {
target.vx = target.vx - 32;
}
target.changehealth(-32);
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
deletethis();
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
if (valueA <= -1) {
_rotation = 180;
}
owner = valueB;
a = _parent;
angle = _rotation;
firepower = 12;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
Missile_speed = 10 + (Math.random() * 4);
Missile_turning = 1.1;
missilevx = 0;
missilevy = 0;
time = 0;
time2 = 0;
time3 = 0;
lockon = false;
deployed = false;
doingstuff = true;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
time = time + 5;
time2 = time2 + 5;
time3 = time3 + 5;
if (time3 <= 50) {
_x = (_x + dirx);
_y = (_y + diry);
} else {
lockit = true;
_x = (_x + missilevx);
_y = (_y + missilevy);
}
if (doingstuff) {
_parent.CP("fx_homing", _x - (missilevx * 2), _y - (missilevy * 2), _rotation, 0, 0, 0);
this._rotation = this._rotation + ((angle2 - this._rotation) / 5);
closest = 10000;
if (lockit) {
i = 0;
while (i < a.activeplayers.length) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else {
distance = Math.sqrt(Math.pow(_x - target._x, 2) + Math.pow((_y - target._y) - 22, 2));
if (distance < closest) {
closest = distance;
dx = target._x - _x;
dy = (target._y - _y) - 22;
lockon = true;
}
if ((((target._x > (_x - 30)) && (target._x < (_x + 30))) && (_y > (target._y - 40))) && (_y < target._y)) {
explode();
}
}
}
i++;
}
} else {
i = 0;
while (i < a.activeplayers.length) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else if ((((target._x > (_x - 30)) && (target._x < (_x + 30))) && (_y > (target._y - 40))) && (_y < target._y)) {
explode();
}
}
i++;
}
}
if (!lockon) {
if (!deployed) {
deployed = true;
}
dx = dirx;
dy = diry;
}
if (lockon) {
lockon = false;
}
radians2 = Math.atan2(dy, dx);
angle2 = Math.round((radians2 * 180) / Math.PI);
difference = _rotation - angle2;
if (difference > 180) {
angle2 = angle2 + 360;
}
if (difference < -180) {
angle2 = angle2 - 360;
}
distance = Math.sqrt((dx * dx) + (dy * dy));
dx = dx / distance;
dy = dy / distance;
missilevx = missilevx + (dx * Missile_turning);
missilevy = missilevy + (dy * Missile_turning);
velocity = Math.sqrt((missilevx * missilevx) + (missilevy * missilevy));
if (velocity > Missile_speed) {
missilevx = (missilevx * Missile_speed) / velocity;
missilevy = (missilevy * Missile_speed) / velocity;
}
}
if (time >= 400) {
doingstuff = false;
_rotation = (_rotation + 5);
missilevx = missilevx * 0.97;
if (missilevy < 20) {
missilevy = missilevy + 0.9;
}
if (time >= 500) {
smallexplode();
}
}
if ((_y > 1000) || (_root.deleteeverything)) {
deletethis();
}
}
};
Symbol 499 MovieClip [p_homing_jokes] Frame 1
function smallexplode() {
_root.explodesound();
_parent.CP("fx_ex_wavesmall", _x, _y, 0, 0, 0, 0);
_parent.CP("fx_text", _x, _y - 20, "POOF", 0, 0, 0);
deletethis();
}
function explode() {
_root.explodesound();
target.hitbyrocket = 5;
a.shakescreen(8);
_parent.CP("fx_ex_flash", _x, _y - 20, 0, 0, 0, 0);
_parent.CP("fx_ex_wave", _x, _y - 20, 0, 0, 0, 0);
i = 0;
while (i < 5) {
_parent.CP("fx_ex_part1", _x, _y - 20, 0, 0, dirx / 5, 0);
_parent.CP("fx_ex_part2", _x, _y - 20, 0, 0, dirx / 5, 0);
i++;
}
_parent.CP("fx_text", _x, _y - 20, "KABOOM!", 0, 0, 0);
target.vx = target.vx + ((32 * facing) * multi);
target.changehealth(-32 * multi);
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
deletethis();
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
facing = 1;
if (valueA <= -1) {
facing = -1;
_rotation = 180;
}
multi = 1;
if (valueC != 0) {
_rotation = (_rotation + valueC);
multi = 1;
}
owner = valueB;
a = _parent;
angle = _rotation;
firepower = 10;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
Missile_speed = 10 + (Math.random() * 4);
Missile_turning = 0.5;
missilevx = 0;
missilevy = 0;
time = 0;
time2 = 0;
time3 = 0;
lockon = false;
deployed = false;
doingstuff = true;
detonationtime = 55 + (Math.random() * 15);
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
_x = (_x + dirx);
_y = (_y + diry);
_parent.CP("fx_homing", _x - (dirx * 2), _y - (diry * 2), _rotation, 0, 0, 0);
i = 0;
while (i < a.activeplayers.length) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else if (((((target.hitbyrocket == 0) && (target._x > (_x - 45))) && (target._x < (_x + 45))) && (_y > (target._y - 45))) && (_y < target._y)) {
explode();
}
}
i++;
}
time = time + 1;
if ((((time >= 35) && (valueC == 0)) || (((time >= 7) && (Key.isDown(owner.KEY_2))) && (valueC == 0))) || ((((time >= 7) && (owner.playertype == 2)) && (owner.KEY_2)) && (valueC == 0))) {
_parent.CP("p_homing_jokes", _x, _y, facing, owner, -30, 0);
_parent.CP("p_homing_jokes", _x, _y, facing, owner, 30, 0);
_parent.CP("p_homing_jokes", _x, _y, facing, owner, -0.1, 0);
smallexplode();
}
if (time >= detonationtime) {
smallexplode();
}
if (_root.deleteeverything) {
deletethis();
}
}
};
Symbol 501 MovieClip Frame 1
stop();
Symbol 502 MovieClip [p_knife] Frame 1
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
facing = valueA;
owner = valueB;
power = 19;
damage = -10;
speed = 30;
_rotation = valueC;
if (facing == -1) {
_rotation = (180 + (facing * valueC));
_xscale = (_xscale * -1);
art._rotation = art._rotation + 180;
}
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
time = 0;
a = _parent;
knifed = false;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (!knifed) {
art._rotation = art._rotation + 20;
i = 0;
while (i < a.activeplayers.length) {
if (a.activeplayers[i] != owner) {
target = a.activeplayers[i];
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else {
if (target.frame.hitTest(a._x + _x, a._y + _y, true) || (target.frame.hitTest((a._x + _x) + (vx / 2), (a._y + _y) + (vy / 2), true))) {
if (target.hitbyarrow == 0) {
target.gothitby = owner;
target.gothittime = 40;
owner.stat_hits = owner.stat_hits + 1;
if ((!target.umbrellaopen) || (target.facing == facing)) {
target.hitbyarrow = 10;
target.vx = target.vx + ((power * facing) * target.damagemulti);
target.changehealth(damage);
knifed = true;
target.hitbyknives = target.hitbyknives + 1;
target.noexplosion = 3;
_parent.CP("fx_text", target._x, target._y - 20, "Knifed x" + target.hitbyknives, 0, 0, 0);
kniferandomy = random(20);
knifefacing = (target.facing * facing) * -1;
j = 0;
while (j < 5) {
_parent.CP("fx_blood", target._x, target._y - 20, target.facing * -1, 0, 0, 0);
j++;
}
art.gotoAndStop(2);
_yscale = 100;
_rotation = 0;
art._rotation = random(60) - 30;
art._xscale = -100;
break;
}
_parent.CP("fx_ex_wavesmall", _x, _y, 0, 0, 0, 0);
deletethis();
}
}
if (target.playertype != 2) {
} else if (target.frame.hitTest((a._x + _x) + (vx * 3), (a._y + _y) + (vy * 3), true) || (target.frame.hitTest((a._x + _x) + (vx * 3.5), (a._y + _y) + (vy * 3.5), true))) {
if ((_root.gamemode == 2) && (target.playerteam == owner.playerteam)) {
} else if (random(4) == 0) {
target.key_up(1);
}
}
}
}
i++;
}
_x = (_x + vx);
_y = (_y + vy);
_rotation = (_rotation + (1.5 * facing));
art._rotation = art._rotation + 9;
vx = Math.cos((_rotation * Math.PI) / 180) * speed;
vy = Math.sin((_rotation * Math.PI) / 180) * speed;
if (time < 2) {
time = time + 1;
} else {
_parent.CP("fx_p_trail", _x - vx, _y - vy, _rotation, 0, 0, 0);
}
} else {
_x = ((target._x + ((6 * target.facing) * knifefacing)) + target.vx);
_y = ((((target._y + target.vy) - 10) - kniferandomy) - target.bob._height);
_xscale = ((target.facing * 100) * knifefacing);
}
if ((((((_x < -400) || (_x > 1300)) || (_y > 800)) || (_y < -200)) || (_root.deleteeverything)) || (knifed && (target.playerhealth <= 0))) {
deletethis();
}
}
};
Symbol 508 MovieClip [wpn_bling] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 6) && (_currentframe < 40)) {
return(true);
}
return(false);
}
stop();
a = _parent;
this.onEnterFrame = function () {
if ((_currentframe > 8) && (_currentframe <= 37)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
};
Symbol 508 MovieClip [wpn_bling] Frame 2
a = _parent;
xpos = a._x + (a.facing * 35);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 3;
if (_parent.perknumber != 3) {
a.vx = a.vx - (1 * a.facing);
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
gun_DAM = 19;
gun_ACC = 2;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
if (_parent.perknumber != 6) {
a.weaponammo = a.weaponammo - 1;
}
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("pistol3.wav");
Symbol 508 MovieClip [wpn_bling] Frame 6
if (a.weaponammo <= 0) {
gotoAndPlay ("reload");
}
Symbol 508 MovieClip [wpn_bling] Frame 38
gotoAndPlay(_totalframes);
Symbol 508 MovieClip [wpn_bling] Frame 58
xpos = (a._x + (a.facing * 20)) + (a.vx * 2);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_dropgun", xpos - (3 * a.facing), ypos + 1, a.facing, "mag", 0, 0);
Symbol 508 MovieClip [wpn_bling] Frame 68
_root.playsound2("pistol_slide.wav");
Symbol 508 MovieClip [wpn_bling] Frame 84
_root.playsound2("pistol_mag.wav");
Symbol 508 MovieClip [wpn_bling] Frame 93
a.fillammo(weaponnumber);
gotoAndPlay (7);
Symbol 508 MovieClip [wpn_bling] Frame 106
a = _parent;
xpos = (a._x + (a.facing * 20)) + a.vx;
ypos = ((a._y - 20) + a.hand1._y) + a.vy;
i = 0;
while (i < 3) {
a._parent.CP("fx_money", xpos, ypos, a.facing, _parent, 0, 0);
i++;
}
a.changehealth(-5);
Symbol 508 MovieClip [wpn_bling] Frame 116
if (Key.isDown(_parent.KEY_2)) {
gotoAndPlay (105);
}
Symbol 508 MovieClip [wpn_bling] Frame 127
gotoAndPlay (5);
Symbol 511 MovieClip [wpn_deagle] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 6) && (_currentframe < 40)) {
return(true);
}
return(false);
}
stop();
a = _parent;
this.onEnterFrame = function () {
if ((_currentframe > 10) && (_currentframe <= 37)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
};
Symbol 511 MovieClip [wpn_deagle] Frame 2
a = _parent;
xpos = a._x + (a.facing * 35);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 3;
if (_parent.perknumber != 3) {
a.vx = a.vx - (1 * a.facing);
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
gun_DAM = 23;
gun_ACC = 2;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
if (_parent.perknumber != 6) {
a.weaponammo = a.weaponammo - 1;
}
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("smg2.wav");
Symbol 511 MovieClip [wpn_deagle] Frame 6
if (a.weaponammo <= 0) {
gotoAndPlay ("reload");
}
Symbol 511 MovieClip [wpn_deagle] Frame 38
gotoAndPlay(_totalframes);
Symbol 511 MovieClip [wpn_deagle] Frame 58
xpos = (a._x + (a.facing * 20)) + (a.vx * 2);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_dropgun", xpos - (3 * a.facing), ypos + 1, a.facing, "mag", 0, 0);
Symbol 511 MovieClip [wpn_deagle] Frame 68
_root.playsound2("pistol_slide.wav");
Symbol 511 MovieClip [wpn_deagle] Frame 84
_root.playsound2("pistol_mag.wav");
Symbol 511 MovieClip [wpn_deagle] Frame 93
a.fillammo(weaponnumber);
gotoAndPlay (7);
Symbol 511 MovieClip [wpn_deagle] Frame 107
xpos = a._x + (a.facing * 30);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 3;
a._parent.CP("p_gun", xpos - (15 * a.facing), ypos + 4, a.facing, _parent, -10, 0);
_parent.stat_shots = _parent.stat_shots + 1;
Symbol 511 MovieClip [wpn_deagle] Frame 126
gotoAndPlay ("reload2");
Symbol 514 MovieClip [wpn_dual] Frame 1
function secondready() {
if ((_currentframe == 1) || ((_currentframe >= 5) && (_currentframe < 50))) {
if (!shootkey2) {
shootkey2 = true;
return(true);
}
}
return(false);
}
stop();
a = _parent;
shootkey1 = false;
shootkey2 = false;
gun_DAM = 9.5;
gun_ACC = 6;
this.onEnterFrame = function () {
if ((Key.isDown(_parent.KEY_SHOOT) && (!shootkey1)) || (((_parent.playertype == 2) && (_parent.KEY_SHOOT)) && (!shootkey1))) {
shootkey1 = true;
if (((_currentframe >= 5) && (_currentframe <= 47)) || ((_currentframe > 60) && (_currentframe < 65))) {
gotoAndPlay (2);
}
} else if (((!Key.isDown(_parent.KEY_SHOOT)) && (shootkey1)) || (((_parent.playertype == 2) && (!_parent.KEY_SHOOT)) && (shootkey1))) {
shootkey1 = false;
}
if (((!Key.isDown(_parent.KEY_2)) && (shootkey2)) || (((_parent.playertype == 2) && (!_parent.KEY_2)) && (shootkey2))) {
shootkey2 = false;
}
};
Symbol 514 MovieClip [wpn_dual] Frame 2
a = _parent;
xpos = a._x + (a.facing * 38);
xpos2 = a._x + (a.facing * 17);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) + 0;
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.4 * a.facing);
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
if (_parent.perknumber != 6) {
a.weaponammo = a.weaponammo - 1;
}
_parent.stat_shots = _parent.stat_shots + 1;
if (a.weaponammo <= 0) {
gotoAndPlay ("reload");
}
_root.playsound("pistol3.wav");
Symbol 514 MovieClip [wpn_dual] Frame 48
gotoAndPlay(_totalframes);
Symbol 514 MovieClip [wpn_dual] Frame 60
a = _parent;
xpos = a._x + (a.facing * 45);
xpos2 = a._x + (a.facing * 21);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 8;
if (_parent.perknumber != 3) {
a.vx = a.vx - (0.4 * a.facing);
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("fx_shell", xpos2, ypos, a.facing, _parent, 0, 0, 0);
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
if (_parent.perknumber != 6) {
a.weaponammo = a.weaponammo - 1;
}
_parent.stat_shots = _parent.stat_shots + 1;
if (a.weaponammo <= 0) {
gotoAndPlay ("reload");
}
_root.playsound("pistol3.wav");
Symbol 514 MovieClip [wpn_dual] Frame 62
gotoAndPlay (5);
Symbol 514 MovieClip [wpn_dual] Frame 79
xpos = (a._x + (a.facing * 20)) + (a.vx * 2);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 6;
a._parent.CP("fx_dropgun", xpos - (3 * a.facing), ypos + 1, a.facing, "mag", 0, 0);
Symbol 514 MovieClip [wpn_dual] Frame 82
xpos = (a._x + (a.facing * 25)) + (a.vx * 2);
ypos = (((a._y - 21) + a.hand1._y) + a.vy) + 2;
a._parent.CP("fx_dropgun", xpos - (3 * a.facing), ypos + 1, a.facing, "mag", 0, 0);
Symbol 514 MovieClip [wpn_dual] Frame 90
_root.playsound2("pistol_slide.wav");
Symbol 514 MovieClip [wpn_dual] Frame 94
_root.playsound2("pistol_slide.wav");
Symbol 514 MovieClip [wpn_dual] Frame 111
_root.playsound2("pistol_mag.wav");
Symbol 514 MovieClip [wpn_dual] Frame 115
_root.playsound2("pistol_mag.wav");
Symbol 514 MovieClip [wpn_dual] Frame 120
a.fillammo(weaponnumber);
gotoAndPlay (7);
Symbol 523 MovieClip [wpn_katana] Frame 1
function secondready() {
if ((_currentframe <= 24) && (boost)) {
return(true);
}
return(false);
}
stop();
a = _parent;
boost = false;
this.onEnterFrame = function () {
if (_parent.jumpnum >= _parent.maxjumps) {
boost = true;
}
};
Symbol 523 MovieClip [wpn_katana] Frame 5
function gethit() {
j = 0;
while (j < 5) {
_parent._parent.CP("fx_blood", a._x + (30 * a.facing), a._y - 20, a.facing, 0, 0, 0);
j++;
}
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 40, "OUCH :(", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = ((batpower - (Math.random() * 10)) * _parent.facing) + _parent.vx;
_parent._parent.activeplayers[i].noexplosion = 3;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
}
ax = _parent._x;
ay = _parent._y;
batpower = 12;
batdamage = 20;
freezetime = 2;
a = _parent;
_parent.stat_shots = _parent.stat_shots + 1;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else if ((_root.gamemode == 2) && (_parent._parent.activeplayers[i].playerteam == _parent.playerteam)) {
} else {
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
target = _parent._parent.activeplayers[i];
if ((disty > -40) && (disty < 30)) {
if ((!target.umbrellaopen) || (target.facing == a.facing)) {
if (_parent.facing == 1) {
if ((distx > -10) && (distx < 65)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 10) && (distx > -65)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else {
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
target.weaponammo = target.weaponammo - (batpower * 0.8);
target.weaponammo = Math.round(target.weaponammo);
if (target.weaponammo <= 0) {
target.dropgun();
}
}
}
}
i++;
}
_root.playsound("whoosh.wav");
Symbol 523 MovieClip [wpn_katana] Frame 14
a.vx = a.vx + (6 * a.facing);
Symbol 523 MovieClip [wpn_katana] Frame 16
function gethit() {
j = 0;
while (j < 5) {
_parent._parent.CP("fx_blood", a._x + (30 * a.facing), a._y - 20, a.facing, 0, 0, 0);
j++;
}
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 40, "OUCH :(", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = ((batpower - (Math.random() * 10)) * _parent.facing) + _parent.vx;
_parent._parent.activeplayers[i].noexplosion = 3;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
}
ax = _parent._x;
ay = _parent._y;
batpower = 13;
batdamage = 20;
freezetime = 2;
a = _parent;
_parent.stat_shots = _parent.stat_shots + 1;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else if ((_root.gamemode == 2) && (_parent._parent.activeplayers[i].playerteam == _parent.playerteam)) {
} else {
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
target = _parent._parent.activeplayers[i];
if ((disty > -40) && (disty < 30)) {
if ((!target.umbrellaopen) || (target.facing == a.facing)) {
if (_parent.facing == 1) {
if ((distx > -10) && (distx < 75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 10) && (distx > -75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else {
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
target.weaponammo = target.weaponammo - (batpower * 0.8);
target.weaponammo = Math.round(target.weaponammo);
if (target.weaponammo <= 0) {
target.dropgun();
}
}
}
}
i++;
}
_root.playsound("whoosh.wav");
Symbol 523 MovieClip [wpn_katana] Frame 20
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 523 MovieClip [wpn_katana] Frame 25
gotoAndPlay(_totalframes);
Symbol 523 MovieClip [wpn_katana] Frame 33
a.vy = -9;
Symbol 523 MovieClip [wpn_katana] Frame 34
function gethit() {
j = 0;
while (j < 5) {
_parent._parent.CP("fx_blood", a._x + (30 * a.facing), a._y - 20, a.facing, 0, 0, 0);
j++;
}
_parent._parent.CP("fx_text", a._x + (30 * a.facing), a._y - 40, "OUCH :(", 0, 0, 0);
_parent._parent.activeplayers[i].changehealth(-batdamage);
_parent._parent.activeplayers[i].vx = ((batpower - (Math.random() * 10)) * _parent.facing) + _parent.vx;
_parent._parent.activeplayers[i].vy = _parent._parent.activeplayers[i].vy - 10;
_parent._parent.activeplayers[i].noexplosion = 3;
_parent.delaytime = freezetime;
_parent._parent.activeplayers[i].delaytime = freezetime;
}
ax = _parent._x;
ay = _parent._y;
batpower = 25;
batdamage = 20;
freezetime = 2;
a = _parent;
_parent.stat_shots = _parent.stat_shots + 1;
i = 0;
while (i < _parent._parent.activeplayers.length) {
if (_parent._parent.activeplayers[i] == _parent) {
} else if ((_root.gamemode == 2) && (_parent._parent.activeplayers[i].playerteam == _parent.playerteam)) {
} else {
distx = _parent._parent.activeplayers[i]._x - ax;
disty = _parent._parent.activeplayers[i]._y - ay;
target = _parent._parent.activeplayers[i];
if ((disty > -80) && (disty < 30)) {
if ((!target.umbrellaopen) || (target.facing == a.facing)) {
if (_parent.facing == 1) {
if ((distx > -10) && (distx < 75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else if ((distx < 10) && (distx > -75)) {
target.gothitby = _parent;
target.gothittime = 40;
gethit();
}
} else {
_parent._parent.CP("fx_ex_wavesmall", a._x + (30 * a.facing), a._y - 20, 0, 0, 0, 0);
target.weaponammo = target.weaponammo - (batpower * 0.8);
target.weaponammo = Math.round(target.weaponammo);
if (target.weaponammo <= 0) {
target.dropgun();
}
}
}
}
i++;
}
_root.playsound("whoosh.wav");
Symbol 523 MovieClip [wpn_katana] Frame 38
if (a.weaponammo <= 0) {
a.dropgun();
}
Symbol 523 MovieClip [wpn_katana] Frame 49
gotoAndPlay(_totalframes);
Symbol 527 MovieClip [wpn_revolver] Frame 1
function secondready() {
if (_currentframe == 1) {
return(true);
}
if ((_currentframe > 15) && (_currentframe < 50)) {
return(true);
}
return(false);
}
stop();
a = _parent;
this.onEnterFrame = function () {
if ((_currentframe > 15) && (_currentframe <= 44)) {
if (Key.isDown(_parent.KEY_SHOOT) || ((_parent.playertype == 2) && (_parent.KEY_SHOOT))) {
gotoAndPlay (2);
}
}
if (_currentframe == 135) {
if ((!Key.isDown(a.KEY_2)) || ((_parent.playertype == 2) && (!_parent.KEY_2))) {
play();
}
}
};
Symbol 527 MovieClip [wpn_revolver] Frame 2
a = _parent;
xpos = a._x + (a.facing * 35);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 4;
if (_parent.perknumber != 3) {
a.vx = a.vx - (2 * a.facing);
}
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
gun_DAM = 1337;
gun_ACC = 2;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
if (_parent.perknumber != 6) {
a.weaponammo = a.weaponammo - 1;
}
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("pistol0.wav");
Symbol 527 MovieClip [wpn_revolver] Frame 7
if (a.weaponammo <= 0) {
gotoAndPlay ("reload");
}
Symbol 527 MovieClip [wpn_revolver] Frame 45
gotoAndPlay(_totalframes);
Symbol 527 MovieClip [wpn_revolver] Frame 63
_root.playsound2("bolt1.wav");
Symbol 527 MovieClip [wpn_revolver] Frame 67
xpos = (a._x + (a.facing * 13)) + (a.vx * 2);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 8;
i = 0;
while (i < 6) {
a._parent.CP("fx_dropgun", xpos - (3 * a.facing), ypos + 1, a.facing, "case", 0, 0);
i++;
}
Symbol 527 MovieClip [wpn_revolver] Frame 86
_root.playsound2("bolt1.wav");
Symbol 527 MovieClip [wpn_revolver] Frame 99
_root.playsound2("pistol_mag.wav");
Symbol 527 MovieClip [wpn_revolver] Frame 105
a.fillammo(weaponnumber);
gotoAndPlay (17);
Symbol 527 MovieClip [wpn_revolver] Frame 135
stop();
Symbol 527 MovieClip [wpn_revolver] Frame 136
a = _parent;
xpos = a._x + (a.facing * 35);
xpos2 = a._x + (a.facing * 14);
ypos = (((a._y - 20) + a.hand1._y) + a.vy) - 4;
if (_parent.perknumber != 3) {
a.vx = a.vx - (2 * a.facing);
}
a._parent.CP("fx_text", xpos + (10 * a.facing), ypos - 20, "BANG!", 0, 0, 0);
a._parent.CP("fx_muzzleflash", xpos, ypos, a.facing, _parent, 0, 0, 0);
gun_DAM = 1338;
gun_ACC = 0;
a._parent.CP("BULLET", xpos, ypos, a.facing, gun_DAM, gun_ACC, _parent);
if (_parent.perknumber != 6) {
a.weaponammo = a.weaponammo - 1;
}
_parent.stat_shots = _parent.stat_shots + 1;
_root.playsound("pistol0.wav");
Symbol 527 MovieClip [wpn_revolver] Frame 141
gotoAndPlay (7);
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 5
gotoAndStop (1);
Symbol 583 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 51
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 5
stop();
Symbol 598 MovieClip Frame 1
this.onPress = function () {
getURL ("http://armor.ag/MoreGames", _blank);
};
Symbol 598 MovieClip Frame 225
stop();
_root.start_start();
Symbol 605 MovieClip Frame 1
stop();
Symbol 611 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 611 MovieClip Frame 2
stop();
Symbol 624 MovieClip Frame 1
stop();
Symbol 625 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 20 :
returnvalue = "Cpsl";
break;
case 32 :
returnvalue = "SPC";
break;
case 33 :
returnvalue = "PgU";
break;
case 34 :
returnvalue = "PgD";
break;
case 35 :
returnvalue = "End";
break;
case 36 :
returnvalue = "Hom";
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 637 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_currentframe == 1) {
gotoAndStop (2);
}
};
this.onRollOut = function () {
if (_currentframe == 2) {
gotoAndStop (1);
}
};
this.useHandCursor = true;
Symbol 637 MovieClip Frame 3
this.useHandCursor = false;
Symbol 651 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;
}
function checkifvalid(input) {
returnvalue = false;
switch (input) {
case 8 :
returnvalue = true;
break;
case 13 :
returnvalue = true;
break;
case 16 :
returnvalue = true;
break;
case 17 :
returnvalue = true;
break;
case 20 :
returnvalue = true;
break;
case 32 :
returnvalue = true;
break;
case 33 :
returnvalue = true;
break;
case 34 :
returnvalue = true;
break;
case 35 :
returnvalue = true;
break;
case 36 :
returnvalue = true;
break;
case 37 :
returnvalue = true;
break;
case 38 :
returnvalue = true;
break;
case 39 :
returnvalue = true;
break;
case 40 :
returnvalue = true;
break;
case 45 :
returnvalue = true;
break;
case 46 :
returnvalue = true;
break;
case 145 :
returnvalue = true;
break;
case 96 :
returnvalue = true;
break;
case 97 :
returnvalue = true;
break;
case 98 :
returnvalue = true;
break;
case 99 :
returnvalue = true;
break;
case 100 :
returnvalue = true;
break;
case 101 :
returnvalue = true;
break;
case 102 :
returnvalue = true;
break;
case 103 :
returnvalue = true;
break;
case 104 :
returnvalue = true;
break;
case 105 :
returnvalue = true;
break;
case 106 :
returnvalue = true;
break;
case 107 :
returnvalue = true;
break;
case 109 :
returnvalue = true;
break;
case 110 :
returnvalue = true;
break;
case 111 :
returnvalue = true;
break;
case 113 :
returnvalue = true;
break;
case 115 :
returnvalue = true;
break;
case 118 :
returnvalue = true;
break;
case 119 :
returnvalue = true;
break;
case 120 :
returnvalue = true;
break;
case 121 :
returnvalue = true;
break;
case 123 :
returnvalue = true;
break;
case 186 :
returnvalue = true;
break;
case 187 :
returnvalue = true;
break;
case 188 :
returnvalue = true;
break;
case 189 :
returnvalue = true;
break;
case 190 :
returnvalue = true;
break;
case 191 :
returnvalue = true;
break;
case 192 :
returnvalue = true;
break;
case 219 :
returnvalue = true;
break;
case 220 :
returnvalue = true;
break;
case 221 :
returnvalue = true;
break;
case 222 :
returnvalue = true;
}
if (((input >= 65) && (input <= 90)) || ((input >= 48) && (input <= 57))) {
returnvalue = true;
}
return(returnvalue);
}
btn_back.onRelease = function () {
if ((!_root.fadeaway) && (!islocked)) {
btn_back.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = true;
}
};
lockup._alpha = 0;
btnarray = new Array();
islocked = false;
getinput = -1;
keyListener = new Object();
keyListener.onKeyDown = function () {
if (islocked && (checkifvalid(Key.getCode()))) {
islocked = false;
getinput = Key.getCode();
enableall();
targetkey.taketheinput();
}
};
Key.addListener(keyListener);
if (_root.savedata2.data.musicON) {
music1.gotoAndStop(3);
}
if (!_root.savedata2.data.musicON) {
music2.gotoAndStop(3);
}
music1.onRelease = function () {
if (music1._currentframe != 3) {
_root.savedata2.data.musicON = true;
music1.gotoAndStop(3);
music2.gotoAndStop(1);
_root.stopallmusic();
_root.music1.start(5, 100);
}
};
music2.onRelease = function () {
if (music2._currentframe != 3) {
_root.savedata2.data.musicON = false;
music2.gotoAndStop(3);
music1.gotoAndStop(1);
_root.stopallmusic();
}
};
if (_root.savedata2.data.soundON) {
sound1.gotoAndStop(3);
}
if (!_root.savedata2.data.soundON) {
sound2.gotoAndStop(3);
}
sound1.onRelease = function () {
if (sound1._currentframe != 3) {
_root.savedata2.data.soundON = true;
sound1.gotoAndStop(3);
sound2.gotoAndStop(1);
}
};
sound2.onRelease = function () {
if (sound2._currentframe != 3) {
_root.savedata2.data.soundON = false;
sound2.gotoAndStop(3);
sound1.gotoAndStop(1);
}
};
if (_root.savedata2.data.def_quality == 1) {
quality1.gotoAndStop(3);
}
if (_root.savedata2.data.def_quality == 2) {
quality2.gotoAndStop(3);
}
if (_root.savedata2.data.def_quality == 3) {
quality3.gotoAndStop(3);
}
quality1.onRelease = function () {
if (quality1._currentframe != 3) {
_root.savedata2.data.def_quality = 1;
quality1.gotoAndStop(3);
quality2.gotoAndStop(1);
quality3.gotoAndStop(1);
}
};
quality2.onRelease = function () {
if (quality2._currentframe != 3) {
_root.savedata2.data.def_quality = 2;
quality2.gotoAndStop(3);
quality1.gotoAndStop(1);
quality3.gotoAndStop(1);
}
};
quality3.onRelease = function () {
if (quality3._currentframe != 3) {
_root.savedata2.data.def_quality = 3;
quality3.gotoAndStop(3);
quality1.gotoAndStop(1);
quality2.gotoAndStop(1);
}
};
Symbol 662 MovieClip Frame 1
btn_back.onRelease = function () {
if ((!_root.fadeaway) && (!islocked)) {
btn_back.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = true;
}
};
Symbol 663 MovieClip Frame 1
function clearmodes() {
if (mode1._currentframe == 7) {
mode1.play();
}
if (mode2._currentframe == 7) {
mode2.play();
}
if (mode3._currentframe == 7) {
mode3.play();
}
if (mode4._currentframe == 7) {
mode4.play();
}
}
btn_back.onRelease = function () {
if ((!_root.fadeaway) && (!islocked)) {
btn_back.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = true;
}
};
mode1.btn.onRelease = function () {
clearmodes();
mode1.play();
};
mode2.btn.onRelease = function () {
clearmodes();
mode2.play();
};
mode3.btn.onRelease = function () {
clearmodes();
mode3.play();
};
mode4.btn.onRelease = function () {
clearmodes();
mode4.play();
};
Symbol 686 MovieClip Frame 1
stop();
Symbol 709 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 1
a.gotoAndPlay(15);
Symbol 772 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 1
function switchmap() {
if (_root.mapnumber == 0) {
delete this.onEnterFrame;
gotoAndStop (2);
} else {
gotoAndStop (1);
totalmaps = platform.platform._totalframes;
totalmaps++;
bg_primary.gotoAndStop(totalmaps - _root.mapnumber);
bg_secondary.gotoAndStop(totalmaps - _root.mapnumber);
platform.platform.gotoAndStop(totalmaps - _root.mapnumber);
}
bg_primary._y = 0;
bg_secondary._y = 0;
platform._y = 0;
}
stop();
smooth = 0.1;
this.onEnterFrame = function () {
if ((((_xmouse > 0) && (_ymouse > 0)) && (_xmouse < 600)) && (_ymouse < 314)) {
px = ((_xmouse - 55) - 300) * 0.2;
py = (_ymouse - 140) * 0.2;
} else {
px = -5;
py = 0;
}
bg_primary._x = bg_primary._x + ((((-px) * 0.25) - bg_primary._x) * smooth);
bg_primary._y = bg_primary._y + ((((-py) * 0.25) - bg_primary._y) * smooth);
bg_secondary._x = bg_secondary._x + ((((-px) * 1.8) - bg_secondary._x) * smooth);
bg_secondary._y = bg_secondary._y + ((((-py) * 1.8) - bg_secondary._y) * smooth);
platform._x = platform._x + ((((-px) * 3.2) - platform._x) * smooth);
platform._y = platform._y + ((((-py) * 3.2) - platform._y) * smooth);
};
switchmap();
Symbol 783 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndPlay (2);
_parent.modeallplay();
};
this.onRollOut = function () {
gotoAndPlay (9);
};
this.onRelease = function () {
if (chosen._alpha <= 0) {
chosen._alpha = 100;
_root.MIRRORED = true;
} else {
chosen._alpha = 0;
_root.MIRRORED = false;
}
};
Symbol 783 MovieClip Frame 8
stop();
Symbol 783 MovieClip Frame 14
gotoAndPlay (1);
Symbol 801 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndPlay (2);
_parent.allplay();
};
this.onRollOut = function () {
gotoAndPlay (9);
};
this.onRelease = function () {
_parent.alldisable();
chosen._alpha = 100;
switch (_name) {
case "mapbtn0" :
_root.mapnumber = 0;
break;
case "mapbtn1" :
_root.mapnumber = 1;
break;
case "mapbtn2" :
_root.mapnumber = 2;
break;
case "mapbtn3" :
_root.mapnumber = 3;
break;
case "mapbtn4" :
_root.mapnumber = 4;
break;
case "mapbtn5" :
_root.mapnumber = 5;
break;
case "mapbtn6" :
_root.mapnumber = 6;
break;
case "mapbtn7" :
_root.mapnumber = 7;
break;
case "mapbtn8" :
_root.mapnumber = 8;
break;
case "mapbtn9" :
_root.mapnumber = 9;
break;
case "mapbtn10" :
_root.mapnumber = 10;
break;
case "mapbtn11" :
_root.mapnumber = 11;
}
_parent.mapdisplay.switchmap();
};
Symbol 802 MovieClip Frame 8
stop();
Symbol 802 MovieClip Frame 14
gotoAndPlay (1);
Symbol 814 MovieClip Frame 1
stop();
this.onRollOver = function () {
gotoAndPlay (2);
_parent.modeallplay();
};
this.onRollOut = function () {
gotoAndPlay (9);
};
this.onRelease = function () {
if (!_parent._parent.editedit) {
_parent.modealldisable();
chosen._alpha = 100;
switch (_name) {
case "modebtn1" :
_root.gamemode = 1;
break;
case "modebtn2" :
_root.gamemode = 2;
break;
case "modebtn3" :
_root.gamemode = 3;
break;
case "modebtn4" :
_root.gamemode = 4;
break;
case "modebtn5" :
_root.gamemode = 5;
break;
case "modebtn6" :
_root.gamemode = 6;
}
_parent.modedisplay.gotoAndStop(_root.gamemode);
}
};
Symbol 814 MovieClip Frame 8
stop();
Symbol 814 MovieClip Frame 14
gotoAndPlay (1);
Symbol 832 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 837 MovieClip Frame 1
stop();
if (_parent._parent.modedisplay._currentframe == 2) {
gotoAndStop (2);
}
Symbol 837 MovieClip Frame 2
if (team == 1) {
teamA.gotoAndStop(4);
teamA.defstate = 4;
} else if (team == 2) {
teamB.gotoAndStop(4);
teamB.defstate = 4;
}
Symbol 839 MovieClip Frame 1
gotoAndStop (2);
this.onRollOver = function () {
gotoAndStop (3);
};
this.onRollOut = function () {
gotoAndStop (2);
};
Symbol 871 MovieClip Frame 1
stop();
Symbol 880 MovieClip Frame 1
stop();
Symbol 894 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 894 MovieClip [gun_aa12] Frame 2
stop();
Symbol 894 MovieClip [gun_aa12] Frame 3
_parent._parent.ejectshot();
gotoAndPlay (2);
Symbol 902 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 902 MovieClip [gun_sr25] Frame 2
stop();
Symbol 902 MovieClip [gun_sr25] Frame 3
_parent._parent.ejectshell2();
gotoAndPlay (2);
Symbol 922 MovieClip Frame 1
gotoAndStop(_parent._parent.playernumber);
if ((_name == "gunhand") || (_name == "gunhand2")) {
gotoAndStop(_parent._parent._parent.playernumber);
}
Symbol 926 MovieClip 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 926 MovieClip Frame 2
stop();
_parent._parent.hand2.hand._alpha = 100;
_parent.hand._alpha = 100;
Symbol 926 MovieClip Frame 3
_parent._parent.ejectshell();
Symbol 926 MovieClip Frame 7
gotoAndPlay (2);
Symbol 926 MovieClip Frame 10
_parent._parent.hand2.hand._alpha = 0;
_parent.hand._alpha = 0;
_parent._parent.ejectshell();
Symbol 926 MovieClip 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 926 MovieClip Frame 47
_root.playsound("pistol_mag.wav");
Symbol 926 MovieClip Frame 56
_root.playsound("pistol_slide.wav");
Symbol 926 MovieClip Frame 60
gotoAndPlay (2);
_parent._parent.bullets = 9;
_parent._parent.idletime = 20;
_parent._parent.adjustrof2();
Symbol 929 MovieClip Frame 1
stop();
id = "I don't need perks";
Symbol 929 MovieClip Frame 2
id = "Triple jump";
Symbol 929 MovieClip Frame 3
id = "No recoil from firing guns";
Symbol 929 MovieClip Frame 4
id = "+33% more ammo for all guns";
Symbol 929 MovieClip Frame 5
id = "Random gun at spawn";
Symbol 929 MovieClip Frame 6
id = "Infinite pistol ammo, never have to reload";
Symbol 933 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if (_parent._x < 5) {
delete this.onEnterFrame;
play();
}
};
Symbol 933 MovieClip Frame 3
function summon_editedit(temp) {
newmc = _parent._parent.attachMovie("menu_editedit", "editedit", 1);
newmc.pagenumber = temp;
newmc.target = this;
_parent._parent.freezeall();
}
function freeze() {
btn_hat.useHandCursor = false;
btn_shirt.useHandCursor = false;
btn_face.useHandCursor = false;
btn_weapon.useHandCursor = false;
btn_perk.useHandCursor = false;
pane1.useHandCursor = false;
btn_clear.useHandCursor = false;
btn_player_human.useHandCursor = false;
btn_player_ai.useHandCursor = false;
}
function unfreeze() {
btn_hat.useHandCursor = true;
btn_shirt.useHandCursor = true;
btn_face.useHandCursor = true;
btn_weapon.useHandCursor = true;
btn_perk.useHandCursor = true;
pane1.useHandCursor = true;
btn_clear.useHandCursor = true;
btn_player_human.useHandCursor = true;
btn_player_ai.useHandCursor = true;
}
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() {
pane1.gotoAndStop(colornumber);
gundisplay.gotoAndStop(gunnumber);
player.head.facecolor.gotoAndStop(colornumber);
player.head.eyes.gotoAndStop(facenumber);
player.head.hat.gotoAndStop(hatnumber);
player.hands.gotoAndStop(gunnumber);
player.hands.hand1.handcolor.gotoAndStop(colornumber);
player.hands.hand2.handcolor.gotoAndStop(colornumber);
player.body.gotoAndStop(shirtnumber);
perkdisplay.gotoAndStop(perknumber);
}
switch (_name) {
case "menu1" :
colornumber = _parent.savedata.data.p1color;
inputname.text = _parent.savedata.data.p1name;
shirtnumber = _parent.savedata.data.p1shirt;
hatnumber = _parent.savedata.data.p1hat;
facenumber = _parent.savedata.data.p1face;
gunnumber = _parent.savedata.data.p1gun;
perknumber = _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;
shirtnumber = _parent.savedata.data.p2shirt;
hatnumber = _parent.savedata.data.p2hat;
facenumber = _parent.savedata.data.p2face;
gunnumber = _parent.savedata.data.p2gun;
perknumber = _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;
shirtnumber = _parent.savedata.data.p3shirt;
hatnumber = _parent.savedata.data.p3hat;
facenumber = _parent.savedata.data.p3face;
gunnumber = _parent.savedata.data.p3gun;
perknumber = _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;
shirtnumber = _parent.savedata.data.p4shirt;
hatnumber = _parent.savedata.data.p4hat;
facenumber = _parent.savedata.data.p4face;
gunnumber = _parent.savedata.data.p4gun;
perknumber = _parent.savedata.data.p4perk;
playertype = _parent.savedata.data.p4ptype;
teamselect.team = _parent.savedata.data.p4team;
}
update();
updated = false;
updatetime = 1;
originy = 82;
ai_notice._alpha = 0;
if (playertype == 0) {
slide = 0;
_y = 400;
} else if (playertype == 1) {
slide = 1;
_y = 0;
} else if (playertype == 2) {
slide = 1;
_y = 0;
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.eyes._currentframe != 8)) {
player.hat.swapDepths(player.eyes);
}
};
btn_hat.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(1);
}
};
btn_shirt.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(2);
}
};
btn_face.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(3);
}
};
btn_color.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(4);
}
};
btn_gun.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(5);
}
};
btn_perk.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(7);
}
};
btn_clear.onRelease = function () {
if (!_parent._parent.editedit) {
slide = 0;
playertype = 0;
}
};
btn_player_human.onRelease = function () {
if (!_parent._parent.editedit) {
slide = 1;
playertype = 1;
ai_notice._alpha = 0;
}
};
btn_player_ai.onRelease = function () {
if (!_parent._parent.editedit) {
slide = 1;
playertype = 2;
ai_notice._alpha = 100;
}
};
Symbol 933 MovieClip Frame 12
stop();
Symbol 937 MovieClip Frame 1
stop();
Symbol 942 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.hatnumber = NUMBER;
_parent.target.update();
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = hat.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 945 MovieClip Frame 1
_alpha = 0;
Symbol 946 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;
body.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.shirtnumber = NUMBER;
_parent.target.update();
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = hat.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 950 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;
eyes.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.facenumber = NUMBER;
_parent.target.update();
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = hat.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 952 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;
pane1.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.colornumber = NUMBER;
_parent.target.update();
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = hat.id;
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
};
Symbol 954 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;
gundisplay.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.gunnumber = NUMBER;
_parent.target.update();
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = hat.id;
_parent.gundisplay.gotoAndStop(NUMBER + 1);
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
_parent.gundisplay.gotoAndStop(1);
};
Symbol 991 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 1
stop();
Symbol 1002 MovieClip Frame 1
stop();
frame.onRelease = function () {
if (_currentframe == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 1003 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;
}
obj.gotoAndStop(NUMBER);
Symbol 1018 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;
}
perkdisplay.gotoAndStop(NUMBER);
mouseover = false;
this.onEnterFrame = function () {
if (mouseover) {
_xscale = (_xscale + ((130 - _xscale) / 2));
_yscale = _xscale;
} else {
_xscale = (_xscale + ((100 - _xscale) / 3));
_yscale = _xscale;
}
};
fram.onPress = function () {
_parent.target.perknumber = NUMBER;
_parent.target.update();
_parent.deletethis = true;
};
fram.onRollOver = function () {
mouseover = true;
depththingy();
_parent.displaytext.text = hat.id;
_parent.perkdisplay.gotoAndStop(NUMBER + 1);
};
fram.onRollOut = function () {
mouseover = false;
_parent.displaytext.text = "";
_parent.perkdisplay.gotoAndStop(1);
};
Symbol 1032 MovieClip Frame 1
stop();
Symbol 1033 MovieClip [menu_editedit] Frame 1
function kill() {
_parent.unfreezeall();
removeMovieClip(this);
delete this.onEnterFrame;
}
stop();
_x = 0;
_y = 0;
_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_back.onRelease = function () {
if (_currentframe == 6) {
writedata();
}
deletethis = true;
};
highest = pane1;
pane1.swapDepths(10);
Symbol 1033 MovieClip [menu_editedit] Frame 6
function writedata() {
savedata.data.cratearray[0] = ((pane1.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[1] = ((pane2.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[2] = ((pane3.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[3] = ((pane4.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[4] = ((pane5.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[5] = ((pane6.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[6] = ((pane7.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[7] = ((pane8.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[8] = ((pane9.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[9] = ((pane10.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[10] = ((pane11.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[11] = ((pane12.checkbox._currentframe == 1) ? true : false);
savedata.data.cratearray[12] = ((pane13.checkbox._currentframe == 1) ? true : false);
savedata.data.crateON = ((check_crate._currentframe == 1) ? true : false);
savedata.data.powerON = ((check_power._currentframe == 1) ? true : false);
savedata.data.playerlives = inputlives.text;
savedata.data.totalpoints = inputpoints.text;
}
savedata = SharedObject.getLocal("arenagamedata");
inputlives.text = savedata.data.playerlives;
inputpoints.text = savedata.data.totalpoints;
if (!savedata.data.crateON) {
check_crate.gotoAndStop(2);
}
if (!savedata.data.powerON) {
check_power.gotoAndStop(2);
}
if (!savedata.data.cratearray[0]) {
pane1.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[1]) {
pane2.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[2]) {
pane3.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[3]) {
pane4.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[4]) {
pane5.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[5]) {
pane6.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[6]) {
pane7.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[7]) {
pane8.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[8]) {
pane9.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[9]) {
pane10.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[10]) {
pane11.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[11]) {
pane12.checkbox.gotoAndStop(2);
}
if (!savedata.data.cratearray[12]) {
pane13.checkbox.gotoAndStop(2);
}
Symbol 1034 MovieClip Frame 1
function continue1() {
frame = 1;
menu1.play();
menu2.play();
menu3.play();
menu4.play();
}
function continue2() {
frame = 2;
}
function back1() {
WRITE_DATA_PLAYER();
frame = 2;
menu1.gotoAndStop(1);
menu2.gotoAndStop(1);
menu3.gotoAndStop(1);
menu4.gotoAndStop(1);
}
function back2() {
WRITE_DATA();
frame = 3;
}
function freezeall() {
menu1.freeze();
menu2.freeze();
menu3.freeze();
menu4.freeze();
modebtn1.useHandCursor = false;
modebtn2.useHandCursor = false;
modebtn3.useHandCursor = false;
modebtn4.useHandCursor = false;
}
function unfreezeall() {
menu1.unfreeze();
menu2.unfreeze();
menu3.unfreeze();
menu4.unfreeze();
modebtn1.useHandCursor = true;
modebtn2.useHandCursor = true;
modebtn3.useHandCursor = true;
modebtn4.useHandCursor = true;
}
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();
}
}
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;
}
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();
}
}
function alldisable() {
mapbtn0.chosen._alpha = 0;
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;
}
function startgame() {
if ((!_root.fadeaway) && (menu1._currentframe == menu1._totalframes)) {
WRITE_DATA();
WRITE_DATA_PLAYER();
_root.p1name = menu1.inputname.text;
_root.p1color = menu1.colornumber;
_root.p1shirt = menu1.shirtnumber;
_root.p1hat = menu1.hatnumber;
_root.p1gun = menu1.gunnumber;
_root.p1perk = menu1.perknumber;
_root.p1face = menu1.facenumber;
_root.p1ptype = menu1.playertype;
_root.p1team = menu1.teamselect.team;
_root.p2name = menu2.inputname.text;
_root.p2color = menu2.colornumber;
_root.p2shirt = menu2.shirtnumber;
_root.p2hat = menu2.hatnumber;
_root.p2gun = menu2.gunnumber;
_root.p2perk = menu2.perknumber;
_root.p2face = menu2.facenumber;
_root.p2ptype = menu2.playertype;
_root.p2team = menu2.teamselect.team;
_root.p3name = menu3.inputname.text;
_root.p3color = menu3.colornumber;
_root.p3shirt = menu3.shirtnumber;
_root.p3hat = menu3.hatnumber;
_root.p3gun = menu3.gunnumber;
_root.p3perk = menu3.perknumber;
_root.p3face = menu3.facenumber;
_root.p3ptype = menu3.playertype;
_root.p3team = menu3.teamselect.team;
_root.p4name = menu4.inputname.text;
_root.p4color = menu4.colornumber;
_root.p4shirt = menu4.shirtnumber;
_root.p4hat = menu4.hatnumber;
_root.p4gun = menu4.gunnumber;
_root.p4perk = menu4.perknumber;
_root.p4face = menu4.facenumber;
_root.p4ptype = menu4.playertype;
_root.p4team = menu4.teamselect.team;
_root.campaignmode = false;
_root.playerlives = savedata.data.playerlives;
_root.crateON = savedata.data.crateON;
_root.powerON = savedata.data.powerON;
_root.totalpoints = savedata.data.totalpoints;
totalplayers = 0;
if (_root.p1ptype > 0) {
totalplayers = totalplayers + 1;
}
if (_root.p2ptype > 0) {
totalplayers = totalplayers + 1;
}
if (_root.p3ptype > 0) {
totalplayers = totalplayers + 1;
}
if (_root.p4ptype > 0) {
totalplayers = totalplayers + 1;
}
if (totalplayers >= 2) {
_root.totallives = modedisplay.inputlives.text;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = false;
_root.gototest = false;
} else {
warning2.play();
}
}
}
function WRITE_DATA() {
savedata.data.mapnumber = _root.mapnumber;
savedata.data.MIRRORED = _root.MIRRORED;
savedata.data.gamemode = _root.gamemode;
}
function WRITE_DATA_PLAYER() {
savedata.data.p1name = menu1.inputname.text;
savedata.data.p1color = menu1.colornumber;
savedata.data.p1shirt = menu1.shirtnumber;
savedata.data.p1hat = menu1.hatnumber;
savedata.data.p1gun = menu1.gunnumber;
savedata.data.p1perk = menu1.perknumber;
savedata.data.p1face = menu1.facenumber;
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.shirtnumber;
savedata.data.p2hat = menu2.hatnumber;
savedata.data.p2gun = menu2.gunnumber;
savedata.data.p2perk = menu2.perknumber;
savedata.data.p2face = menu2.facenumber;
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.shirtnumber;
savedata.data.p3hat = menu3.hatnumber;
savedata.data.p3gun = menu3.gunnumber;
savedata.data.p3perk = menu3.perknumber;
savedata.data.p3face = menu3.facenumber;
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.shirtnumber;
savedata.data.p4hat = menu4.hatnumber;
savedata.data.p4gun = menu4.gunnumber;
savedata.data.p4perk = menu4.perknumber;
savedata.data.p4face = menu4.facenumber;
savedata.data.p4ptype = menu4.playertype;
savedata.data.p4team = menu4.teamselect.team;
}
savedata = SharedObject.getLocal("arenagamedata");
if (!savedata.data.filled) {
savedata.data.filled = true;
savedata.data.cratearray = new Array();
i = 0;
while (i < 13) {
savedata.data.cratearray[i] = true;
i++;
}
savedata.data.crateON = true;
savedata.data.powerON = true;
savedata.data.playerlives = 10;
savedata.data.totalpoints = 5;
savedata.data.mapnumber = 0;
savedata.data.MIRRORED = false;
savedata.data.gamemode = 1;
savedata.data.p1name = "Player 1";
savedata.data.p1color = 15;
savedata.data.p1shirt = 1;
savedata.data.p1hat = 1;
savedata.data.p1gun = 1;
savedata.data.p1perk = 1;
savedata.data.p1face = 1;
savedata.data.p1ptype = 1;
savedata.data.p2name = "Player 2";
savedata.data.p2color = 6;
savedata.data.p2shirt = 2;
savedata.data.p2hat = 2;
savedata.data.p2gun = 1;
savedata.data.p2perk = 2;
savedata.data.p2face = 2;
savedata.data.p2ptype = 1;
savedata.data.p3name = "Player 3";
savedata.data.p3color = 17;
savedata.data.p3shirt = 3;
savedata.data.p3hat = 3;
savedata.data.p3gun = 3;
savedata.data.p3perk = 3;
savedata.data.p3face = 3;
savedata.data.p3ptype = 0;
savedata.data.p4name = "Player 4";
savedata.data.p4color = 1;
savedata.data.p4shirt = 4;
savedata.data.p4hat = 4;
savedata.data.p4gun = 5;
savedata.data.p4perk = 4;
savedata.data.p4face = 4;
savedata.data.p4ptype = 0;
savedata.data.p1team = 1;
savedata.data.p2team = 2;
savedata.data.p3team = 1;
savedata.data.p4team = 2;
}
_x = 2000;
frame = 3;
_root.mapnumber = 0;
alldisable();
modealldisable();
_root.mapnumber = savedata.data.mapnumber;
mapdisplay.switchmap();
_root.MIRRORED = savedata.data.MIRRORED;
mirrorbtn.chosen._alpha = 0;
if (_root.MIRRORED) {
mirrorbtn.chosen._alpha = 100;
}
modedisplay.gotoAndStop(savedata.data.gamemode);
_root.gamemode = savedata.data.gamemode;
switch (savedata.data.mapnumber) {
case 0 :
mapbtn0.chosen._alpha = 100;
break;
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;
}
switch (_root.gamemode) {
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;
}
this.onEnterFrame = function () {
if (frame == 1) {
_x = (_x + ((-_x) / 2.5));
} else if (frame == 2) {
_x = (_x + ((1000 - _x) / 2.5));
} else if (frame == 3) {
_x = (_x + ((2000 - _x) / 2.5));
}
if ((_x % 1) != 0) {
_x = Math.round(_x);
}
};
btn_custom.onRelease = function () {
if (!_parent.editedit) {
newmc = _parent.attachMovie("menu_editedit", "editedit", 1);
newmc.pagenumber = 6;
newmc.target = this;
_parent.freezeall();
}
};
Symbol 1042 MovieClip Frame 1
stop();
Symbol 1043 MovieClip Frame 1
function freezeall() {
menu.freezeall();
btn_back.useHandCursor = false;
btn_continue.useHandCursor = false;
}
function unfreezeall() {
menu.unfreezeall();
btn_back.useHandCursor = true;
btn_continue.useHandCursor = true;
}
btn_continue.onRelease = function () {
if (!editedit) {
if (menu.frame == 2) {
continuetext.gotoAndStop(2);
menu.continue1();
} else if (menu.frame == 3) {
menu.continue2();
} else if (menu.frame == 1) {
menu.startgame();
}
}
};
btn_back.onRelease = function () {
if (!editedit) {
if (menu.frame == 1) {
menu.back1();
continuetext.gotoAndStop(1);
} else if (menu.frame == 2) {
menu.back2();
} else if (menu.frame == 3) {
if ((!_root.fadeaway) && (!islocked)) {
btn_back.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = true;
_root.gototest = false;
menu.WRITE_DATA();
}
}
}
};
Instance of Symbol 1034 MovieClip "menu" in Symbol 1043 MovieClip Frame 1
/* no clip actions */
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1088 MovieClip Frame 1
stop();
Symbol 1091 MovieClip Frame 1
switch (_name) {
case "challenge1" :
NUMBER = 0;
break;
case "challenge2" :
NUMBER = 1;
break;
case "challenge3" :
NUMBER = 2;
break;
case "challenge4" :
NUMBER = 3;
break;
case "challenge5" :
NUMBER = 4;
break;
case "challenge6" :
NUMBER = 5;
break;
case "challenge7" :
NUMBER = 6;
break;
case "challenge8" :
NUMBER = 7;
break;
case "challenge9" :
NUMBER = 8;
break;
case "challenge10" :
NUMBER = 9;
}
this.onRelease = function () {
if (active) {
_parent.frame = 1;
_parent.menu1.play();
_parent.brief.gotoAndStop(NUMBER + 1);
_parent.level = NUMBER + 1;
_parent.writestuff();
}
};
this.useHandCursor = false;
active = false;
star._alpha = 0;
if (_parent.savedata.data.campaign[NUMBER] >= 1) {
if (_parent.savedata.data.campaign[NUMBER] == 2) {
star._alpha = 100;
}
this.useHandCursor = true;
active = true;
state.gotoAndStop(2);
}
this.onRollOver = function () {
if (active) {
state.gotoAndStop(3);
}
};
this.onRollOut = function () {
if (active) {
state.gotoAndStop(2);
}
};
Symbol 1092 MovieClip Frame 1
function switchmap() {
if (_root.mapnumber == 0) {
delete this.onEnterFrame;
gotoAndStop (2);
} else {
gotoAndStop (1);
totalmaps = platform.platform._totalframes;
totalmaps++;
bg_primary.gotoAndStop(_root.mapnumber);
bg_secondary.gotoAndStop(_root.mapnumber);
platform.platform.gotoAndStop(_root.mapnumber);
}
bg_primary._y = 0;
bg_secondary._y = 0;
platform._y = 0;
}
stop();
smooth = 0.1;
this.onEnterFrame = function () {
if ((((_xmouse > 0) && (_ymouse > 0)) && (_xmouse < 600)) && (_ymouse < 314)) {
px = ((_xmouse - 55) - 300) * 0.2;
py = (_ymouse - 140) * 0.2;
} else {
px = -5;
py = 0;
}
bg_primary._x = bg_primary._x + ((((-px) * 0.25) - bg_primary._x) * smooth);
bg_primary._y = bg_primary._y + ((((-py) * 0.25) - bg_primary._y) * smooth);
bg_secondary._x = bg_secondary._x + ((((-px) * 1.8) - bg_secondary._x) * smooth);
bg_secondary._y = bg_secondary._y + ((((-py) * 1.8) - bg_secondary._y) * smooth);
platform._x = platform._x + ((((-px) * 3.2) - platform._x) * smooth);
platform._y = platform._y + ((((-py) * 3.2) - platform._y) * smooth);
};
switchmap();
Symbol 1106 MovieClip Frame 1
stop();
Symbol 1106 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if (_parent._x < 5) {
delete this.onEnterFrame;
play();
}
};
Symbol 1106 MovieClip Frame 3
function summon_editedit(temp) {
newmc = _parent._parent.attachMovie("menu_editedit", "editedit", 1);
newmc.pagenumber = temp;
newmc.target = this;
_parent._parent.freezeall();
}
function freeze() {
btn_hat.useHandCursor = false;
btn_shirt.useHandCursor = false;
btn_face.useHandCursor = false;
btn_weapon.useHandCursor = false;
btn_perk.useHandCursor = false;
pane1.useHandCursor = false;
btn_clear.useHandCursor = false;
btn_player_human.useHandCursor = false;
btn_player_ai.useHandCursor = false;
}
function unfreeze() {
btn_hat.useHandCursor = true;
btn_shirt.useHandCursor = true;
btn_face.useHandCursor = true;
btn_weapon.useHandCursor = true;
btn_perk.useHandCursor = true;
pane1.useHandCursor = true;
btn_clear.useHandCursor = true;
btn_player_human.useHandCursor = true;
btn_player_ai.useHandCursor = true;
}
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() {
pane1.gotoAndStop(colornumber);
gundisplay.gotoAndStop(gunnumber);
player.head.facecolor.gotoAndStop(colornumber);
player.head.eyes.gotoAndStop(facenumber);
player.head.hat.gotoAndStop(hatnumber);
player.hands.gotoAndStop(gunnumber);
player.hands.hand1.handcolor.gotoAndStop(colornumber);
player.hands.hand2.handcolor.gotoAndStop(colornumber);
player.body.gotoAndStop(shirtnumber);
perkdisplay.gotoAndStop(perknumber);
}
switch (_name) {
case "menu1" :
colornumber = _parent.savedata.data.p1color;
inputname.text = _parent.savedata.data.p1name;
shirtnumber = _parent.savedata.data.p1shirt;
hatnumber = _parent.savedata.data.p1hat;
facenumber = _parent.savedata.data.p1face;
gunnumber = _parent.savedata.data.p1gun;
perknumber = _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;
shirtnumber = _parent.savedata.data.p2shirt;
hatnumber = _parent.savedata.data.p2hat;
facenumber = _parent.savedata.data.p2face;
gunnumber = _parent.savedata.data.p2gun;
perknumber = _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;
shirtnumber = _parent.savedata.data.p3shirt;
hatnumber = _parent.savedata.data.p3hat;
facenumber = _parent.savedata.data.p3face;
gunnumber = _parent.savedata.data.p3gun;
perknumber = _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;
shirtnumber = _parent.savedata.data.p4shirt;
hatnumber = _parent.savedata.data.p4hat;
facenumber = _parent.savedata.data.p4face;
gunnumber = _parent.savedata.data.p4gun;
perknumber = _parent.savedata.data.p4perk;
playertype = _parent.savedata.data.p4ptype;
teamselect.team = _parent.savedata.data.p4team;
}
update();
updated = false;
updatetime = 1;
originy = 82;
ai_notice._alpha = 0;
if (playertype == 0) {
slide = 0;
_y = 400;
} else if (playertype == 1) {
slide = 1;
_y = 0;
} else if (playertype == 2) {
slide = 1;
_y = 0;
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.eyes._currentframe != 8)) {
player.hat.swapDepths(player.eyes);
}
};
btn_hat.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(1);
}
};
btn_shirt.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(2);
}
};
btn_face.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(3);
}
};
btn_color.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(4);
}
};
btn_gun.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(5);
}
};
btn_perk.onRelease = function () {
if (!_parent._parent.editedit) {
summon_editedit(7);
}
};
btn_clear.onRelease = function () {
if (!_parent._parent.editedit) {
slide = 0;
playertype = 0;
}
};
btn_player_human.onRelease = function () {
if (!_parent._parent.editedit) {
slide = 1;
playertype = 1;
ai_notice._alpha = 0;
}
};
btn_player_ai.onRelease = function () {
if (!_parent._parent.editedit) {
slide = 1;
playertype = 2;
ai_notice._alpha = 100;
}
};
Symbol 1106 MovieClip Frame 12
stop();
Symbol 1108 MovieClip Frame 1
function back1() {
WRITE_DATA_PLAYER();
frame = 2;
menu1.gotoAndStop(1);
}
function back2() {
WRITE_DATA();
frame = 3;
}
function startgame() {
if ((!_root.fadeaway) && (menu1._currentframe == menu1._totalframes)) {
WRITE_DATA_PLAYER();
level = brief._currentframe;
_root.p1name = menu1.inputname.text;
_root.p1color = menu1.colornumber;
_root.p1shirt = menu1.shirtnumber;
_root.p1hat = menu1.hatnumber;
_root.p1gun = menu1.gunnumber;
_root.p1perk = menu1.perknumber;
_root.p1face = menu1.facenumber;
_root.p1ptype = menu1.playertype;
_root.p1team = 1;
writestuff();
_root.p2color = random(20) + 1;
_root.p2shirt = random(23) + 1;
_root.p2hat = random(9) + 1;
_root.p2perk = 1;
_root.p2face = random(9) + 1;
_root.p3color = random(20) + 1;
_root.p3shirt = random(23) + 1;
_root.p3hat = random(9) + 1;
_root.p3perk = 1;
_root.p3face = random(9) + 1;
_root.p4color = random(20) + 1;
_root.p4shirt = random(23) + 1;
_root.p4hat = random(9) + 1;
_root.p4perk = 1;
_root.p4face = random(9) + 1;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = false;
_root.gototest = false;
}
}
function writestuff() {
if (level == 1) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Easy AI";
_root.p2gun = 1;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 1;
_root.mapnumber = 10;
}
if (level == 2) {
_root.gamemode = 14;
_root.playerlives = 99999 /* 0x01869F */;
_root.totalpoints = 5;
_root.p2name = "Easy AI";
_root.p2gun = 4;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 2;
_root.mapnumber = 5;
}
if (level == 3) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Moderate AI 1";
_root.p2gun = 1;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3name = "Moderate AI 2";
_root.p3gun = 4;
_root.p3ptype = 2;
_root.p3team = 2;
_root.p4ptype = 0;
_root.cnumber = 3;
_root.mapnumber = 4;
}
if (level == 4) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Katana Master";
_root.p2gun = 5;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 4;
_root.mapnumber = 7;
}
if (level == 5) {
_root.gamemode = 14;
_root.playerlives = 99999 /* 0x01869F */;
_root.totalpoints = 3;
_root.p2name = "Moderate AI 1";
_root.p2gun = 2;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3name = "Moderate AI 2";
_root.p3gun = 3;
_root.p3ptype = 2;
_root.p3team = 2;
_root.p4ptype = 0;
_root.cnumber = 5;
_root.mapnumber = 9;
}
if (level == 6) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Rocket Dude";
_root.p2gun = 1;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 6;
_root.mapnumber = 8;
}
if (level == 7) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Bomb Man";
_root.p2gun = 1;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 7;
_root.mapnumber = 3;
}
if (level == 8) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Hard AI";
_root.p2gun = 3;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 8;
_root.mapnumber = 6;
}
if (level == 9) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Bow Master";
_root.p2gun = 5;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 9;
_root.mapnumber = 1;
}
if (level == 10) {
_root.gamemode = 12;
_root.playerlives = 5;
_root.totalpoints = 5;
_root.p2name = "Katana Master 2";
_root.p2gun = 5;
_root.p2ptype = 2;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.cnumber = 10;
_root.mapnumber = 2;
}
mapdisplay.switchmap();
}
function WRITE_DATA_PLAYER() {
savedata.data.p1name = menu1.inputname.text;
savedata.data.p1color = menu1.colornumber;
savedata.data.p1shirt = menu1.shirtnumber;
savedata.data.p1hat = menu1.hatnumber;
savedata.data.p1gun = menu1.gunnumber;
savedata.data.p1perk = menu1.perknumber;
savedata.data.p1face = menu1.facenumber;
savedata.data.p1ptype = menu1.playertype;
savedata.data.p1team = menu1.teamselect.team;
}
savedata = SharedObject.getLocal("arenagamedata3");
if (!savedata.data.filled) {
savedata.data.filled = true;
savedata.data.cratearray = new Array();
i = 0;
while (i < 13) {
savedata.data.cratearray[i] = true;
i++;
}
savedata.data.crateON = true;
savedata.data.powerON = true;
savedata.data.playerlives = 10;
savedata.data.totalpoints = 5;
savedata.data.mapnumber = 0;
savedata.data.MIRRORED = false;
savedata.data.gamemode = 1;
savedata.data.p1name = "Player 1";
savedata.data.p1color = 15;
savedata.data.p1shirt = 1;
savedata.data.p1hat = 1;
savedata.data.p1gun = 1;
savedata.data.p1perk = 1;
savedata.data.p1face = 1;
savedata.data.p1ptype = 1;
savedata.data.p1team = 1;
savedata.data.p2team = 2;
savedata.data.p3team = 1;
savedata.data.p4team = 2;
savedata.data.campaign = new Array();
i = 0;
while (i < 10) {
savedata.data.campaign[i] = 0;
i++;
}
savedata.data.campaign[0] = 1;
savedata.data.campaign[1] = 1;
}
btn_mode1.onRollOver = function () {
modedisplay.gotoAndStop(2);
};
btn_mode2.onRollOver = function () {
modedisplay.gotoAndStop(3);
};
btn_mode3.onRollOver = function () {
modedisplay.gotoAndStop(4);
};
btn_mode1.onRollOut = function () {
modedisplay.gotoAndStop(1);
};
btn_mode2.onRollOut = function () {
modedisplay.gotoAndStop(1);
};
btn_mode3.onRollOut = function () {
modedisplay.gotoAndStop(1);
};
btn_mode2.onRelease = function () {
frame = 2;
};
btn_mode1.onRelease = function () {
_root.p1name = "Player 1";
_root.p1color = 11;
_root.p1shirt = 1;
_root.p1hat = 12;
_root.p1gun = 3;
_root.p1perk = 1;
_root.p1face = 1;
_root.p1ptype = 1;
_root.p1team = 1;
_root.p2ptype = 0;
_root.p3ptype = 0;
_root.p4ptype = 0;
_root.playerlives = 9999;
_root.crateON = false;
_root.powerON = false;
_root.totalpoints = 10;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = false;
_root.gototest = false;
_root.gamemode = 11;
_root.mapnumber = 1;
};
if (_root.gotocampaign) {
frame = 2;
_x = 1000;
} else {
_x = 2000;
frame = 3;
}
_root.mapnumber = 0;
alldisable();
modealldisable();
_root.mapnumber = savedata.data.mapnumber;
mapdisplay.switchmap();
_root.MIRRORED = savedata.data.MIRRORED;
mirrorbtn.chosen._alpha = 0;
if (_root.MIRRORED) {
mirrorbtn.chosen._alpha = 100;
}
modedisplay.gotoAndStop(savedata.data.gamemode);
_root.gamemode = savedata.data.gamemode;
this.onEnterFrame = function () {
if (frame == 1) {
_x = (_x + ((-_x) / 2.5));
} else if (frame == 2) {
_x = (_x + ((1000 - _x) / 2.5));
} else if (frame == 3) {
_x = (_x + ((2000 - _x) / 2.5));
}
if ((_x % 1) != 0) {
_x = Math.round(_x);
}
};
btn_continue.onRelease = function () {
startgame();
};
Symbol 1110 MovieClip Frame 1
function freezeall() {
menu.freezeall();
btn_back.useHandCursor = false;
btn_continue.useHandCursor = false;
}
function unfreezeall() {
menu.unfreezeall();
btn_back.useHandCursor = true;
btn_continue.useHandCursor = true;
}
btn_continue.onRelease = function () {
if (!editedit) {
if (menu.frame == 2) {
continuetext.gotoAndStop(2);
menu.continue1();
} else if (menu.frame == 3) {
menu.continue2();
} else if (menu.frame == 1) {
menu.startgame();
}
}
};
btn_back.onRelease = function () {
if (!editedit) {
if (menu.frame == 1) {
menu.back1();
} else if (menu.frame == 2) {
menu.back2();
} else if (menu.frame == 3) {
if ((!_root.fadeaway) && (!islocked)) {
btn_back.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 10;
_root.gotomainmenu = true;
_root.gototest = false;
menu.WRITE_DATA();
}
}
}
};
Instance of Symbol 1108 MovieClip "menu" in Symbol 1110 MovieClip Frame 1
/* no clip actions */
Symbol 1120 MovieClip Frame 1
stop();
Symbol 1121 MovieClip Frame 1
originx = _x;
_x = -200;
time = 0;
if (_root.gamemode == 3) {
crap.gotoAndStop(2);
}
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 1128 MovieClip Frame 1
stop();
Symbol 1137 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 + "%";
if (_root.gamemode != 3) {
text11.text = _root.pgsdata[number][5];
text9.text = (parseInt(text1.text) * 100) + (parseInt(text11.text) * 10);
} else {
text11.text = _root.pgsdata[number][6];
text9.text = (parseInt(text1.text) * 100) + (parseInt(text11.text) * 1000);
}
if (isNaN(parseInt(text5.text) / parseInt(text4.text))) {
text6.text = "0%";
}
}
Symbol 1144 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 1150 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_back.useHandCursor = false;
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 6;
}
};
Symbol 1153 MovieClip Frame 1
_width = 1;
_x = -1000;
Symbol 1154 MovieClip Frame 1
_alpha = 0;
_y = 2000;
Symbol 1164 MovieClip Frame 1
_alpha = 0;
stop();
Symbol 1165 MovieClip Frame 1
_alpha = 0;
Symbol 1168 MovieClip [PLAYER_FULL] Frame 1
function resetjokesvars() {
hitbyarrow = 0;
hitbyrocket = 0;
shotgunhits = 0;
hittestdensity = 7;
slowdown = false;
stealthed = false;
umbrellaopen = false;
hittimer = 0;
hitbyknives = 0;
noexplosion = 0;
gothitby = null;
}
function changehealth(temp) {
if (Math.abs(temp) > 5) {
_root.hitsound();
}
playerhealth = playerhealth + ((temp * (1 + (hitbyknives * 0.5))) * pppmulti);
if (temp < 0) {
if (temp < 20) {
hudpanel.shaketime = hudpanel.shaketime + Math.abs(temp);
} else {
hudpanel.shaketime = 20;
}
stealthed = false;
}
}
function explode() {
_root.explodesound();
a.shakescreen(15);
_parent.CP("fx_ex_flash", _x, _y - 20, 0, 0, 0, 0);
_parent.CP("fx_ex_wave", _x, _y - 20, 0, 0, 0, 0);
i = 0;
while (i < 5) {
_parent.CP("fx_ex_part1", _x, _y - 20, 0, 0, vx, 0);
_parent.CP("fx_ex_part2", _x, _y - 20, 0, 0, vx, 0);
i++;
}
_parent.CP("fx_ex_bodypart", _x, _y - 20, 1, 0, vx, this);
_parent.CP("fx_ex_bodypart", _x, _y - 20, 2, 0, vx, this);
_parent.CP("fx_ex_bodypart", _x, _y - 20, 3, 0, vx, this);
_parent.CP("fx_ex_bodypart", _x, _y - 20, 3, 0, vx, this);
_parent.CP("fx_text", _x, _y - 20, "KABOOM!", 0, 0, 0);
_parent.CP("dummycameraobject", _x, _y, 20, 0, 0, 0);
respawn();
}
function respawn() {
if (gothitby != null) {
gothitby.stat_kills = gothitby.stat_kills + 1;
_parent.CP("fx_text3", gothitby._x, gothitby._y, "+100", gothitby, 0, 0);
_parent.hud.killfeed(gothitby.playername, playername, 0);
} else {
_parent.hud.killfeed(null, playername, 1);
}
playerlives = playerlives - 1;
stat_deaths = stat_deaths + 1;
updatepgs();
if (playerlives <= 0) {
if (playerteam == 1) {
_parent.teamAplayers = _parent.teamAplayers - 1;
}
if (playerteam == 2) {
_parent.teamBplayers = _parent.teamBplayers - 1;
}
_parent.deleteplayer(this);
}
resetplayer();
}
function resetplayer() {
vx = 0;
vy = 0;
playerhealth = 100;
bob.gotoAndPlay(random(bob._totalframes - 5) + 2);
_y = -500;
vy = 0;
_x = (250 + random(500));
if ((defaultgun == 6) || (defaultgun < 0)) {
defaultgun = random(5) - 5;
}
switchweapon(defaultgun);
if (perknumber == 5) {
switchweapon(20 + random(13));
}
resetjokesvars();
}
function updatepgs() {
_root.pgsdata[NUMBER][1] = stat_kills;
_root.pgsdata[NUMBER][3] = stat_shots;
_root.pgsdata[NUMBER][4] = stat_hits;
_root.pgsdata[NUMBER][5] = stat_pickups;
_root.pgsdata[NUMBER][2] = stat_deaths;
_root.pgsdata[NUMBER][6] = pointcap;
}
function flipeverything() {
body._xscale = body._xscale * -1;
head._xscale = head._xscale * -1;
hand1._xscale = hand1._xscale * -1;
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
function DEV_testweapon() {
if (currentgun == defaultgun) {
switchweapon(20);
} else if (currentgun == 32) {
switchweapon(defaultgun);
} else {
switchweapon(currentgun + 1);
}
}
function DEV_function() {
switchweapon(5);
}
function switchweapon(temp) {
if (temp < 0) {
temp = temp * -1;
}
stealthed = false;
umbrellaopen = false;
removeMovieClip(hand1);
delete hand1.onEnterFrame;
switch (temp) {
case 1 :
attachMovie("wpn_deagle", "hand1", weapondepth);
break;
case 2 :
attachMovie("wpn_dual", "hand1", weapondepth);
break;
case 3 :
attachMovie("wpn_revolver", "hand1", weapondepth);
break;
case 4 :
attachMovie("wpn_bling", "hand1", weapondepth);
break;
case 5 :
attachMovie("wpn_katana", "hand1", weapondepth);
break;
case 20 :
attachMovie("wpn_ak", "hand1", weapondepth);
break;
case 21 :
attachMovie("wpn_bat", "hand1", weapondepth);
break;
case 22 :
attachMovie("wpn_bow", "hand1", weapondepth);
break;
case 23 :
attachMovie("wpn_homing", "hand1", weapondepth);
break;
case 24 :
attachMovie("wpn_shotgun", "hand1", weapondepth);
break;
case 25 :
attachMovie("wpn_sniper", "hand1", weapondepth);
break;
case 26 :
attachMovie("wpn_mp5k", "hand1", weapondepth);
break;
case 27 :
attachMovie("wpn_uzi", "hand1", weapondepth);
break;
case 28 :
attachMovie("wpn_m4", "hand1", weapondepth);
break;
case 29 :
attachMovie("wpn_mini", "hand1", weapondepth);
break;
case 30 :
attachMovie("wpn_umbrella", "hand1", weapondepth);
break;
case 31 :
attachMovie("wpn_knife", "hand1", weapondepth);
break;
case 32 :
attachMovie("wpn_bomb", "hand1", weapondepth);
}
currentgun = temp;
hand1._xscale = 100;
if (head._xscale < 0) {
hand1._xscale = -100;
}
fillammo(temp);
hand1.weaponnumber = temp;
}
function fillammo(temp) {
switch (temp) {
case 1 :
weaponammo = 9;
break;
case 2 :
weaponammo = 24;
break;
case 3 :
weaponammo = 6;
break;
case 4 :
weaponammo = 14;
break;
case 5 :
weaponammo = 1;
break;
case 20 :
weaponammo = 30;
break;
case 21 :
weaponammo = 5;
break;
case 22 :
weaponammo = 10;
break;
case 23 :
weaponammo = 3;
break;
case 24 :
weaponammo = 6;
break;
case 25 :
weaponammo = 5;
break;
case 26 :
weaponammo = 40;
break;
case 27 :
weaponammo = 45;
break;
case 28 :
weaponammo = 30;
break;
case 29 :
weaponammo = 150;
break;
case 30 :
weaponammo = 100;
break;
case 31 :
weaponammo = 10;
break;
case 32 :
weaponammo = 5;
}
if (perknumber == 4) {
weaponammo = weaponammo * 1.33;
}
weaponammo = Math.round(weaponammo);
}
function dropgun() {
if (currentgun <= 10) {
return(undefined);
}
stealthed = false;
umbrellaopen = false;
if (((currentgun == 31) && (weaponammo <= 0)) || ((currentgun == 32) && (weaponammo <= 0))) {
} else {
switch (currentgun) {
case 20 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "ak", 0, 0);
break;
case 21 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "bat", 0, 0);
break;
case 22 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 20, facing, "bow", 0, 0);
break;
case 23 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (18 * facing), (_y + vy) - 20, facing, "homing", 0, 0);
break;
case 24 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (22 * facing), (_y + vy) - 15, facing, "shotgun", 0, 0);
break;
case 25 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (19 * facing), (_y + vy) - 25, facing, "sniper", 0, 0);
break;
case 26 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 15, facing, "mp5k", 0, 0);
break;
case 27 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 17, facing, "uzi", 0, 0);
break;
case 28 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 15, facing, "m4", 0, 0);
break;
case 29 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "mini", 0, 0);
break;
case 30 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "umbrella", 0, 0);
break;
case 31 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "knife", 0, 0);
break;
case 32 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (20 * facing), (_y + vy) - 15, facing, "bomb", 0, 0);
}
}
switchweapon(defaultgun);
}
switch (_name) {
case "player1" :
NUMBER = 0;
colornumber = _root.p1color;
facenumber = _root.p1face;
hatnumber = _root.p1hat;
defaultgun = _root.p1gun;
shirtnumber = _root.p1shirt;
perknumber = _root.p1perk;
playername = _root.p1name;
playerteam = _root.p1team;
break;
case "player2" :
NUMBER = 1;
colornumber = _root.p2color;
facenumber = _root.p2face;
hatnumber = _root.p2hat;
defaultgun = _root.p2gun;
shirtnumber = _root.p2shirt;
perknumber = _root.p2perk;
playername = _root.p2name;
playerteam = _root.p2team;
break;
case "player3" :
NUMBER = 2;
colornumber = _root.p3color;
facenumber = _root.p3face;
hatnumber = _root.p3hat;
defaultgun = _root.p3gun;
shirtnumber = _root.p3shirt;
perknumber = _root.p3perk;
playername = _root.p3name;
playerteam = _root.p3team;
break;
case "player4" :
NUMBER = 3;
colornumber = _root.p4color;
facenumber = _root.p4face;
hatnumber = _root.p4hat;
defaultgun = _root.p4gun;
shirtnumber = _root.p4shirt;
perknumber = _root.p4perk;
playername = _root.p4name;
playerteam = _root.p4team;
}
head.facecolor.gotoAndStop(colornumber);
head.eyes.gotoAndStop(facenumber);
head.hat.gotoAndStop(hatnumber);
body.gotoAndStop(shirtnumber);
KEY_UP = _root.savedata2.data.controlarray[NUMBER][0];
KEY_LEFT = _root.savedata2.data.controlarray[NUMBER][1];
KEY_DOWN = _root.savedata2.data.controlarray[NUMBER][2];
KEY_RIGHT = _root.savedata2.data.controlarray[NUMBER][3];
KEY_SHOOT = _root.savedata2.data.controlarray[NUMBER][4];
KEY_2 = _root.savedata2.data.controlarray[NUMBER][5];
KEY_3 = _root.savedata2.data.controlarray[NUMBER][6];
if (playerteam == 1) {
_parent.teamAplayers = _parent.teamAplayers + 1;
}
if (playerteam == 2) {
_parent.teamBplayers = _parent.teamBplayers + 1;
}
movespeed = 0.65;
movespeedmulti = 1;
power = 12.5;
powermulti = 1;
vx = 0;
vy = 0;
movement = false;
jumpkey = false;
jumpnum = 0;
maxjumps = 2;
if (perknumber == 2) {
maxjumps = 3;
}
downpressed = false;
key2pressed = false;
key3pressed = false;
keydevpressed = false;
facing = 1;
freepass = false;
delaytime = 0;
weapondepth = 1;
hand1.swapDepths(weapondepth);
bob.gotoAndPlay(random(bob._totalframes - 5) + 2);
a = _parent;
headdist = head._y;
headx = head._x;
hand1x = hand1._x;
hand1y = hand1._y;
hand2x = hand2._x;
hand2y = hand2._y;
damagemulti = 1;
currentgun = defaultgun;
fillammo(defaultgun);
switchweapon(defaultgun);
playerhealth = 100;
playerlives = _root.playerlives;
resetjokesvars();
stuntime = 0;
stat_kills = 0;
stat_shots = 0;
stat_hits = 0;
stat_pickups = 0;
stat_deaths = 0;
gothittime = 0;
pointcap = 0;
playertype = 1;
_xscale = 120;
_yscale = 120;
resetplayer();
pppmulti = 1;
if (_root.gamemode >= 10) {
if (_root.cnumber == 1) {
pppmulti = 0.5;
}
if (_root.cnumber == 2) {
pppmulti = 0.6;
}
if (_root.cnumber == 3) {
pppmulti = 0.75;
}
if (_root.cnumber == 4) {
pppmulti = 0.75;
}
if (_root.cnumber == 5) {
pppmulti = 0.75;
}
if (_root.cnumber == 6) {
pppmulti = 0.75;
}
if (_root.cnumber == 7) {
pppmulti = 0.75;
}
if (_root.cnumber == 8) {
pppmulti = 1;
}
if (_root.cnumber == 9) {
pppmulti = 1;
}
if (_root.cnumber == 10) {
pppmulti = 1;
defaultgun = 5;
switchweapon(defaultgun);
}
}
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (delaytime <= 0) {
_x = (_x + vx);
if ((!_parent.platform.hitTest(a._x + _x, (a._y + _y) - 4, true)) && (!_parent.platform.hitTest(a._x + _x, a._y + _y, true))) {
freepass = false;
}
if (_parent.platform.hitTest(a._x + _x, (a._y + _y) - 4, true) && (!freepass)) {
freepass = true;
}
_y = (_y + vy);
if (!freepass) {
if (_parent.platform.hitTest(a._x + _x, a._y + _y, true) && (vy > 0)) {
temp = 0;
if (vy > 2) {
temp = 1;
}
if (vy > 2) {
body._y = body._y + (vy * 0.7);
}
jumpnum = maxjumps;
_y = (_y - vy);
i = 1;
while (i <= hittestdensity) {
if (_parent.platform.hitTest(a._x + _x, (a._y + _y) + (i * (vy / hittestdensity)), true)) {
_y = (_y + ((vy / hittestdensity) * (i - 1)));
if (temp == 1) {
_root.dropsound();
i = 0;
while (i < 5) {
_parent.CP("fx_jump2", _x, _y + 20, 0, 0, 0, 0);
i++;
}
}
break;
}
i++;
}
vy = 0;
} else if (jumpnum == maxjumps) {
jumpnum = maxjumps - 1;
}
}
movement = false;
if ((Key.isDown(KEY_UP) && (!jumpkey)) && (jumpnum > 0)) {
jumpkey = true;
playeranim.gotoAndPlay(40);
jumpnum = jumpnum - 1;
if (jumpnum == (maxjumps - 1)) {
vy = (-power) * powermulti;
} else if (jumpnum == 1) {
i = 0;
while (i < 5) {
_parent.CP("fx_jump", _x, _y, 0, 0, 0, 0);
i++;
}
vy = ((-power) * 0.9) * powermulti;
} else if (jumpnum == 0) {
i = 0;
while (i < 5) {
_parent.CP("fx_jump", _x, _y, 0, 0, 0, 0);
i++;
}
vy = ((-power) * 0.85) * powermulti;
}
_y = (_y - 1);
}
if (!Key.isDown(KEY_UP)) {
jumpkey = false;
}
if ((Key.isDown(KEY_DOWN) && (!freepass)) && (!downpressed)) {
if (_y < (_parent.platform._y + _parent.platform.lowest._y)) {
if (jumpnum >= maxjumps) {
freepass = true;
vy = vy + 1;
_y = (_y + 2);
jumpnum = maxjumps - 1;
}
downpressed = true;
}
} else if ((!Key.isDown(KEY_DOWN)) && (downpressed)) {
downpressed = false;
}
if (Key.isDown(KEY_RIGHT) && (!Key.isDown(KEY_LEFT))) {
if (!slowdown) {
vx = vx + (movespeed * movespeedmulti);
}
facing = 1;
movement = true;
}
if (Key.isDown(KEY_LEFT) && (!Key.isDown(KEY_RIGHT))) {
if (!slowdown) {
vx = vx - (movespeed * movespeedmulti);
}
facing = -1;
movement = true;
}
if (slowdown) {
slowdown = false;
}
if (Key.isDown(KEY_SHOOT) && (hand1._currentframe == 1)) {
hand1.play();
}
if (Key.isDown(KEY_2) && (hand1.secondready())) {
hand1.gotoAndPlay("secondary");
}
vx = vx * _root.EVERYTHING.friction;
if (Math.abs(vx) < 0.3) {
vx = 0;
}
if (vy < 20) {
vy = vy + _root.EVERYTHING.gravity;
} else {
vy = 20;
}
if (_y > 1200) {
_root.diesound();
respawn();
}
if (hitbyarrow > 0) {
hitbyarrow = hitbyarrow - 1;
}
if (hitbyrocket > 0) {
hitbyrocket = hitbyrocket - 1;
}
if (stuntime > 0) {
movespeedmulti = 0.2;
powermulti = 0.4;
stuntime = stuntime - 1;
if ((stuntime % 7) == 0) {
_parent.CP("fx_stun", _x, _y - 40, 0, 0, 0, 0);
}
if (stuntime == 0) {
movespeedmulti = 1;
powermulti = 1;
}
}
if (shotgunhits > 0) {
shotgunhits = 0;
}
if (jumpnum == maxjumps) {
shade._xscale = shade._xscale + (((100 - (bob.bobposition._height * 10)) - shade._xscale) * 0.25);
} else {
shade._xscale = shade._xscale + ((1 - shade._xscale) * 0.25);
}
shade._yscale = shade._xscale;
if (stealthed) {
_alpha = (_alpha + ((-_alpha) * 0.25));
} else {
_alpha = (_alpha + ((100 - _alpha) * 0.25));
}
if (hittimer > 0) {
hittimer = hittimer - 1;
}
if (playerhealth <= 0) {
explode();
}
if (noexplosion > 0) {
noexplosion = noexplosion - 1;
}
if ((((jumpnum == maxjumps) && (Math.abs(vx) < 1.5)) && (playerhealth > 0)) && (gothittime > 0)) {
gothittime = gothittime - 5;
if (gothittime <= 0) {
gothitby = null;
}
}
head._x = head._x + (((headx * facing) - head._x) / 3);
hand1._x = hand1._x + (((hand1x * facing) - hand1._x) / 2);
if (vy < 1) {
head._y = head._y - (vy / 2.5);
}
if (vy >= 1) {
head._y = head._y - (vy / 2);
}
if (vy < 1) {
body._y = body._y + (vy / 2);
}
head._y = head._y + (((body._y + headdist) - head._y) / 3);
body._y = body._y + (((-bob.bobposition._height) - body._y) / 3);
frame._y = body._y;
hand1._y = hand1._y + (((body._y + hand1y) - hand1._y) / 8);
if ((facing == 1) && (body._xscale != 100)) {
flipeverything();
}
if ((facing == -1) && (body._xscale != -100)) {
flipeverything();
}
}
if (delaytime > 0) {
delaytime = delaytime - 1;
}
}
};
Symbol 1169 MovieClip Frame 2
stop();
_alpha = 0;
Symbol 1170 MovieClip [PLAYER_AI] Frame 1
function resetjokesvars() {
hitbyarrow = 0;
hitbyrocket = 0;
shotgunhits = 0;
hittestdensity = 7;
slowdown = false;
stealthed = false;
umbrellaopen = false;
hittimer = 0;
hitbyknives = 0;
noexplosion = 0;
gothitby = null;
}
function key_left(amount) {
if ((keyleft < amount) && (keyright <= 0)) {
keyleft = amount;
}
}
function key_right(amount) {
if ((keyright < amount) && (keyleft <= 0)) {
keyright = amount;
}
}
function key_up(amount) {
if (keyup < amount) {
keyup = amount;
}
}
function key_down(amount) {
if (keydown < amount) {
keydown = amount;
}
}
function key_shoot(amount) {
if (keyshoot < amount) {
keyshoot = amount;
}
}
function key_2(amount) {
if (key2 < amount) {
key2 = amount;
}
}
function changehealth(temp) {
if (Math.abs(temp) > 5) {
_root.hitsound();
}
playerhealth = playerhealth + ((temp * (1 + (hitbyknives * 0.5))) * pppmulti);
if (temp < 0) {
if (temp < 20) {
hudpanel.shaketime = hudpanel.shaketime + Math.abs(temp);
} else {
hudpanel.shaketime = 20;
}
stealthed = false;
}
}
function explode() {
_root.explodesound();
a.shakescreen(15);
_parent.CP("fx_ex_flash", _x, _y - 20, 0, 0, 0, 0);
_parent.CP("fx_ex_wave", _x, _y - 20, 0, 0, 0, 0);
i = 0;
while (i < 5) {
_parent.CP("fx_ex_part1", _x, _y - 20, 0, 0, vx, 0);
_parent.CP("fx_ex_part2", _x, _y - 20, 0, 0, vx, 0);
i++;
}
_parent.CP("fx_ex_bodypart", _x, _y - 20, 1, 0, vx, NUMBER);
_parent.CP("fx_ex_bodypart", _x, _y - 20, 2, 0, vx, NUMBER);
_parent.CP("fx_ex_bodypart", _x, _y - 20, 3, 0, vx, NUMBER);
_parent.CP("fx_ex_bodypart", _x, _y - 20, 3, 0, vx, NUMBER);
_parent.CP("fx_text", _x, _y - 20, "KABOOM!", 0, 0, 0);
_parent.CP("dummycameraobject", _x, _y, 20, 0, 0, 0);
respawn();
}
function respawn() {
if (gothitby != null) {
gothitby.stat_kills = gothitby.stat_kills + 1;
_parent.CP("fx_text3", gothitby._x, gothitby._y, "+100", gothitby, 0, 0);
_parent.hud.killfeed(gothitby.playername, playername, 0);
} else {
_parent.hud.killfeed(null, playername, 1);
}
playerlives = playerlives - 1;
stat_deaths = stat_deaths + 1;
updatepgs();
if (playerlives <= 0) {
if (playerteam == 1) {
_parent.teamAplayers = _parent.teamAplayers - 1;
}
if (playerteam == 2) {
_parent.teamBplayers = _parent.teamBplayers - 1;
}
_parent.deleteplayer(this);
}
resetplayer();
}
function resetplayer() {
vx = 0;
vy = 0;
playerhealth = 100;
bob.gotoAndPlay(random(bob._totalframes - 5) + 2);
_y = -500;
vy = 0;
_x = (250 + random(500));
if ((defaultgun == 6) || (defaultgun < 0)) {
defaultgun = random(5) - 5;
}
switchweapon(defaultgun);
if (perknumber == 5) {
switchweapon(20 + random(13));
}
resetjokesvars();
}
function updatepgs() {
_root.pgsdata[NUMBER][1] = stat_kills;
_root.pgsdata[NUMBER][3] = stat_shots;
_root.pgsdata[NUMBER][4] = stat_hits;
_root.pgsdata[NUMBER][5] = stat_pickups;
_root.pgsdata[NUMBER][2] = stat_deaths;
_root.pgsdata[NUMBER][6] = pointcap;
}
function flipeverything() {
body._xscale = body._xscale * -1;
head._xscale = head._xscale * -1;
hand1._xscale = hand1._xscale * -1;
}
function deletethis() {
removeMovieClip(this);
delete this.onEnterFrame;
}
function DEV_testweapon() {
if (currentgun == defaultgun) {
switchweapon(20);
} else if (currentgun == 32) {
switchweapon(defaultgun);
} else {
switchweapon(currentgun + 1);
}
}
function DEV_function() {
switchweapon(5);
}
function switchweapon(temp) {
if (temp < 0) {
temp = temp * -1;
}
stealthed = false;
umbrellaopen = false;
removeMovieClip(hand1);
delete hand1.onEnterFrame;
switch (temp) {
case 1 :
attachMovie("wpn_deagle", "hand1", weapondepth);
break;
case 2 :
attachMovie("wpn_dual", "hand1", weapondepth);
break;
case 3 :
attachMovie("wpn_revolver", "hand1", weapondepth);
break;
case 4 :
attachMovie("wpn_bling", "hand1", weapondepth);
break;
case 5 :
attachMovie("wpn_katana", "hand1", weapondepth);
break;
case 20 :
attachMovie("wpn_ak", "hand1", weapondepth);
break;
case 21 :
attachMovie("wpn_bat", "hand1", weapondepth);
break;
case 22 :
attachMovie("wpn_bow", "hand1", weapondepth);
break;
case 23 :
attachMovie("wpn_homing", "hand1", weapondepth);
break;
case 24 :
attachMovie("wpn_shotgun", "hand1", weapondepth);
break;
case 25 :
attachMovie("wpn_sniper", "hand1", weapondepth);
break;
case 26 :
attachMovie("wpn_mp5k", "hand1", weapondepth);
break;
case 27 :
attachMovie("wpn_uzi", "hand1", weapondepth);
break;
case 28 :
attachMovie("wpn_m4", "hand1", weapondepth);
break;
case 29 :
attachMovie("wpn_mini", "hand1", weapondepth);
break;
case 30 :
attachMovie("wpn_umbrella", "hand1", weapondepth);
break;
case 31 :
attachMovie("wpn_knife", "hand1", weapondepth);
break;
case 32 :
attachMovie("wpn_bomb", "hand1", weapondepth);
}
currentgun = temp;
hand1._xscale = 100;
if (head._xscale < 0) {
hand1._xscale = -100;
}
fillammo(temp);
hand1.weaponnumber = temp;
}
function fillammo(temp) {
switch (temp) {
case 1 :
weaponammo = 9;
break;
case 2 :
weaponammo = 24;
break;
case 3 :
weaponammo = 6;
break;
case 4 :
weaponammo = 14;
break;
case 5 :
weaponammo = 1;
break;
case 20 :
weaponammo = 30;
break;
case 21 :
weaponammo = 5;
break;
case 22 :
weaponammo = 10;
break;
case 23 :
weaponammo = 3;
break;
case 24 :
weaponammo = 6;
break;
case 25 :
weaponammo = 5;
break;
case 26 :
weaponammo = 40;
break;
case 27 :
weaponammo = 45;
break;
case 28 :
weaponammo = 30;
break;
case 29 :
weaponammo = 150;
break;
case 30 :
weaponammo = 100;
break;
case 31 :
weaponammo = 10;
break;
case 32 :
weaponammo = 5;
}
if (perknumber == 4) {
weaponammo = weaponammo * 1.33;
}
weaponammo = Math.round(weaponammo);
}
function dropgun() {
if (currentgun <= 10) {
return(undefined);
}
stealthed = false;
umbrellaopen = false;
if (((currentgun == 31) && (weaponammo <= 0)) || ((currentgun == 32) && (weaponammo <= 0))) {
} else {
switch (currentgun) {
case 20 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "ak", 0, 0);
break;
case 21 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "bat", 0, 0);
break;
case 22 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 20, facing, "bow", 0, 0);
break;
case 23 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (18 * facing), (_y + vy) - 20, facing, "homing", 0, 0);
break;
case 24 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (22 * facing), (_y + vy) - 15, facing, "shotgun", 0, 0);
break;
case 25 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (19 * facing), (_y + vy) - 25, facing, "sniper", 0, 0);
break;
case 26 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 15, facing, "mp5k", 0, 0);
break;
case 27 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 17, facing, "uzi", 0, 0);
break;
case 28 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 15, facing, "m4", 0, 0);
break;
case 29 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "mini", 0, 0);
break;
case 30 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "umbrella", 0, 0);
break;
case 31 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (15 * facing), (_y + vy) - 10, facing, "knife", 0, 0);
break;
case 32 :
_root.EVERYTHING.CP("fx_dropgun", (_x + vx) + (20 * facing), (_y + vy) - 15, facing, "bomb", 0, 0);
}
}
switchweapon(defaultgun);
}
switch (_name) {
case "player1" :
NUMBER = 0;
colornumber = _root.p1color;
facenumber = _root.p1face;
hatnumber = _root.p1hat;
defaultgun = _root.p1gun;
shirtnumber = _root.p1shirt;
perknumber = _root.p1perk;
playername = _root.p1name;
playerteam = _root.p1team;
break;
case "player2" :
NUMBER = 1;
colornumber = _root.p2color;
facenumber = _root.p2face;
hatnumber = _root.p2hat;
defaultgun = _root.p2gun;
shirtnumber = _root.p2shirt;
perknumber = _root.p2perk;
playername = _root.p2name;
playerteam = _root.p2team;
break;
case "player3" :
NUMBER = 2;
colornumber = _root.p3color;
facenumber = _root.p3face;
hatnumber = _root.p3hat;
defaultgun = _root.p3gun;
shirtnumber = _root.p3shirt;
perknumber = _root.p3perk;
playername = _root.p3name;
playerteam = _root.p3team;
break;
case "player4" :
NUMBER = 3;
colornumber = _root.p4color;
facenumber = _root.p4face;
hatnumber = _root.p4hat;
defaultgun = _root.p4gun;
shirtnumber = _root.p4shirt;
perknumber = _root.p4perk;
playername = _root.p4name;
playerteam = _root.p4team;
}
head.facecolor.gotoAndStop(colornumber);
head.eyes.gotoAndStop(facenumber);
head.hat.gotoAndStop(hatnumber);
body.gotoAndStop(shirtnumber);
if (playerteam == 1) {
_parent.teamAplayers = _parent.teamAplayers + 1;
}
if (playerteam == 2) {
_parent.teamBplayers = _parent.teamBplayers + 1;
}
movespeed = 0.65;
movespeedmulti = 1;
power = 12;
powermulti = 1;
vx = 0;
vy = 0;
movement = false;
jumpkey = false;
jumpnum = 0;
maxjumps = 2;
if (perknumber == 2) {
maxjumps = 3;
}
downpressed = false;
key2pressed = false;
key3pressed = false;
keydevpressed = false;
facing = 1;
freepass = false;
delaytime = 0;
weapondepth = 1;
hand1.swapDepths(weapondepth);
bob.gotoAndPlay(random(bob._totalframes - 5) + 2);
a = _parent;
headdist = head._y;
headx = head._x;
hand1x = hand1._x;
hand1y = hand1._y;
hand2x = hand2._x;
hand2y = hand2._y;
damagemulti = 1;
currentgun = defaultgun;
fillammo(defaultgun);
switchweapon(defaultgun);
playerhealth = 100;
playerlives = _root.playerlives;
resetjokesvars();
stuntime = 0;
stat_kills = 0;
stat_shots = 0;
stat_hits = 0;
stat_pickups = 0;
stat_deaths = 0;
gothittime = 0;
pointcap = 0;
_xscale = 120;
_yscale = 120;
playertype = 2;
resetplayer();
closed = 9999;
tt = null;
keyup = 0;
keyleft = 0;
keyright = 0;
keydown = 0;
keyshoot = 0;
key2 = 0;
locklr = 0;
noaction = 0;
dualtime = 0;
pppmulti = 1;
if (_root.gamemode >= 10) {
if (_root.cnumber == 1) {
pppmulti = 1.5;
}
if (_root.cnumber == 2) {
pppmulti = 1.5;
}
if (_root.cnumber == 3) {
pppmulti = 1.3;
}
if (_root.cnumber == 4) {
pppmulti = 1.3;
}
if (_root.cnumber == 5) {
pppmulti = 1.3;
}
if (_root.cnumber == 6) {
pppmulti = 1.3;
defaultgun = 23;
switchweapon(defaultgun);
}
if (_root.cnumber == 7) {
pppmulti = 1.3;
defaultgun = 32;
switchweapon(defaultgun);
}
if (_root.cnumber == 8) {
pppmulti = 1;
}
if (_root.cnumber == 9) {
pppmulti = 1;
defaultgun = 22;
switchweapon(defaultgun);
}
if (_root.cnumber == 10) {
pppmulti = 1;
}
}
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (delaytime <= 0) {
_x = (_x + vx);
if ((!_parent.platform.hitTest(a._x + _x, (a._y + _y) - 4, true)) && (!_parent.platform.hitTest(a._x + _x, a._y + _y, true))) {
freepass = false;
}
if (_parent.platform.hitTest(a._x + _x, (a._y + _y) - 4, true) && (!freepass)) {
freepass = true;
}
_y = (_y + vy);
if (!freepass) {
if (_parent.platform.hitTest(a._x + _x, a._y + _y, true) && (vy > 0)) {
temp = 0;
if (vy > 2) {
temp = 1;
}
if (vy > 2) {
body._y = body._y + (vy * 0.7);
}
jumpnum = maxjumps;
_y = (_y - vy);
i = 1;
while (i <= hittestdensity) {
if (_parent.platform.hitTest(a._x + _x, (a._y + _y) + (i * (vy / hittestdensity)), true)) {
_y = (_y + ((vy / hittestdensity) * (i - 1)));
if (temp == 1) {
_root.dropsound();
i = 0;
while (i < 5) {
_parent.CP("fx_jump2", _x, _y + 20, 0, 0, 0, 0);
i++;
}
}
break;
}
i++;
}
vy = 0;
} else if (jumpnum == maxjumps) {
jumpnum = maxjumps - 1;
}
}
minrange = 30;
range = 60;
dualtime = dualtime + 1;
if (dualtime >= 4) {
dualtime = 0;
}
if ((tt2.playertype <= 2) && (_y > 50)) {
wow = Math.abs(currentgun);
if (wow == 1) {
if ((dy2 < 25) && (dy2 > -25)) {
key_shoot(1);
}
if (((Math.abs(dx2) > 500) && (dy2 > -100)) && (dy2 < 300)) {
key_2(1);
}
} else if (wow == 2) {
if (((dy2 < 50) && (dy2 > -50)) && (dualtime == 0)) {
key_shoot(1);
}
if (((dy2 < 50) && (dy2 > -50)) && (dualtime == 2)) {
key_2(1);
}
} else if (wow == 3) {
if (((Math.abs(dx2) > 500) && (dy2 < 20)) && (dy2 > -20)) {
key_2(1);
} else if ((dy2 < 20) && (dy2 > -20)) {
key_shoot(1);
}
} else if (wow == 4) {
if ((dy2 < 25) && (dy2 > -25)) {
key_shoot(1);
}
if (tt._y > 800) {
key_2(15);
}
} else if (wow == 5) {
minrange = 0;
range = 0;
if (_y > 0) {
if ((((dy2 > -30) && (dy2 <= 30)) && (dx2 < 60)) && (dx2 > -60)) {
key_shoot(1);
}
if ((((dy2 > -80) && (dy2 < 0)) && (dx2 < 50)) && (dx2 > -50)) {
key_2(1);
}
}
} else if (wow == 20) {
if ((dy2 < 30) && (dy2 > -30)) {
key_shoot(1);
}
if ((((dy2 > -30) && (dy2 <= 30)) && (dx2 < 50)) && (dx2 > -50)) {
key_2(1);
}
} else if (wow == 21) {
if ((dy2 > 30) || (dy2 < -30)) {
key_2(1);
}
} else if (wow == 22) {
if ((dy2 > 20) || (dy2 < -20)) {
if (weaponammo >= 3) {
key_2(1);
}
if (weaponammo < 3) {
key_shoot(1);
}
}
} else if (wow == 23) {
if (weaponammo >= 2) {
key_shoot(1);
}
if (weaponammo < 2) {
key_2(10);
}
} else if (wow == 24) {
if ((((dy2 > -20) && (dy2 <= 20)) && (dx2 < 50)) && (dx2 > -50)) {
key_2(1);
}
} else if (wow == 25) {
if (!stealthed) {
key_2(1);
}
if (((dy2 > -20) && (dy2 <= 20)) && (hand1._currentframe == 1)) {
key_shoot(1);
}
} else if (wow == 26) {
if (((Math.abs(dx2) > 200) && (dy2 < 20)) && (dy2 > -20)) {
key_2(1);
} else if ((dy2 < 25) && (dy2 > -25)) {
key_shoot(1);
}
} else if (wow == 27) {
if ((dy2 < 30) && (dy2 > -30)) {
key_2(1);
} else if ((dy2 < 20) && (dy2 > -20)) {
key_shoot(1);
}
} else if (wow == 28) {
if ((dy2 < 30) && (dy2 > -30)) {
key_shoot(1);
}
if ((((dy2 > -30) && (dy2 <= 30)) && (dx2 < 60)) && (dx2 > -60)) {
key_2(1);
}
} else if (wow == 29) {
key_2(1);
if ((dy2 > -70) && (dy2 <= 70)) {
key_shoot(1);
}
} else if (wow == 30) {
key_2(1);
if ((((dy2 > -30) && (dy2 <= 30)) && (dx2 < 60)) && (dx2 > -60)) {
key_shoot(1);
}
} else if (wow == 31) {
if (((Math.abs(dx2) > 60) && (dy2 < 20)) && (dy2 > -20)) {
key_shoot(1);
} else if ((dy2 < 20) && (dy2 > -20)) {
key_2(1);
}
} else if (wow == 32) {
if ((dy2 < 60) && (dy2 > -10)) {
key_shoot(1);
}
}
}
tt = null;
tt2 = null;
closed = 9999;
i = 0;
while (i < _parent.activeplayers.length) {
if (_parent.activeplayers[i] == this) {
} else if ((_root.gamemode == 2) && (_parent.activeplayers[i].playerteam == playerteam)) {
} else {
target = a.activeplayers[i];
distance = Math.sqrt(Math.pow(_x - target._x, 2) + Math.pow(_y - target._y, 2));
if (distance < closed) {
closed = distance;
tt = target;
}
}
i++;
}
tt2 = tt;
if (_parent.CRATE) {
target = _parent.CRATE;
distance = Math.sqrt(Math.pow(_x - target._x, 2) + Math.pow(_y - target._y, 2));
if (distance < closed) {
closed = distance;
tt = target;
minrange = 0;
range = 0;
}
}
if (_parent.FLAG) {
if ((_parent.FLAG.player == null) || (_parent.FLAG.player == this)) {
tt = _parent.FLAG;
minrange = 10;
range = 30;
} else {
tt = _parent.FLAG.player;
minrange = 30;
range = 60;
}
}
ht_r = _parent.platform.hitTest((_parent._x + _x) + box_r._x, (_parent._y + _y) + box_r._y, true);
ht_l = _parent.platform.hitTest((_parent._x + _x) + box_l._x, (_parent._y + _y) + box_l._y, true);
ht_rr = _parent.platform.hitTest((_parent._x + _x) + box_rr._x, (_parent._y + _y) + box_rr._y, true);
ht_ll = _parent.platform.hitTest((_parent._x + _x) + box_ll._x, (_parent._y + _y) + box_ll._y, true);
ht_r2 = _parent.platform.hitTest((_parent._x + _x) + box_r2._x, (_parent._y + _y) + box_r2._y, true);
ht_l2 = _parent.platform.hitTest((_parent._x + _x) + box_l2._x, (_parent._y + _y) + box_l2._y, true);
ht_r3 = _parent.platform.hitTest((_parent._x + _x) + box_r3._x, (_parent._y + _y) + box_r3._y, true);
ht_l3 = _parent.platform.hitTest((_parent._x + _x) + box_l3._x, (_parent._y + _y) + box_l3._y, true);
ht_t = _parent.platform.hitTest((_parent._x + _x) + box_t._x, (_parent._y + _y) + box_t._y, true);
ht_tr = _parent.platform.hitTest((_parent._x + _x) + box_tr._x, (_parent._y + _y) + box_tr._y, true);
ht_tl = _parent.platform.hitTest((_parent._x + _x) + box_tl._x, (_parent._y + _y) + box_tl._y, true);
ht_d = _parent.platform.hitTest((_parent._x + _x) + box_d._x, (_parent._y + _y) + box_d._y, true);
ht_dr = _parent.platform.hitTest((_parent._x + _x) + box_dr._x, (_parent._y + _y) + box_dr._y, true);
ht_dl = _parent.platform.hitTest((_parent._x + _x) + box_dl._x, (_parent._y + _y) + box_dl._y, true);
ht_d2 = _parent.platform.hitTest((_parent._x + _x) + box_d2._x, (_parent._y + _y) + box_d2._y, true);
dx = tt._x - _x;
dy = tt._y - _y;
dx2 = dx;
dy2 = dy;
if (_parent.FLAG) {
dx2 = tt2._x - _x;
dy2 = tt2._y - _y;
}
if (((dx >= 0) && (dx < minrange)) && (jumpnum == maxjumps)) {
key_left(1);
}
if (((dx < 0) && (dx >= (-minrange))) && (jumpnum == maxjumps)) {
key_right(1);
}
if (dx > range) {
key_right(1);
}
if (dx <= (-range)) {
key_left(1);
}
if (((((dx > range) && (!ht_r)) && (ht_r3)) && (jumpnum == maxjumps)) && (keyup <= 0)) {
key_right(25);
key_up(1);
}
if (((((dx <= (-range)) && (!ht_l)) && (ht_l3)) && (jumpnum == maxjumps)) && (keyup <= 0)) {
key_left(25);
key_up(1);
}
if (((!ht_r) && (jumpnum == maxjumps)) && (keyup <= 0)) {
keyright = 0;
}
if (((!ht_l) && (jumpnum == maxjumps)) && (keyup <= 0)) {
keyleft = 0;
}
if (dy < -20) {
if (((jumpnum == maxjumps) && (ht_t)) && (keyup <= 0)) {
locklr = 10;
key_up(1);
}
if ((((((!ht_t) && (!ht_tl)) && (!ht_tr)) && (!ht_r2)) && (!ht_l2)) && (jumpnum == maxjumps)) {
if (_x < 500) {
key_right(16);
}
if (_x >= 500) {
key_left(16);
}
}
if ((((jumpnum == maxjumps) && (ht_tl)) && (keyup <= 0)) && (vx < 0)) {
key_up(1);
key_left(15);
}
if ((((jumpnum == maxjumps) && (ht_tr)) && (keyup <= 0)) && (vx > 0)) {
key_up(1);
key_right(15);
}
if (((jumpnum == maxjumps) && (ht_r2)) && (keyup <= 0)) {
key_right(2);
}
if (((jumpnum == maxjumps) && (ht_l2)) && (keyup <= 0)) {
key_left(2);
}
}
if ((((dy > 50) && (tt.vy <= 2)) && (jumpnum == maxjumps)) && (keydown <= 0)) {
if (ht_d2 && (dy > 80)) {
key_down(2);
}
if (ht_dr && (dx > 0)) {
key_down(2);
key_right(15);
}
if (ht_dl && (dx < 0)) {
key_down(2);
key_left(15);
}
if (dy > 150) {
key_down(2);
}
}
if ((!KEY_RIGHT) && (!KEY_LEFT)) {
if ((dx > 0) && (facing == -1)) {
keyright = 1;
}
if ((dx <= 0) && (facing == 1)) {
keyleft = 1;
}
}
if (((!ht_rr) && (vx > 5)) && (jumpnum == maxjumps)) {
key_up(1);
}
if (((!ht_ll) && (vx < -5)) && (jumpnum == maxjumps)) {
key_up(1);
}
if ((((vy > 14) && (_y > (_parent.platform._y + _parent.platform.lowest._y))) && (_x > (_parent.platform._x + _parent.platform.farright._x))) || (((vy > 14) && (_y > (_parent.platform._y + _parent.platform.lowest._y))) && (_x < (_parent.platform._x + _parent.platform.farleft._x)))) {
key_up(1);
}
KEY_UP = false;
KEY_LEFT = false;
KEY_DOWN = false;
KEY_RIGHT = false;
KEY_SHOOT = false;
KEY_2 = false;
actioned = false;
if (keyup > 0) {
KEY_UP = true;
keyup = keyup - 1;
actioned = true;
}
if (keydown > 0) {
KEY_DOWN = true;
keydown = keydown - 1;
actioned = true;
}
if (keyleft > 0) {
KEY_LEFT = true;
keyleft = keyleft - 1;
actioned = true;
}
if (keyright > 0) {
KEY_RIGHT = true;
keyright = keyright - 1;
actioned = true;
}
if (keyshoot > 0) {
KEY_SHOOT = true;
keyshoot = keyshoot - 1;
actioned = true;
}
if (key2 > 0) {
KEY_2 = true;
key2 = key2 - 1;
actioned = true;
}
if (locklr > 0) {
locklr = locklr - 1;
KEY_LEFT = false;
KEY_RIGHT = false;
actioned = true;
}
if ((!actioned) && (tt.vy < 5)) {
noaction = noaction + 1;
if (noaction >= 15) {
keyup = 1;
noaction = 0;
if (dx > 0) {
keyright = 15;
} else {
keyleft = 15;
}
}
} else {
noaction = 0;
}
movement = false;
if ((KEY_UP && (!jumpkey)) && (jumpnum > 0)) {
jumpkey = true;
playeranim.gotoAndPlay(40);
jumpnum = jumpnum - 1;
if (jumpnum == (maxjumps - 1)) {
vy = (-power) * powermulti;
} else if (jumpnum == 1) {
i = 0;
while (i < 5) {
_parent.CP("fx_jump", _x, _y, 0, 0, 0, 0);
i++;
}
vy = ((-power) * 0.8) * powermulti;
} else if (jumpnum == 0) {
i = 0;
while (i < 5) {
_parent.CP("fx_jump", _x, _y, 0, 0, 0, 0);
i++;
}
vy = (((-power) * 0.8) * powermulti) + ((vy > 0) ? (vy * -0.2) : 0);
}
_y = (_y - 1);
}
if (!KEY_UP) {
jumpkey = false;
}
if ((KEY_DOWN && (!freepass)) && (!downpressed)) {
if (_y < (_parent.platform._y + _parent.platform.lowest._y)) {
if (jumpnum >= maxjumps) {
freepass = true;
vy = vy + 1;
_y = (_y + 2);
jumpnum = maxjumps - 1;
}
downpressed = true;
}
} else if ((!KEY_DOWN) && (downpressed)) {
downpressed = false;
}
if (KEY_RIGHT && (!KEY_LEFT)) {
if (!slowdown) {
vx = vx + (movespeed * movespeedmulti);
}
facing = 1;
movement = true;
}
if (KEY_LEFT && (!KEY_RIGHT)) {
if (!slowdown) {
vx = vx - (movespeed * movespeedmulti);
}
facing = -1;
movement = true;
}
if (slowdown) {
slowdown = false;
}
if (KEY_SHOOT && (hand1._currentframe == 1)) {
hand1.play();
}
if (KEY_2 && (hand1.secondready())) {
hand1.gotoAndPlay("secondary");
}
vx = vx * _root.EVERYTHING.friction;
if (Math.abs(vx) < 0.3) {
vx = 0;
}
if (vy < 20) {
vy = vy + _root.EVERYTHING.gravity;
} else {
vy = 20;
}
if (_y > 1200) {
_root.diesound();
respawn();
}
if (hitbyarrow > 0) {
hitbyarrow = hitbyarrow - 1;
}
if (hitbyrocket > 0) {
hitbyrocket = hitbyrocket - 1;
}
if (stuntime > 0) {
movespeedmulti = 0.2;
powermulti = 0.4;
stuntime = stuntime - 1;
if ((stuntime % 7) == 0) {
_parent.CP("fx_stun", _x, _y - 40, 0, 0, 0, 0);
}
if (stuntime == 0) {
movespeedmulti = 1;
powermulti = 1;
}
}
if (shotgunhits > 0) {
shotgunhits = 0;
}
if (jumpnum == maxjumps) {
shade._xscale = shade._xscale + (((100 - (bob.bobposition._height * 10)) - shade._xscale) * 0.25);
} else {
shade._xscale = shade._xscale + ((1 - shade._xscale) * 0.25);
}
shade._yscale = shade._xscale;
if (stealthed) {
_alpha = (_alpha + ((-_alpha) * 0.25));
} else {
_alpha = (_alpha + ((100 - _alpha) * 0.25));
}
if (hittimer > 0) {
hittimer = hittimer - 1;
}
if (playerhealth <= 0) {
explode();
}
if (noexplosion > 0) {
noexplosion = noexplosion - 1;
}
if ((((jumpnum == maxjumps) && (Math.abs(vx) < 1.5)) && (playerhealth > 0)) && (gothittime > 0)) {
gothittime = gothittime - 5;
if (gothittime <= 0) {
gothitby = null;
}
}
head._x = head._x + (((headx * facing) - head._x) / 3);
hand1._x = hand1._x + (((hand1x * facing) - hand1._x) / 2);
if (vy < 1) {
head._y = head._y - (vy / 2.5);
}
if (vy >= 1) {
head._y = head._y - (vy / 2);
}
if (vy < 1) {
body._y = body._y + (vy / 2);
}
head._y = head._y + (((body._y + headdist) - head._y) / 3);
body._y = body._y + (((-bob.bobposition._height) - body._y) / 3);
frame._y = body._y;
hand1._y = hand1._y + (((body._y + hand1y) - hand1._y) / 8);
if ((facing == 1) && (body._xscale != 100)) {
flipeverything();
}
if ((facing == -1) && (body._xscale != -100)) {
flipeverything();
}
}
if (delaytime > 0) {
delaytime = delaytime - 1;
}
}
};
Symbol 1173 MovieClip Frame 1
fps = 0;
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 1184 MovieClip Frame 1
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1189 MovieClip Frame 1
function fresh() {
nametag.text = target.playername;
colornumber = target.colornumber;
shirtnumber = target.shirtnumber;
hatnumber = target.hatnumber;
facenumber = target.facenumber;
player.head.facecolor.gotoAndStop(colornumber);
player.head.eyes.gotoAndStop(facenumber);
player.head.hat.gotoAndStop(hatnumber);
player.hands.gotoAndStop(gunnumber);
player.hands.hand1.handcolor.gotoAndStop(colornumber);
player.hands.hand2.handcolor.gotoAndStop(colornumber);
player.body.gotoAndStop(shirtnumber);
}
stop();
playergun = 3;
originy = _y;
originx = _x;
_y = 575;
timedelay = NUMBER * 5;
time = 0;
panned = false;
shaketime = 0;
prevlife = -100;
target.hudpanel = this;
if ((_root.gamemode == 3) || (_root.gamemode == 14)) {
icon.gotoAndStop(2);
}
freshed = false;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (target) {
if (target._alpha != undefined) {
if (!panned) {
if (time < timedelay) {
time = time + 1;
} else {
_y = (_y + ((originy - _y) / 5));
if ((_y - originy) < 1) {
panned = true;
}
}
} else {
_x = (_x + ((originx - _x) / 3));
_y = (_y + ((originy - _y) / 3));
}
if (shaketime > 0) {
shaketime = shaketime - 2;
_x = (_x + (shaketime * 0.3));
_y = (_y + (shaketime * 0.3));
if (random(2) == 0) {
_x = (_x - (shaketime * 0.6));
}
if (random(2) == 0) {
_y = (_y - (shaketime * 0.6));
}
}
if ((_root.gamemode != 3) && (_root.gamemode != 14)) {
if (prevlife != target.playerlives) {
prevlife = target.playerlives;
livesdisplay.text = prevlife;
}
} else if (prevlife != target.pointcap) {
prevlife = target.pointcap;
livesdisplay.text = prevlife;
}
if (target.playerhealth > 0) {
healthbar._xscale = healthbar._xscale + ((target.playerhealth - healthbar._xscale) / 3);
} else {
healthbar._xscale = healthbar._xscale + ((-healthbar._xscale) / 3);
}
temp = 100 - Math.round(healthbar._xscale);
if (healthbar._currentframe != temp) {
healthbar.gotoAndStop(temp);
}
healthbar.asdf._alpha = 0;
if (target.playerhealth <= 25) {
healthbar.asdf._alpha = 100;
}
} else {
livesdisplay.text = "0";
healthbar._xscale = healthbar._xscale + ((-healthbar._xscale) / 3);
}
if (!freshed) {
freshed = true;
fresh();
}
}
}
};
Symbol 1190 MovieClip Frame 1
function kill(mc) {
mc.swapDepths(1);
removeMovieClip(mc);
delete mc.onEnterFrame;
}
function killfeed(mc1, mc2, style) {
newMC = this.attachMovie("hud_killfeed", "killfeed" + depthi, 10 + depthi);
newMC._y = feedarray.length * 24;
switch (style) {
case 0 :
newMC.phrase = ((mc1 + " killed ") + mc2) + ".";
break;
case 1 :
newMC.phrase = mc2 + " committed suicide.";
}
feedarray[feedarray.length] = newMC;
depthi = depthi + 1;
if (depthi >= 899) {
depthi = 10;
}
}
function removefeed(target) {
i = 0;
while (i < feedarray.length) {
if (feedarray[i] == target) {
feedarray.splice(i, 1);
}
i++;
}
i = 0;
while (i < feedarray.length) {
feedarray[i].targety = feedarray[i].targety - 24;
i++;
}
}
stop();
depthi = 10;
feedarray = new Array();
fps._alpha = 0;
if (_parent.activeplayers.length < 4) {
kill(panel4);
}
if (_parent.activeplayers.length < 3) {
kill(panel3);
}
if (_parent.activeplayers.length < 2) {
kill(panel2);
}
if (_parent.activeplayers.length < 1) {
kill(panel1);
}
if (_parent.activeplayers.length == 1) {
panel1._x = 400;
} else if (_parent.activeplayers.length == 2) {
panel1._x = 290;
panel2._x = 510;
} else if (_parent.activeplayers.length == 3) {
panel1._x = 180;
panel2._x = 400;
panel3._x = 620;
}
if (panel1) {
panel1.target = _parent.activeplayers[0];
}
if (panel2) {
panel2.target = _parent.activeplayers[1];
}
if (panel3) {
panel3.target = _parent.activeplayers[2];
}
if (panel4) {
panel4.target = _parent.activeplayers[3];
}
Symbol 1191 MovieClip [EVERYTHING] Frame 1
function CP(cpn, cpx, cpy, cpA, cpB, cpC, cpD) {
pDepth = pDepth + 1;
if (pDepth >= 4990) {
pDepth = 4000;
}
newMC = this.attachMovie(cpn, "particle" + pDepth, pDepth);
newMC._x = cpx;
newMC._y = cpy;
newMC.valueA = cpA;
newMC.valueB = cpB;
newMC.valueC = cpC;
newMC.valueD = cpD;
latestmc = newMC;
if (cpn == "CRATE") {
newMC._name = "CRATE";
}
}
function endmission() {
if (_root.gamemode == 11) {
hud._alpha = 0;
wint = attachMovie("wintext", "wintext", wintextdepth);
wint.gotoAndStop(11);
}
}
function actuallyend() {
ENDGAME = 1;
}
function resumegame() {
hud._alpha = 100;
if (pausescreen) {
removeMovieClip(pausescreen);
delete pausescreen.onEnterFrame;
}
_root.GAMEPAUSED = false;
}
function shakescreen(temp) {
shaketime = temp;
}
function cameraremove(mc) {
i = 0;
while (i < cameraobjects.length) {
if (cameraobjects[i] == mc) {
cameraobjects.splice(i, 1);
break;
}
i++;
}
}
function deleteplayer(target) {
i = 0;
while (i < activeplayers.length) {
if (activeplayers[i] == target) {
activeplayers.splice(i, 1);
break;
}
i++;
}
cameraremove(target);
target.healthdisplay.kill();
removeMovieClip(target);
delete target.onEnterFrame;
}
_root.GAMEPAUSED = false;
tutorialdepth = 2970;
flagdepth = 2980;
playerdepth = 3000;
pDepth = 4000;
arrowdepth = 7000;
huddepth = 8001;
pausedepth = 8002;
winnerdepth = 80003 /* 0x013883 */;
wintextdepth = 80004 /* 0x013884 */;
hud.swapDepths(huddepth);
_quality = "HIGH";
switch (_root.savedata2.data.def_quality) {
case 1 :
_quality = "LOW";
break;
case 2 :
_quality = "MEDIUM";
break;
case 3 :
_quality = "HIGH";
}
cratearray = new Array();
i = 0;
while (i < 13) {
cratearray[i] = true;
i++;
}
savedata = SharedObject.getLocal("arenagamedata");
mapnumber = (platform._totalframes + 1) - _root.mapnumber;
if (_root.mapnumber == 0) {
mapnumber = random(10) + 1;
}
i = 0;
while (i < 13) {
cratearray[i] = savedata.data.cratearray[i];
i++;
}
crateON = savedata.data.crateON;
powerON = savedata.data.powerON;
if (_root.gotomainmenu) {
_root.p1name = "AI 1";
_root.p1color = random(20) + 1;
_root.p1shirt = random(23) + 1;
_root.p1hat = random(9) + 1;
_root.p1face = random(9) + 1;
_root.p1gun = random(5) + 1;
_root.p1perk = 1;
_root.p1ptype = 2;
_root.p1team = 1;
_root.p2name = "AI 2";
_root.p2color = random(20) + 1;
_root.p2shirt = random(23) + 1;
_root.p2hat = random(9) + 1;
_root.p2face = random(9) + 1;
_root.p2gun = random(5) + 1;
_root.p2perk = 1;
_root.p2ptype = 2;
_root.p2team = 1;
_root.p3ptype = 0;
_root.p4ptype = 0;
mapnumber = random(10) + 1;
MIRRORED = false;
_root.playerlives = 9999;
i = 0;
while (i < 13) {
cratearray[i] = true;
i++;
}
crateON = true;
powerON = true;
_root.gamemode = 1;
}
if (_root.gototest) {
_root.p1name = "kev";
_root.p1color = 1;
_root.p1shirt = 1;
_root.p1hat = 1;
_root.p1face = 1;
_root.p1gun = 4;
_root.p1perk = 1;
_root.p1ptype = 2;
_root.p1team = 1;
_root.p2name = "anho";
_root.p2color = 2;
_root.p2shirt = 2;
_root.p2hat = 2;
_root.p1face = 2;
_root.p2gun = 4;
_root.p2perk = 1;
_root.p2ptype = 1;
_root.p2team = 2;
_root.p3ptype = 0;
_root.p4ptype = 0;
mapnumber = random(10) + 1;
MIRRORED = false;
_root.playerlives = 10;
i = 0;
while (i < 13) {
cratearray[i] = true;
i++;
}
crateON = true;
powerON = true;
_root.gamemode = 3;
_root.totalpoints = 5;
}
if (_root.gamemode == 3) {
_root.playerlives = 99999 /* 0x01869F */;
}
if (_root.gamemode >= 10) {
crateON = true;
i = 0;
while (i < 13) {
cratearray[i] = true;
i++;
}
switch (_root.cnumber) {
case 1 :
mapnumber = 10;
break;
case 2 :
mapnumber = 5;
break;
case 3 :
mapnumber = 4;
break;
case 4 :
mapnumber = 7;
break;
case 5 :
mapnumber = 9;
break;
case 6 :
mapnumber = 8;
break;
case 7 :
mapnumber = 3;
break;
case 8 :
mapnumber = 6;
break;
case 9 :
mapnumber = 1;
crateON = false;
break;
case 10 :
mapnumber = 2;
crateON = false;
}
}
TUTORIAL.swapDepths(tutorialdepth);
removeMovieClip(TUTORIAL);
delete TUTORIAL.onEnterFrame;
if (_root.gamemode == 11) {
mapnumber = 10;
crateON = false;
this.attachMovie("TUTORIAL", "TUTORIAL", tutorialdepth);
}
player1.swapDepths(3001);
removeMovieClip(player1);
delete player1.onEnterFrame;
player2.swapDepths(3001);
removeMovieClip(player2);
delete player1.onEnterFrame;
teamAplayers = 0;
teamBplayers = 0;
if (_root.p1ptype == 1) {
this.attachMovie("PLAYER_FULL", "player1", 3001);
}
if (_root.p2ptype == 1) {
this.attachMovie("PLAYER_FULL", "player2", 3002);
}
if (_root.p3ptype == 1) {
this.attachMovie("PLAYER_FULL", "player3", 3003);
}
if (_root.p4ptype == 1) {
this.attachMovie("PLAYER_FULL", "player4", 3004);
}
if (_root.p1ptype == 2) {
this.attachMovie("PLAYER_AI", "player1", 3001);
}
if (_root.p2ptype == 2) {
this.attachMovie("PLAYER_AI", "player2", 3002);
}
if (_root.p3ptype == 2) {
this.attachMovie("PLAYER_AI", "player3", 3003);
}
if (_root.p4ptype == 2) {
this.attachMovie("PLAYER_AI", "player4", 3004);
}
activeplayers = new Array();
if (player1) {
activeplayers[activeplayers.length] = player1;
}
if (player2) {
activeplayers[activeplayers.length] = player2;
}
if (player3) {
activeplayers[activeplayers.length] = player3;
}
if (player4) {
activeplayers[activeplayers.length] = player4;
}
if (player1) {
player1.swapDepths(3001);
}
if (player2) {
player2.swapDepths(3002);
}
if (player3) {
player3.swapDepths(3003);
}
if (player4) {
player4.swapDepths(3004);
}
p1_color = 16750848 /* 0xFF9900 */;
p2_color = 26367;
p3_color = 39168;
p4_color = 6750207 /* 0x66FFFF */;
i = 0;
while (i < activeplayers.length) {
newMC = this.attachMovie("player_arrow", "arrow" + i, arrowdepth + i);
newMC.target = activeplayers[i];
newMC = this.attachMovie("player_healthdisplay", "healthdisplay" + i, 3100 + i);
newMC.target = activeplayers[i];
i++;
}
_root.pgsdata = new Array();
i = 0;
while (i < 4) {
_root.pgsdata[i] = new Array();
j = 0;
while (j < 10) {
_root.pgsdata[i][j] = 0;
if ((i == 0) && (!player1)) {
_root.pgsdata[i][j] = -1;
}
if ((i == 1) && (!player2)) {
_root.pgsdata[i][j] = -1;
}
if ((i == 2) && (!player3)) {
_root.pgsdata[i][j] = -1;
}
if ((i == 3) && (!player4)) {
_root.pgsdata[i][j] = -1;
}
j++;
}
i++;
}
_root.pgsdata[0][0] = _root.p1name;
_root.pgsdata[1][0] = _root.p2name;
_root.pgsdata[2][0] = _root.p3name;
_root.pgsdata[3][0] = _root.p4name;
scene1.gotoAndStop(mapnumber);
scene2.gotoAndStop(mapnumber);
scene3.gotoAndStop(mapnumber);
platform.gotoAndStop(mapnumber);
mirroroffset = 0;
MIRRORED = _root.MIRRORED;
if (MIRRORED) {
scene1._xscale = scene1._xscale * -1;
scene2._xscale = scene2._xscale * -1;
scene3._xscale = scene3._xscale * -1;
scene4._xscale = scene4._xscale * -1;
platform._xscale = platform._xscale * -1;
mirroroffset = 1000;
}
scene1._x = ((-_x) * 0.8) + mirroroffset;
scene1._y = (-_y) * 0.8;
scene2._x = ((-_x) * 0.4) + mirroroffset;
scene2._y = (-_y) * 0.4;
platform._x = mirroroffset;
scene3._x = mirroroffset;
scene4._x = mirroroffset + 10;
gravity = 0.9;
friction = 0.91;
GAMEPAUSED = eval("FALSE");
escdown = false;
ENDGAME = 0;
_root.deleteeverything = false;
maxleft = 0;
maxright = 1000;
maxhigh = 0;
maxlow = 500;
shaketime = 0;
cameraobjects = new Array();
if (player1) {
cameraobjects[cameraobjects.length] = player1;
}
if (player2) {
cameraobjects[cameraobjects.length] = player2;
}
if (player3) {
cameraobjects[cameraobjects.length] = player3;
}
if (player4) {
cameraobjects[cameraobjects.length] = player4;
}
cratetimer = 0;
pointtimer = 0;
lastflag = -1;
winner = null;
wintime = 0;
wintimer = 0;
_root.gotocampaign = false;
this.onEnterFrame = function () {
if (!_root.GAMEPAUSED) {
if (crateON) {
cratetimer = cratetimer + 1;
}
if (cratetimer >= 350) {
do {
cratex = -50 + random(1000);
cratey = -50 + random(660);
} while (!platform.hitTest(_x + cratex, _y + cratey, true));
i = 1;
while (i < (i + 1)) {
if (!platform.hitTest(_x + cratex, (_y + cratey) - (i * 2), true)) {
cratey = cratey - (i * 2);
cratey = cratey + 2;
break;
}
i++;
}
CP("CRATE", cratex, cratey, 0, 0, 0, 0);
cratetimer = 0;
}
if ((_root.gamemode == 3) || (_root.gamemode == 14)) {
if (!FLAG) {
pointtimer = pointtimer + 1;
}
if (pointtimer >= 50) {
pointtimer = 0;
do {
newpos = random(5);
} while (newpos == lastflag);
lastflag = newpos;
switch (newpos) {
case 0 :
targetloc = platform.flag1;
break;
case 1 :
targetloc = platform.flag2;
break;
case 2 :
targetloc = platform.flag3;
break;
case 3 :
targetloc = platform.flag4;
break;
case 4 :
targetloc = platform.flag5;
}
newflag = this.attachMovie("FLAG", "FLAG", flagdepth);
newflag._x = platform._x + targetloc._x;
newflag._y = (platform._y + targetloc._y) - 5;
}
}
maxleft = maxleft + ((cameraobjects[0]._x - maxleft) / 3);
i = 1;
while (i < cameraobjects.length) {
if (cameraobjects[i]._x < maxleft) {
maxleft = cameraobjects[i]._x;
}
i++;
}
maxright = maxright + ((cameraobjects[0]._x - maxright) / 3);
i = 1;
while (i < cameraobjects.length) {
if (cameraobjects[i]._x > maxright) {
maxright = cameraobjects[i]._x;
}
i++;
}
if (maxleft < 80) {
maxleft = 80;
}
if (maxright < 80) {
maxright = 80;
}
if (maxleft > 920) {
maxleft = 920;
}
if (maxright > 920) {
maxright = 920;
}
if (cameraobjects.length == 0) {
maxleft = 0;
maxright = 1000;
}
_x = (_x + (((((maxleft + maxright) / -2) + 500) - _x) / 10));
_x = Math.round(_x);
maxhigh = maxhigh + ((cameraobjects[0]._y - maxhigh) / 3);
i = 1;
while (i < cameraobjects.length) {
if (cameraobjects[i]._y < maxhigh) {
maxhigh = cameraobjects[i]._y;
}
i++;
}
maxlow = maxlow + ((cameraobjects[0]._y - maxlow) / 3);
i = 1;
while (i < cameraobjects.length) {
if (cameraobjects[i]._y > maxlow) {
maxlow = cameraobjects[i]._y;
}
i++;
}
if (maxhigh < 120) {
maxhigh = 120;
}
if (maxlow < 120) {
maxlow = 120;
}
if (maxlow > 420) {
maxlow = 420;
}
if (maxhigh > 500) {
maxhigh = 500;
}
if (cameraobjects.length == 0) {
maxhigh = 0;
maxlow = 500;
}
_y = (_y + (((((maxhigh + maxlow) / -2) + 250) - _y) / 10));
_y = Math.round(_y);
scene1._x = ((-_x) * 0.8) + mirroroffset;
scene1._y = (-_y) * 0.8;
scene2._x = ((-_x) * 0.4) + mirroroffset;
scene2._y = (-_y) * 0.4;
if (shaketime > 0) {
shaketime = shaketime - 1;
_x = (_x + (shaketime * 0.5));
_y = (_y + (shaketime * 0.5));
if (random(2) == 0) {
_x = (_x - shaketime);
}
if (random(2) == 0) {
_y = (_y - shaketime);
}
}
hud._x = -_x;
hud._y = -_y;
}
if ((_root.gamemode == 1) || (_root.gamemode == 12)) {
if (activeplayers.length <= 1) {
wintimer = wintimer + 1;
if (wintimer >= 30) {
if (!wintext) {
wint = attachMovie("wintext", "wintext", wintextdepth);
if (_root.gamemode == 1) {
wint.gotoAndStop(1);
}
if ((_root.gamemode == 12) && (activeplayers[0]._name == "player1")) {
wint.gotoAndStop(12);
}
if ((_root.gamemode == 12) && (activeplayers[0]._name != "player1")) {
wint.gotoAndStop(13);
}
}
_root.GAMEPAUSED = true;
winner = activeplayers[0];
winner._xscale = winner._xscale + ((1000 - winner._xscale) * 0.1);
winner._yscale = winner._xscale;
winner._x = winner._x + (((hud._x + 500) - winner._x) * 0.1);
winner._y = winner._y + (((hud._y + 400) - winner._y) * 0.1);
winner.head._y = winner.body._y - 21.7;
winner.hand1._y = winner.body._y + winner.hand1y;
winner.healthdisplay._alpha = 0;
if (hud._alpha > 0) {
hud._alpha = hud._alpha - 10;
}
winner.swapDepths(winnerdepth);
wintime = wintime + 1;
if (wintime == 70) {
ENDGAME = 1;
}
}
}
} else if (_root.gamemode == 2) {
if ((teamAplayers <= 0) || (teamBplayers <= 0)) {
wintimer = wintimer + 1;
if (wintimer >= 30) {
_root.GAMEPAUSED = true;
winningteam = ((teamAplayers <= 0) ? 2 : 1);
if (!wintext) {
wint = attachMovie("wintext", "wintext", wintextdepth);
wint.gotoAndStop(1 + winningteam);
}
wintime = wintime + 1;
if (wintime == 70) {
ENDGAME = 1;
}
}
}
} else if ((_root.gamemode == 3) || (_root.gamemode == 14)) {
i = 0;
while (i < activeplayers.length) {
if (activeplayers[i].pointcap >= _root.totalpoints) {
wintimer = wintimer + 1;
if (wintimer >= 30) {
if (!wintext) {
wint = attachMovie("wintext", "wintext", wintextdepth);
if (_root.gamemode == 3) {
wint.gotoAndStop(1);
}
if ((_root.gamemode == 14) && (activeplayers[i]._name == "player1")) {
wint.gotoAndStop(12);
}
if ((_root.gamemode == 14) && (activeplayers[i]._name != "player1")) {
wint.gotoAndStop(13);
}
}
_root.GAMEPAUSED = true;
winner = activeplayers[i];
winner._xscale = winner._xscale + ((1000 - winner._xscale) * 0.1);
winner._yscale = winner._xscale;
winner._x = winner._x + (((hud._x + 500) - winner._x) * 0.1);
winner._y = winner._y + (((hud._y + 400) - winner._y) * 0.1);
winner.head._y = winner.body._y - 21.7;
winner.hand1._y = winner.body._y + winner.hand1y;
winner.healthdisplay._alpha = 0;
if (hud._alpha > 0) {
hud._alpha = hud._alpha - 10;
}
winner.swapDepths(winnerdepth);
wintime = wintime + 1;
if (wintime == 70) {
ENDGAME = 1;
}
break;
}
}
i++;
}
}
if (ENDGAME > 0) {
ENDGAME = ENDGAME + 1;
}
if (ENDGAME == 3) {
player1.updatepgs();
player2.updatepgs();
player3.updatepgs();
player4.updatepgs();
newmc = _root.attachMovie("fadeaway", "fadeaway", _root.depth_fade);
newmc.targetframe = 9;
if (_root.gamemode >= 10) {
newmc.targetframe = 7;
if (_root.gamemode > 11) {
_root.gotocampaign = true;
}
}
}
if ((!_root.gotomainmenu) && (winner == null)) {
if (Key.isDown(27) && (!escdown)) {
escdown = true;
if (!_root.GAMEPAUSED) {
_root.GAMEPAUSED = true;
this.attachMovie("pausescreen", "pausescreen", pausedepth);
} else if (_root.GAMEPAUSED) {
resumegame();
}
} else if ((!Key.isDown(27)) && (escdown)) {
escdown = false;
}
}
};