Frame 1
Loaded = Math.round(getBytesLoaded());
total = Math.round(getBytesTotal());
percent = Loaded / total;
bar._width = percent * 150;
text = Math.round(percent * 100) + "%";
if (Loaded == total) {
gotoAndPlay (3);
}
Instance of Symbol 284 MovieClip in Frame 1
on (release) {
getURL ("http://www.snipinggames.net", "_blank");
}
Frame 2
gotoAndPlay (1);
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
__com_mochibot__("a5aa628b", this, 10301, true);
Frame 5
stopAllSounds();
_global.santalife = 500;
_global.maxlife = 500;
_global.gamepaused = 0;
_global.gamelevel = 1;
_global.zombiesummonkilled = 0;
_global.zombies = 5;
_global.zombiesummon = 0;
_global.stagekill = 0;
_global.deer1life = 5000;
_global.deer2life = 5000;
_global.deer3life = 5000;
_global.deer4life = 5000;
_global.dragdeer1 = 0;
_global.dragdeer2 = 0;
_global.dragdeer3 = 0;
_global.dragdeer4 = 0;
_global.deaddeer = 0;
_global.gunpower = 10;
_global.currentweapon = "Handgun";
_global.handgun = 1;
_global.magnum = 0;
_global.shotgun = 0;
_global.m16 = 0;
_global.bazooka = 0;
_global.supersantagun = 0;
_global.handgunbullet = 10;
_global.magnumbullet = 7;
_global.shotgunbullet = 8;
_global.m16bullet = 30;
_global.bazookabullet = 1;
_global.ssgbullet = 1;
_global.loadedgame = 0;
_global.reloading = 0;
_global.cleanup = 0;
_global.firing = 0;
_global.money = 0;
_global.exploding = 0;
_root._quality = "MEDIUM";
handgunsound = new Sound();
handgunsound.attachSound("handgunsound");
nobullet = new Sound();
nobullet.attachSound("nobullet");
santapain = new Sound();
santapain.attachSound("santapain");
bazookasound = new Sound();
bazookasound.attachSound("bazookasound");
m16sound = new Sound();
m16sound.attachSound("m16sound");
magnumsound = new Sound();
magnumsound.attachSound("magnumsound");
shotgunsound = new Sound();
shotgunsound.attachSound("shotgunsound");
ssgsound = new Sound();
ssgsound.attachSound("ssgsound");
reloadsound = new Sound();
reloadsound.attachSound("reloadsound");
explodesound = new Sound();
explodesound.attachSound("explodesound");
bgsound = new Sound();
bgsound.attachSound("bgsound");
wind1 = new Sound();
wind1.attachSound("wind1");
wind2 = new Sound();
wind2.attachSound("wind2");
wind3 = new Sound();
wind3.attachSound("wind3");
wind4 = new Sound();
wind4.attachSound("wind4");
growl1 = new Sound();
growl1.attachSound("growl1");
growl2 = new Sound();
growl2.attachSound("growl2");
growl3 = new Sound();
growl3.attachSound("growl3");
growl4 = new Sound();
growl4.attachSound("growl4");
growl5 = new Sound();
growl5.attachSound("growl5");
growl6 = new Sound();
growl6.attachSound("growl6");
growl7 = new Sound();
growl7.attachSound("growl7");
stop();
_root.wind2.start();
Frame 6
stop();
_root.wind4.start();
Frame 7
ctr = 0;
ctr2 = 0;
delayer = 0;
onEnterFrame = function () {
if (_global.gamepaused == 0) {
if (random(400) == 1) {
_root.wind1.start();
} else if (random(400) == 2) {
_root.wind2.start();
} else if (random(400) == 3) {
_root.wind3.start();
} else if (random(400) == 4) {
_root.wind4.start();
}
if (ctr != _global.zombies) {
if (ctr2 != 15) {
if ((_global.gamelevel > 4) && (_global.gamelevel < 8)) {
xx = random(5);
if (xx < 2) {
spawnenemy = "enemy1";
} else {
spawnenemy = "enemy2";
}
} else if ((_global.gamelevel >= 8) && (_global.gamelevel < 12)) {
xx = random(8);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else {
spawnenemy = "enemy3";
}
} else if ((_global.gamelevel >= 12) && (_global.gamelevel < 16)) {
xx = random(10);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else {
spawnenemy = "enemy4";
}
} else if ((_global.gamelevel >= 16) && (_global.gamelevel < 20)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy4";
} else {
spawnenemy = "enemy6";
}
} else if ((_global.gamelevel >= 20) && (_global.gamelevel < 24)) {
xx = random(23);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy5";
} else if ((xx > 16) && (xx < 18)) {
spawnenemy = "enemy6";
} else {
spawnenemy = "enemy7";
}
} else if ((_global.gamelevel >= 24) && (_global.gamelevel < 28)) {
xx = random(25);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy5";
} else if ((xx > 16) && (xx < 18)) {
spawnenemy = "enemy6";
} else if ((xx > 18) && (xx < 22)) {
spawnenemy = "enemy7";
} else {
spawnenemy = "enemy8";
}
} else if ((_global.gamelevel >= 28) && (_global.gamelevel < 31)) {
xx = random(25);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy5";
} else if ((xx > 16) && (xx < 18)) {
spawnenemy = "enemy6";
} else if ((xx > 18) && (xx < 22)) {
spawnenemy = "enemy7";
} else {
spawnenemy = "enemy8";
}
} else {
spawnenemy = "enemy1";
}
if (delayer == 0) {
jj = random(3);
if (jj == 0) {
spawnx = Math.floor(Math.random() * 371) + -502;
spawny = Math.floor(Math.random() * 705) + 70;
} else if (jj == 1) {
spawnx = Math.floor(Math.random() * 224) + 777;
spawny = Math.floor(Math.random() * 705) + 70;
} else if (jj == 2) {
spawnx = Math.floor(Math.random() * 655) + 13;
spawny = Math.floor(Math.random() * 218) + -300;
} else if (jj == 3) {
spawnx = Math.floor(Math.random() * 655) + 13;
spawny = Math.floor(Math.random() * 300) + 753;
}
_root.zombiestage.attachMovie(spawnenemy, "enemy1_" + _root.zombiestage.getNextHighestDepth(), _root.zombiestage.getNextHighestDepth(), {_x:spawnx, _y:spawny});
}
ctr++;
ctr2++;
}
if ((ctr2 == 15) && (delayer == 0)) {
delayer = 1;
}
if (_global.zombiesummonkilled == 15) {
_global.zombiesummonkilled = 0;
delayer = 0;
ctr2 = 0;
}
}
if ((_global.stagekill == _global.zombies) && (checking != 1)) {
ctr = 0;
ctr2 = 0;
delayer = 0;
_global.zombiesummonkilled = 0;
_global.zombies = _global.zombies + 3;
_global.gamepaused = 1;
_root.upgrades.gotoAndPlay(2);
}
}
};
Mouse.hide();
stop();
_root.wind3.start();
Instance of Symbol 367 MovieClip "deer1" in Frame 7
onClipEvent (load) {
checking = 0;
}
onClipEvent (enterFrame) {
if ((_global.deer1life < 1) && (checking == 0)) {
checking = 1;
_global.deer1life = 0;
this.gotoAndStop("dead");
}
}
Instance of Symbol 367 MovieClip "deer4" in Frame 7
onClipEvent (load) {
checking = 0;
}
onClipEvent (enterFrame) {
if ((_global.deer4life < 1) && (checking == 0)) {
checking = 1;
_global.deer4life = 0;
this.gotoAndStop("dead");
}
}
Instance of Symbol 367 MovieClip "deer2" in Frame 7
onClipEvent (load) {
checking = 0;
}
onClipEvent (enterFrame) {
if ((_global.deer2life < 1) && (checking == 0)) {
checking = 1;
_global.deer2life = 0;
this.gotoAndStop("dead");
}
}
Instance of Symbol 367 MovieClip "deer3" in Frame 7
onClipEvent (load) {
checking = 0;
}
onClipEvent (enterFrame) {
if ((_global.deer3life < 1) && (checking == 0)) {
checking = 1;
_global.deer3life = 0;
this.gotoAndStop("dead");
}
}
Instance of Symbol 512 MovieClip "flashlight" in Frame 7
onClipEvent (enterFrame) {
_x = _root.santa._x;
_y = _root.santa._y;
}
Instance of Symbol 524 MovieClip in Frame 7
onClipEvent (enterFrame) {
txtdeer1life = _global.deer1life + "/5000";
txtdeer2life = _global.deer2life + "/5000";
txtdeer3life = _global.deer3life + "/5000";
txtdeer4life = _global.deer4life + "/5000";
}
Instance of Symbol 533 MovieClip in Frame 7
onClipEvent (enterFrame) {
txtlife = (_global.santalife + "/") + _global.maxlife;
txtlevel = _global.gamelevel;
txtmoney = _global.money;
if (_global.currentweapon == "Handgun") {
txtweapon = (_global.currentweapon + " ") + _global.handgunbullet;
} else if (_global.currentweapon == "Magnum") {
txtweapon = (_global.currentweapon + " ") + _global.magnumbullet;
} else if (_global.currentweapon == "Shotgun") {
txtweapon = (_global.currentweapon + " ") + _global.shotgunbullet;
} else if (_global.currentweapon == "M16") {
txtweapon = (_global.currentweapon + " ") + _global.m16bullet;
} else if (_global.currentweapon == "Bazooka") {
txtweapon = (_global.currentweapon + " ") + _global.bazookabullet;
} else if (_global.currentweapon == "Laser Gun") {
txtweapon = (_global.currentweapon + " ") + _global.ssgbullet;
}
}
Instance of Symbol 588 MovieClip "upgrades" in Frame 7
onClipEvent (enterFrame) {
if (_global.loadedgame == 1) {
_global.loadedgame = 0;
this.gotoAndPlay(2);
}
}
Instance of Symbol 602 MovieClip "crosshair" in Frame 7
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
Mouse.hide();
this._alpha = 100;
if (_global.exploding == 0) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (_global.currentweapon == "Handgun") {
this.gotoAndStop(1);
} else if (_global.currentweapon == "Magnum") {
this.gotoAndStop(2);
} else if (_global.currentweapon == "Shotgun") {
this.gotoAndStop(3);
} else if (_global.currentweapon == "M16") {
this.gotoAndStop(4);
} else if (_global.currentweapon == "Bazooka") {
this.gotoAndStop(5);
} else if (_global.currentweapon == "Super Santa Gun") {
this.gotoAndStop(6);
}
} else {
this._alpha = 0;
Mouse.show();
}
}
Frame 8
stop();
Frame 9
stop();
Instance of Symbol 284 MovieClip in Frame 9
on (release) {
getURL ("http://www.snipinggames.net", "_blank");
}
Frame 10
stop();
Instance of Symbol 15 MovieClip in Symbol 28 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 100;
}
}
Symbol 28 MovieClip Frame 15
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 31 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._parent._x - random(10), _y:_parent._parent._y - random(10)});
Symbol 31 MovieClip Frame 10
_parent.gotoAndStop("move");
Symbol 41 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 41 MovieClip Frame 14
stop();
_parent._parent.removeMovieClip();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 3
stop();
Symbol 42 MovieClip Frame 4
stop();
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip [enemy8] Frame 1
onClipEvent (load) {
follower = this._parent;
target = _root.santa;
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(7);
if (follower.speed < 4) {
follower.speed = 4;
}
follower.turnRate = 0.2;
life = 250;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (random(100) == 1) {
attacking = 1;
}
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 200;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Instance of Symbol 15 MovieClip in Symbol 76 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_parent._parent.attackingwhat == "deer1") {
if (this.hitTest(_root.deer1) && (_global.deer1life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer1._x - random(10), _y:_root.deer1._y - random(10)});
_global.deer1life = _global.deer1life - 50;
}
} else if (_parent._parent.attackingwhat == "deer2") {
if (this.hitTest(_root.deer2) && (_global.deer2life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer2._x - random(10), _y:_root.deer2._y - random(10)});
_global.deer2life = _global.deer2life - 50;
}
} else if (_parent._parent.attackingwhat == "deer3") {
if (this.hitTest(_root.deer3) && (_global.deer3life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer3._x - random(10), _y:_root.deer3._y - random(10)});
_global.deer3life = _global.deer3life - 50;
}
} else if (_parent._parent.attackingwhat == "deer4") {
if (this.hitTest(_root.deer4) && (_global.deer4life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer4._x - random(10), _y:_root.deer4._y - random(10)});
_global.deer4life = _global.deer4life - 50;
}
} else if (_parent._parent.attackingwhat == "santa") {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 80;
}
}
}
Symbol 76 MovieClip Frame 20
if (_parent.attackingwhat != "santa") {
if (_global.deer1life < 1) {
if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer2life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer3life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer4life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
}
}
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 82 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
Symbol 82 MovieClip Frame 5
_parent.gotoAndStop("move");
Symbol 89 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 89 MovieClip Frame 35
stop();
_parent._parent.removeMovieClip();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 3
stop();
Symbol 90 MovieClip Frame 4
stop();
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip [enemy7] Frame 1
onClipEvent (load) {
follower = this._parent;
if ((random(5) == 0) && (_global.deer1life > 0)) {
target = _root.deer1;
attacktarget = _root.deer1;
attackingwhat = "deer1";
} else if ((random(5) == 1) && (_global.deer2life > 0)) {
target = _root.deer2;
attacktarget = _root.deer2;
attackingwhat = "deer2";
} else if ((random(5) == 2) && (_global.deer3life > 0)) {
target = _root.deer3;
attacktarget = _root.deer3;
attackingwhat = "deer3";
} else if ((random(5) == 3) && (_global.deer4life > 0)) {
target = _root.deer4;
attacktarget = _root.deer4;
attackingwhat = "deer4";
} else {
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(8);
if (follower.speed < 4) {
follower.speed = 4;
}
follower.turnRate = 1;
life = 100;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(attacktarget)) {
attacking = 1;
}
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 50;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Instance of Symbol 15 MovieClip in Symbol 109 MovieClip Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 100;
}
}
Symbol 109 MovieClip Frame 27
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 117 MovieClip Frame 8
stop();
Symbol 118 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._parent._x - random(10), _y:_parent._parent._y - random(10)});
Symbol 118 MovieClip Frame 6
_parent.gotoAndStop("move");
Symbol 122 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 122 MovieClip Frame 27
stop();
_parent._parent.removeMovieClip();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 2
stop();
Symbol 123 MovieClip Frame 3
stop();
Symbol 123 MovieClip Frame 4
stop();
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip [enemy6] Frame 1
onClipEvent (load) {
follower = this._parent;
target = _root.santa;
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(3);
if (follower.speed == 0) {
follower.speed = 1;
}
follower.turnRate = 1;
life = 200;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (attacking == 0) {
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 150;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Instance of Symbol 137 MovieClip in Symbol 138 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_parent._parent.attackingwhat == "deer1") {
if (this.hitTest(_root.deer1) && (_global.deer1life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer1._x - random(10), _y:_root.deer1._y - random(10)});
_global.deer1life = _global.deer1life - 50;
}
} else if (_parent._parent.attackingwhat == "deer2") {
if (this.hitTest(_root.deer2) && (_global.deer2life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer2._x - random(10), _y:_root.deer2._y - random(10)});
_global.deer2life = _global.deer2life - 50;
}
} else if (_parent._parent.attackingwhat == "deer3") {
if (this.hitTest(_root.deer3) && (_global.deer3life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer3._x - random(10), _y:_root.deer3._y - random(10)});
_global.deer3life = _global.deer3life - 50;
}
} else if (_parent._parent.attackingwhat == "deer4") {
if (this.hitTest(_root.deer4) && (_global.deer4life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer4._x - random(10), _y:_root.deer4._y - random(10)});
_global.deer4life = _global.deer4life - 50;
}
} else if (_parent._parent.attackingwhat == "santa") {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 100;
}
}
}
Symbol 138 MovieClip Frame 27
if (_parent.attackingwhat != "santa") {
if (_global.deer1life < 1) {
if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer2life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer3life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer4life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
}
}
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 146 MovieClip Frame 13
_parent.removeMovieClip();
stop();
Symbol 147 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._parent._x - random(10), _y:_parent._parent._y - random(10)});
Symbol 147 MovieClip Frame 6
_parent.gotoAndStop("move");
Symbol 150 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 150 MovieClip Frame 27
stop();
_parent._parent.removeMovieClip();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stop();
Symbol 151 MovieClip Frame 3
stop();
Symbol 151 MovieClip Frame 4
stop();
Instance of Symbol 151 MovieClip in Symbol 152 MovieClip [enemy5] Frame 1
onClipEvent (load) {
follower = this._parent;
if ((random(5) == 0) && (_global.deer1life > 0)) {
target = _root.deer1;
attacktarget = _root.deer1;
attackingwhat = "deer1";
} else if ((random(5) == 1) && (_global.deer2life > 0)) {
target = _root.deer2;
attacktarget = _root.deer2;
attackingwhat = "deer2";
} else if ((random(5) == 2) && (_global.deer3life > 0)) {
target = _root.deer3;
attacktarget = _root.deer3;
attackingwhat = "deer3";
} else if ((random(5) == 3) && (_global.deer4life > 0)) {
target = _root.deer4;
attacktarget = _root.deer4;
attackingwhat = "deer4";
} else {
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(3);
if (follower.speed == 0) {
follower.speed = 1;
}
follower.turnRate = 1;
life = 100;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(attacktarget)) {
attacking = 1;
}
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 150;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Instance of Symbol 137 MovieClip in Symbol 174 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_parent._parent.attackingwhat == "deer1") {
if (this.hitTest(_root.deer1) && (_global.deer1life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer1._x - random(10), _y:_root.deer1._y - random(10)});
_global.deer1life = _global.deer1life - 20;
}
} else if (_parent._parent.attackingwhat == "deer2") {
if (this.hitTest(_root.deer2) && (_global.deer2life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer2._x - random(10), _y:_root.deer2._y - random(10)});
_global.deer2life = _global.deer2life - 20;
}
} else if (_parent._parent.attackingwhat == "deer3") {
if (this.hitTest(_root.deer3) && (_global.deer3life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer3._x - random(10), _y:_root.deer3._y - random(10)});
_global.deer3life = _global.deer3life - 20;
}
} else if (_parent._parent.attackingwhat == "deer4") {
if (this.hitTest(_root.deer4) && (_global.deer4life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer4._x - random(10), _y:_root.deer4._y - random(10)});
_global.deer4life = _global.deer4life - 20;
}
} else if (_parent._parent.attackingwhat == "santa") {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 20;
}
}
}
Symbol 174 MovieClip Frame 28
if (_parent.attackingwhat != "santa") {
if (_global.deer1life < 1) {
if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer2life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer3life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if (_global.deer4life < 1) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
}
}
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 175 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._parent._x - random(10), _y:_parent._parent._y - random(10)});
Symbol 175 MovieClip Frame 5
_parent.gotoAndStop("move");
Symbol 179 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 179 MovieClip Frame 26
stop();
_parent._parent.removeMovieClip();
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
stop();
Symbol 180 MovieClip Frame 3
stop();
Symbol 180 MovieClip Frame 4
stop();
Instance of Symbol 180 MovieClip in Symbol 181 MovieClip [enemy1] Frame 1
onClipEvent (load) {
follower = this._parent;
if ((random(5) == 0) && (_global.deer1life > 0)) {
target = _root.deer1;
attacktarget = _root.deer1;
attackingwhat = "deer1";
} else if ((random(5) == 1) && (_global.deer2life > 0)) {
target = _root.deer2;
attacktarget = _root.deer2;
attackingwhat = "deer2";
} else if ((random(5) == 2) && (_global.deer3life > 0)) {
target = _root.deer3;
attacktarget = _root.deer3;
attackingwhat = "deer3";
} else if ((random(5) == 3) && (_global.deer4life > 0)) {
target = _root.deer4;
attacktarget = _root.deer4;
attackingwhat = "deer4";
} else {
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(3);
if (follower.speed == 0) {
follower.speed = 1;
}
follower.turnRate = 0.7;
life = 20;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(attacktarget)) {
attacking = 1;
}
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 50;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Super Santa Gun") {
if (_global.ssgbullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Instance of Symbol 137 MovieClip in Symbol 198 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_parent._parent.attackingwhat == "deer1") {
if (this.hitTest(_root.deer1) && (_global.deer1life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer1._x - random(10), _y:_root.deer1._y - random(10)});
_global.deer1life = _global.deer1life - 50;
}
} else if (_parent._parent.attackingwhat == "deer2") {
if (this.hitTest(_root.deer2) && (_global.deer2life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer2._x - random(10), _y:_root.deer2._y - random(10)});
_global.deer2life = _global.deer2life - 50;
}
} else if (_parent._parent.attackingwhat == "deer3") {
if (this.hitTest(_root.deer3) && (_global.deer3life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer3._x - random(10), _y:_root.deer3._y - random(10)});
_global.deer3life = _global.deer3life - 50;
}
} else if (_parent._parent.attackingwhat == "deer4") {
if (this.hitTest(_root.deer4) && (_global.deer4life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer4._x - random(10), _y:_root.deer4._y - random(10)});
_global.deer4life = _global.deer4life - 50;
}
} else if (_parent._parent.attackingwhat == "santa") {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 50;
}
}
}
Symbol 198 MovieClip Frame 23
if (_parent.attackingwhat != "santa") {
if ((_global.deer1life < 1) && (_parent.attackingwhat == "deer1")) {
if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer2life < 1) && (_parent.attackingwhat == "deer2")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer3life < 1) && (_parent.attackingwhat == "deer3")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer4life < 1) && (_parent.attackingwhat == "deer4")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
}
}
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 199 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._parent._x - random(10), _y:_parent._parent._y - random(10)});
Symbol 199 MovieClip Frame 5
_parent.gotoAndStop("move");
Symbol 203 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 203 MovieClip Frame 27
stop();
_parent._parent.removeMovieClip();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 2
stop();
Symbol 204 MovieClip Frame 3
stop();
Symbol 204 MovieClip Frame 4
stop();
Instance of Symbol 204 MovieClip in Symbol 205 MovieClip [enemy2] Frame 1
onClipEvent (load) {
follower = this._parent;
if ((random(5) == 0) && (_global.deer1life > 0)) {
target = _root.deer1;
attacktarget = _root.deer1;
attackingwhat = "deer1";
} else if ((random(5) == 1) && (_global.deer2life > 0)) {
target = _root.deer2;
attacktarget = _root.deer2;
attackingwhat = "deer2";
} else if ((random(5) == 2) && (_global.deer3life > 0)) {
target = _root.deer3;
attacktarget = _root.deer3;
attackingwhat = "deer3";
} else if ((random(5) == 3) && (_global.deer4life > 0)) {
target = _root.deer4;
attacktarget = _root.deer4;
attackingwhat = "deer4";
} else {
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(5);
if (follower.speed < 3) {
follower.speed = 3;
}
follower.turnRate = 0.3;
life = 20;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(attacktarget)) {
attacking = 1;
}
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 50;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Bazooka") {
if (_global.bazookabullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Super Santa Gun") {
if (_global.ssgbullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Instance of Symbol 137 MovieClip in Symbol 227 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_parent._parent.attackingwhat == "deer1") {
if (this.hitTest(_root.deer1) && (_global.deer1life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer1._x - random(10), _y:_root.deer1._y - random(10)});
_global.deer1life = _global.deer1life - 70;
}
} else if (_parent._parent.attackingwhat == "deer2") {
if (this.hitTest(_root.deer2) && (_global.deer2life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer2._x - random(10), _y:_root.deer2._y - random(10)});
_global.deer2life = _global.deer2life - 70;
}
} else if (_parent._parent.attackingwhat == "deer3") {
if (this.hitTest(_root.deer3) && (_global.deer3life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer3._x - random(10), _y:_root.deer3._y - random(10)});
_global.deer3life = _global.deer3life - 70;
}
} else if (_parent._parent.attackingwhat == "deer4") {
if (this.hitTest(_root.deer4) && (_global.deer4life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer4._x - random(10), _y:_root.deer4._y - random(10)});
_global.deer4life = _global.deer4life - 70;
}
} else if (_parent._parent.attackingwhat == "santa") {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 70;
}
}
}
Symbol 227 MovieClip Frame 33
if (_parent.attackingwhat != "santa") {
if ((_global.deer1life < 1) && (_parent.attackingwhat == "deer1")) {
if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer2life < 1) && (_parent.attackingwhat == "deer2")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer3life < 1) && (_parent.attackingwhat == "deer3")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer4life < 1) && (_parent.attackingwhat == "deer4")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
}
}
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 235 MovieClip Frame 8
stop();
Symbol 236 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._parent._x - random(10), _y:_parent._parent._y - random(10)});
Symbol 236 MovieClip Frame 5
_parent.gotoAndStop("move");
Symbol 240 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 240 MovieClip Frame 45
stop();
_parent._parent.removeMovieClip();
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 241 MovieClip Frame 3
stop();
Symbol 241 MovieClip Frame 4
stop();
Instance of Symbol 241 MovieClip in Symbol 242 MovieClip [enemy3] Frame 1
onClipEvent (load) {
follower = this._parent;
if ((random(5) == 0) && (_global.deer1life > 0)) {
target = _root.deer1;
attacktarget = _root.deer1;
attackingwhat = "deer1";
} else if ((random(5) == 1) && (_global.deer2life > 0)) {
target = _root.deer2;
attacktarget = _root.deer2;
attackingwhat = "deer2";
} else if ((random(5) == 2) && (_global.deer3life > 0)) {
target = _root.deer3;
attacktarget = _root.deer3;
attackingwhat = "deer3";
} else if ((random(5) == 3) && (_global.deer4life > 0)) {
target = _root.deer4;
attacktarget = _root.deer4;
attackingwhat = "deer4";
} else {
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(3);
if (follower.speed == 0) {
follower.speed = 1;
}
follower.turnRate = 1;
life = 30;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(attacktarget)) {
attacking = 1;
}
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 50;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Bazooka") {
if (_global.bazookabullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Super Santa Gun") {
if (_global.ssgbullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Instance of Symbol 137 MovieClip in Symbol 268 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_parent._parent.attackingwhat == "deer1") {
if (this.hitTest(_root.deer1) && (_global.deer1life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer1._x - random(10), _y:_root.deer1._y - random(10)});
_global.deer1life = _global.deer1life - 80;
}
} else if (_parent._parent.attackingwhat == "deer2") {
if (this.hitTest(_root.deer2) && (_global.deer2life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer2._x - random(10), _y:_root.deer2._y - random(10)});
_global.deer2life = _global.deer2life - 80;
}
} else if (_parent._parent.attackingwhat == "deer3") {
if (this.hitTest(_root.deer3) && (_global.deer3life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer3._x - random(10), _y:_root.deer3._y - random(10)});
_global.deer3life = _global.deer3life - 80;
}
} else if (_parent._parent.attackingwhat == "deer4") {
if (this.hitTest(_root.deer4) && (_global.deer4life > 0)) {
_root.deerpain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.deer4._x - random(10), _y:_root.deer4._y - random(10)});
_global.deer4life = _global.deer4life - 80;
}
} else if (_parent._parent.attackingwhat == "santa") {
if (this.hitTest(_root.santa.target) && (_global.santalife > 0)) {
_root.santapain.start();
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_root.santa._x - random(10), _y:_root.santa._y - random(10)});
_global.santalife = _global.santalife - 80;
}
}
}
Symbol 268 MovieClip Frame 33
if (_parent.attackingwhat != "santa") {
if ((_global.deer1life < 1) && (_parent.attackingwhat == "deer1")) {
if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer2life < 1) && (_parent.attackingwhat == "deer2")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer3life < 1) && (_parent.attackingwhat == "deer3")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else if (_global.deer4life > 0) {
_parent.target = _root.deer4;
_parent.attacktarget = _root.deer4;
_parent.attackingwhat = "deer4";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
} else if ((_global.deer4life < 1) && (_parent.attackingwhat == "deer4")) {
if (_global.deer1life > 0) {
_parent.target = _root.deer1;
_parent.attacktarget = _root.deer1;
_parent.attackingwhat = "deer1";
} else if (_global.deer3life > 0) {
_parent.target = _root.deer3;
_parent.attacktarget = _root.deer3;
_parent.attackingwhat = "deer3";
} else if (_global.deer2life > 0) {
_parent.target = _root.deer2;
_parent.attacktarget = _root.deer2;
_parent.attackingwhat = "deer2";
} else {
_parent.target = _root.santa;
_parent.attacktarget = _root.santa.target;
_parent.attackingwhat = "santa";
}
}
}
_parent.attacking = 0;
_parent.gotoAndStop("move");
Symbol 269 MovieClip Frame 1
_parent.life = _parent.life - _global.gunpower;
blood = _root.attachMovie("dugo", "dugo_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._parent._x - random(10), _y:_parent._parent._y - random(10)});
Symbol 269 MovieClip Frame 8
_parent.gotoAndStop("move");
Symbol 273 MovieClip Frame 1
xx = random(6);
if (xx == 0) {
_root.growl1.start();
} else if (xx == 1) {
_root.growl2.start();
} else if (xx == 2) {
_root.growl3.start();
} else if (xx == 3) {
_root.growl4.start();
} else if (xx == 4) {
_root.growl5.start();
} else if (xx == 5) {
_root.growl6.start();
} else if (xx == 6) {
_root.growl7.start();
}
Symbol 273 MovieClip Frame 36
stop();
_parent._parent.removeMovieClip();
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
stop();
Symbol 274 MovieClip Frame 3
stop();
Symbol 274 MovieClip Frame 4
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip [enemy4] Frame 1
onClipEvent (load) {
follower = this._parent;
if ((random(5) == 0) && (_global.deer1life > 0)) {
target = _root.deer1;
attacktarget = _root.deer1;
attackingwhat = "deer1";
} else if ((random(5) == 1) && (_global.deer2life > 0)) {
target = _root.deer2;
attacktarget = _root.deer2;
attackingwhat = "deer2";
} else if ((random(5) == 2) && (_global.deer3life > 0)) {
target = _root.deer3;
attacktarget = _root.deer3;
attackingwhat = "deer3";
} else if ((random(5) == 3) && (_global.deer4life > 0)) {
target = _root.deer4;
attacktarget = _root.deer4;
attackingwhat = "deer4";
} else {
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
var radians = 57.2957795130823;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = random(2);
if (follower.speed == 0) {
follower.speed = 1;
}
follower.turnRate = 0.3;
life = 40;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if ((life > 0) && (_global.gamepaused == 0)) {
if (attacking == 0) {
if (this.ztarget.hitTest(_root.crosshair.dot.explosion) && (_global.santalife > 0)) {
if (_global.currentweapon == "Bazooka") {
life = 0;
}
}
if (this.ztarget.hitTest(_root.santa.santamain.santatop.santaarm.ssg.superlaser) && (_global.santalife > 0)) {
if (_global.currentweapon == "Laser Gun") {
life = 0;
}
}
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (this.ztarget.hitTest(attacktarget)) {
attacking = 1;
}
if (this.ztarget.hitTest(_root.santa.target)) {
attacking = 1;
target = _root.santa;
attacktarget = _root.santa.target;
attackingwhat = "santa";
}
} else {
this.gotoAndStop("attack");
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
_global.money = _global.money + 50;
_global.stagekill = _global.stagekill + 1;
_global.zombieskilled = _global.zombieskilled + 1;
_global.zombiesummonkilled = _global.zombiesummonkilled + 1;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
onClipEvent (mouseDown) {
if (this.ztarget.hitTest(_root.crosshair.dot) && (_global.santalife > 0)) {
if (_global.currentweapon == "Handgun") {
if (_global.handgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Magnum") {
if (_global.magnumbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "Shotgun") {
if (_global.shotgunbullet > 0) {
this.gotoAndStop("hurt");
}
} else if (_global.currentweapon == "M16") {
if (_global.m16bullet > 0) {
this.gotoAndStop("hurt");
}
}
}
}
Symbol 294 Button
on (release) {
getURL ("http://www.snipinggames.net", blank);
}
Symbol 300 MovieClip Frame 181
_root.play();
Symbol 315 Button
on (release) {
_root.gotoAndStop("intro");
}
Symbol 316 Button
on (release) {
_root.clickfx.start();
myLSO = SharedObject.getLocal("xmasnightmaresavedgame");
if (myLSO.data.myObj == undefined) {
trace("No Saved Game");
} else {
trace("Loaded Game");
_global.gamelevel = myLSO.data.myObj.objArray[0];
_global.santalife = myLSO.data.myObj.objArray[1];
_global.zombies = myLSO.data.myObj.objArray[2];
_global.gunpower = myLSO.data.myObj.objArray[3];
_global.currentweapon = myLSO.data.myObj.objArray[4];
_global.handgun = myLSO.data.myObj.objArray[5];
_global.magnum = myLSO.data.myObj.objArray[6];
_global.shotgun = myLSO.data.myObj.objArray[7];
_global.m16 = myLSO.data.myObj.objArray[8];
_global.bazooka = myLSO.data.myObj.objArray[9];
_global.supersantagun = myLSO.data.myObj.objArray[10];
_global.handgunbullet = myLSO.data.myObj.objArray[11];
_global.magnumbullet = myLSO.data.myObj.objArray[12];
_global.shotgunbullet = myLSO.data.myObj.objArray[13];
_global.m16bullet = myLSO.data.myObj.objArray[14];
_global.ssgbullet = myLSO.data.myObj.objArray[15];
_global.maxlife = myLSO.data.myObj.objArray[16];
_global.money = myLSO.data.myObj.objArray[17];
_global.deer1life = myLSO.data.myObj.objArray[18];
_global.deer2life = myLSO.data.myObj.objArray[19];
_global.deer3life = myLSO.data.myObj.objArray[20];
_global.deer4life = myLSO.data.myObj.objArray[21];
_global.gamepaused = 1;
_global.loadedgame = 1;
_root.gotoAndStop("game");
}
}
Symbol 317 Button
on (release) {
_root.gotoAndStop("controls");
}
Symbol 318 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 319 Button
on (release) {
getURL ("http://www.addictinggames.com/filters/cuteshooters.html", "_blank");
}
Symbol 325 Button
on (release) {
getURL ("http://www.ultimateflashgame.com", "_blank");
}
Symbol 326 MovieClip Frame 29
stop();
Instance of Symbol 284 MovieClip in Symbol 326 MovieClip Frame 29
on (release) {
getURL ("http://www.snipinggames.net", "_blank");
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 355 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 366 MovieClip Frame 2
_root.deerdeadsound.start();
Symbol 366 MovieClip Frame 40
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
stop();
Instance of Symbol 369 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.santatarget)) {
_root.santa._y = _root.santa._y - 4;
}
}
Instance of Symbol 369 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.santatarget)) {
_root.santa._x = _root.santa._x - 4;
}
}
Instance of Symbol 369 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.santatarget)) {
_root.santa._y = _root.santa._y + 4;
}
}
Instance of Symbol 369 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.santa.santatarget)) {
_root.santa._x = _root.santa._x + 4;
}
}
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 2
stop();
Instance of Symbol 379 MovieClip "feet" in Symbol 381 MovieClip Frame 1
onClipEvent (keyDown) {
this.gotoAndStop(2);
}
onClipEvent (keyUp) {
this.gotoAndStop(1);
}
Symbol 388 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
stop();
Symbol 413 MovieClip Frame 3
stop();
Symbol 413 MovieClip Frame 4
stop();
Symbol 414 MovieClip Frame 1
stop();
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 2
onClipEvent (enterFrame) {
if (random(3) == 0) {
this.gotoAndStop(1);
} else if (random(3) == 1) {
this.gotoAndStop(2);
} else if (random(3) == 2) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(4);
}
}
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 6
_root.crosshair.dot.gotoAndPlay(2);
Symbol 424 MovieClip Frame 9
_global.bazookabullet = _global.bazookabullet - 1;
_global.firing = 0;
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 53
_global.ssgbullet = _global.ssgbullet - 1;
_global.firing = 0;
Symbol 496 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip in Symbol 496 MovieClip Frame 1
onClipEvent (mouseDown) {
if (((_global.santalife > 0) && (_global.gamepaused == 0)) && (_global.reloading == 0)) {
if ((_global.handgunbullet > 0) && (_global.currentweapon == "Handgun")) {
_root.handgunsound.start();
_global.handgunbullet = _global.handgunbullet - 1;
this.gotoAndPlay(2);
} else if (_global.reloading == 0) {
_root.nobullet.start();
this._parent._parent._parent.gotoAndStop("reload");
}
}
}
Symbol 496 MovieClip Frame 2
stop();
Instance of Symbol 392 MovieClip in Symbol 496 MovieClip Frame 2
onClipEvent (mouseDown) {
if (((_global.santalife > 0) && (_global.gamepaused == 0)) && (_global.reloading == 0)) {
if ((_global.magnumbullet > 0) && (_global.currentweapon == "Magnum")) {
_root.magnumsound.start();
_global.magnumbullet = _global.magnumbullet - 1;
this.gotoAndPlay(2);
} else if (_global.reloading == 0) {
_root.nobullet.start();
this._parent._parent._parent.gotoAndStop("reload");
}
}
}
Symbol 496 MovieClip Frame 3
stop();
Instance of Symbol 405 MovieClip in Symbol 496 MovieClip Frame 3
onClipEvent (mouseDown) {
if (((_global.santalife > 0) && (_global.gamepaused == 0)) && (_global.reloading == 0)) {
if ((_global.shotgunbullet > 0) && (_global.currentweapon == "Shotgun")) {
_root.shotgunsound.start();
_global.shotgunbullet = _global.shotgunbullet - 1;
this.gotoAndPlay(2);
} else if (_global.reloading == 0) {
_root.nobullet.start();
this._parent._parent._parent.gotoAndStop("reload");
}
}
}
Symbol 496 MovieClip Frame 4
stop();
Instance of Symbol 414 MovieClip in Symbol 496 MovieClip Frame 4
onClipEvent (mouseDown) {
if (((_global.santalife > 0) && (_global.gamepaused == 0)) && (_global.reloading == 0)) {
if ((_global.m16bullet > 0) && (_global.currentweapon == "M16")) {
_root.m16sound.start();
_global.m16bullet = _global.m16bullet - 1;
this.gotoAndPlay(2);
} else if (_global.reloading == 0) {
_root.nobullet.start();
this._parent._parent._parent.gotoAndStop("reload");
}
}
}
Symbol 496 MovieClip Frame 5
stop();
Instance of Symbol 424 MovieClip in Symbol 496 MovieClip Frame 5
onClipEvent (mouseDown) {
if (((_global.santalife > 0) && (_global.gamepaused == 0)) && (_global.reloading == 0)) {
if ((_global.bazookabullet > 0) && (_global.currentweapon == "Bazooka")) {
if (_global.firing != 1) {
_root.bazookasound.start();
_global.firing = 1;
this.gotoAndPlay(2);
}
} else if (_global.reloading == 0) {
_root.nobullet.start();
this._parent._parent._parent.gotoAndStop("reload");
}
}
}
Symbol 496 MovieClip Frame 6
stop();
Instance of Symbol 495 MovieClip "ssg" in Symbol 496 MovieClip Frame 6
onClipEvent (mouseDown) {
if (((_global.santalife > 0) && (_global.gamepaused == 0)) && (_global.reloading == 0)) {
if ((_global.ssgbullet > 0) && (_global.currentweapon == "Laser Gun")) {
if (_global.firing != 1) {
_root.ssgsound.start();
_global.firing = 1;
this.gotoAndPlay(2);
}
} else if (_global.reloading == 0) {
_root.nobullet.start();
this._parent._parent._parent.gotoAndStop("reload");
}
}
}
Instance of Symbol 496 MovieClip "santaarm" in Symbol 498 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.currentweapon == "Handgun") {
this.gotoAndStop(1);
} else if (_global.currentweapon == "Magnum") {
this.gotoAndStop(2);
} else if (_global.currentweapon == "Shotgun") {
this.gotoAndStop(3);
} else if (_global.currentweapon == "M16") {
this.gotoAndStop(4);
} else if (_global.currentweapon == "Bazooka") {
this.gotoAndStop(5);
} else if (_global.currentweapon == "Laser Gun") {
this.gotoAndStop(6);
}
}
Symbol 500 MovieClip Frame 1
_global.reloading = 1;
Instance of Symbol 496 MovieClip "santaarm" in Symbol 500 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.currentweapon == "Handgun") {
this.gotoAndStop(1);
} else if (_global.currentweapon == "Magnum") {
this.gotoAndStop(2);
} else if (_global.currentweapon == "Shotgun") {
this.gotoAndStop(3);
} else if (_global.currentweapon == "M16") {
this.gotoAndStop(4);
} else if (_global.currentweapon == "Bazooka") {
this.gotoAndStop(5);
} else if (_global.currentweapon == "Laser Gun") {
this.gotoAndStop(6);
}
}
Symbol 500 MovieClip Frame 7
_root.reloadsound.start();
Symbol 500 MovieClip Frame 32
if (_global.currentweapon == "Laser Gun") {
_global.reloading = 0;
_global.ssgbullet = 1;
_parent.gotoAndStop("move");
}
_root.reloadsound.start();
Symbol 500 MovieClip Frame 44
if (_global.currentweapon == "Handgun") {
_global.reloading = 0;
_global.handgunbullet = 10;
_parent.gotoAndStop("move");
}
_root.reloadsound.start();
Symbol 500 MovieClip Frame 59
if (_global.currentweapon == "Magnum") {
_global.reloading = 0;
_global.magnumbullet = 7;
_parent.gotoAndStop("move");
}
_root.reloadsound.start();
Symbol 500 MovieClip Frame 75
if (_global.currentweapon == "M16") {
_global.reloading = 0;
_global.m16bullet = 30;
_parent.gotoAndStop("move");
}
Symbol 500 MovieClip Frame 88
if (_global.currentweapon == "Shotgun") {
_global.reloading = 0;
_global.shotgunbullet = 8;
_parent.gotoAndStop("move");
}
Symbol 500 MovieClip Frame 103
if (_global.currentweapon == "Bazooka") {
_global.reloading = 0;
_global.bazookabullet = 1;
_parent.gotoAndStop("move");
}
Symbol 501 MovieClip Frame 30
stop();
_global.gameover = 1;
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 2
stop();
Symbol 502 MovieClip Frame 3
stop();
Instance of Symbol 502 MovieClip "santamain" in Symbol 503 MovieClip Frame 1
onClipEvent (load) {
var radians = 57.2957795130823;
hitting = 0;
}
onClipEvent (enterFrame) {
if (this._parent._x < 0) {
this._parent._x = 0;
}
if (this._parent._x > 700) {
this._parent._x = 700;
}
if (this._parent._y < 0) {
this._parent._y = 0;
}
if (this._parent._y > 700) {
this._parent._y = 700;
}
if (_global.santalife > 0) {
this._rotation = Math.atan2(_root._ymouse - _parent._y, _root._xmouse - _parent._x) * radians;
if (Key.isDown(87)) {
this.santatop.santamove.feet.gotoAndStop(2);
this._parent._y = this._parent._y - 4;
}
if (Key.isDown(65)) {
this.santatop.santamove.feet.gotoAndStop(2);
this._parent._x = this._parent._x - 4;
}
if (Key.isDown(83)) {
this.santatop.santamove.feet.gotoAndStop(2);
this._parent._y = this._parent._y + 4;
}
if (Key.isDown(68)) {
this.santatop.santamove.feet.gotoAndStop(2);
this._parent._x = this._parent._x + 4;
}
if (Key.isDown(82) || (Key.isDown(32))) {
_global.reloading = 1;
if (_global.currentweapon == "Handgun") {
_global.handgunbullet = 0;
} else if (_global.currentweapon == "Magnum") {
_global.magnumbullet = 0;
} else if (_global.currentweapon == "Shotgun") {
_global.shotgunbullet = 0;
} else if (_global.currentweapon == "M16") {
_global.m16bullet = 0;
} else if (_global.currentweapon == "Bazooka") {
_global.bazookabullet = 0;
} else if (_global.currentweapon == "Laser Gun") {
_global.ssgbullet = 0;
}
this.gotoAndStop("reload");
}
}
if ((_global.santalife < 1) && (checking != 1)) {
checking = 1;
_root.gameover.gotoAndPlay(2);
this.gotoAndStop("dead");
}
if (((((_global.deer1life < 1) && (_global.deer2life < 1)) && (_global.deer3life < 1)) && (_global.deer4life < 1)) && (checking != 1)) {
checking = 1;
_root.gameover.gotoAndPlay(2);
}
}
Symbol 553 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 2
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 563 Button
on (release) {
_root.nobullet.start();
_global.handgunbullet = 10;
_global.gunpower = 10;
_global.currentweapon = "Handgun";
}
Symbol 564 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 500) && (_global.handgun == 0)) {
_global.money = _global.money - 500;
_global.handgun = 1;
}
}
Symbol 567 Button
on (release) {
_root.nobullet.start();
if (_global.magnum == 1) {
_global.magnumbullet = 7;
_global.gunpower = 25;
_global.currentweapon = "Magnum";
}
}
Symbol 568 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 1000) && (_global.magnum == 0)) {
_global.money = _global.money - 1000;
_global.magnum = 1;
}
}
Symbol 569 Button
on (release) {
_root.nobullet.start();
if (_global.shotgun == 1) {
_global.shotgunbullet = 8;
_global.gunpower = 20;
_global.currentweapon = "Shotgun";
}
}
Symbol 570 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 3500) && (_global.shotgun == 0)) {
_global.money = _global.money - 3500;
_global.shotgun = 1;
}
}
Symbol 571 Button
on (release) {
_root.nobullet.start();
if (_global.m16 == 1) {
_global.m16bullet = 30;
_global.gunpower = 25;
_global.currentweapon = "M16";
}
}
Symbol 572 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 7000) && (_global.m16 == 0)) {
_global.money = _global.money - 7000;
_global.m16 = 1;
}
}
Symbol 573 Button
on (release) {
_root.nobullet.start();
if (_global.bazooka == 1) {
_global.handgunbullet = 1;
_global.gunpower = 500;
_global.currentweapon = "Bazooka";
}
}
Symbol 574 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 12000) && (_global.bazooka == 0)) {
_global.money = _global.money - 12000;
_global.bazooka = 1;
}
}
Symbol 575 Button
on (release) {
_root.nobullet.start();
if (_global.supersantagun == 1) {
_global.ssgbullet = 1;
_global.gunpower = 900;
_global.currentweapon = "Laser Gun";
}
}
Symbol 576 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 25000) && (_global.supersantagun == 0)) {
_global.money = _global.money - 25000;
_global.supersantagun = 1;
}
}
Symbol 577 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 1000) && (_global.santalife != _global.maxlife)) {
_global.money = _global.money - 1000;
_global.santalife = _global.santalife + 500;
if (_global.santalife > _global.maxlife) {
_global.santalife = _global.maxlife;
}
}
}
Symbol 578 Button
on (release) {
_root.nobullet.start();
if ((_global.money >= 3000) && (_global.maxlife < 1500)) {
_global.money = _global.money - 3000;
_global.maxlife = _global.maxlife + 250;
if (_global.maxlife > 1500) {
_global.maxlife = 1500;
}
}
}
Symbol 581 Button
on (release) {
if (_global.gamelevel == 30) {
_root.gotoAndPlay("ending");
}
_global.stagekill = 0;
_global.gamelevel = _global.gamelevel + 1;
_global.zombieskilled = 0;
gotoAndPlay (68);
}
Symbol 583 Button
on (release) {
_root.clickfx.start();
myLSO = SharedObject.getLocal("xmasnightmaresavedgame");
if (myLSO.data.myObj == undefined) {
trace("Saved Game");
} else {
trace("Overwrote Saved Game");
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = _global.gamelevel;
myObj.objArray[1] = _global.santalife;
myObj.objArray[2] = _global.zombies;
myObj.objArray[3] = _global.gunpower;
myObj.objArray[4] = _global.currentweapon;
myObj.objArray[5] = _global.handgun;
myObj.objArray[6] = _global.magnum;
myObj.objArray[7] = _global.shotgun;
myObj.objArray[8] = _global.m16;
myObj.objArray[9] = _global.bazooka;
myObj.objArray[10] = _global.supersantagun;
myObj.objArray[11] = _global.handgunbullet;
myObj.objArray[12] = _global.magnumbullet;
myObj.objArray[13] = _global.shotgunbullet;
myObj.objArray[14] = _global.m16bullet;
myObj.objArray[15] = _global.ssgbullet;
myObj.objArray[16] = _global.maxlife;
myObj.objArray[17] = _global.money;
myObj.objArray[18] = _global.deer1life;
myObj.objArray[19] = _global.deer2life;
myObj.objArray[20] = _global.deer3life;
myObj.objArray[21] = _global.deer4life;
myLSO.data.myObj = myObj;
gameprogress.gotoAndPlay(2);
}
Symbol 587 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 2
trace("load me here yeah");
_global.gamepaused = 1;
_global.cleanup = 1;
gotoAndPlay (3);
Symbol 588 MovieClip Frame 68
stop();
Instance of Symbol 553 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.handgun == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 556 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.currentweapon == "Handgun") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 553 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.magnum == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 556 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.currentweapon == "Magnum") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 553 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.shotgun == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 556 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.currentweapon == "Shotgun") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 553 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.m16 == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 556 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.currentweapon == "M16") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 553 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.bazooka == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 556 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.currentweapon == "Bazooka") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 553 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.supersantagun == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 556 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
if (_global.currentweapon == "Laser Gun") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 533 MovieClip in Symbol 588 MovieClip Frame 68
onClipEvent (enterFrame) {
txtlife = (_global.santalife + "/") + _global.maxlife;
txtlevel = _global.gamelevel;
txtmoney = _global.money;
if (_global.currentweapon == "Handgun") {
txtweapon = (_global.currentweapon + " ") + _global.handgunbullet;
} else if (_global.currentweapon == "Magnum") {
txtweapon = (_global.currentweapon + " ") + _global.magnumbullet;
} else if (_global.currentweapon == "Shotgun") {
txtweapon = (_global.currentweapon + " ") + _global.shotgunbullet;
} else if (_global.currentweapon == "M16") {
txtweapon = (_global.currentweapon + " ") + _global.m16bullet;
} else if (_global.currentweapon == "Bazooka") {
txtweapon = (_global.currentweapon + " ") + _global.bazookabullet;
} else if (_global.currentweapon == "Super Santa Gun") {
txtweapon = (_global.currentweapon + " ") + _global.ssgbullet;
}
}
Symbol 588 MovieClip Frame 78
_global.cleanup = 0;
_global.gamepaused = 0;
Symbol 594 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 595 Button
on (release) {
getURL ("http://www.snipinggames.net", "_blank");
}
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 2
_global.gamepaused = 1;
Symbol 596 MovieClip Frame 23
stop();
Symbol 601 MovieClip Frame 1
stop();
_global.exploding = 0;
Symbol 601 MovieClip Frame 2
_root.explodesound.start();
_global.exploding = 1;
Symbol 602 MovieClip Frame 1
stop();
stop();
Symbol 602 MovieClip Frame 2
stop();
Symbol 602 MovieClip Frame 3
stop();
Symbol 602 MovieClip Frame 4
stop();
Symbol 602 MovieClip Frame 5
stop();
Symbol 602 MovieClip Frame 6
stop();
Symbol 608 Button
on (release) {
getURL ("http://www.snipinggames.net", "_blank");
}