Frame 1
if (getBytesLoaded() == getBytesTotal()) {
loaded = getBytesLoaded();
gotoAndPlay (3);
} else {
loading._xscale = (getBytesLoaded() / getBytesTotal()) * 100;
outputFrame = getBytesTotal();
loaded = getBytesLoaded();
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
stop();
Instance of Symbol 46 MovieClip "chamber" in Frame 4
onClipEvent (enterFrame) {
if (_root.gameStatus2 == 1) {
this.gotoAndPlay(31);
}
}
Frame 5
stop();
Instance of Symbol 46 MovieClip "chamber" in Frame 5
onClipEvent (enterFrame) {
if (_root.gameStatus2 == 1) {
this.gotoAndPlay(31);
}
}
Frame 6
stop();
function pickScene() {
gotoAndStop (7);
}
stop();
var textPos = 0;
Instance of Symbol 60 MovieClip in Frame 6
onClipEvent (enterFrame) {
this._y = this._y - 2;
_root.textPos = this._y;
if (-450 >= _root.textPos) {
_root.pickScene();
}
}
Frame 8
function gameOver() {
_root.gameStatus2 = 1;
gotoAndPlay (4);
}
function function_Shot(ShootPointDist, UnitYpos, UnitXpos, UnitAng, FooAry, RndSound, Unit) {
ShootPointDist = ShootPointDist;
ShootPointAng = UnitAng + 25;
ShootPointDistY = _root.function_MoveSpeedY(ShootPointAng, ShootPointDist);
ShootPointDistX = _root.function_MoveSpeedX(ShootPointAng, ShootPointDist);
ShootPointY = UnitYpos + ShootPointDistY;
ShootPointX = UnitXpos + ShootPointDistX;
if (_root.gunType == "handGun") {
if (_root.handGunBullet1.alive == 0) {
with (_root.handGunBullet1) {
xv = 15 * Math.sin((Math.PI/180) * UnitAng);
yv = -15 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.handGunBullet1, _x , ShootPointX);
setProperty(_root.handGunBullet1, _y , ShootPointY);
setProperty(_root.handGunBullet1, _rotation , UnitAng + 180);
eval (Unit[0].Link + ".torso").gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamber.duplicateMovieClip(("chamber" + b) + 11000, b + 11000);
setProperty(("_root.chamber" + b) + 11000, _xscale , RndSound);
RndSound2 = random(25);
setProperty(("_root.chamber" + b) + 11000, _rotation , (UnitAng + RndSound2) - 15);
setProperty(("_root.chamber" + b) + 11000, _y , Unit[0].Ypos);
setProperty(("_root.chamber" + b) + 11000, _x , Unit[0].Xpos);
}
}
BulletYpos = ShootPointY;
BulletXpos = ShootPointX;
BulletSpeedY = _root.function_MoveSpeedY(UnitAng, 8);
BulletSpeedX = _root.function_MoveSpeedX(UnitAng, 8);
BulletAng = Trupp[i].TorsoAng;
do {
BulletYpos = BulletYpos + BulletspeedY;
BulletXpos = BulletXpos + BulletspeedX;
if (_root.objekt2.hitTest(BulletXpos, BulletYpos, true)) {
do {
if (eval (FooAry[foonr].Link).hitTest(BulletXpos, BulletYpos, true)) {
if (FooAry[foonr].Health eq 1) {
eval (FooAry[foonr].Link).removeMovieClip();
eval (FooAry[foonr].LinkGPX).removeMovieClip();
} else {
FooAry[foonr].Health--;
trace(FooAry[foonr].Health);
}
}
foonr++;
} while (foonr < _root.FooNumbers);
foonr = 0;
if (b < maxBulletHoles) {
b++;
} else {
b = 0;
}
}
Bulletlife++;
} while (bulletlife < 1000);
Bulletlife = 0;
}
function function_AimAng(y1d, x1d, x1, x2) {
result = (180 * Math.atan(y1d / x1d)) / Math.PI;
if (x2 < x1) {
result = result + 90;
}
if (x1 < x2) {
result = result - 90;
}
if (result < 0) {
result = 360 + result;
} else {
result = result;
}
return(result);
}
function function_MoveSpeedY(v1, speed) {
radian = (Math.PI/180) * v1;
cos = Math.cos(radian);
result = -(speed * cos);
return(result);
}
function function_MoveSpeedX(v1, speed) {
radian = (Math.PI/180) * v1;
sin = Math.sin(radian);
result = speed * sin;
return(result);
}
function function_Distans(y1, x1, y2, x2) {
result = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
return(result);
}
function function_DifVinkel(v1, v2) {
result = v1 - v2;
if (180 < result) {
result = result - 360;
} else if (result < -180) {
result = result + 360;
} else if ((-180 < result) and (result < 180)) {
result = result;
}
return(result);
}
function function_UnitPlace(Unit) {
setProperty(eval (Unit.Link + ".legs"), _rotation , Unit.WalkAng);
setProperty(eval (Unit.Link + ".torso"), _rotation , Unit.TorsoAng);
setProperty(eval (Unit.Link), _x , Unit.Xpos);
setProperty(eval (Unit.Link), _y , Unit.Ypos);
setProperty("_root.Marker", _x , Unit.Xpos);
setProperty("_root.Marker", _y , Unit.Ypos);
}
function function_Walkrestrictions(Unit) {
WalkStop = 10;
WalkPoint_Up = Unit.Ypos - WalkStop;
WalkPoint_Down = Unit.Ypos + WalkStop;
WalkPoint_Left = Unit.Xpos - WalkStop;
WalkPoint_Right = Unit.Xpos + WalkStop;
if (Unit.ywalkspeed < 0) {
if (_root.objekt2.hitTest(Unit.Xpos, WalkPoint_Up, true)) {
Unit.ywalkspeed = 0;
} else {
Unit.ywalkspeed = Unit.ywalkspeed;
}
}
if (0 < Unit.ywalkspeed) {
if (_root.objekt2.hitTest(Unit.Xpos, WalkPoint_Down, true)) {
Unit.ywalkspeed = 0;
} else {
Unit.ywalkspeed = Unit.ywalkspeed;
}
}
if (Unit.xwalkspeed < 0) {
if (_root.objekt2.hitTest(WalkPoint_Left, Unit.Ypos, true)) {
Unit.xwalkspeed = 0;
} else {
Unit.xwalkspeed = Unit.xwalkspeed;
}
}
if (0 < Unit.xwalkspeed) {
if (_root.objekt2.hitTest(WalkPoint_Right, Unit.Ypos, true)) {
Unit.xwalkspeed = 0;
} else {
Unit.xwalkspeed = Unit.xwalkspeed;
}
}
return(Unit);
}
stop();
fscommand ("allowscale", false);
clearInterval(delIntervalRight);
clearInterval(delIntervalLeft);
clearInterval(delIntervalTop);
clearInterval(delIntervalBottom);
var gameStatus2 = 0;
var moveInvUp = 0;
var upgrade = 0;
var aimAngTest = 0;
var walkRate = 0;
var screenSpeed = 2;
var playerWalkSpeed = 2;
var gunType = "handGun";
var masterX = 0;
var masterY = 0;
var zombNum = 0;
var targetx = 0;
var targety = 0;
var yPlacement = 0;
var killMeterVar = 0;
_root.killMeter.text = _root.killMeterVar;
delIntervalRight = setInterval(zombieMakerRight, _root.zombieMakerSpeed);
delIntervalLeft = setInterval(zombieMakerLeft, _root.zombieMakerSpeed);
delIntervalTop = setInterval(zombieMakerTop, _root.zombieMakerSpeed);
delIntervalBottom = setInterval(zombieMakerBottom, zombieMakerSpeed);
BulletLife = 0;
maxBulletHoles = 30;
sl = maxbulletHoles;
Instance of Symbol 46 MovieClip "chamber" in Frame 8
onClipEvent (enterFrame) {
if (_root.gameStatus2 == 1) {
this.gotoAndPlay(31);
}
}
Instance of Symbol 138 MovieClip "player0" in Frame 8
onClipEvent (enterFrame) {
_root.masterX = this._x;
_root.masterY = this._y;
_root.difx = this._x - _root.move._x;
_root.targetx = this._x;
_root.dify = this._y - _root.move._y;
_root.targety = this._y;
_root.done = eval("False");
}
Instance of Symbol 140 MovieClip "MC" in Frame 8
onClipEvent (load) {
IP = 1;
setProperty("_root.infoPlate", _visible , false);
TorsoSpeed = 8;
LegSpeed = 8;
ShootSpeed = 10;
TruppNumbers = 1;
Soldier0 = {Link:"_root.player0", TorsoAng:0, WalkAng:0, Xpos:300, Ypos:250, Ywalkspeed:0, Xwalkspeed:0, Walkspeed:0, Reload:90};
Trupp = new Array();
Trupp[0] = Soldier0;
do {
_root.function_UnitPlace(Trupp[i]);
i++;
} while (i < Truppnumbers);
i = 0;
}
onClipEvent (enterFrame) {
Mil = Math.round(getTimer() / 1000);
if (FrateStart eq true) {
Frate = 1;
MilTemp = Math.round(getTimer() / 1000);
FrateStart = false;
}
if ((Mil - 2) < MilTemp) {
Frate++;
} else {
FrateFinal = Frate / 2;
FrateStart = true;
}
}
onClipEvent (enterFrame) {
SightXpos = _root._xmouse;
SightYpos = _root._ymouse;
SightXdist = SightXpos - Trupp[i].Xpos;
SightYdist = SightYpos - Trupp[i].Ypos;
SightDist = _root.function_Distans(Trupp[i].Ypos, Trupp[i].Xpos, SightYpos, SightXpos);
if (Walkstate eq -1) {
walk = true;
eval (Trupp[i].Link + ".legs").gotoAndStop("WALK");
Trupp[i].Walkspeed = -0.7;
} else if (Walkstate eq 0) {
if (walk eq true) {
if (movieframecount < 30) {
movieframecount = movieframecount + 1;
eval (Trupp[i].Link + ".legs").gotoAndStop("STAND");
Trupp[i].Walkspeed = 0;
} else {
eval (Trupp[i].Link + ".legs").gotoAndStop("STAND");
Trupp[i].Walkspeed = 0;
movieframecount = 0;
walk = false;
}
}
} else if (Walkstate eq 1) {
walk = true;
if (movieframecount eq 30) {
movieframecount = 0;
}
movieframecount = movieframecount + 1;
eval (Trupp[i].Link + ".legs").gotoAndStop("WALK");
Trupp[i].Walkspeed = _root.screenSpeed;
} else if (Walkstate eq 2) {
eval (Trupp[i].Link + ".legs").gotoAndStop("RUN");
Trupp[i].Walkspeed = 1.7;
} else if (Walkstate eq 3) {
eval (Trupp[i].Link + ".legs").gotoAndStop("JUMP");
Walkspeed = 1.5;
}
Trupp[i].Ypos = Trupp[i].Ypos + Trupp[i].Ywalkspeed;
Trupp[i].Xpos = Trupp[i].Xpos + Trupp[i].Xwalkspeed;
Trupp[i].Ywalkspeed = _root.function_MoveSpeedY(Trupp[i].WalkAng, Trupp[i].WalkSpeed);
Trupp[i].Xwalkspeed = _root.function_MoveSpeedX(Trupp[i].WalkAng, Trupp[i].WalkSpeed);
Trupp[i] = _root.function_Walkrestrictions(Trupp[i]);
AimAng = _root.function_AimAng(SightYdist, SightXdist, SightXpos, Trupp[i].Xpos);
PlayerAimAng = _root.function_DifVinkel(Trupp[i].TorsoAng, AimAng);
_root.aimAngTest = PlayerAimAng;
PlayerVridAng = _root.function_DifVinkel(Trupp[i].WalkAng, Trupp[i].TorsoAng);
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if (Key.isDown(16)) {
Walkstate = 2;
_root.walkRate = 2;
} else {
Walkstate = 1;
_root.walkRate = 1;
}
} else if (!Key.isDown(87)) {
Walkstate = 0;
_root.walkRate = 0;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
Walkstate = -1;
_root.walkRate = -1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
if (0 >= Trupp[i].WalkAng) {
Trupp[i].WalkAng = 352;
Trupp[i].TorsoAng = 352;
} else {
Trupp[i].WalkAng = Trupp[i].WalkAng - LegSpeed;
Trupp[i].TorsoAng = Trupp[i].WalkAng;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (Trupp[i].WalkAng >= 360) {
Trupp[i].WalkAng = 8;
Trupp[i].TorsoAng = 8;
} else {
Trupp[i].WalkAng = Trupp[i].WalkAng + LegSpeed;
Trupp[i].TorsoAng = Trupp[i].WalkAng;
}
}
}
onClipEvent (enterFrame) {
_root.function_UnitPlace(Trupp[i]);
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (Trupp[i].Reload eq 90) {
Wait = ShootSpeed;
Shooting = true;
}
} else {
Shooting = false;
}
}
onClipEvent (enterFrame) {
if (Shooting eq true) {
if (ShootSpeed < Wait) {
Wait = 0;
} else {
Wait++;
}
if (ShootSpeed < Wait) {
_root.function_Shot(26, Trupp[i].Ypos, Trupp[i].Xpos, Trupp[i].TorsoAng, FooAry, RndSound, Trupp);
}
}
}
onClipEvent (enterFrame) {
Link = Trupp[i].Link;
Xpos = Math.round(Trupp[i].Xpos);
Ypos = Math.round(Trupp[i].Ypos);
WalkAng = Math.round(Trupp[i].WalkAng);
TorsoAng = WalkAng;
}
Instance of Symbol 156 MovieClip "shot1" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot2" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.objekt2)) {
alive = 0;
setProperty(this, _visible , false);
}
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot3" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.objekt2)) {
alive = 0;
setProperty(this, _visible , false);
}
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot4" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.objekt2)) {
alive = 0;
setProperty(this, _visible , false);
}
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot5" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.objekt2)) {
alive = 0;
setProperty(this, _visible , false);
}
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot6" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.objekt2)) {
alive = 0;
setProperty(this, _visible , false);
}
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot7" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.objekt2)) {
alive = 0;
setProperty(this, _visible , false);
}
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot8" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 360;
ymax = 325;
ymin = 140;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.objekt2)) {
alive = 0;
setProperty(this, _visible , false);
}
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet1" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet2" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet3" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet4" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet5" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet6" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet7" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet8" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "handGunBullet1e32dwdwe" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 158 MovieClip "handGunBullet1" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 158 MovieClip "handGunBullet1" in Frame 8
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 450;
xmin = 300;
ymax = 200;
ymin = 400;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Frame 9
function experience() {
_root.expVar++;
}
function function_Shot(ShootPointDist, UnitYpos, UnitXpos, UnitAng, FooAry, RndSound, Unit) {
ShootPointAng = UnitAng + 25;
ShootPointDistY = _root.function_MoveSpeedY(ShootPointAng, ShootPointDist);
ShootPointDistX = _root.function_MoveSpeedX(ShootPointAng, ShootPointDist);
ShootPointY = UnitYpos + ShootPointDistY;
ShootPointX = UnitXpos + ShootPointDistX;
if (_root.chamberShot >= 30) {
_root.chamberShot = 0;
}
var _local2 = "regularGun";
switch (_root.gunType) {
case _local2 :
_root.funcRegularGun(UnitAng, ShootPointX, ShootPointY);
return;
case "handGun" :
_root.funcHandGun(UnitAng, ShootPointX, ShootPointY);
return;
case "machineGun" :
_root.funcMachineGun(UnitAng, ShootPointX, ShootPointY);
return;
case "shotgunGun" :
_root.funcShotgunGun(UnitAng, ShootPointX, ShootPointY);
}
}
function function_MoveSpeedY(v1, speed) {
radian = (Math.PI/180) * v1;
cos = Math.cos(radian);
result = -(speed * cos);
return(result);
}
function function_MoveSpeedX(v1, speed) {
radian = (Math.PI/180) * v1;
sin = Math.sin(radian);
result = speed * sin;
return(result);
}
function gameOver() {
_root.gameStatus = 1;
clearInterval(IntervalcntrlLevel1);
clearInterval(IntervalcntrlLevel2);
clearInterval(IntervalcntrlLevel3);
clearInterval(IntervalcntrlLevel4);
gotoAndStop (10);
}
function gameOver1() {
_root.gameStatus = 1;
_root.gameStatus = 0;
}
function zombieMakerRight() {
zombieRandomNum = Math.floor(Math.random() * 6) + 1;
if (zombieRandomNum == 1) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.move.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 600);
_root.zombNum++;
}
if (zombieRandomNum == 2) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.kidZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 600);
_root.zombNum++;
}
if (zombieRandomNum == 3) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.girlZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 600);
_root.zombNum++;
}
if (zombieRandomNum == 4) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.bigZombieMan.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 600);
_root.zombNum++;
}
if (zombieRandomNum == 5) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.girlHairZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 600);
_root.zombNum++;
}
if (zombieRandomNum == 6) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.businessWomenZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 600);
_root.zombNum++;
}
}
function zombieMakerLeft() {
zombieRandomNum1 = Math.floor(Math.random() * 6) + 1;
if (zombieRandomNum1 == 1) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.move.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 0);
_root.zombNum++;
}
if (zombieRandomNum1 == 2) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.kidZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 0);
_root.zombNum++;
}
if (zombieRandomNum1 == 3) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.girlZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 0);
_root.zombNum++;
}
if (zombieRandomNum1 == 4) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.bigZombieMan.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 0);
_root.zombNum++;
}
if (zombieRandomNum1 == 5) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.girlHairZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 0);
_root.zombNum++;
}
if (zombieRandomNum1 == 6) {
yPlacement = Math.round(Math.random() * 325) + 25;
_root.businessWomenZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , yPlacement);
setProperty("_root.move" + _root.zombNum, _x , 0);
_root.zombNum++;
}
}
function zombieMakerTop() {
zombieRandomNum2 = Math.floor(Math.random() * 6) + 1;
if (zombieRandomNum2 == 1) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.move.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 0);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum2 == 2) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.kidZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 0);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum2 == 3) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.girlZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 0);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum2 == 4) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.bigZombieMan.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 0);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum2 == 5) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.girlHairZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 0);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum2 == 6) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.businessWomenZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 0);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
}
function zombieMakerBottom() {
zombieRandomNum3 = Math.floor(Math.random() * 6) + 1;
if (zombieRandomNum3 == 1) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.move.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 450);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum3 == 2) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.kidZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 450);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum3 == 3) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.girlZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 450);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum3 == 4) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.bigZombieMan.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 450);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum3 == 5) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.girlHairZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 450);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
if (zombieRandomNum3 == 6) {
yPlacement = Math.round(Math.random() * 525) + 25;
_root.businessWomenZombie.duplicateMovieClip("move" + _root.zombNum, _root.zombNum);
setProperty("_root.move" + _root.zombNum, _y , 450);
setProperty("_root.move" + _root.zombNum, _x , yPlacement);
_root.zombNum++;
}
}
function function_UnitPlace(Unit) {
setProperty(eval (Unit.Link + ".legs"), _rotation , Unit.WalkAng);
setProperty(eval (Unit.Link + ".torso"), _rotation , Unit.TorsoAng);
setProperty(eval (Unit.Link), _x , Unit.Xpos);
setProperty(eval (Unit.Link), _y , Unit.Ypos);
setProperty("_root.Marker", _x , Unit.Xpos);
setProperty("_root.Marker", _y , Unit.Ypos);
}
function function_Walkrestrictions(Unit) {
WalkStop = 10;
WalkPoint_Up = Unit.Ypos - WalkStop;
WalkPoint_Down = Unit.Ypos + WalkStop;
WalkPoint_Left = Unit.Xpos - WalkStop;
WalkPoint_Right = Unit.Xpos + WalkStop;
if (Unit.ywalkspeed < 0) {
if (_root.Objekt.hitTest(Unit.Xpos, WalkPoint_Up, true)) {
Unit.ywalkspeed = 0;
} else {
Unit.ywalkspeed = Unit.ywalkspeed;
}
}
if (0 < Unit.ywalkspeed) {
if (_root.Objekt.hitTest(Unit.Xpos, WalkPoint_Down, true)) {
Unit.ywalkspeed = 0;
} else {
Unit.ywalkspeed = Unit.ywalkspeed;
}
}
if (Unit.xwalkspeed < 0) {
if (_root.Objekt.hitTest(WalkPoint_Left, Unit.Ypos, true)) {
Unit.xwalkspeed = 0;
} else {
Unit.xwalkspeed = Unit.xwalkspeed;
}
}
if (0 < Unit.xwalkspeed) {
if (_root.Objekt.hitTest(WalkPoint_Right, Unit.Ypos, true)) {
Unit.xwalkspeed = 0;
} else {
Unit.xwalkspeed = Unit.xwalkspeed;
}
}
return(Unit);
}
function itemDrops(myX, myY) {
itemDrop = Math.floor(Math.random() * 14) + 1;
if (itemDrop == 1) {
_root.shotgunGun.duplicateMovieClip("item" + _root.itemNum, _root.itemNum);
setProperty("_root.item" + _root.itemNum, _y , myY);
setProperty("_root.item" + _root.itemNum, _x , myX);
_root.itemNum++;
}
if (itemDrop == 2) {
_root.regularGun.duplicateMovieClip("item" + _root.itemNum, _root.itemNum);
setProperty("_root.item" + _root.itemNum, _y , myY);
setProperty("_root.item" + _root.itemNum, _x , myX);
_root.itemNum++;
}
if (itemDrop == 3) {
_root.shotgunGun.duplicateMovieClip("item" + _root.itemNum, _root.itemNum);
setProperty("_root.item" + _root.itemNum, _y , myY);
setProperty("_root.item" + _root.itemNum, _x , myX);
_root.itemNum++;
}
if (itemDrop == 4) {
_root.akGun.duplicateMovieClip("item" + _root.itemNum, _root.itemNum);
setProperty("_root.item" + _root.itemNum, _y , myY);
setProperty("_root.item" + _root.itemNum, _x , myX);
_root.itemNum++;
}
if (itemDrop == 5) {
_root.moneys.duplicateMovieClip("item" + _root.itemNum, _root.itemNum);
setProperty("_root.item" + _root.itemNum, _y , myY);
setProperty("_root.item" + _root.itemNum, _x , myX);
_root.itemNum++;
}
if (itemDrop == 6) {
_root.akGun.duplicateMovieClip("item" + _root.itemNum, _root.itemNum);
setProperty("_root.item" + _root.itemNum, _y , myY);
setProperty("_root.item" + _root.itemNum, _x , myX);
_root.itemNum++;
}
if (itemDrop == 7) {
_root.moneys.duplicateMovieClip("item" + _root.itemNum, _root.itemNum);
setProperty("_root.item" + _root.itemNum, _y , myY);
setProperty("_root.item" + _root.itemNum, _x , myX);
_root.itemNum++;
}
}
function zombieCodes() {
ii = _root.zombNum;
while (ii >= 0) {
var _local2 = "regularGun";
switch (_root.gunType) {
case _local2 :
someNum = 0;
while (someNum < 9) {
if ((0 < eval ("_root.shot" + someNum).alive) && (0 < eval ("_root.move" + ii).hitsLeft)) {
if (eval ("_root.move" + ii).hitTest("_root.shot" + someNum)) {
eval ("_root.move" + ii).hitsLeft = eval ("_root.move" + ii).hitsLeft - _root.strength;
eval ("_root.shot" + someNum).alive = 0;
}
}
if (((0 < eval ("_root.shot" + someNum).alive) && (0 >= eval ("_root.move" + ii).hitsLeft)) && (eval ("_root.move" + ii).finishMe == 0)) {
if (eval ("_root.move" + ii).hitTest("_root.shot" + someNum)) {
eval ("_root.move" + ii).finishMe = 1;
eval ("_root.move" + ii).gotoAndPlay(2);
eval ("_root.shot" + someNum).alive = 0;
_root.killMeterVar++;
_root.killMeter.text = _root.killMeterVar;
_root.itemDrops(eval ("_root.move" + ii)._x, eval ("_root.move" + ii)._y);
_root.upgrade++;
_root.experience();
_root.numKilled++;
}
}
someNum++;
}
break;
case "handGun" :
if ((0 < _root.handGunBullet1.alive) && (0 < eval ("_root.move" + ii).hitsLeft)) {
if (eval ("_root.move" + ii).hitTest(_root.handGunBullet1.fireTouch)) {
eval ("_root.move" + ii).hitsLeft = eval ("_root.move" + ii).hitsLeft - _root.strength;
}
}
if (((0 < _root.handGunBullet1.alive) && (0 >= eval ("_root.move" + ii).hitsLeft)) && (eval ("_root.move" + ii).finishMe == 0)) {
if (eval ("_root.move" + ii).hitTest(_root.handGunBullet1.fireTouch)) {
_root.handGunBullet1.alive = 0;
eval ("_root.move" + ii).finishMe = 1;
eval ("_root.move" + ii).gotoAndPlay(20);
_root.killMeterVar++;
_root.killMeter.text = _root.killMeterVar;
_root.itemDrops(eval ("_root.move" + ii)._x, eval ("_root.move" + ii)._y);
_root.upgrade++;
_root.experience();
_root.numKilled++;
}
}
break;
case "machineGun" :
thisNum = 0;
while (thisNum < 9) {
if ((0 < eval ("_root.akBullet" + thisNum).alive) && (0 < eval ("_root.move" + ii).hitsLeft)) {
if (eval ("_root.move" + ii).hitTest("_root.akBullet" + thisNum)) {
eval ("_root.move" + ii).hitsLeft = eval ("_root.move" + ii).hitsLeft - _root.strength;
eval ("_root.akBullet" + thisNum).alive = 0;
}
}
if (((0 < eval ("_root.akBullet" + thisNum).alive) && (0 >= eval ("_root.move" + ii).hitsLeft)) && (eval ("_root.move" + ii).finishMe == 0)) {
if (eval ("_root.move" + ii).hitTest("_root.akBullet" + thisNum)) {
eval ("_root.move" + ii).finishMe = 1;
eval ("_root.move" + ii).gotoAndPlay(2);
eval ("_root.akBullet" + thisNum).alive = 0;
_root.killMeterVar++;
_root.killMeter.text = _root.killMeterVar;
_root.itemDrops(eval ("_root.move" + ii)._x, eval ("_root.move" + ii)._y);
_root.upgrade++;
_root.experience();
_root.numKilled++;
}
}
thisNum++;
}
break;
case "shotgunGun" :
if ((0 < _root.shotgunBullet1.alive) && (0 < eval ("_root.move" + ii).hitsLeft)) {
if (eval ("_root.move" + ii).hitTest(_root.shotgunBullet1)) {
eval ("_root.move" + ii).hitsLeft = eval ("_root.move" + ii).hitsLeft - _root.strength;
}
}
if (!(((0 < _root.shotgunBullet1.alive) && (0 >= eval ("_root.move" + ii).hitsLeft)) && (eval ("_root.move" + ii).finishMe == 0))) {
break;
}
if (!eval ("_root.move" + ii).hitTest(_root.shotgunBullet1)) {
break;
}
eval ("_root.move" + ii).finishMe = 1;
eval ("_root.move" + ii).gotoAndPlay(2);
_root.killMeterVar++;
_root.killMeter.text = _root.killMeterVar;
_root.itemDrops(eval ("_root.move" + ii)._x, eval ("_root.move" + ii)._y);
_root.upgrade++;
_root.experience();
_root.numKilled++;
}
if (eval ("_root.move" + ii).finishMe == 0) {
if (eval ("_root.move" + ii).hitTest(_root.player0.torso.headTouch)) {
if (0 >= _root.life._width) {
_root.gameOver();
}
if (0 < _root.armor._width) {
_root.redWall.gotoAndPlay(2);
_root.armor._width = _root.armor._width - 1.25;
_root.armorBar = Math.round(_root.armor._width);
} else if (0 < _root.life._width) {
_root.redWall.gotoAndPlay(2);
_root.life._width = _root.life._width - 1.25;
_root.lifeBar = Math.round(_root.life._width);
}
}
}
ii--;
}
}
function cntrlLevel() {
if (0 < _root.cntrl1) {
cntrlRandom = Math.floor(Math.random() * 4) + 1;
if (cntrlRandom == 1) {
_root.zombieMakerBottom();
_root.cntrl1--;
_root.numCreated++;
}
if (cntrlRandom == 2) {
_root.zombieMakerTop();
_root.cntrl1--;
_root.numCreated++;
}
if (cntrlRandom == 3) {
_root.zombieMakerRight();
_root.cntrl1--;
_root.numCreated++;
}
if (cntrlRandom == 4) {
_root.zombieMakerLeft();
_root.cntrl1--;
_root.numCreated++;
}
}
if (((_root.numKilled >= _root.numCreated) && (0 >= _root.cntrl1)) && (_root.numKilled != 0)) {
clearInterval(IntervalcntrlLevel2);
clearInterval(IntervalcntrlLevel3);
setProperty("_root.nextRound", _visible , true);
_root.numKilled = 0;
_root.numCreated = 0;
_root.zombStatus = 1;
_root.zombNum = 0;
_root.sumNumVar1 = 5;
IntervalcntrlLevel2 = setInterval(cntrlLevel2, 1000);
IntervalcntrlLevel3 = setInterval(checkLevel, 5000);
}
}
function cntrlLevel2() {
_root.sumNumVar1--;
if (0 >= _root.sumNumVar1) {
if (0 >= _root.cntrl1) {
if (35 >= _root.cntrl2) {
_root.cntrl2 = _root.cntrl2 + 5;
}
_root.zombStatus = 0;
if (getProperty("_root.nextRound", _visible) == true) {
setProperty("_root.nextRound", _visible , false);
}
_root.cntrl1 = _root.cntrl2;
clearInterval(IntervalcntrlLevel2);
_root.sumNumVar1 = "";
}
}
}
function checkLevel() {
if ((_root.numCreated == _root.cntrl2) && (_root.numCreated >= _root.numKilled)) {
_root.zombieMakerBottom();
}
}
function cntrlBegin() {
if (_root.cntrlBeginVar == 0) {
setProperty("_root.beginSign", _visible , true);
_root.cntrlBeginVar = 1;
}
_root.cntrlBeginVar2++;
if (_root.cntrlBeginVar2 >= 10) {
clearInterval(IntervalcntrlLevel4);
setProperty("_root.beginSign", _visible , false);
IntervalcntrlLevel1 = setInterval(cntrlLevel, 50);
IntervalcntrlLevel3 = setInterval(checkLevel, 5000);
}
}
function funcRegularGun(UnitAng, ShootPointX, ShootPointY) {
if (_root.gunType == "regularGun") {
if ((_root.shot1.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot1) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot1, _x , ShootPointX);
setProperty(_root.shot1, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.shot2.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot2) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot2, _x , ShootPointX);
setProperty(_root.shot2, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.shot3.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot3) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot3, _x , ShootPointX);
setProperty(_root.shot3, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.shot4.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot4) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot4, _x , ShootPointX);
setProperty(_root.shot4, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.shot5.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot5) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot5, _x , ShootPointX);
setProperty(_root.shot5, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.shot6.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot6) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot6, _x , ShootPointX);
setProperty(_root.shot6, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.shot7.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot7) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot7, _x , ShootPointX);
setProperty(_root.shot7, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.shot8.alive == 0) && (0 < _root.regularGunAmmo)) {
_root.regularGunAmmo--;
with (_root.shot8) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
alive = 5;
}
setProperty(_root.shot8, _x , ShootPointX);
setProperty(_root.shot8, _y , ShootPointY);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
}
}
}
function funcHandGun(UnitAng, ShootPointX, ShootPointY) {
if (_root.gunType == "handGun") {
if ((_root.handGunBullet1.alive == 0) && (0 < _root.handGunAmmo)) {
with (_root.handGunBullet1) {
xv = 15 * Math.sin((Math.PI/180) * UnitAng);
yv = -15 * Math.cos((Math.PI/180) * UnitAng);
alive = 1;
}
_root.player0.torso.gotoAndPlay("SHOOT");
setProperty(_root.handGunBullet1, _x , ShootPointX);
setProperty(_root.handGunBullet1, _y , ShootPointY);
setProperty(_root.handGunBullet1, _rotation , UnitAng + 180);
}
}
}
function funcShotgunGun(UnitAng, ShootPointX, ShootPointY) {
if (_root.gunType == "shotgunGun") {
if ((_root.shotgunBullet1.alive == 0) && (0 < _root.shotgunGunAmmo)) {
_root.shotgunGunAmmo--;
with (_root.shotgunBullet1) {
xv = 45 * Math.sin((Math.PI/180) * UnitAng);
yv = -45 * Math.cos((Math.PI/180) * UnitAng);
gotoAndPlay(1);
alive = 30;
}
setProperty(_root.shotgunBullet1, _x , ShootPointX);
setProperty(_root.shotgunBullet1, _y , ShootPointY);
setProperty(_root.shotgunBullet1, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
}
}
}
function funcMachineGun(UnitAng, ShootPointX, ShootPointY) {
if (_root.gunType == "machineGun") {
if ((_root.akBullet1.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet1) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet1, _x , ShootPointX);
setProperty(_root.akBullet1, _y , ShootPointY);
setProperty(_root.akBullet1, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.akBullet2.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet2) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet2, _x , ShootPointX);
setProperty(_root.akBullet2, _y , ShootPointY);
setProperty(_root.akBullet2, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.akBullet3.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet3) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet3, _x , ShootPointX);
setProperty(_root.akBullet3, _y , ShootPointY);
setProperty(_root.akBullet3, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.akBullet4.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet4) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet4, _x , ShootPointX);
setProperty(_root.akBullet4, _y , ShootPointY);
setProperty(_root.akBullet4, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.akBullet5.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet5) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet5, _x , ShootPointX);
setProperty(_root.akBullet5, _y , ShootPointY);
setProperty(_root.akBullet5, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.akBullet6.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet6) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet6, _x , ShootPointX);
setProperty(_root.akBullet6, _y , ShootPointY);
setProperty(_root.akBullet6, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.akBullet7.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet7) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet7, _x , ShootPointX);
setProperty(_root.akBullet7, _y , ShootPointY);
setProperty(_root.akBullet7, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
} else if ((_root.akBullet8.alive == 0) && (0 < _root.machineGunAmmo)) {
_root.machineGunAmmo--;
with (_root.akBullet8) {
xv = 22.5 * Math.sin((Math.PI/180) * UnitAng);
yv = -22.5 * Math.cos((Math.PI/180) * UnitAng);
alive = 30;
}
setProperty(_root.akBullet8, _x , ShootPointX);
setProperty(_root.akBullet8, _y , ShootPointY);
setProperty(_root.akBullet8, _rotation , UnitAng + 180);
_root.player0.torso.gotoAndPlay("SHOOT");
_root.Flame.duplicateMovieClip(("Flame" + b) + 10000, b + 10000);
setProperty(("_root.Flame" + b) + 10000, _rotation , UnitAng + 180);
setProperty(("_root.Flame" + b) + 10000, _alpha , 50);
setProperty(("_root.Flame" + b) + 10000, _xscale , 30);
setProperty(("_root.Flame" + b) + 10000, _yscale , 30);
setProperty(("_root.Flame" + b) + 10000, _y , ShootPointY);
setProperty(("_root.Flame" + b) + 10000, _x , ShootPointX);
_root.chamberShot++;
_root.chamber.duplicateMovieClip("chamber" + _root.chamberShot, _root.chamberShot);
setProperty("_root.chamber" + _root.chamberShot, _xscale , RndSound);
RndSound2 = random(25);
setProperty("_root.chamber" + _root.chamberShot, _rotation , (UnitAng + RndSound2) - 15);
setProperty("_root.chamber" + _root.chamberShot, _y , _root.targetY);
setProperty("_root.chamber" + _root.chamberShot, _x , _root.targetX);
}
}
}
stop();
fscommand ("allowscale", false);
clearInterval(IntervalcntrlLevel1);
clearInterval(IntervalcntrlLevel2);
clearInterval(IntervalcntrlLevel3);
clearInterval(IntervalcntrlLevel4);
setProperty("_root.nextRound", _visible , false);
setProperty("_root.beginSign", _visible , false);
var chamberShot = 0;
var someKey = 0;
var cntrlBeginVar = 0;
var cntrlBeginVar2 = 0;
var zombStatus = 0;
var BulletLife = 0;
var maxBulletHoles = 30;
var sl = maxbulletHoles;
var zombSpeed = 1.25;
var numCreated = 0;
var numKilled = 0;
var cntrl1 = 5;
var cntrl2 = 5;
var sumNumVar1 = "";
var fuct = 0;
var displayName = 0;
var levelUpAmount = 10;
var armorBar = 0;
var lifeBar = 0;
var leveler = 0;
var currentLevel = 0;
var bomb = 0;
var strength = 1;
var expVar = 0;
var moveInvUp = 0;
var upgrade = 0;
var aimAngTest = 0;
var walkRate = 0;
var screenSpeed = 3;
var playerWalkSpeed = 4;
var activeUp = 0;
var activeDown = 0;
var activeLeft = 0;
var activeRight = 0;
var backgroundY = 0;
var backgroundX = 0;
var handGunAmmo = 1;
var shotgunGunAmmo = 100;
var regularGunAmmo = 100;
var machineGunAmmo = 100;
var currentMoney = 0;
var gunType = "handGun";
var gameStatus = 0;
var masterX = 0;
var masterY = 0;
var zombNum = 0;
var itemNum = 0;
var targetx = 0;
var targety = 0;
var yPlacement = 0;
var zombieMakerSpeed = 4000;
var killMeterVar = 0;
_root.killMeter.text = _root.killMeterVar;
_root.lvlUpButtons._visible = false;
_root.armor._width = 0;
_root.armorBar = Math.floor(_root.armor._width);
_root.lifeBar = Math.floor(_root.life._width);
IntervalcntrlLevel4 = setInterval(cntrlBegin, 1000);
Instance of Symbol 46 MovieClip "chamber" in Frame 9
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
this.gotoAndPlay(31);
}
}
Instance of Symbol 202 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
this.gotoAndPlay(31);
}
}
Instance of Symbol 138 MovieClip "player0" in Frame 9
onClipEvent (enterFrame) {
_root.masterX = this._x;
_root.masterY = this._y;
_root.difx = this._x - _root.move._x;
_root.targetx = this._x;
_root.dify = this._y - _root.move._y;
_root.targety = this._y;
_root.done = eval("False");
}
Instance of Symbol 140 MovieClip "MC" in Frame 9
onClipEvent (load) {
IP = 1;
setProperty("_root.infoPlate", _visible , false);
TorsoSpeed = 8;
LegSpeed = 8;
ShootSpeed = 10;
TruppNumbers = 1;
Soldier0 = {Link:"_root.player0", TorsoAng:0, WalkAng:0, Xpos:300, Ypos:250, Ywalkspeed:0, Xwalkspeed:0, Walkspeed:0, Reload:90};
Trupp = new Array();
Trupp[0] = Soldier0;
do {
_root.function_UnitPlace(Trupp[i]);
i++;
} while (i < Truppnumbers);
i = 0;
}
onClipEvent (enterFrame) {
_root.function_UnitPlace(Trupp[i]);
_root.zombieCodes();
Mil = Math.round(getTimer() / 1000);
if (FrateStart eq true) {
Frate = 1;
MilTemp = Math.round(getTimer() / 1000);
FrateStart = false;
}
if ((Mil - 2) < MilTemp) {
Frate++;
} else {
FrateFinal = Frate / 2;
FrateStart = true;
}
}
onClipEvent (enterFrame) {
if (Walkstate eq -1) {
walk = true;
if (2 >= _root.screenSpeed) {
eval (Trupp[i].Link + ".legs").gotoAndStop("WALK");
Trupp[i].Walkspeed = -_root.screenSpeed;
} else {
eval (Trupp[i].Link + ".legs").gotoAndStop("RUN");
Trupp[i].Walkspeed = -_root.screenSpeed;
}
} else if (Walkstate eq 0) {
if (walk eq true) {
if (movieframecount < 30) {
movieframecount = movieframecount + 1;
eval (Trupp[i].Link + ".legs").gotoAndStop("STAND");
Trupp[i].Walkspeed = 0;
} else {
eval (Trupp[i].Link + ".legs").gotoAndStop("STAND");
Trupp[i].Walkspeed = 0;
movieframecount = 0;
walk = false;
}
}
} else if (Walkstate eq 1) {
walk = true;
if (movieframecount eq 30) {
movieframecount = 0;
}
movieframecount = movieframecount + 1;
if (2 >= _root.screenSpeed) {
eval (Trupp[i].Link + ".legs").gotoAndStop("WALK");
Trupp[i].Walkspeed = _root.screenSpeed;
} else {
eval (Trupp[i].Link + ".legs").gotoAndStop("RUN");
Trupp[i].Walkspeed = _root.screenSpeed;
}
}
Trupp[i].Ypos = Trupp[i].Ypos + Trupp[i].Ywalkspeed;
Trupp[i].Xpos = Trupp[i].Xpos + Trupp[i].Xwalkspeed;
Trupp[i].Ywalkspeed = _root.function_MoveSpeedY(Trupp[i].WalkAng, Trupp[i].WalkSpeed);
Trupp[i].Xwalkspeed = _root.function_MoveSpeedX(Trupp[i].WalkAng, Trupp[i].WalkSpeed);
Trupp[i] = _root.function_Walkrestrictions(Trupp[i]);
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if (Key.isDown(16)) {
Walkstate = 2;
_root.walkRate = 2;
} else {
Walkstate = 1;
_root.walkRate = 1;
}
} else if (!Key.isDown(87)) {
Walkstate = 0;
_root.walkRate = 0;
}
if (Key.isDown(40)) {
Walkstate = -1;
_root.walkRate = -1;
}
if (Key.isDown(37)) {
if (0 >= Trupp[i].WalkAng) {
Trupp[i].WalkAng = 352;
Trupp[i].TorsoAng = 352;
} else {
Trupp[i].WalkAng = Trupp[i].WalkAng - LegSpeed;
Trupp[i].TorsoAng = Trupp[i].WalkAng;
}
}
if (Key.isDown(39)) {
if (Trupp[i].WalkAng >= 360) {
Trupp[i].WalkAng = 8;
Trupp[i].TorsoAng = 8;
} else {
Trupp[i].WalkAng = Trupp[i].WalkAng + LegSpeed;
Trupp[i].TorsoAng = Trupp[i].WalkAng;
}
}
if (Key.isDown(32)) {
_root.function_Shot(26, Trupp[i].Ypos, Trupp[i].Xpos, Trupp[i].TorsoAng, FooAry, RndSound, Trupp);
}
}
onClipEvent (keyDown) {
_root.someKey = chr(Key.GetAscii());
if (_root.someKey == 1) {
_root.gunType = "handGun";
}
if (_root.someKey == 2) {
_root.gunType = "machineGun";
}
if (_root.someKey == 3) {
_root.gunType = "regularGun";
}
if (_root.someKey == 4) {
_root.gunType = "shotgunGun";
}
}
onClipEvent (enterFrame) {
Link = Trupp[i].Link;
Xpos = Math.round(Trupp[i].Xpos);
Ypos = Math.round(Trupp[i].Ypos);
WalkAng = Math.round(Trupp[i].WalkAng);
TorsoAng = WalkAng;
}
Instance of Symbol 156 MovieClip "shot1" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot2" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot3" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 90;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot4" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot5" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot6" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot7" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 90;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "shot8" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 337 MovieClip "move" in Frame 9
onClipEvent (load) {
friction = ".01";
hitsLeft = 1;
finishMe = 0;
mouse_x = 0;
mouse_y = 0;
quad = 0;
abs_x = 0;
abs_y = 0;
tg = 0;
angle = 0;
speedx = 0;
speedy = 0;
difx = 0;
dify = 0;
var speed = 2;
var radius = (Math.floor(Math.random() * 10) + 10);
}
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
if ((_root.zombStatus == 1) && (finishMe == 0)) {
finishMe = 1;
this.gotoAndPlay(2);
}
mouse_x = int(_root.targetx - this._x);
mouse_y = int(_root.targety - this._y);
if ((0 < mouse_x) && (0 < mouse_y)) {
quad = Number(4);
}
if ((mouse_x < 0) && (0 < mouse_y)) {
quad = Number(1);
}
if ((mouse_x < 0) && (mouse_y < 0)) {
quad = Number(2);
}
if ((0 < mouse_x) && (mouse_y < 0)) {
quad = Number(3);
}
abs_x = Math.abs(mouse_x);
abs_y = Math.abs(mouse_y);
tg = abs_y / abs_x;
_root.maths = (Math.atan(tg) * Number(180)) / Math.PI;
if (quad == 1) {
angle = Number(90) - Number(_root.maths);
}
if (quad == 2) {
angle = Number(90) + Number(_root.maths);
}
if (quad == 3) {
angle = Number(270) - Number(_root.maths);
}
if (quad == 4) {
angle = Number(270) + Number(_root.maths);
}
if (!_root.done) {
setProperty(this, _rotation , angle);
_root.done = false;
}
dx = _root.targetX - this._x;
dy = _root.targetY - this._y;
var angle = Math.atan2(dy, dx);
vx = Math.cos(angle) * speed;
vy = Math.sin(angle) * speed;
this._x = this._x + vx;
this._y = this._y + vy;
}
Instance of Symbol 339 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.shotgunGun)) {
_root.shotgunGun._x = _root.shotgunGun._x + 30;
}
if (this.hitTest(_root.akGun)) {
_root.akGun._x = _root.akGun._x + 30;
}
if (this.hitTest(_root.chamber)) {
_root.chamber._x = _root.chamber._x + 30;
}
if (this.hitTest(_root.regularGun)) {
_root.regularGun._x = _root.regularGun._x + 30;
}
if (this.hitTest(_root.bigHandGun)) {
_root.bigHandGun._x = _root.bigHandGun._x + 30;
}
if (this.hitTest(_root.moneys)) {
_root.moneys._x = _root.moneys._x + 30;
}
if (this.hitTest(_root.move)) {
_root.move._x = _root.move._x + 30;
}
if (this.hitTest(_root.kidZombie)) {
_root.kidZombie._x = _root.kidZombie._x + 30;
}
if (this.hitTest(_root.girlZombie)) {
_root.girlZombie._x = _root.girlZombie._x + 30;
}
if (this.hitTest(_root.bigZombieMan)) {
_root.bigZombieMan._x = _root.bigZombieMan._x + 30;
}
if (this.hitTest(_root.girlHairZombie)) {
_root.girlHairZombie._x = _root.girlHairZombie._x + 30;
}
if (this.hitTest(_root.businessWomenZombie)) {
_root.businessWomenZombie._x = _root.businessWomenZombie._x + 30;
}
}
Instance of Symbol 339 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.shotgunGun)) {
_root.shotgunGun._x = _root.shotgunGun._x - 30;
}
if (this.hitTest(_root.akGun)) {
_root.akGun._x = _root.akGun._x - 30;
}
if (this.hitTest(_root.chamber)) {
_root.chamber._x = _root.chamber._x - 30;
}
if (this.hitTest(_root.regularGun)) {
_root.regularGun._x = _root.regularGun._x - 30;
}
if (this.hitTest(_root.bigHandGun)) {
_root.bigHandGun._x = _root.bigHandGun._x - 30;
}
if (this.hitTest(_root.moneys)) {
_root.moneys._x = _root.moneys._x - 30;
}
if (this.hitTest(_root.move)) {
_root.move._x = _root.move._x - 30;
}
if (this.hitTest(_root.kidZombie)) {
_root.kidZombie._x = _root.kidZombie._x - 30;
}
if (this.hitTest(_root.girlZombie)) {
_root.girlZombie._x = _root.girlZombie._x - 30;
}
if (this.hitTest(_root.bigZombieMan)) {
_root.bigZombieMan._x = _root.bigZombieMan._x - 30;
}
if (this.hitTest(_root.girlHairZombie)) {
_root.girlHairZombie._x = _root.girlHairZombie._x - 30;
}
if (this.hitTest(_root.businessWomenZombie)) {
_root.businessWomenZombie._x = _root.businessWomenZombie._x - 30;
}
}
Instance of Symbol 339 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.shotgunGun)) {
_root.shotgunGun._y = _root.shotgunGun._y - 30;
}
if (this.hitTest(_root.akGun)) {
_root.akGun._y = _root.akGun._y - 30;
}
if (this.hitTest(_root.chamber)) {
_root.chamber._y = _root.chamber._y - 30;
}
if (this.hitTest(_root.regularGun)) {
_root.regularGun._y = _root.regularGun._y - 30;
}
if (this.hitTest(_root.bigHandGun)) {
_root.bigHandGun._y = _root.bigHandGun._y - 30;
}
if (this.hitTest(_root.moneys)) {
_root.moneys._y = _root.moneys._y - 30;
}
if (this.hitTest(_root.move)) {
_root.move._y = _root.move._y - 30;
}
if (this.hitTest(_root.kidZombie)) {
_root.kidZombie._y = _root.kidZombie._y - 30;
}
if (this.hitTest(_root.girlZombie)) {
_root.girlZombie._y = _root.girlZombie._y - 30;
}
if (this.hitTest(_root.bigZombieMan)) {
_root.bigZombieMan._y = _root.bigZombieMan._y - 30;
}
if (this.hitTest(_root.girlHairZombie)) {
_root.girlHairZombie._y = _root.girlHairZombie._y - 30;
}
if (this.hitTest(_root.businessWomenZombie)) {
_root.businessWomenZombie._y = _root.businessWomenZombie._y - 30;
}
}
Instance of Symbol 339 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.shotgunGun)) {
_root.shotgunGun._y = _root.shotgunGun._y + 30;
}
if (this.hitTest(_root.akGun)) {
_root.akGun._y = _root.akGun._y + 30;
}
if (this.hitTest(_root.chamber)) {
_root.chamber._y = _root.chamber._y + 30;
}
if (this.hitTest(_root.regularGun)) {
_root.regularGun._y = _root.regularGun._y + 30;
}
if (this.hitTest(_root.bigHandGun)) {
_root.bigHandGun._y = _root.bigHandGun._y + 30;
}
if (this.hitTest(_root.moneys)) {
_root.moneys._y = _root.moneys._y + 30;
}
if (this.hitTest(_root.move)) {
_root.move._y = _root.move._y + 30;
}
if (this.hitTest(_root.kidZombie)) {
_root.kidZombie._y = _root.kidZombie._y + 30;
}
if (this.hitTest(_root.girlZombie)) {
_root.girlZombie._y = _root.girlZombie._y + 30;
}
if (this.hitTest(_root.bigZombieMan)) {
_root.bigZombieMan._y = _root.bigZombieMan._y + 30;
}
if (this.hitTest(_root.girlHairZombie)) {
_root.girlHairZombie._y = _root.girlHairZombie._y + 30;
}
if (this.hitTest(_root.businessWomenZombie)) {
_root.businessWomenZombie._y = _root.businessWomenZombie._y + 30;
}
}
Instance of Symbol 413 MovieClip "kidZombie" in Frame 9
onClipEvent (load) {
friction = ".01";
hitsLeft = 1;
finishMe = 0;
mouse_x = 0;
mouse_y = 0;
quad = 0;
abs_x = 0;
abs_y = 0;
tg = 0;
angle = 0;
speedx = 0;
speedy = 0;
difx = 0;
dify = 0;
var speed = 2;
var radius = (Math.floor(Math.random() * 10) + 10);
}
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
if ((_root.zombStatus == 1) && (finishMe == 0)) {
finishMe = 1;
this.gotoAndPlay(2);
}
mouse_x = int(_root.targetx - this._x);
mouse_y = int(_root.targety - this._y);
if ((0 < mouse_x) && (0 < mouse_y)) {
quad = Number(4);
}
if ((mouse_x < 0) && (0 < mouse_y)) {
quad = Number(1);
}
if ((mouse_x < 0) && (mouse_y < 0)) {
quad = Number(2);
}
if ((0 < mouse_x) && (mouse_y < 0)) {
quad = Number(3);
}
abs_x = Math.abs(mouse_x);
abs_y = Math.abs(mouse_y);
tg = abs_y / abs_x;
_root.maths = (Math.atan(tg) * Number(180)) / Math.PI;
if (quad == 1) {
angle = Number(90) - Number(_root.maths);
}
if (quad == 2) {
angle = Number(90) + Number(_root.maths);
}
if (quad == 3) {
angle = Number(270) - Number(_root.maths);
}
if (quad == 4) {
angle = Number(270) + Number(_root.maths);
}
if (!_root.done) {
setProperty(this, _rotation , angle);
_root.done = false;
}
dx = _root.targetX - this._x;
dy = _root.targetY - this._y;
var angle = Math.atan2(dy, dx);
vx = Math.cos(angle) * speed;
vy = Math.sin(angle) * speed;
this._x = this._x + vx;
this._y = this._y + vy;
}
Instance of Symbol 485 MovieClip "girlZombie" in Frame 9
onClipEvent (load) {
friction = ".01";
hitsLeft = 1;
finishMe = 0;
mouse_x = 0;
mouse_y = 0;
quad = 0;
abs_x = 0;
abs_y = 0;
tg = 0;
angle = 0;
speedx = 0;
speedy = 0;
difx = 0;
dify = 0;
var speed = 2;
var radius = (Math.floor(Math.random() * 10) + 10);
}
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
if ((_root.zombStatus == 1) && (finishMe == 0)) {
finishMe = 1;
this.gotoAndPlay(2);
}
mouse_x = int(_root.targetx - this._x);
mouse_y = int(_root.targety - this._y);
if ((0 < mouse_x) && (0 < mouse_y)) {
quad = Number(4);
}
if ((mouse_x < 0) && (0 < mouse_y)) {
quad = Number(1);
}
if ((mouse_x < 0) && (mouse_y < 0)) {
quad = Number(2);
}
if ((0 < mouse_x) && (mouse_y < 0)) {
quad = Number(3);
}
abs_x = Math.abs(mouse_x);
abs_y = Math.abs(mouse_y);
tg = abs_y / abs_x;
_root.maths = (Math.atan(tg) * Number(180)) / Math.PI;
if (quad == 1) {
angle = Number(90) - Number(_root.maths);
}
if (quad == 2) {
angle = Number(90) + Number(_root.maths);
}
if (quad == 3) {
angle = Number(270) - Number(_root.maths);
}
if (quad == 4) {
angle = Number(270) + Number(_root.maths);
}
if (!_root.done) {
setProperty(this, _rotation , angle);
_root.done = false;
}
dx = _root.targetX - this._x;
dy = _root.targetY - this._y;
var angle = Math.atan2(dy, dx);
vx = Math.cos(angle) * speed;
vy = Math.sin(angle) * speed;
this._x = this._x + vx;
this._y = this._y + vy;
}
Instance of Symbol 557 MovieClip "bigZombieMan" in Frame 9
onClipEvent (load) {
friction = ".01";
hitsLeft = 1;
finishMe = 0;
mouse_x = 0;
mouse_y = 0;
quad = 0;
abs_x = 0;
abs_y = 0;
tg = 0;
angle = 0;
speedx = 0;
speedy = 0;
difx = 0;
dify = 0;
var speed = 2;
var radius = (Math.floor(Math.random() * 10) + 10);
}
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
if ((_root.zombStatus == 1) && (finishMe == 0)) {
finishMe = 1;
this.gotoAndPlay(2);
}
mouse_x = int(_root.targetx - this._x);
mouse_y = int(_root.targety - this._y);
if ((0 < mouse_x) && (0 < mouse_y)) {
quad = Number(4);
}
if ((mouse_x < 0) && (0 < mouse_y)) {
quad = Number(1);
}
if ((mouse_x < 0) && (mouse_y < 0)) {
quad = Number(2);
}
if ((0 < mouse_x) && (mouse_y < 0)) {
quad = Number(3);
}
abs_x = Math.abs(mouse_x);
abs_y = Math.abs(mouse_y);
tg = abs_y / abs_x;
_root.maths = (Math.atan(tg) * Number(180)) / Math.PI;
if (quad == 1) {
angle = Number(90) - Number(_root.maths);
}
if (quad == 2) {
angle = Number(90) + Number(_root.maths);
}
if (quad == 3) {
angle = Number(270) - Number(_root.maths);
}
if (quad == 4) {
angle = Number(270) + Number(_root.maths);
}
if (!_root.done) {
setProperty(this, _rotation , angle);
_root.done = false;
}
dx = _root.targetX - this._x;
dy = _root.targetY - this._y;
var angle = Math.atan2(dy, dx);
vx = Math.cos(angle) * speed;
vy = Math.sin(angle) * speed;
this._x = this._x + vx;
this._y = this._y + vy;
}
Instance of Symbol 626 MovieClip "girlHairZombie" in Frame 9
onClipEvent (load) {
friction = ".01";
hitsLeft = 1;
finishMe = 0;
mouse_x = 0;
mouse_y = 0;
quad = 0;
abs_x = 0;
abs_y = 0;
tg = 0;
angle = 0;
speedx = 0;
speedy = 0;
difx = 0;
dify = 0;
var speed = 2;
var radius = (Math.floor(Math.random() * 10) + 10);
}
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
if ((_root.zombStatus == 1) && (finishMe == 0)) {
finishMe = 1;
this.gotoAndPlay(2);
}
mouse_x = int(_root.targetx - this._x);
mouse_y = int(_root.targety - this._y);
if ((0 < mouse_x) && (0 < mouse_y)) {
quad = Number(4);
}
if ((mouse_x < 0) && (0 < mouse_y)) {
quad = Number(1);
}
if ((mouse_x < 0) && (mouse_y < 0)) {
quad = Number(2);
}
if ((0 < mouse_x) && (mouse_y < 0)) {
quad = Number(3);
}
abs_x = Math.abs(mouse_x);
abs_y = Math.abs(mouse_y);
tg = abs_y / abs_x;
_root.maths = (Math.atan(tg) * Number(180)) / Math.PI;
if (quad == 1) {
angle = Number(90) - Number(_root.maths);
}
if (quad == 2) {
angle = Number(90) + Number(_root.maths);
}
if (quad == 3) {
angle = Number(270) - Number(_root.maths);
}
if (quad == 4) {
angle = Number(270) + Number(_root.maths);
}
if (!_root.done) {
setProperty(this, _rotation , angle);
_root.done = false;
}
dx = _root.targetX - this._x;
dy = _root.targetY - this._y;
var angle = Math.atan2(dy, dx);
vx = Math.cos(angle) * speed;
vy = Math.sin(angle) * speed;
this._x = this._x + vx;
this._y = this._y + vy;
}
Instance of Symbol 712 MovieClip "businessWomenZombie" in Frame 9
onClipEvent (load) {
friction = ".01";
hitsLeft = 1;
finishMe = 0;
mouse_x = 0;
mouse_y = 0;
quad = 0;
abs_x = 0;
abs_y = 0;
tg = 0;
angle = 0;
speedx = 0;
speedy = 0;
difx = 0;
dify = 0;
var speed = 2;
var radius = (Math.floor(Math.random() * 10) + 10);
}
onClipEvent (enterFrame) {
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
if ((_root.zombStatus == 1) && (finishMe == 0)) {
finishMe = 1;
this.gotoAndPlay(2);
}
mouse_x = int(_root.targetx - this._x);
mouse_y = int(_root.targety - this._y);
if ((0 < mouse_x) && (0 < mouse_y)) {
quad = Number(4);
}
if ((mouse_x < 0) && (0 < mouse_y)) {
quad = Number(1);
}
if ((mouse_x < 0) && (mouse_y < 0)) {
quad = Number(2);
}
if ((0 < mouse_x) && (mouse_y < 0)) {
quad = Number(3);
}
abs_x = Math.abs(mouse_x);
abs_y = Math.abs(mouse_y);
tg = abs_y / abs_x;
_root.maths = (Math.atan(tg) * Number(180)) / Math.PI;
if (quad == 1) {
angle = Number(90) - Number(_root.maths);
}
if (quad == 2) {
angle = Number(90) + Number(_root.maths);
}
if (quad == 3) {
angle = Number(270) - Number(_root.maths);
}
if (quad == 4) {
angle = Number(270) + Number(_root.maths);
}
if (!_root.done) {
setProperty(this, _rotation , angle);
_root.done = false;
}
dx = _root.targetX - this._x;
dy = _root.targetY - this._y;
var angle = Math.atan2(dy, dx);
vx = Math.cos(angle) * speed;
vy = Math.sin(angle) * speed;
this._x = this._x + vx;
this._y = this._y + vy;
}
Instance of Symbol 733 MovieClip "akGun" in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player0)) {
if (994 >= _root.machineGunAmmo) {
_root.machineGunAmmo = _root.machineGunAmmo + 5;
removeMovieClip(this);
}
}
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
}
Instance of Symbol 755 MovieClip "regularGun" in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player0)) {
if (994 >= _root.regularGunAmmo) {
_root.regularGunAmmo = _root.regularGunAmmo + 5;
removeMovieClip(this);
}
}
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
}
Instance of Symbol 761 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.gunType == "regularGun") {
this.gotoAndStop(1);
_root.generalGunAmmo = _root.regularGunAmmo;
}
if (_root.gunType == "machineGun") {
this.gotoAndStop(2);
_root.generalGunAmmo = _root.machineGunAmmo;
}
if (_root.gunType == "shotgunGun") {
this.gotoAndStop(3);
_root.generalGunAmmo = _root.shotgunGunAmmo;
}
if (_root.gunType == "handGun") {
this.gotoAndStop(4);
_root.generalGunAmmo = "Infinite";
}
}
Instance of Symbol 764 MovieClip "moneys" in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player0)) {
_root.currentMoney = _root.currentMoney + 1;
removeMovieClip(this);
}
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
}
Instance of Symbol 771 MovieClip "shotgunBullet1" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet1" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet2" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet3" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet4" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet5" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet6" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet7" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 156 MovieClip "akBullet8" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 791 MovieClip "shotgunGun" in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player0)) {
if (994 >= _root.shotgunGunAmmo) {
_root.shotgunGunAmmo = _root.shotgunGunAmmo + 5;
removeMovieClip(this);
}
}
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
}
Instance of Symbol 811 MovieClip "bigHandGun" in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player0)) {
if (994 >= _root.handGunAmmo) {
_root.handGunAmmo = _root.handGunAmmo + 5;
removeMovieClip(this);
}
}
if (_root.gameStatus == 1) {
removeMovieClip(this);
}
}
Instance of Symbol 156 MovieClip "handGunBullet1e32dwdwe" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
if (xmin >= _x) {
alive = 0;
setProperty(this, _visible , false);
}
if (_x >= xmax) {
alive = 0;
setProperty(this, _visible , false);
}
if (ymin >= _y) {
alive = 0;
setProperty(this, _visible , false);
}
if (_y >= ymax) {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 158 MovieClip in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (alive) {
alive--;
setProperty(this, _visible , true);
_x = (_x + xv);
_y = (_y + yv);
} else {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 834 MovieClip "lvlUpButtons" in Frame 9
onClipEvent (enterFrame) {
if (_root.expVar >= _root.levelUpAmount) {
_root.levelUpAmount = _root.levelUpAmount + 25;
_root.expVar = 0;
_root.lvlUpper.gotoAndPlay(2);
_root.currentLevel = 1;
_root.lvlUpButtons._visible = true;
_root.leveler++;
}
}
Instance of Symbol 933 MovieClip "handGunBullet1" in Frame 9
onClipEvent (load) {
setProperty(this, _visible , false);
alive = 0;
xv = 0;
yv = 0;
xmax = 590;
xmin = 10;
ymax = 490;
ymin = 10;
}
onClipEvent (enterFrame) {
if (0 < alive) {
alive = alive - 0.5;
setProperty(this, _visible , true);
} else {
alive = 0;
setProperty(this, _visible , false);
}
}
Instance of Symbol 761 MovieClip in Frame 9
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 761 MovieClip in Frame 9
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 761 MovieClip in Frame 9
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 761 MovieClip in Frame 9
onClipEvent (load) {
this.gotoAndStop(3);
}
Frame 10
stop();
Instance of Symbol 152 MovieClip "sight" in Frame 10
onClipEvent (load) {
Mouse.show();
}
Instance of Symbol 46 MovieClip "chamber" in Frame 10
onClipEvent (enterFrame) {
if (_root.gameStatus2 == 1) {
this.gotoAndPlay(31);
}
}
Symbol 22 Button
on (press) {
gotoAndStop (4);
}
Symbol 30 Button
on (press) {
gotoAndPlay (9);
}
Symbol 34 Button
on (press) {
gotoAndPlay (6);
}
Symbol 38 Button
on (press) {
gotoAndPlay (5);
}
Symbol 42 Button
on (press) {
gotoAndPlay (8);
}
Symbol 46 MovieClip Frame 30
stop();
Symbol 46 MovieClip Frame 31
removeMovieClip(this);
Symbol 51 Button
on (press) {
gotoAndPlay (4);
}
Symbol 71 Button
on (press) {
_root.gameOver();
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 10
stop();
Symbol 120 MovieClip Frame 15
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 20
gotoAndPlay ("NOTSHOT");
Symbol 137 MovieClip Frame 125
gotoAndPlay ("NOTSHOT");
Symbol 144 MovieClip Frame 6
stop();
Symbol 149 MovieClip Frame 42
stop();
Symbol 150 MovieClip Frame 25
stop();
Symbol 202 MovieClip Frame 8
stop();
Symbol 336 MovieClip Frame 16
removeMovieClip(this);
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 12
removeMovieClip(this);
Symbol 337 MovieClip Frame 29
removeMovieClip(this);
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 12
removeMovieClip(this);
Symbol 413 MovieClip Frame 30
removeMovieClip(this);
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 12
removeMovieClip(this);
Symbol 485 MovieClip Frame 30
removeMovieClip(this);
Symbol 557 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 12
removeMovieClip(this);
Symbol 557 MovieClip Frame 30
removeMovieClip(this);
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 12
removeMovieClip(this);
Symbol 626 MovieClip Frame 30
removeMovieClip(this);
Symbol 712 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 12
removeMovieClip(this);
Symbol 712 MovieClip Frame 30
removeMovieClip(this);
Symbol 733 MovieClip Frame 343
removeMovieClip(this);
Symbol 755 MovieClip Frame 342
removeMovieClip(this);
Symbol 761 MovieClip Frame 1
stop();
Symbol 761 MovieClip Frame 2
stop();
Symbol 761 MovieClip Frame 3
stop();
Symbol 761 MovieClip Frame 4
stop();
Symbol 764 MovieClip Frame 343
removeMovieClip(this);
Symbol 791 MovieClip Frame 343
removeMovieClip(this);
Symbol 811 MovieClip Frame 343
removeMovieClip(this);
Symbol 830 Button
on (press) {
if (0 < _root.leveler) {
_root.leveler--;
_root.life._width = 100;
_root.lifeBar = Math.round(_root.life._width);
}
if (_root.leveler == 0) {
_root.lvlUpButtons._visible = false;
}
}
Symbol 831 Button
on (press) {
if (0 < _root.leveler) {
_root.leveler--;
_root.armor._width = 100;
_root.armorBar = Math.round(_root.armor._width);
}
if (_root.leveler == 0) {
_root.lvlUpButtons._visible = false;
}
}
Symbol 832 Button
on (press) {
if (_root.screenSpeed < 6) {
if (0 < _root.leveler) {
_root.leveler--;
_root.screenSpeed++;
}
if (_root.leveler == 0) {
_root.lvlUpButtons._visible = false;
}
}
}
Symbol 833 Button
on (press) {
if (_root.strength < 6) {
if (0 < _root.leveler) {
_root.leveler--;
_root.strength++;
}
if (_root.leveler == 0) {
_root.lvlUpButtons._visible = false;
}
}
}
Symbol 838 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 47
gotoAndStop (1);
Symbol 857 MovieClip Frame 14
stop();
Symbol 863 MovieClip Frame 1
scale = Number(random(50)) + 30;
setProperty(_target, _yscale , scale);
Symbol 933 MovieClip Frame 1
i = 1;
max = 10;
x = getProperty("fire", _x);
Symbol 933 MovieClip Frame 2
if (Number(max) >= Number(i)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 933 MovieClip Frame 3
if (Number(max) >= Number(i)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
gotoAndPlay (2);
Symbol 954 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 12
stop();
Symbol 1046 Button
on (rollOver) {
setProperty(_root.handgunner, _alpha , 50);
}
on (rollOut) {
setProperty(_root.handgunner, _alpha , 0);
}
on (press) {
_root.gunType = "handGun";
}
Symbol 1047 Button
on (rollOver) {
setProperty(_root.handgunner2, _alpha , 50);
}
on (rollOut) {
setProperty(_root.handgunner2, _alpha , 0);
}
on (press) {
_root.gunType = "machineGun";
}
Symbol 1048 Button
on (rollOver) {
setProperty(_root.handgunner3, _alpha , 50);
}
on (rollOut) {
setProperty(_root.handgunner3, _alpha , 0);
}
on (press) {
_root.gunType = "regularGun";
}
Symbol 1049 Button
on (rollOver) {
setProperty(_root.handgunner4, _alpha , 50);
}
on (rollOut) {
setProperty(_root.handgunner4, _alpha , 0);
}
on (press) {
_root.gunType = "shotgunGun";
}
Symbol 1054 MovieClip Frame 60
gotoAndPlay (1);
Symbol 1059 MovieClip Frame 1
stop();
Symbol 1059 MovieClip Frame 6
gotoAndStop (1);
Symbol 1063 Button
on (press) {
gotoAndPlay (4);
}