Frame 2
i = int((_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100);
txtPercentLoaded = i;
if (i < 100) {
gotoAndPlay (1);
}
Frame 29
function resetKeys() {
_level0.varKeyTextQuality = "q";
_level0.varKeyQuality = 81;
_level0.varKeyTextScopeZoom1x = "a";
_level0.varKeyScopeZoom1x = 65;
_level0.varKeyTextScopeZoom2x = "s";
_level0.varKeyScopeZoom2x = 83;
_level0.varKeyTextScopeZoom3x = "d";
_level0.varKeyScopeZoom3x = 68;
_level0.varKeyTextScopeSizeSMALL = "z";
_level0.varKeyScopeSizeSMALL = 90;
_level0.varKeyTextScopeSizeMED = "x";
_level0.varKeyScopeSizeMED = 88;
_level0.varKeyTextScopeSizeLARGE = "c";
_level0.varKeyScopeSizeLARGE = 67;
_level0.varKeyTextReturnToMainMenu = "m";
_level0.varKeyReturnToMainMenu = 77;
}
function resetSettings() {
mcCheckDifficultyEasy.gotoAndStop(1);
mcCheckDifficultyMed.gotoAndStop(1);
mcCheckDifficultyHard.gotoAndStop(1);
_level0.mcCheckBloodOn.gotoAndStop(1);
_level0.mcCheckBloodOff.gotoAndStop(1);
_level0.mcCheckMusicOn.gotoAndStop(1);
_level0.mcCheckMusicOff.gotoAndStop(1);
mcCheckScopeSizeSmall.gotoAndStop(1);
mcCheckScopeSizeMed.gotoAndStop(1);
mcCheckScopeSizeLarge.gotoAndStop(1);
mcCheckZoomScale1x.gotoAndStop(1);
mcCheckZoomScale2x.gotoAndStop(1);
mcCheckZoomScale3x.gotoAndStop(1);
_level0.mcCheckAutoQualityOn.gotoAndStop(1);
_level0.mcCheckAutoQualityOff.gotoAndStop(1);
varOptionBloodOn = true;
varDifficulty = "MED";
varScopeSizeSMALL = 50;
varScopeSizeMED = 75;
varScopeSizeLARGE = 100;
varScopeSize = _level0.varScopeSizeMED;
varZoomScale = 2;
varBGWarningCountEASY = 36;
varBGWarningCountMED = 24;
varBGWarningCountHARD = 18;
varOptionMusicOn = true;
varOptionQualityOn = true;
}
function initializeGUI() {
setBgndScale();
mcSniperView.bigpic._x = 1000;
mcSniperView.bigpic._y = 1000;
startDrag ("/mcSniperView", true, 10, 10, 590, 340);
}
function checkKeyPress() {
if (Key.isDown(varKeyQuality)) {
toggleHighQuality();
} else if (Key.isDown(varKeyScopeZoom1x)) {
_level0.varZoomScale = 1;
_level0.setBgndScale();
} else if (Key.isDown(varKeyScopeZoom2x)) {
_level0.varZoomScale = 2;
_level0.setBgndScale();
} else if (Key.isDown(varKeyScopeZoom3x)) {
_level0.varZoomScale = 3;
_level0.setBgndScale();
} else if (Key.isDown(varKeyScopeSizeSMALL)) {
_level0.varScopeSize = _level0.varScopeSizeSMALL;
_level0.setBgndScale();
} else if (Key.isDown(varKeyScopeSizeMED)) {
_level0.varScopeSize = _level0.varScopeSizeMED;
_level0.setBgndScale();
} else if (Key.isDown(varKeyScopeSizeLARGE)) {
_level0.varScopeSize = 100;
_level0.setBgndScale();
} else if (Key.isDown(varKeyReturnToMainMenu)) {
Mouse.show();
gotoAndPlay (29);
}
}
function setBgndScale() {
mcSniperView._xscale = varScopeSize;
mcSniperView._yscale = varScopeSize;
mcSniperView.bigpic._xscale = (100 * varZoomScale) / (varScopeSize / 100);
mcSniperView.bigpic._yscale = mcSniperView.bigpic._xscale;
}
function updateSniperGunView() {
x_mask = getProperty("mcSniperView", _x);
y_mask = getProperty("mcSniperView", _y);
setProperty("/mcSniperView/bigpic", _x , ((300 - x_mask) * _level0.varZoomScale) / (varScopeSize / 100));
setProperty("/mcSniperView/bigpic", _y , ((175 - y_mask) * _level0.varZoomScale) / (varScopeSize / 100));
X_bigpic = getProperty("mcBadGuy_gun" + currentBadGuy_gunNo, _x);
Y_bigpic = getProperty("mcBadGuy_gun" + currentBadGuy_gunNo, _y);
}
function decreasePlyrHealth(aHealthLoss) {
varPlyrHealth = varPlyrHealth - aHealthLoss;
setProperty(mcPlyrHealth.mcHealthLostBar, _xscale , 100 - varPlyrHealth);
}
function tutiGetsShot() {
_level0.bigPic.mcBloodSpill.play();
_level0.mcSniperView.bigpic.mcBloodSpill.play();
_level0.bigPic.mcBloodAnyShot.play();
_level0.mcSniperView.bigpic.mcBloodAnyShot.play();
trace("HERE");
}
function createRocket(anId, aStartX, aStartY) {
bigPic.mcRocketFull._x = aStartX;
bigPic.mcRocketFull._y = aStartY - 12;
mcSniperView.bigpic.mcRocketFull._x = aStartX;
mcSniperView.bigpic.mcRocketFull._y = aStartY - 12;
varFinishY = rocket.travelY * (Math.random() - 0.5);
rocket.stepY = (varFinishY - aStartY) / (rocket.noOfFramesToTravel * rocket.speed);
varFinishX = rocket.travelX * (Math.random() - 0.5);
rocket.stepX = (varFinishX - aStartX) / (rocket.noOfFramesToTravel * rocket.speed);
varNoOfRockets++;
rocket.status = true;
}
function removeRocket() {
rocket.status = false;
rocket.id = 0;
bigPic.mcRocketFull._x = 500;
bigPic.mcRocketFull._y = 500;
mcSniperView.bigpic.mcRocketFull._x = 500;
mcSniperView.bigpic.mcRocketFull._y = 500;
bigPic.mcRocketFull._xscale = 0;
bigPic.mcRocketFull._yscale = 0;
mcSniperView.bigpic.mcRocketFull._xscale = 0;
mcSniperView.bigpic.mcRocketFull._yscale = 0;
rocket.stepX = 0;
rocket.stepY = 0;
varNoOfRockets--;
rocket.status = false;
}
function checkNegative(aNumber) {
if (aNumber < 0) {
return(0);
}
return(aNumber);
}
function initSystemPerformance() {
prevTime = new Date();
nextRoundFrameNo = 12;
currentTime = Date();
varTimeDiff = 0;
varFrameDiff = 0;
_quality = "HIGH";
}
function checkSystemPerformance() {
now = new Date();
if (_level0.varCurrentRoundFrame >= nextRoundFrameNo) {
nextRoundFrameNo = nextRoundFrameNo + _level0.varFramesPerSecond;
_level0.txtPerformance = Math.round(100000 / (now.getTime() - prevTime.getTime()));
trace("curr round frame " + _level0.varCurrentRoundFrame);
if (_level0.varOptionQualityOn && (35 < _level0.varCurrentRoundFrame)) {
trace((_quality + " _ perf: ") + _level0.txtPerformance);
if ((_level0.txtPerformance < 85) && (_quality == "HIGH")) {
_quality = "MEDIUM";
} else if ((_level0.txtPerformance < 85) && (_quality == "MEDIUM")) {
_quality = "LOW";
}
}
prevTime = new Date();
}
prevRoundFrameNo = 0;
}
function checkShotLocation(xCoord, yCoord, bgTypeNo) {
shotDistance = 100;
if (2 >= bgTypeNo) {
varBGHeadCenterY = varMiniBossHeadCenterY;
} else {
varBGHeadCenterY = varBigGuyHeadCenterY;
}
shotDistance = Math.sqrt(Math.abs(Math.pow(Math.abs(xCoord), 2) + Math.pow(Math.abs(varBGHeadCenterY - yCoord), 2)));
trace(((((("Shot distance: " + shotDistance) + " _ ") + xCoord) + " _ ") + yCoord) + " _ ");
if (varHeadShotRadius >= shotDistance) {
trace("headshot");
varNoOfBGHeadShots++;
return(true);
}
return(false);
}
Mouse.show();
stopAllSounds();
if (0 < this.varTotalScore) {
}
if (!notFirstTime) {
resetKeys();
resetSettings();
notFirstTime = true;
}
_quality = "AUTOHIGH";
varMiniBossHeadCenterY = -22;
varBigGuyHeadCenterY = -31;
varHeadShotRadius = 2.5;
this.varTotalScore = 0;
varRoundNo = 0;
stop();
Frame 30
this.stop();
Frame 31
this.stop();
Frame 32
this.stop();
Frame 33
this.stop();
Frame 34
this.stop();
Frame 35
this.stop();
Frame 36
stopAllSounds();
stop();
Instance of Symbol 138 MovieClip "mcSiren2" in Frame 36
onClipEvent (load) {
varSirenNo = 2;
}
Instance of Symbol 138 MovieClip "mcSiren2" in Frame 36
onClipEvent (load) {
varSirenNo = 2;
}
Instance of Symbol 138 MovieClip "mcSiren2" in Frame 36
onClipEvent (load) {
varSirenNo = 2;
}
Instance of Symbol 199 MovieClip "mcSiren1" in Frame 36
onClipEvent (load) {
varSirenNo = 1;
}
Instance of Symbol 200 MovieClip "mcSiren3" in Frame 36
onClipEvent (load) {
varSirenNo = 3;
}
Instance of Symbol 138 MovieClip "mcSiren2" in Frame 36
onClipEvent (load) {
varSirenNo = 2;
}
Instance of Symbol 199 MovieClip "mcSiren1" in Frame 36
onClipEvent (load) {
varSirenNo = 1;
}
Instance of Symbol 200 MovieClip "mcSiren3" in Frame 36
onClipEvent (load) {
varSirenNo = 3;
}
Frame 37
function displayKeys() {
_level0.mcKeyQuality.txtKey = _level0.varKeyTextQuality;
_level0.mcKeyScopeZoom1x.txtKey = _level0.varKeyTextScopeZoom1x;
_level0.mcKeyScopeZoom2x.txtKey = _level0.varKeyTextScopeZoom2x;
_level0.mcKeyScopeZoom3x.txtKey = _level0.varKeyTextScopeZoom3x;
_level0.mcKeyScopeSizeSMALL.txtKey = _level0.varKeyTextScopeSizeSMALL;
_level0.mcKeyScopeSizeMED.txtKey = _level0.varKeyTextScopeSizeMED;
_level0.mcKeyScopeSizeLARGE.txtKey = _level0.varKeyTextScopeSizeLARGE;
_level0.mcKeyReturnToMainMenu.txtKey = _level0.varKeyTextReturnToMainMenu;
trace(((((((("here" + _level0.varKeyTextQuality) + _level0.varKeyTextScopeZoom1x) + _level0.varKeyTextScopeZoom2x) + _level0.varKeyTextScopeZoom3x) + _level0.varKeyTextScopeSizeSMALL) + _level0.varKeyTextScopeSizeMED) + _level0.varKeyTextScopeSizeLARGE) + _level0.varKeyTextReturnToMainMenu);
}
displayKeys();
varDefaultKeyErrorChar = "<>";
stop();
Instance of Symbol 209 MovieClip "mcKeyQuality" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyQuality = Key.getCode();
_level0.varKeyTextQuality = _level0.mcKeyQuality.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
onClipEvent (load) {
}
Instance of Symbol 210 MovieClip "mcKeyScopeZoom1x" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyScopeZoom1x = Key.getCode();
trace(_level0.varKeyScopeZoom1x);
_level0.varKeyTextScopeZoom1x = _level0.mcKeyScopeZoom1x.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
Instance of Symbol 211 MovieClip "mcKeyScopeZoom2x" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyScopeZoom2x = Key.getCode();
_level0.varKeyTextScopeZoom2x = _level0.mcKeyScopeZoom2x.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
Instance of Symbol 212 MovieClip "mcKeyScopeZoom3x" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyScopeZoom3x = Key.getCode();
_level0.varKeyTextScopeZoom3x = _level0.mcKeyScopeZoom3x.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
Instance of Symbol 213 MovieClip "mcKeyScopeSizeSMALL" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyScopeSizeSMALL = Key.getCode();
_level0.varKeyTextScopeSizeSMALL = _level0.mcKeyScopeSizeSMALL.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
Instance of Symbol 214 MovieClip "mcKeyScopeSizeMED" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyScopeSizeMED = Key.getCode();
_level0.varKeyTextScopeSizeMED = _level0.mcKeyScopeSizeMED.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
Instance of Symbol 215 MovieClip "mcKeyScopeSizeLARGE" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyScopeSizeLARGE = Key.getCode();
_level0.varKeyTextScopeSizeLARGE = _level0.mcKeyScopeSizeLARGE.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
Instance of Symbol 218 MovieClip "mcKeyReturnToMainMenu" in Frame 37
onClipEvent (keyUp) {
_level0.varKeyReturnToMainMenu = Key.getCode();
_level0.varKeyTextReturnToMainMenu = _level0.mcKeyReturnToMainMenu.txtKey;
if (1 < txtKey.length) {
txtKey = _level0.varDefaultKeyErrorChar;
}
}
Frame 38
function displaySettings() {
if (_level0.varDifficulty == "EASY") {
mcCheckDifficultyEasy.gotoAndStop(2);
}
if (_level0.varDifficulty == "MED") {
mcCheckDifficultyMed.gotoAndStop(2);
}
if (_level0.varDifficulty == "HARD") {
mcCheckDifficultyHard.gotoAndStop(2);
}
if (_level0.varOptionBloodOn) {
_level0.mcCheckBloodOn.gotoAndStop(2);
} else {
_level0.mcCheckBloodOff.gotoAndStop(2);
}
if (_level0.varOptionMusicOn) {
_level0.mcCheckMusicOn.gotoAndStop(2);
} else {
_level0.mcCheckMusicOff.gotoAndStop(2);
}
if (_level0.varScopeSize == _level0.varScopeSizeSMALL) {
mcCheckScopeSizeSmall.gotoAndStop(2);
}
if (_level0.varScopeSize == _level0.varScopeSizeMED) {
mcCheckScopeSizeMed.gotoAndStop(2);
}
if (_level0.varScopeSize == _level0.varScopeSizeLARGE) {
mcCheckScopeSizeLarge.gotoAndStop(2);
}
if (_level0.varZoomScale == 1) {
mcCheckZoomScale1x.gotoAndStop(2);
}
if (_level0.varZoomScale == 2) {
mcCheckZoomScale2x.gotoAndStop(2);
}
if (_level0.varZoomScale == 3) {
mcCheckZoomScale3x.gotoAndStop(2);
}
if (_level0.varOptionQualityOn) {
_level0.mcCheckAutoQualityOn.gotoAndStop(2);
} else {
_level0.mcCheckAutoQualityOff.gotoAndStop(2);
}
}
displaySettings();
trace(varOptionMusicOn);
varDefaultKeyErrorChar = "<>";
stop();
Frame 39
stop();
Frame 40
function createBadGuy() {
varNextBGNo = 0;
varMaxBGVisible = Math.round((varMaxBGNo * varBGKilled) / varBGtoBeKilled);
varBGVisibleNow = 0;
i = 1;
while (varMaxBGNo >= i) {
if (arrBGvisible[i] == true) {
varBGVisibleNow++;
}
arrBGNextSpawn[i] = arrBGNextSpawn[i] - 1;
arrBGNextSpawn[i] = checkNegative(arrBGNextSpawn[i]);
i++;
}
if ((varBGVisibleNow < varMaxBGVisible) || (varBGVisibleNow < 1)) {
varNextBGNo = Math.round((Math.random() * varMaxBGNo) * 6);
varNextBGSelect = Math.round(Math.random() * varMaxBGTypes);
if ((varNextBGSelect == 2) && (_level0.rocket.status)) {
varNextBGSelect = 3;
}
if (varNextBGNo == 1) {
if ((arrBGNextSpawn[1] == 0) && (arrBGvisible[1] == false)) {
_level0.bigPic.mcBadGuy_gun1.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcBadGuy_gun1.gotoAndPlay(1);
arrBGvisible[varNextBGNo] = true;
if (0.4 < Math.random()) {
_level0.bigPic.mcHostStand1.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcHostStand1.gotoAndPlay(1);
arrHostStandvisible[varNextBGNo] = true;
}
}
} else if (varNextBGNo == 2) {
if ((arrBGNextSpawn[2] == 0) && (arrBGvisible[2] == false)) {
_level0.bigPic.mcBadGuy_gun2.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcBadGuy_gun2.gotoAndPlay(1);
arrBGvisible[varNextBGNo] = true;
if (0.6 < Math.random()) {
_level0.bigPic.mcHostStand2.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcHostStand2.gotoAndPlay(1);
arrHostStandvisible[varNextBGNo] = true;
}
}
} else if (varNextBGNo == 3) {
if ((arrBGNextSpawn[3] == 0) && (arrBGvisible[3] == false)) {
_level0.bigPic.mcBadGuy_gun3.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcBadGuy_gun3.gotoAndPlay(1);
arrBGvisible[varNextBGNo] = true;
if (0.6 < Math.random()) {
_level0.bigPic.mcHostStand3.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcHostStand3.gotoAndPlay(1);
arrHostStandvisible[varNextBGNo] = true;
}
}
} else if (varNextBGNo == 4) {
if ((arrBGNextSpawn[4] == 0) && (arrBGvisible[4] == false)) {
_level0.bigPic.mcBadGuy_gun4.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcBadGuy_gun4.gotoAndPlay(1);
arrBGvisible[varNextBGNo] = true;
if (0.6 < Math.random()) {
_level0.bigPic.mcHostStand4.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcHostStand4.gotoAndPlay(1);
arrHostStandvisible[varNextBGNo] = true;
}
}
} else if (varNextBGNo == 5) {
if ((arrBGNextSpawn[5] == 0) && (arrBGvisible[5] == false)) {
_level0.bigPic.mcBadGuy_gun5.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun5.play();
arrBGvisible[varNextBGNo] = true;
if (0.6 < Math.random()) {
_level0.bigPic.mcHostStand5.gotoAndPlay(1);
_level0.mcSniperView.bigpic.mcHostStand5.gotoAndPlay(1);
arrHostStandvisible[varNextBGNo] = true;
}
}
}
}
}
function updateProgressBar() {
varProgressBarScale = (varCorrectMotion * 3) + (10 * (Math.random() - 0.5));
if (0 >= varProgressBarScale) {
setProperty(mcExcitementLevel, _yscale , 0);
} else {
setProperty(mcExcitementLevel, _yscale , varProgressBarScale);
}
}
function calculateScore() {
this.txtShotsFired = this.varPlyrShotsFired;
this.txtAccuracy = int(((this.varPlyrShotsFired - this.varPlyrShotsMissed) / this.varPlyrShotsFired) * 100);
this.txtBGKilledNo = this.varBGKilled;
this.txtBGHeadShotNo = this.varNoOfBGHeadShots;
this.txtHostKilledNo = this.varNoOfHostKilled;
this.txtTime = this.varTimeScore;
}
function resetBgnd() {
}
function checkNegative(aNumber) {
if (aNumber < 0) {
return(0);
}
return(aNumber);
}
Mouse.hide();
this.varTimeScore = 0;
this.varBonusScore = 0;
this.varRoundScore = 0;
varRoundNo++;
varMouseX = 0;
varMouseY = 0;
varPrevMouseY = 0;
txtRoundNo = varRoundNo;
varCurrentRoundFrame = 0;
varFramesPerSecond = 12;
varMaxFramesPerRound = 1200;
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
varMaxNoOfBulletsPerCase = 5;
varBulletsFiredCurrentCase = 0;
varPlyrShotsFired = 0;
varBGKilled = 0;
varNoOfHostKilled = 0;
varFirstWarningCount = 20;
varSecondWarningCount = 20;
varThirdWarningCount = 20;
varTotalWarningCount = (varFirstWarningCount + varSecondWarningCount) + varThirdWarningCount;
varNextSpawnCount = 10;
varMaxBGNo = 5;
varMaxBGTypes = 4;
arrBGvisible = new Array();
arrBGNextSpawn = new Array();
arrBGScale = new Array();
arrHostStandvisible = new Array();
i = 1;
while (varMaxBGNo >= i) {
arrBGvisible[i] = false;
arrBGNextSpawn[i] = 0;
arrBGScale[i] = 1;
arrHostStandvisible[i] = false;
i++;
}
initializeGUI();
stop();
Instance of Symbol 343 MovieClip "mcSndSniperGunShotRicochet" in Frame 40
onClipEvent (load) {
prevTime = new Date();
nextRoundFrameNo = 12;
currentTime = Date();
varTimeDiff = 0;
varFrameDiff = 0;
}
onClipEvent (enterFrame) {
now = new Date();
if (_level0.varCurrentRoundFrame >= nextRoundFrameNo) {
nextRoundFrameNo = nextRoundFrameNo + _level0.varFramesPerSecond;
_level0.txtPerformance = Math.round(100000 / (now.getTime() - prevTime.getTime()));
prevTime = new Date();
}
prevRoundFrameNo = 0;
}
Instance of Symbol 351 MovieClip "mcSndSniperGunShot" in Frame 40
onClipEvent (enterFrame) {
}
Instance of Symbol 356 MovieClip "mcSniperView" in Frame 40
onClipEvent (mouseDown) {
if (_level0.varWeaponReload == true) {
} else {
_level0.varBulletsFiredCurrentCase++;
if (_level0.varBulletsFiredCurrentCase >= _level0.varMaxNoOfBulletsPerCase) {
_level0.mcSniperGunReload.play();
_level0.varWeaponReload = true;
_level0.varBulletsFiredCurrentCase = 0;
}
varBG_X = 0;
varBG_Y = 0;
varBGHitNo = 0;
varHostStandHitNo = 0;
_level0.mcSndSniperGunShot.play();
_level0.mcSniperGunBullets.play();
_level0.varPlyrShotsFired++;
if (_level0.bigpic.mcHostStand1.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 1;
} else if (_level0.bigpic.mcHostStand2.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 2;
} else if (_level0.bigpic.mcHostStand3.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 3;
} else if (_level0.bigpic.mcHostStand4.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 4;
} else if (_level0.bigpic.mcHostStand5.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 5;
}
if (varHostStandHitNo != 0) {
_level0.mcMessage.mcMesgHostShot.play();
_level0.varNoOfHostKilled++;
} else {
if (_level0.bigPic.mcBadGuy_gun1.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 1;
_level0.bigPic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
if (_level0.arrHostStandvisible[varBGHitNo]) {
_level0.bigPic.mcHostStand1.play();
_level0.mcSniperView.bigpic.mcHostStand1.play();
_level0.arrHostStandvisible[varBGHitNo] = false;
}
} else if (_level0.bigPic.mcBadGuy_gun2.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 2;
_level0.bigPic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
if (_level0.arrHostStandvisible[varBGHitNo]) {
_level0.bigPic.mcHostStand2.play();
_level0.mcSniperView.bigpic.mcHostStand2.play();
_level0.arrHostStandvisible[varBGHitNo] = false;
}
} else if (_level0.bigPic.mcBadGuy_gun3.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 3;
_level0.bigPic.mcBadGuy_gun3.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun3.play();
if (_level0.arrHostStandvisible[varBGHitNo]) {
_level0.bigPic.mcHostStand3.play();
_level0.mcSniperView.bigpic.mcHostStand3.play();
_level0.arrHostStandvisible[varBGHitNo] = false;
}
} else if (_level0.bigPic.mcBadGuy_gun4.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 4;
_level0.bigPic.mcBadGuy_gun4.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun4.play();
if (_level0.arrHostStandvisible[varBGHitNo]) {
_level0.bigPic.mcHostStand4.play();
_level0.mcSniperView.bigpic.mcHostStand4.play();
_level0.arrHostStandvisible[varBGHitNo] = false;
}
} else if (_level0.bigPic.mcBadGuy_gun5.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 5;
_level0.bigPic.mcBadGuy_gun5.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun5.play();
if (_level0.arrHostStandvisible[varBGHitNo]) {
_level0.bigPic.mcHostStand5.play();
_level0.mcSniperView.bigpic.mcHostStand5.play();
_level0.arrHostStandvisible[varBGHitNo] = false;
}
}
if (varBGHitNo != 0) {
_level0.varBGKilled++;
varBG_X = eval (("_level0.bigPic.mcBadGuy_gun" + varBGHitNo) + "._x") + _level0.bigPic._x;
varBG_Y = eval (("_level0.bigPic.mcBadGuy_gun" + varBGHitNo) + "._y") + _level0.bigPic._y;
_level0.arrBGNextSpawn[varBGHitNo] = _level0.varNextSpawnCount;
varSniperCrosshair_X = _level0.mcSniperView._x;
varSniperCrosshair_Y = _level0.mcSniperView._y;
varDiff_X = (varSniperCrosshair_X - varBG_X) / _level0.arrBGScale[varBGHitNo];
varDiff_Y = (varSniperCrosshair_Y - varBG_Y) / _level0.arrBGScale[varBGHitNo];
_level0.mcShowBGHitLocation.mcYbar._x = varDiff_X;
_level0.mcShowBGHitLocation.mcXbar._y = varDiff_Y;
_level0.mcShowBGHitLocation.mcCircle._x = varDiff_X;
_level0.mcShowBGHitLocation.mcCircle._y = varDiff_Y;
varBGTypeHitNo = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + ".varBGTypeNo");
if (_level0.checkShotLocation(varDiff_X, varDiff_Y, varBGTypeHitNo)) {
trace("headshot");
_level0.mcMessage.mcMesgHeadShot.play();
}
} else {
_level0.varPlyrShotsMissed++;
duplicateMovieClip ("_level0.bigPic.mcShotMissed_base", "mcShotMissed" + _level0.varPlyrShotsMissed, _level0.varPlyrShotsMissed);
setProperty("_level0.bigPic.mcShotMissed" + _level0.varPlyrShotsMissed, _x , _level0.mcSniperView._x - _level0.bigpic._x);
setProperty("_level0.bigPic.mcShotMissed" + _level0.varPlyrShotsMissed, _y , _level0.mcSniperView._y - _level0.bigpic._y);
duplicateMovieClip ("_level0.mcSniperView.bigpic.mcShotMissed_base", "mcShotMissed" + _level0.varPlyrShotsMissed, _level0.varPlyrShotsMissed);
setProperty("_level0.mcSniperView.bigpic.mcShotMissed" + _level0.varPlyrShotsMissed, _x , _level0.mcSniperView._x - _level0.bigpic._x);
setProperty("_level0.mcSniperView.bigpic.mcShotMissed" + _level0.varPlyrShotsMissed, _y , _level0.mcSniperView._y - _level0.bigpic._y);
}
}
}
}
Frame 41
varCurrentRoundFrame++;
checkKeyPress();
createBadGuy();
updateSniperGunView();
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
_level0.mcNextBg.txtVis1 = _level0.arrBGNextSpawn[1];
_level0.mcNextBg.txtVis2 = _level0.arrBGNextSpawn[2];
_level0.mcNextBg.txtVis3 = _level0.arrBGNextSpawn[3];
_level0.mcNextBg.txtVis4 = _level0.arrBGNextSpawn[4];
_level0.mcNextBg.txtVis5 = _level0.arrBGNextSpawn[5];
_level0.mcBGScale.txtVis1 = _level0.arrHostStandvisible[1];
_level0.mcBGScale.txtVis2 = _level0.arrHostStandvisible[2];
_level0.mcBGScale.txtVis3 = _level0.arrHostStandvisible[3];
_level0.mcBGScale.txtVis4 = _level0.arrHostStandvisible[4];
_level0.mcBGScale.txtVis5 = _level0.arrHostStandvisible[5];
Frame 42
if (varBGKilled < 20) {
gotoAndPlay (41);
} else {
gotoAndPlay (43);
}
Frame 43
function createBadGuy() {
varNextBGNo = 0;
varMaxBGVisible = Math.round((varMaxBGNo * varBGKilled) / varBGtoBeKilled);
varBGVisibleNow = 0;
i = 1;
while (varMaxBGNo >= i) {
if (arrBGvisible[i] == true) {
varBGVisibleNow++;
}
arrBGNextSpawn[i] = arrBGNextSpawn[i] - 1;
arrBGNextSpawn[i] = checkNegative(arrBGNextSpawn[i]);
i++;
}
if ((varBGVisibleNow < varMaxBGVisible) || (varBGVisibleNow < 1)) {
varNextBGNo = Math.round((Math.random() * varMaxBGNo) * 6);
varNextBGSelect = Math.round(Math.random() * varMaxBGTypes);
if ((varNextBGSelect == 2) && (_level0.rocket.status)) {
varNextBGSelect = 3;
}
if ((varBGKilled + varBGVisibleNow) < (varBGtoBeKilled - 1)) {
if (varNextBGNo == 1) {
if ((arrBGNextSpawn[1] == 0) && (arrBGvisible[1] == false)) {
_level0.bigpic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
arrBGvisible[1] = true;
}
} else if (varNextBGNo == 2) {
if ((arrBGNextSpawn[2] == 0) && (arrBGvisible[2] == false)) {
_level0.bigpic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
arrBGvisible[2] = true;
}
} else if (varNextBGNo == 3) {
if ((arrBGNextSpawn[3] == 0) && (arrBGvisible[3] == false)) {
_level0.bigpic.mcBadGuy_gun3.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun3.play();
arrBGvisible[3] = true;
}
} else if (varNextBGNo == 4) {
if ((arrBGNextSpawn[4] == 0) && (arrBGvisible[4] == false)) {
_level0.bigpic.mcBadGuy_gun4.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun4.play();
arrBGvisible[4] = true;
}
} else if (varNextBGNo == 5) {
if ((arrBGNextSpawn[5] == 0) && (arrBGvisible[5] == false)) {
_level0.bigpic.mcBadGuy_gun5.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun5.play();
arrBGvisible[5] = true;
}
} else if (varNextBGNo == 6) {
if ((arrBGNextSpawn[6] == 0) && (arrBGvisible[6] == false)) {
_level0.bigpic.mcBadGuy_gun6.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun6.play();
arrBGvisible[6] = true;
}
}
} else if (((varBGtoBeKilled - varBGKilled) == 1) && (!varL1_BossVisible)) {
_level0.bigpic.mcL1_Boss.mcBullet.play();
_level0.mcSniperView.bigpic.mcL1_Boss.mcBullet.play();
_level0.bigpic.mcL1_Boss._x = 60 * (Math.random() - 0.5);
_level0.mcSniperView.bigpic.mcL1_Boss._x = _level0.bigpic.mcL1_Boss._x;
varL1_BossVisible = true;
trace("Level 1 Boss");
randNo = Math.random();
if (randNo < 0.5) {
varL1_BossDirection = 1;
} else {
varL1_BossDirection = -1;
}
}
}
}
function moveL1_Boss() {
varL1_BossMoveXAmount = varL1_BossDirection * (varL1_BossMoveXAmountBase + (varL1_BossMoveXAmountVar * Math.random()));
bigpic.mcL1_Boss._x = bigpic.mcL1_Boss._x - varL1_BossMoveXAmount;
bigpic.mcL1_Boss._y = 77 + (5 * (Math.random() - 1));
mcSniperView.bigpic.mcL1_Boss._x = bigpic.mcL1_Boss._x;
mcSniperView.bigpic.mcL1_Boss._y = bigpic.mcL1_Boss._y;
if (100 < bigpic.mcL1_Boss._x) {
bigpic.mcL1_Boss._x = 98;
mcSniperView.bigpic.mcL1_Boss._x = 98;
varL1_BossDirection = varL1_BossDirection * -1;
}
if (bigpic.mcL1_Boss._x < -100) {
mcSniperView.bigpic.mcL1_Boss._x = -98;
bigpic.mcL1_Boss._x = -98;
varL1_BossDirection = varL1_BossDirection * -1;
}
}
function updateProgressBar() {
varProgressBarScale = (varCorrectMotion * 3) + (10 * (Math.random() - 0.5));
if (0 >= varProgressBarScale) {
setProperty(mcExcitementLevel, _yscale , 0);
} else {
setProperty(mcExcitementLevel, _yscale , varProgressBarScale);
}
}
function calculateScore() {
this.varBGKilledScore = varBGKilled;
this.varShotsFired = varPlyrShotsFired;
this.varAccuracy = Math.round(((varPlyrShotsFired - varPlyrShotsMissed) / varPlyrShotsFired) * 100);
this.varTimeBonusScore = txtTimeLeft;
this.varRoundScore = this.varTimeBonusScore + this.varBGKilledScore;
this.varTotalScore = this.varTotalScore + this.varRoundScore;
this.txtBGKilledScore = this.varBGKilledScore;
this.txtShotsFired = this.varShotsFired;
this.txtAccuracy = this.varAccuracy;
this.txtTimeBonusScore = this.varTimeBonusScore;
this.txtTotalScore = this.varTotalScore;
}
function resetBgnd() {
}
Mouse.show();
calculateScore();
this.stop();
Frame 44
gotoAndPlay (29);
Frame 45
stopAllSounds();
stop();
Frame 46
function createBadGuy() {
varNextBGNo = 0;
varBGVisibleNow = 0;
i = 1;
while (varMaxBGNo >= i) {
if (arrBGvisible[i] == true) {
varBGVisibleNow++;
}
arrBGNextSpawn[i] = arrBGNextSpawn[i] - 1;
arrBGNextSpawn[i] = checkNegative(arrBGNextSpawn[i]);
i++;
}
if ((varBGVisibleNow < varMaxBGVisible) || (varBGVisibleNow < 1)) {
varNextBGNo = Math.round((Math.random() * varMaxBGNo) * 6);
varNextBGSelect = Math.round(Math.random() * varMaxBGTypes);
if ((varNextBGSelect == 2) && (_level0.rocket.status)) {
varNextBGSelect = 3;
}
if ((varBGKilled + varBGVisibleNow) < (varBGtoBeKilled - 1)) {
if (varNextBGNo == 1) {
if ((arrBGNextSpawn[1] == 0) && (arrBGvisible[1] == false)) {
_level0.bigpic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
arrBGvisible[1] = true;
}
} else if (varNextBGNo == 2) {
if ((arrBGNextSpawn[2] == 0) && (arrBGvisible[2] == false)) {
_level0.bigpic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
arrBGvisible[2] = true;
}
} else if (varNextBGNo == 3) {
if ((arrBGNextSpawn[3] == 0) && (arrBGvisible[3] == false)) {
_level0.bigpic.mcBadGuy_gun3.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun3.play();
arrBGvisible[3] = true;
}
} else if (varNextBGNo == 4) {
if ((arrBGNextSpawn[4] == 0) && (arrBGvisible[4] == false)) {
_level0.bigpic.mcBadGuy_gun4.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun4.play();
arrBGvisible[4] = true;
}
} else if (varNextBGNo == 5) {
if ((arrBGNextSpawn[5] == 0) && (arrBGvisible[5] == false)) {
_level0.bigpic.mcBadGuy_gun5.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun5.play();
arrBGvisible[5] = true;
}
} else if (varNextBGNo == 6) {
if ((arrBGNextSpawn[6] == 0) && (arrBGvisible[6] == false)) {
_level0.bigpic.mcBadGuy_gun6.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun6.play();
arrBGvisible[6] = true;
}
}
} else if (((varBGtoBeKilled - varBGKilled) == 1) && (!varL1_BossVisible)) {
_level0.bigpic.mcL1_Boss.mcBullet.play();
_level0.mcSniperView.bigpic.mcL1_Boss.mcBullet.play();
_level0.bigpic.mcL1_Boss._x = 60 * (Math.random() - 0.5);
_level0.mcSniperView.bigpic.mcL1_Boss._x = _level0.bigpic.mcL1_Boss._x;
varL1_BossVisible = true;
trace("Level 1 Boss");
randNo = Math.random();
if (randNo < 0.5) {
varL1_BossDirection = 1;
} else {
varL1_BossDirection = -1;
}
}
}
}
function moveL1_Boss() {
varL1_BossMoveXAmount = varL1_BossDirection * (varL1_BossMoveXAmountBase + (varL1_BossMoveXAmountVar * Math.random()));
bigpic.mcL1_Boss._x = bigpic.mcL1_Boss._x - varL1_BossMoveXAmount;
bigpic.mcL1_Boss._y = 100 - (4 * Math.random());
mcSniperView.bigpic.mcL1_Boss._x = bigpic.mcL1_Boss._x;
mcSniperView.bigpic.mcL1_Boss._y = bigpic.mcL1_Boss._y;
if (100 < bigpic.mcL1_Boss._x) {
bigpic.mcL1_Boss._x = 98;
mcSniperView.bigpic.mcL1_Boss._x = 98;
varL1_BossDirection = varL1_BossDirection * -1;
}
if (bigpic.mcL1_Boss._x < -100) {
mcSniperView.bigpic.mcL1_Boss._x = -98;
bigpic.mcL1_Boss._x = -98;
varL1_BossDirection = varL1_BossDirection * -1;
}
}
function updateProgressBar() {
varProgressBarScale = (varCorrectMotion * 3) + (10 * (Math.random() - 0.5));
if (0 >= varProgressBarScale) {
setProperty(mcExcitementLevel, _yscale , 0);
} else {
setProperty(mcExcitementLevel, _yscale , varProgressBarScale);
}
}
function calculateScore() {
this.txtHealth = this.varPlyrHealth;
this.txtShotsFired = this.varPlyrShotsFired;
this.txtAccuracy = int(((this.varPlyrShotsFired - this.varPlyrShotsMissed) / this.varPlyrShotsFired) * 100);
this.txtBGKilledNo = this.varBGKilled;
this.txtBGHeadShotNo = this.varNoOfBGHeadShots;
this.txtHostKilledNo = this.varNoOfHostKilled;
this.txtTime = this.varTimeScore;
}
function resetBgnd() {
}
Mouse.hide();
this.varTimeScore = 0;
this.varBonusScore = 0;
this.varRoundScore = 0;
varMissionNo = 1;
varRoundNo++;
varMouseX = 0;
varMouseY = 0;
varPrevMouseY = 0;
txtRoundNo = varRoundNo;
varCurrentRoundFrame = 0;
varFramesPerSecond = 12;
varMaxFramesPerRound = 1200;
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
varBGtoBeKilled = 35;
varBGKilled = 0;
varNoOfBGHeadShots = 0;
varWeaponReload = false;
varMaxNoOfBulletsPerCase = 5;
varBulletsFiredCurrentCase = 0;
varPlyrShotsFired = 0;
varPlyrShotsMissed = 0;
varPlyrHealth = 100;
varMachineGunShotHealthLoss = 1;
varGunShotHealtLoss = 5;
varRocketHitHealtLoss = 10;
setProperty("mcPlyrHealth.mcHealthLostBar", _xscale , 0);
varL1_BossHealth = 100;
varL1_BossVisible = false;
varNoOfRockets = 0;
rocket = {id:0, status:"false", stepX:0, stepY:0, speed:0, noOfFramesToTravel:48, travelX:500, travelY:250, startX:0, startY:0};
if (varDifficulty == "EASY") {
varFirstWarningCount = varBGWarningCountEASY;
varSecondWarningCount = 0;
varThirdWarningCount = 0;
varL1_BossMoveXAmountBase = 2;
varL1_BossMoveXAmountVar = 1;
rocket.speed = 1;
varL1_BossHealthDecrement = 50;
varMaxBGVisible = 1;
} else if (varDifficulty == "MED") {
varFirstWarningCount = varBGWarningCountMED;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
varL1_BossMoveXAmountBase = 4;
varL1_BossMoveXAmountVar = 2;
rocket.speed = 1.3;
varL1_BossHealthDecrement = 35;
varMaxBGVisible = 2;
} else if (varDifficulty == "HARD") {
varFirstWarningCount = varBGWarningCountHARD;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
varL1_BossMoveXAmountBase = 7;
varL1_BossMoveXAmountVar = 5;
rocket.speed = 1.5;
varL1_BossHealthDecrement = 20;
varMaxBGVisible = 3;
}
varNoOfBGShowFactor = rocket.speed / 2;
varTotalWarningCount = (varFirstWarningCount + varSecondWarningCount) + varThirdWarningCount;
varNextSpawnCount = 10;
varMaxBGNo = 6;
varMaxBGTypes = 4;
varBGVisibleNow = 0;
arrBGvisible = new Array();
arrBGNextSpawn = new Array();
arrBGScale = new Array();
i = 1;
while (varMaxBGNo >= i) {
arrBGvisible[i] = false;
arrBGNextSpawn[i] = 0;
arrBGScale[i] = 1;
i++;
}
initializeGUI();
stop();
Instance of Symbol 463 MovieClip "mcSniperView" in Frame 46
onClipEvent (mouseDown) {
if (_level0.varWeaponReload == true) {
} else {
_level0.varBulletsFiredCurrentCase++;
if (_level0.varBulletsFiredCurrentCase >= _level0.varMaxNoOfBulletsPerCase) {
_level0.mcSniperGunReload.play();
_level0.varWeaponReload = true;
_level0.varBulletsFiredCurrentCase = 0;
}
_level0.mcSndSniperGunShot.play();
_level0.mcSniperGunBullets.play();
_level0.varPlyrShotsFired++;
varBG_X = 0;
varBG_Y = 0;
varBGHitNo = 0;
varBGTypeHitNo = 0;
if (_level0.varL1_BossVisible) {
if (_level0.bigpic.mcL1_Boss.hitTest(_root._xmouse, _root._ymouse, true)) {
trace("L1 Boss Hit: " + _level0.varL1_BossHealth);
_level0.varL1_BossHealth = _level0.varL1_BossHealth - _level0.varL1_BossHealthDecrement;
if (0 >= _level0.varL1_BossHealth) {
_level0.varBGKilled++;
_level0.tutiGetsShot();
}
}
} else if (_level0.bigpic.mcRocketFull.mcRocket.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.rocket.status = false;
_level0.bigpic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
} else {
if (_level0.bigpic.mcUnhitableArea.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.plyrMissedShot();
_level0.mcSndSniperGunShotRicochet.play();
} else {
if (_level0.bigpic.mcBadGuy_gun1.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 1;
_level0.bigpic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
}
if (_level0.bigpic.mcBadGuy_gun2.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 2;
_level0.bigpic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
}
if (_level0.bigpic.mcBadGuy_gun3.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 3;
_level0.bigpic.mcBadGuy_gun3.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun3.play();
}
if (_level0.bigpic.mcBadGuy_gun4.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 4;
_level0.bigpic.mcBadGuy_gun4.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun4.play();
}
if (_level0.bigpic.mcBadGuy_gun5.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 5;
_level0.bigpic.mcBadGuy_gun5.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun5.play();
}
if (_level0.bigpic.mcBadGuy_gun6.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 6;
_level0.bigpic.mcBadGuy_gun6.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun6.play();
}
}
if (varBGHitNo != 0) {
_level0.tutiGetsShot();
_level0.varBGKilled++;
_level0.txtBGRemaining = _level0.varBGtoBeKilled - _level0.varBGKilled;
varBG_X = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + "._x") + _level0.bigpic._x;
varBG_Y = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + "._y") + _level0.bigpic._y;
_level0.arrBGNextSpawn[varBGHitNo] = _level0.varNextSpawnCount;
varSniperCrosshair_X = _level0.mcSniperView._x;
varSniperCrosshair_Y = _level0.mcSniperView._y;
varDiff_X = (varSniperCrosshair_X - varBG_X) / _level0.arrBGScale[varBGHitNo];
varDiff_Y = (varSniperCrosshair_Y - varBG_Y) / _level0.arrBGScale[varBGHitNo];
_level0.mcShowBGHitLocation.mcYbar._x = varDiff_X;
_level0.mcShowBGHitLocation.mcXbar._y = varDiff_Y;
_level0.mcShowBGHitLocation.mcCircle._x = varDiff_X;
_level0.mcShowBGHitLocation.mcCircle._y = varDiff_Y;
varBGTypeHitNo = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + ".varBGTypeNo");
if (_level0.checkShotLocation(varDiff_X, varDiff_Y, varBGTypeHitNo)) {
trace("headshot");
_level0.bigPic.mcBloodHeadShot.play();
_level0.mcSniperView.bigpic.mcBloodHeadShot.play();
}
} else {
_level0.varPlyrShotsMissed++;
duplicateMovieClip ("_level0.bigPic.mcShotMissed_base", "mcShotMissed" + _level0.varPlyrShotsMissed, _level0.varPlyrShotsMissed);
setProperty("_level0.bigPic.mcShotMissed" + _level0.varPlyrShotsMissed, _x , _level0.mcSniperView._x - _level0.bigpic._x);
setProperty("_level0.bigPic.mcShotMissed" + _level0.varPlyrShotsMissed, _y , _level0.mcSniperView._y - _level0.bigpic._y);
duplicateMovieClip ("_level0.mcSniperView.bigpic.mcShotMissed_base", "mcShotMissed" + _level0.varPlyrShotsMissed, _level0.varPlyrShotsMissed);
setProperty("_level0.mcSniperView.bigpic.mcShotMissed" + _level0.varPlyrShotsMissed, _x , _level0.mcSniperView._x - _level0.bigpic._x);
setProperty("_level0.mcSniperView.bigpic.mcShotMissed" + _level0.varPlyrShotsMissed, _y , _level0.mcSniperView._y - _level0.bigpic._y);
_level0.mcSndSniperGunShotRicochet.play();
}
}
}
}
Instance of Symbol 488 MovieClip "mcGameMusic1" in Frame 46
onClipEvent (load) {
if (_level0.varOptionMusicOn) {
_level0.mcGameMusic1.gotoAndStop(2);
}
}
Instance of Symbol 489 MovieClip "mcSndSniperGunShot" in Frame 46
onClipEvent (load) {
_level0.initSystemPerformance();
}
onClipEvent (enterFrame) {
_level0.checkSystemPerformance();
}
Frame 47
varCurrentRoundFrame++;
checkKeyPress();
createBadGuy();
updateSniperGunView();
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
if (varL1_BossVisible) {
moveL1_Boss();
}
if (varNoOfRockets >= 0) {
}
mcNextBg.txtVis1 = arrBGvisible[1];
mcNextBg.txtVis2 = arrBGvisible[2];
mcNextBg.txtVis3 = arrBGvisible[3];
mcNextBg.txtVis4 = arrBGvisible[4];
mcNextBg.txtVis5 = arrBGvisible[5];
mcNextBg.txtVis6 = arrBGvisible[6];
mcShots.txtVis1 = varPlyrShotsFired;
mcShots.txtVis2 = varPlyrShotsMissed;
mcShots.txtVis3 = varBGKilled;
mcShots.txtVis4 = varNoOfBGHeadShots;
mcShots.txtVis5 = varNoOfHostKilled;
txtVisibleNow = varBGVisibleNow;
Frame 48
gotoAndPlay (47);
if (((0 >= varPlyrHealth) || (varBGKilled >= varBGtoBeKilled)) || (0 >= txtTimeLeft)) {
if ((0 >= varPlyrHealth) || (0 >= txtTimeLeft)) {
varPlyrStatus = "dead";
gotoAndPlay (49);
}
if (varBGKilled >= varBGtoBeKilled) {
varPlyrStatus = "alive";
_quality = "HIGH";
gotoAndPlay (364);
}
resetBgnd();
stopAllSounds();
Mouse.show();
}
Frame 49
stopAllSounds();
Mouse.show();
_quality = "HIGH";
calculateScore();
if (varPlyrStatus == "dead") {
txtMissionEnd = "Mission Failed";
} else {
txtMissionEnd = "Mission Completed";
}
this.stop();
Frame 50
stopAllSounds();
stop();
Frame 51
function createStandingBadGuyWithHostage() {
varNextBGNo = 0;
varBGVisibleNow = 0;
i = 1;
while (varMaxBGNo >= i) {
if (arrBGvisible[i] == true) {
varBGVisibleNow++;
}
arrBGNextSpawn[i] = arrBGNextSpawn[i] - 1;
arrBGNextSpawn[i] = checkNegative(arrBGNextSpawn[i]);
i++;
}
if ((varBGVisibleNow < varMaxBGVisible) || (varBGVisibleNow < 1)) {
varNextBGNo = Math.round((Math.random() * varMaxBGNo) * 6);
varNextBGSelect = Math.round(Math.random() * varMaxBGTypes);
if ((varNextBGSelect == 2) && (_level0.rocket.status)) {
varNextBGSelect = 3;
}
if (varNextBGNo == 1) {
if ((arrBGNextSpawn[1] == 0) && (arrBGvisible[1] == false)) {
_level0.bigpic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
_level0.bigpic.mcHostStand1.play();
_level0.mcSniperView.bigpic.mcHostStand1.play();
arrBGvisible[varNextBGNo] = true;
arrHostStandvisible[varNextBGNo] = true;
}
} else if (varNextBGNo == 2) {
if ((arrBGNextSpawn[2] == 0) && (arrBGvisible[2] == false)) {
_level0.bigpic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
_level0.bigpic.mcHostStand2.play();
_level0.mcSniperView.bigpic.mcHostStand2.play();
arrBGvisible[varNextBGNo] = true;
arrHostStandvisible[varNextBGNo] = true;
}
} else if (varNextBGNo == 3) {
if ((arrBGNextSpawn[3] == 0) && (arrBGvisible[3] == false)) {
_level0.bigpic.mcBadGuy_gun3.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun3.play();
_level0.bigpic.mcHostStand3.play();
_level0.mcSniperView.bigpic.mcHostStand3.play();
arrBGvisible[varNextBGNo] = true;
arrHostStandvisible[varNextBGNo] = true;
}
}
}
}
function removeStandingHostage(aBGNo) {
if ((aBGNo == 1) && (arrHostStandvisible[aBGNo] == true)) {
_level0.bigpic.mcHostStand1.play();
_level0.mcSniperView.bigpic.mcHostStand1.play();
} else if ((aBGNo == 2) && (arrHostStandvisible[aBGNo] == true)) {
_level0.bigpic.mcHostStand2.play();
_level0.mcSniperView.bigpic.mcHostStand2.play();
} else if ((aBGNo == 3) && (arrHostStandvisible[aBGNo] == true)) {
_level0.bigpic.mcHostStand3.play();
_level0.mcSniperView.bigpic.mcHostStand3.play();
}
arrHostStandvisible[aBGNo] = false;
trace((("X: " + aBGNo) + "_") + arrHostStandvisible[aBGNo]);
}
function createHostageFlee() {
varNextHostFleeNo = 0;
varMaxHostFleeVisible = 2;
varHostFleeVisibleNow = 0;
i = 1;
while (varMaxHostFleeNo >= i) {
if (arrHostFleevisible[i] == true) {
varHostFleeVisibleNow++;
}
arrHostFleeNextSpawn[i] = arrHostFleeNextSpawn[i] - 1;
arrHostFleeNextSpawn[i] = checkNegative(arrHostFleeNextSpawn[i]);
i++;
}
if ((varHostFleeVisibleNow < varMaxHostFleeVisible) || (varHostFleeVisibleNow < 1)) {
varNextHostFleeNo = int((Math.random() * varMaxHostFleeNo) * 2) + 1;
varNextHostFleeSelect = int(Math.random() * varMaxHostFleeTypes) + 1;
if ((varBGKilled + varBGVisibleNow) < (varBGtoBeKilled - 1)) {
if (varNextHostFleeNo == 1) {
if ((arrHostFleeNextSpawn[1] == 0) && (arrHostFleeVisible[1] == false)) {
_level0.bigpic.mcHostFlee1.play();
_level0.mcSniperView.bigpic.mcHostFlee1.play();
arrHostFleevisible[varNextHostFleeNo] = true;
arrHostFleeType[varNextHostFleeNo] = varNextHostFleeSelect;
}
} else if (varNextHostFleeNo == 2) {
if ((arrHostFleeNextSpawn[2] == 0) && (arrHostFleeVisible[2] == false)) {
_level0.bigpic.mcHostFlee2.play();
_level0.mcSniperView.bigpic.mcHostFlee2.play();
arrHostFleevisible[varNextHostFleeNo] = true;
arrHostFleeType[varNextHostFleeNo] = varNextHostFleeSelect;
}
} else if (varNextHostFleeNo == 3) {
if ((arrHostFleeNextSpawn[3] == 0) && (arrHostFleeVisible[3] == false)) {
_level0.bigpic.mcHostFlee3.play();
_level0.mcSniperView.bigpic.mcHostFlee3.play();
arrHostFleevisible[varNextHostFleeNo] = true;
arrHostFleeType[varNextHostFleeNo] = varNextHostFleeSelect;
}
} else if (varNextHostFleeNo == 4) {
if ((arrHostFleeNextSpawn[4] == 0) && (arrHostFleeVisible[4] == false)) {
_level0.bigpic.mcHostFlee4.play();
_level0.mcSniperView.bigpic.mcHostFlee4.play();
arrHostFleevisible[varNextHostFleeNo] = true;
arrHostFleeType[varNextHostFleeNo] = varNextHostFleeSelect;
}
}
}
}
}
function startSpermDelivery() {
varSpermBoxWalkSpeedX = varWalkSpeedX;
varSpermBoxWalkSpeedY = varWalkSpeedY;
varNextSpermBoxWalkSpawn--;
if (0 >= varNextSpermBoxWalkSpawn) {
varBGwalkingVisible = true;
varHostWalkingVisible = true;
varSpermBoxWalkVisible = true;
bigPic.mcSpermBox.gotoAndPlay(2);
mcSniperView.bigpic.mcSpermBox.gotoAndPlay(2);
bigPic.mcHostWalk.gotoAndPlay(2);
mcSniperView.bigpic.mcHostWalk.gotoAndPlay(2);
bigPic.mcBGWalk.gotoAndPlay(2);
mcSniperView.bigpic.mcBGWalk.gotoAndPlay(2);
}
}
function plyrMissedShot() {
_level0.varPlyrShotsMissed++;
}
function updateProgressBar() {
varProgressBarScale = (varCorrectMotion * 3) + (10 * (Math.random() - 0.5));
if (0 >= varProgressBarScale) {
setProperty(mcExcitementLevel, _yscale , 0);
} else {
setProperty(mcExcitementLevel, _yscale , varProgressBarScale);
}
}
function calculateScore() {
this.txtHealth = this.varPlyrHealth;
this.txtShotsFired = this.varPlyrShotsFired;
this.txtAccuracy = int(((this.varPlyrShotsFired - this.varPlyrShotsMissed) / this.varPlyrShotsFired) * 100);
this.txtBGKilledNo = this.varBGKilled;
this.txtBGHeadShotNo = this.varNoOfBGHeadShots;
this.txtHostKilledNo = this.varNoOfHostKilled;
this.txtTime = this.varTimeScore;
}
function resetBgnd() {
}
Mouse.hide();
this.varTimeScore = 0;
this.varBonusScore = 0;
this.varRoundScore = 0;
varMissionNo = 2;
varRoundNo++;
varMouseX = 0;
varMouseY = 0;
varPrevMouseY = 0;
txtRoundNo = varRoundNo;
varCurrentRoundFrame = 0;
varFramesPerSecond = 12;
varMaxFramesPerRound = 1200;
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
varBGtoBeKilled = 5;
varBGKilled = 0;
varNoOfBGHeadShots = 0;
varWeaponReload = false;
varMaxNoOfBulletsPerCase = 5;
varBulletsFiredCurrentCase = 0;
varSpermDelivered = 0;
varSpermDeliveredIncr = 10;
mcSpermDelivered._xscale = 0;
varPlyrShotsFired = 0;
varPlyrShotsMissed = 0;
varPlyrHealth = 100;
varMachineGunShotHealthLoss = 1;
varGunShotHealtLoss = 5;
varRocketHitHealtLoss = 10;
varHostageHitHealtLoss = 25;
setProperty("mcPlyrHealth.mcHealthLostBar", _xscale , 0);
varL2_BossHealth = 100;
varL2_BossHealthDecrement = 25;
varNoOfRockets = 0;
rocket = {id:0, status:"false", stepX:0, stepY:0, speed:0, noOfFramesToTravel:48, travelX:500, travelY:250, startX:0, startY:0};
if (varDifficulty == "EASY") {
varFirstWarningCount = varBGWarningCountEASY;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
rocket.speed = 1;
varMaxBGVisible = 1;
} else if (varDifficulty == "MED") {
varFirstWarningCount = varBGWarningCountMED;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
rocket.speed = 1.3;
varMaxBGVisible = 1;
} else if (varDifficulty == "HARD") {
varFirstWarningCount = varBGWarningCountHARD;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
rocket.speed = 1.5;
varMaxBGVisible = 2;
}
varTotalWarningCount = (varFirstWarningCount + varSecondWarningCount) + varThirdWarningCount;
varNextSpawnCount = 10;
varMaxBGNo = 3;
varMaxBGTypes = 4;
varBGVisibleNow = 0;
arrBGvisible = new Array();
arrBGNextSpawn = new Array();
arrBGScale = new Array();
i = 1;
while (varMaxBGNo >= i) {
arrBGvisible[i] = false;
arrBGNextSpawn[i] = 0;
arrBGScale[i] = 1;
i++;
}
varNoOfHostKilled = 0;
varMaxHostStandNo = 3;
varMaxHostStandTypes = 2;
varMaxHostStandVisible = 0;
varHostStandVisibleNow = 0;
arrHostStandvisible = new Array();
arrHostStandNextSpawn = new Array();
arrHostStandScale = new Array();
i = 1;
while (varMaxHostStandNo >= i) {
arrHostStandvisible[i] = false;
arrHostStandNextSpawn[i] = 0;
arrHostStandScale[i] = 1;
i++;
}
varBGwalkingVisible = false;
varHostWalkingVisible = false;
varNextSpermBoxWalkSpawn = 0;
varSpermBoxWalkVisible = false;
varSpermBoxWalkSpeedX = 0;
varSpermBoxWalkSpeedY = 0;
varWalkSpeedX = 2;
varWalkSpeedY = 0.4;
varRunSpeedX = 4;
varRunSpeedY = 0.8;
varMaxHostFleeNo = 4;
varMaxHostFleeTypes = 2;
varMaxHostFleeVisible = 0;
varHostFleeVisibleNow = 0;
arrHostFleevisible = new Array();
arrHostFleeNextSpawn = new Array();
arrHostFleeScale = new Array();
arrHostFleeType = new Array();
i = 1;
while (varMaxHostFleeNo >= i) {
arrHostFleevisible[i] = false;
arrHostFleeNextSpawn[i] = 0;
arrHostFleeScale[i] = 1;
arrHostFleeType[i] = 0;
i++;
}
initializeGUI();
stop();
Instance of Symbol 539 MovieClip "mcSndSniperGunShot" in Frame 51
onClipEvent (load) {
_level0.initSystemPerformance();
}
onClipEvent (enterFrame) {
_level0.checkSystemPerformance();
}
Instance of Symbol 540 MovieClip "mcSniperView" in Frame 51
onClipEvent (mouseDown) {
if (_level0.varWeaponReload == true) {
} else {
_level0.varBulletsFiredCurrentCase++;
if (_level0.varBulletsFiredCurrentCase >= _level0.varMaxNoOfBulletsPerCase) {
_level0.mcSniperGunReload.play();
_level0.varWeaponReload = true;
_level0.varBulletsFiredCurrentCase = 0;
}
_level0.mcSndSniperGunShot.play();
_level0.mcSniperGunBullets.play();
_level0.varPlyrShotsFired++;
varBG_X = 0;
varBG_Y = 0;
varHostFleeHitNo = 0;
varBGHitNo = 0;
varHostStandHitNo = 0;
if (_level0.bigpic.mcRocketFull.mcRocket.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.rocket.status = false;
_level0.bigpic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
} else if (_level0.bigpic.mcUnhitableArea.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.plyrMissedShot();
_level0.mcSndSniperGunShotRicochet.play();
} else {
if (_level0.bigpic.mcHostFlee1.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostFleeHitNo = 1;
_level0.bigpic.mcHostFlee1.play();
_level0.mcSniperView.bigpic.mcHostFlee1.play();
} else if (_level0.bigpic.mcHostFlee2.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostFleeHitNo = 2;
_level0.bigpic.mcHostFlee2.play();
_level0.mcSniperView.bigpic.mcHostFlee2.play();
} else if (_level0.bigpic.mcHostFlee3.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostFleeHitNo = 3;
_level0.bigpic.mcHostFlee3.play();
_level0.mcSniperView.bigpic.mcHostFlee3.play();
} else if (_level0.bigpic.mcHostFlee4.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostFleeHitNo = 4;
_level0.bigpic.mcHostFlee4.play();
_level0.mcSniperView.bigpic.mcHostFlee4.play();
}
if (varHostFleeHitNo != 0) {
_level0.decreasePlyrHealth(_level0.varHostageHitHealtLoss);
_level0.tutiGetsShot();
_level0.varNoOfHostKilled++;
} else if (_level0.bigpic.mcSpermBox.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.bigPic.mcSpermBox.play();
_level0.mcSniperView.bigpic.mcSpermBox.play();
_level0.varSpermBoxWalkSpeedX = -1 * _level0.varSpermBoxWalkSpeedX;
_level0.varSpermBoxWalkSpeedY = -1 * _level0.varSpermBoxWalkSpeedY;
} else if (_level0.bigpic.mcHostWalk.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.tutiGetsShot();
_level0.decreasePlyrHealth(_level0.varHostageHitHealtLoss);
_level0.bigPic.mcHostWalk.play();
_level0.mcSniperView.bigpic.mcHostWalk.play();
_level0.varNoOfHostKilled++;
} else if (_level0.bigpic.mcBGWalk.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.tutiGetsShot();
_level0.bigPic.mcBGWalk.play();
_level0.mcSniperView.bigpic.mcBGWalk.play();
if (0 < _level0.varSpermBoxWalkSpeedX) {
_level0.bigPic.mcSpermBox.play();
_level0.mcSniperView.bigpic.mcSpermBox.play();
}
_level0.varSpermBoxWalkSpeedX = _level0.varRunSpeedX;
_level0.varSpermBoxWalkSpeedY = _level0.varRunSpeedY;
_level0.varBGwalkingVisible = false;
} else {
if (_level0.bigpic.mcHostStand1.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 1;
_level0.bigpic.mcHostStand1.play();
_level0.mcSniperView.bigpic.mcHostStand1.play();
} else if (_level0.bigpic.mcHostStand2.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 2;
_level0.bigpic.mcHostStand2.play();
_level0.mcSniperView.bigpic.mcHostStand2.play();
} else if (_level0.bigpic.mcHostStand3.hitTest(_root._xmouse, _root._ymouse, true)) {
varHostStandHitNo = 3;
_level0.bigpic.mcHostStand3.play();
_level0.mcSniperView.bigpic.mcHostStand3.play();
}
if (varHostStandHitNo != 0) {
_level0.tutiGetsShot();
_level0.varNoOfHostKilled++;
_level0.decreasePlyrHealth(_level0.varHostageHitHealtLoss);
_level0.arrHostStandvisible[varHostStandHitNo] = false;
} else {
if (_level0.bigpic.mcBadGuy_gun1.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 1;
_level0.bigpic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
} else if (_level0.bigpic.mcBadGuy_gun2.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 2;
_level0.bigpic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
} else if (_level0.bigpic.mcBadGuy_gun3.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 3;
_level0.bigpic.mcBadGuy_gun3.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun3.play();
}
if (varBGHitNo != 0) {
_level0.tutiGetsShot();
_level0.varBGKilled++;
_level0.txtBGRemaining = _level0.varBGtoBeKilled - _level0.varBGKilled;
varBG_X = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + "._x") + _level0.bigpic._x;
varBG_Y = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + "._y") + _level0.bigpic._y;
_level0.arrBGNextSpawn[varBGHitNo] = _level0.varNextSpawnCount;
varSniperCrosshair_X = _level0.mcSniperView._x;
varSniperCrosshair_Y = _level0.mcSniperView._y;
varDiff_X = (varSniperCrosshair_X - varBG_X) / _level0.arrBGScale[varBGHitNo];
varDiff_Y = (varSniperCrosshair_Y - varBG_Y) / _level0.arrBGScale[varBGHitNo];
_level0.mcShowBGHitLocation.mcYbar._x = varDiff_X;
_level0.mcShowBGHitLocation.mcXbar._y = varDiff_Y;
_level0.mcShowBGHitLocation.mcCircle._x = varDiff_X;
_level0.mcShowBGHitLocation.mcCircle._y = varDiff_Y;
varBGTypeHitNo = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + ".varBGTypeNo");
if (_level0.checkShotLocation(varDiff_X, varDiff_Y, varBGTypeHitNo)) {
trace("headshot");
_level0.bigPic.mcBloodHeadShot.play();
_level0.mcSniperView.bigpic.mcBloodHeadShot.play();
}
} else {
_level0.plyrMissedShot();
_level0.mcSndSniperGunShotRicochet.play();
}
}
}
}
}
}
Instance of Symbol 138 MovieClip "mcSiren2" in Frame 51
onClipEvent (load) {
varSirenNo = 2;
}
Instance of Symbol 199 MovieClip "mcSiren1" in Frame 51
onClipEvent (load) {
varSirenNo = 1;
}
Instance of Symbol 200 MovieClip "mcSiren3" in Frame 51
onClipEvent (load) {
varSirenNo = 3;
}
Instance of Symbol 551 MovieClip "mcGameMusic1" in Frame 51
onClipEvent (load) {
trace(_level0.varOptionMusicOn);
if (_level0.varOptionMusicOn) {
_level0.mcGameMusic1.gotoAndStop(2);
}
}
Frame 52
varCurrentRoundFrame++;
checkKeyPress();
createStandingBadGuyWithHostage();
createHostageFlee();
updateSniperGunView();
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
if ((!varBGwalkingVisible) && (!varHostWalkingVisible)) {
startSpermDelivery();
}
mcNextBg.txtVis1 = arrBGvisible[1];
mcNextBg.txtVis2 = arrBGvisible[2];
mcNextBg.txtVis3 = arrBGvisible[3];
mcNextBg.txtVis4 = arrHostStandvisible[1];
mcNextBg.txtVis5 = arrHostStandvisible[2];
mcNextBg.txtVis6 = arrHostStandvisible[3];
mcShots.txtVis1 = _level0.varBGwalkingVisible;
mcShots.txtVis1 = _level0.varHostWalkingVisible;
mcShots.txtVis3 = arrHostFleevisible[1];
mcShots.txtVis4 = arrHostFleevisible[2];
mcShots.txtVis5 = arrHostFleevisible[3];
mcShots.txtVis6 = arrHostFleevisible[4];
txtVisibleNow = varBGVisibleNow;
Frame 53
gotoAndPlay (52);
if (((0 >= varPlyrHealth) || (varSpermDelivered >= 100)) || (0 >= txtTimeLeft)) {
if ((0 >= varPlyrHealth) || (varSpermDelivered >= 100)) {
varPlyrStatus = "dead";
gotoAndPlay (54);
}
if (0 >= txtTimeLeft) {
varPlyrStatus = "alive";
_quality = "HIGH";
varTimeScore = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond) - txtTimeLeft;
gotoAndPlay (556);
}
resetBgnd();
stopAllSounds();
Mouse.show();
}
Frame 54
stopAllSounds();
Mouse.show();
_quality = "HIGH";
calculateScore();
if (varPlyrStatus == "dead") {
txtMissionEnd = "Mission Failed";
} else {
txtMissionEnd = "Mission Completed";
}
this.stop();
Frame 55
stopAllSounds();
stop();
Frame 56
function createStandingBadGuyWithHostage() {
varNextBGNo = 0;
varMaxBGVisible = 1;
varBGVisibleNow = 0;
i = 1;
while (varMaxBGNo >= i) {
if (arrBGvisible[i] == true) {
varBGVisibleNow++;
}
arrBGNextSpawn[i] = arrBGNextSpawn[i] - 1;
arrBGNextSpawn[i] = checkNegative(arrBGNextSpawn[i]);
i++;
}
if ((varBGVisibleNow < varMaxBGVisible) || (varBGVisibleNow < 1)) {
if (varBombVisible) {
varNextBGNo = Math.round((Math.random() * varMaxBGNo) * 6);
} else {
varNextBGNo = 1;
}
varNextBGSelect = Math.round(Math.random() * varMaxBGTypes);
if (varNextBGNo == 1) {
if ((arrBGNextSpawn[1] == 0) && (arrBGvisible[1] == false)) {
if (varBombVisible) {
varNextBGSelect = 2;
} else {
varNextBGSelect = 1;
}
_level0.bigpic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
_level0.bigpic.mcHostStand1.play();
_level0.mcSniperView.bigpic.mcHostStand1.play();
arrBGvisible[varNextBGNo] = true;
}
} else if (varNextBGNo == 2) {
if ((arrBGNextSpawn[2] == 0) && (arrBGvisible[2] == false)) {
_level0.bigpic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
_level0.bigpic.mcHostStand2.play();
_level0.mcSniperView.bigpic.mcHostStand2.play();
arrBGvisible[varNextBGNo] = true;
}
}
}
}
function removeBomb() {
varBombVisible = false;
bigPic.mcBomb._x = -200;
bigPic.mcBomb._y = 33;
mcSniperView.bigpic.mcBomb._x = -200;
mcSniperView.bigpic.mcBomb._y = 33;
}
function startTruck() {
bigPic.mcTruck._x = 400;
mcSniperView.bigpic.mcTruck._x = 400;
varTruckSpeedX = varFastSpeed;
if (varTruckBGNo1Status != "stand") {
bigPic.mcBadGuy_gun3.prevFrame();
mcSniperView.bigPic.mcBadGuy_gun3.prevFrame();
varTruckBGNo1Status != "stand";
}
if (varTruckBGNo2Status != "stand") {
bigPic.mcBadGuy_gun4.prevFrame();
mcSniperView.bigPic.mcBadGuy_gun4.prevFrame();
varTruckBGNo2Status != "stand";
}
varTruckNoOfBG = 2;
}
function plyrMissedShot() {
_level0.varPlyrShotsMissed++;
}
function updateProgressBar() {
varProgressBarScale = (varCorrectMotion * 3) + (10 * (Math.random() - 0.5));
if (0 >= varProgressBarScale) {
setProperty(mcExcitementLevel, _yscale , 0);
} else {
setProperty(mcExcitementLevel, _yscale , varProgressBarScale);
}
}
function calculateScore() {
this.txtHealth = this.varPlyrHealth;
this.txtShotsFired = this.varPlyrShotsFired;
this.txtAccuracy = int(((this.varPlyrShotsFired - this.varPlyrShotsMissed) / this.varPlyrShotsFired) * 100);
this.txtBGKilledNo = this.varBGKilled;
this.txtBGHeadShotNo = this.varNoOfBGHeadShots;
this.txtHostKilledNo = this.varNoOfHostKilled;
this.txtTime = this.varTimeScore;
}
function resetBgnd() {
}
Mouse.hide();
this.varTimeScore = 0;
this.varBonusScore = 0;
this.varRoundScore = 0;
varMissionNo = 3;
varRoundNo++;
varMouseX = 0;
varMouseY = 0;
varPrevMouseY = 0;
txtRoundNo = varRoundNo;
varCurrentRoundFrame = 0;
varFramesPerSecond = 12;
varMaxFramesPerRound = 1200;
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
varBGtoBeKilled = 35;
varBGKilled = 0;
varNoOfBGHeadShots = 0;
varWeaponReload = false;
varMaxNoOfBulletsPerCase = 5;
varBulletsFiredCurrentCase = 0;
varPlyrShotsFired = 0;
varPlyrShotsMissed = 0;
varPlyrHealth = 100;
varMachineGunShotHealthLoss = 1;
varGunShotHealtLoss = 5;
varRocketHitHealtLoss = 10;
varHostageHitHealtLoss = 25;
setProperty("mcPlyrHealth.mcHealthLostBar", _xscale , 0);
varL2_BossHealth = 100;
varL2_BossHealthDecrement = 25;
varNoOfRockets = 0;
rocket = {id:0, status:"false", stepX:0, stepY:0, speed:0, noOfFramesToTravel:48, travelX:500, travelY:250, startX:0, startY:0};
if (varDifficulty == "EASY") {
varFirstWarningCount = varBGWarningCountEASY;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
rocket.speed = 1;
varPoliceCarDamageIncrement = 10;
varBombSpeedX = 2;
} else if (varDifficulty == "MED") {
varFirstWarningCount = varBGWarningCountMED;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
rocket.speed = 1.3;
varPoliceCarDamageIncrement = 15;
varBombSpeedX = 3;
} else if (varDifficulty == "HARD") {
varFirstWarningCount = varBGWarningCountHARD;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
rocket.speed = 1.5;
varPoliceCarDamageIncrement = 19;
varBombSpeedX = 6;
}
varTotalWarningCount = (varFirstWarningCount + varSecondWarningCount) + varThirdWarningCount;
varNextSpawnCount = 10;
varMaxBGNo = 4;
varMaxBGTypes = 2;
varMaxBGVisible = 0;
varBGVisibleNow = 0;
arrBGvisible = new Array();
arrBGNextSpawn = new Array();
arrBGScale = new Array();
i = 1;
while (varMaxBGNo >= i) {
arrBGvisible[i] = false;
arrBGNextSpawn[i] = 0;
arrBGScale[i] = 0.5;
i++;
}
varFastSpeed = 5;
varSlowSpeed = 2;
varPoliceCarSpeedX = varSlowSpeed / 2;
varPoliceCarFallBackDistance = 40;
varPoliceCarReachVanPositionX = -170;
varPoliceCarDamagePosititionX = 1000;
varPoliceCarDamage = 0;
bigpic.mcPoliceCar.mcSmoke._xscale = 0;
bigpic.mcPoliceCar.mcSmoke._yscale = 0;
mcSniperView.bigPic.mcPoliceCar.mcSmoke._xscale = 0;
mcSniperView.bigPic.mcPoliceCar.mcSmoke._yscale = 0;
varTruckSpeedX = varSlowSpeed;
varTruckNoOfBG = 2;
varTruckBGNo1Status = "stand";
varTruckBGNo2Status = "stand";
varBombVisible = false;
initializeGUI();
stop();
Instance of Symbol 539 MovieClip "mcSndSniperGunShot" in Frame 56
onClipEvent (load) {
_level0.initSystemPerformance();
}
onClipEvent (enterFrame) {
_level0.checkSystemPerformance();
}
Instance of Symbol 588 MovieClip "mcSniperView" in Frame 56
onClipEvent (mouseDown) {
if (_level0.varWeaponReload == true) {
} else {
_level0.varBulletsFiredCurrentCase++;
if (_level0.varBulletsFiredCurrentCase >= _level0.varMaxNoOfBulletsPerCase) {
_level0.mcSniperGunReload.play();
_level0.varWeaponReload = true;
_level0.varBulletsFiredCurrentCase = 0;
}
_level0.mcSndSniperGunShot.play();
_level0.mcSniperGunBullets.play();
_level0.varPlyrShotsFired++;
varBG_X = 0;
varBG_Y = 0;
varBGHitNo = 0;
if (_level0.bigpic.mcRocketFull.mcRocket.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.rocket.status = false;
_level0.bigpic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
} else if (_level0.bigpic.mcUnhitableArea.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.plyrMissedShot();
_level0.mcSndSniperGunShotRicochet.play();
} else if (_level0.bigpic.mcTruck.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.plyrMissedShot();
} else if (_level0.bigpic.mcBomb.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.bigPic.mcBomb.play();
_level0.mcSniperView.bigpic.mcBomb.play();
} else {
if (_level0.bigpic.mcBadGuy_gun1.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 1;
_level0.bigpic.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun1.play();
} else if (_level0.bigpic.mcBadGuy_gun2.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 2;
_level0.bigpic.mcBadGuy_gun2.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun2.play();
} else if (_level0.bigpic.mcBadGuy_gun3.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 3;
_level0.varTruckBGNo1Status = "shot";
_level0.bigpic.mcBadGuy_gun3.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun3.play();
_level0.varTruckNoOfBG--;
} else if (_level0.bigpic.mcBadGuy_gun4.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 4;
_level0.varTruckBGNo2Status = "shot";
_level0.bigpic.mcBadGuy_gun4.play();
_level0.mcSniperView.bigpic.mcBadGuy_gun4.play();
_level0.varTruckNoOfBG--;
}
if (0 >= _level0.varTruckNoOfBG) {
_level0.varTruckSpeedX = -2 * _level0.varFastSpeed;
}
if (varBGHitNo != 0) {
_level0.bigPic.mcBloodSpill.play();
_level0.mcSniperView.bigpic.mcBloodSpill.play();
_level0.varBGKilled++;
_level0.txtBGRemaining = _level0.varBGtoBeKilled - _level0.varBGKilled;
varBG_X = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + "._x") + _level0.bigpic._x;
varBG_Y = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + "._y") + _level0.bigpic._y;
_level0.arrBGNextSpawn[varBGHitNo] = _level0.varNextSpawnCount;
varSniperCrosshair_X = _level0.mcSniperView._x;
varSniperCrosshair_Y = _level0.mcSniperView._y;
varDiff_X = (varSniperCrosshair_X - varBG_X) / _level0.arrBGScale[varBGHitNo];
varDiff_Y = (varSniperCrosshair_Y - varBG_Y) / _level0.arrBGScale[varBGHitNo];
_level0.mcShowBGHitLocation.mcYbar._x = varDiff_X;
_level0.mcShowBGHitLocation.mcXbar._y = varDiff_Y;
_level0.mcShowBGHitLocation.mcCircle._x = varDiff_X;
_level0.mcShowBGHitLocation.mcCircle._y = varDiff_Y;
varBGTypeHitNo = eval (("_level0.bigpic.mcBadGuy_gun" + varBGHitNo) + ".varBGTypeNo");
if (_level0.checkShotLocation(varDiff_X, varDiff_Y, varBGTypeHitNo)) {
trace("headshot");
}
} else {
_level0.plyrMissedShot();
_level0.mcSndSniperGunShotRicochet.play();
}
}
}
}
Instance of Symbol 551 MovieClip "mcGameMusic1" in Frame 56
onClipEvent (load) {
trace(_level0.varOptionMusicOn);
if (_level0.varOptionMusicOn) {
_level0.mcGameMusic1.gotoAndStop(2);
}
}
Frame 57
varCurrentRoundFrame++;
checkKeyPress();
createStandingBadGuyWithHostage();
createHostageFlee();
updateSniperGunView();
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
if (varL2_BossVisible) {
moveL2_Boss();
}
if ((!varBGwalkingVisible) && (!varHostWalkingVisible)) {
startSpermDelivery();
}
mcNextBg.txtVis1 = arrBGvisible[1];
mcNextBg.txtVis2 = arrBGvisible[2];
mcNextBg.txtVis3 = arrBGvisible[3];
mcNextBg.txtVis4 = varBombVisible;
mcNextBg.txtVis5 = arrHostStandvisible[2];
mcNextBg.txtVis6 = arrHostStandvisible[3];
mcShots.txtVis1 = varPlyrShotsFired;
mcShots.txtVis2 = varPlyrShotsMissed;
mcShots.txtVis3 = arrHostFleevisible[1];
mcShots.txtVis4 = arrHostFleevisible[2];
mcShots.txtVis5 = arrHostFleevisible[3];
mcShots.txtVis6 = arrHostFleevisible[4];
txtVisibleNow = varBGVisibleNow;
Frame 58
gotoAndPlay (57);
if ((((0 >= varPlyrHealth) || (varPoliceCarDamage >= 100)) || (bigPic.mcPoliceCar._x < varPoliceCarReachVanPositionX)) || (0 >= txtTimeLeft)) {
if (((0 >= varPlyrHealth) || (varPoliceCarDamage >= 100)) || (0 >= txtTimeLeft)) {
varPlyrStatus = "dead";
gotoAndPlay (59);
trace(varPlyrStatus);
}
if (bigPic.mcPoliceCar._x < varPoliceCarReachVanPositionX) {
varPlyrStatus = "alive";
_quality = "HIGH";
gotoAndPlay (779);
trace(varPlyrStatus);
}
resetBgnd();
stopAllSounds();
Mouse.show();
}
Frame 59
stopAllSounds();
Mouse.show();
_quality = "HIGH";
calculateScore();
trace(varPlyrStatus);
if (varPlyrStatus == "dead") {
txtMissionEnd = "Mission Failed";
} else {
txtMissionEnd = "Mission Completed";
}
this.stop();
Frame 60
stopAllSounds();
stop();
Frame 61
function createBadGuyinVan() {
varNextBGNo = 0;
varMaxBGVisible = 1;
varBGVisibleNow = 0;
i = 1;
while (varMaxBGNo >= i) {
if (arrBGvisible[i] == true) {
varBGVisibleNow++;
}
arrBGNextSpawn[i] = arrBGNextSpawn[i] - 1;
arrBGNextSpawn[i] = checkNegative(arrBGNextSpawn[i]);
i++;
}
if ((varBGVisibleNow < varMaxBGVisible) || (varBGVisibleNow < 1)) {
varNextBGSelect = 2;
if (((arrBGNextSpawn[1] == 0) && (arrBGvisible[1] == false)) && (!rocket.status)) {
_level0.bigpic.mcVan.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcVan.mcBadGuy_gun1.play();
arrBGvisible[1] = true;
}
}
}
function plyrMissedShot() {
_level0.varPlyrShotsMissed++;
}
function updateProgressBar() {
varProgressBarScale = (varCorrectMotion * 3) + (10 * (Math.random() - 0.5));
if (0 >= varProgressBarScale) {
setProperty(mcExcitementLevel, _yscale , 0);
} else {
setProperty(mcExcitementLevel, _yscale , varProgressBarScale);
}
}
function calculateScore() {
this.txtHealth = this.varPlyrHealth;
this.txtShotsFired = this.varPlyrShotsFired;
this.txtAccuracy = int(((this.varPlyrShotsFired - this.varPlyrShotsMissed) / this.varPlyrShotsFired) * 100);
this.txtBGKilledNo = this.varBGKilled;
this.txtBGHeadShotNo = this.varNoOfBGHeadShots;
this.txtHostKilledNo = this.varNoOfHostKilled;
this.txtTime = this.varTimeScore;
}
function resetBgnd() {
}
Mouse.hide();
this.varTimeScore = 0;
this.varBonusScore = 0;
this.varRoundScore = 0;
varMissionNo = 4;
varRoundNo++;
varMouseX = 0;
varMouseY = 0;
varPrevMouseY = 0;
txtRoundNo = varRoundNo;
varCurrentRoundFrame = 0;
varFramesPerSecond = 12;
varMaxFramesPerRound = 1200;
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
varBGtoBeKilled = 35;
varBGKilled = 0;
varNoOfBGHeadShots = 0;
varWeaponReload = false;
varMaxNoOfBulletsPerCase = 5;
varBulletsFiredCurrentCase = 0;
varPlyrShotsFired = 0;
varPlyrShotsMissed = 0;
varPlyrHealth = 100;
varMachineGunShotHealthLoss = 1;
varGunShotHealtLoss = 5;
varRocketHitHealtLoss = 10;
varHostageHitHealtLoss = 25;
setProperty("mcPlyrHealth.mcHealthLostBar", _xscale , 0);
varL2_BossHealth = 100;
varL2_BossHealthDecrement = 25;
varNoOfRockets = 0;
rocket = {id:0, status:"false", stepX:0, stepY:0, speed:0, noOfFramesToTravel:48, travelX:500, travelY:250, startX:0, startY:0};
if (varDifficulty == "EASY") {
varFirstWarningCount = varBGWarningCountEASY;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
_level0.varRocketIncrement = 1.05;
rocket.speed = 1;
trace(rocket.speed);
varVanFallBackDistance = 7;
} else if (varDifficulty == "MED") {
varFirstWarningCount = varBGWarningCountMED;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
_level0.varRocketIncrement = 1.09;
rocket.speed = 1.3;
varVanFallBackDistance = 5;
} else if (varDifficulty == "HARD") {
varFirstWarningCount = varBGWarningCountHARD;
varSecondWarningCount = 1;
varThirdWarningCount = 1;
_level0.varRocketIncrement = 1.11;
rocket.speed = 1.5;
varVanFallBackDistance = 3;
}
varTotalWarningCount = (varFirstWarningCount + varSecondWarningCount) + varThirdWarningCount;
varNextSpawnCount = 10;
varMaxBGNo = 1;
varMaxBGTypes = 1;
varMaxBGVisible = 0;
varBGVisibleNow = 0;
arrBGvisible = new Array();
arrBGNextSpawn = new Array();
arrBGScale = new Array();
i = 1;
while (varMaxBGNo >= i) {
arrBGvisible[i] = false;
arrBGNextSpawn[i] = 0;
arrBGScale[i] = 2;
i++;
}
varFastSpeed = 2;
varSlowSpeed = 1;
varVanSpeed = varSlowSpeed;
varVanTravelDirection = 1;
varChangeVanDirection = false;
varChangeVanDirectionStepX = 0;
varVanReachVanPositionX = -170;
varVanDamagePosititionX = 1000;
varVanDamage = 0;
varVanDamageIncrement = 5;
varTruckSpeedX = varSlowSpeed;
varTruckNoOfBG = 2;
varTruckBGNo1Status = "stand";
varTruckBGNo2Status = "stand";
varBombSpeedX = 14;
varBombVisible = false;
initializeGUI();
stop();
Instance of Symbol 539 MovieClip "mcSndSniperGunShot" in Frame 61
onClipEvent (load) {
_level0.initSystemPerformance();
}
onClipEvent (enterFrame) {
_level0.checkSystemPerformance();
}
Instance of Symbol 658 MovieClip "mcSniperView" in Frame 61
onClipEvent (mouseDown) {
if (_level0.varWeaponReload == true) {
} else {
_level0.varBulletsFiredCurrentCase++;
if (_level0.varBulletsFiredCurrentCase >= _level0.varMaxNoOfBulletsPerCase) {
_level0.mcSniperGunReload.play();
_level0.varWeaponReload = true;
_level0.varBulletsFiredCurrentCase = 0;
}
_level0.mcSndSniperGunShot.play();
_level0.mcSniperGunBullets.play();
_level0.varPlyrShotsFired++;
varBG_X = 0;
varBG_Y = 0;
varBGHitNo = 0;
if (_level0.bigPic.mcRocketFull.mcRocket.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.rocket.status = false;
_level0.bigPic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
_level0.plyrMissedShot();
} else if (_level0.bigpic.mcUnhitableArea.hitTest(_root._xmouse, _root._ymouse, true)) {
_level0.plyrMissedShot();
_level0.mcSndSniperGunShotRicochet.play();
} else if (_level0.bigpic.mcVanTires.hitTest(_root._xmouse, _root._ymouse, true)) {
trace("Tire shot");
_level0.varVanDamagePosititionY = _level0.bigPic.mcVan._y;
_level0.varVanSpeed = -1 * _level0.varFastSpeed;
_level0.varVanDamage = _level0.varVanDamage + _level0.varVanDamageIncrement;
} else {
if (_level0.bigpic.mcVan.mcBadGuy_gun1.hitTest(_root._xmouse, _root._ymouse, true)) {
varBGHitNo = 1;
_level0.bigpic.mcVan.mcBadGuy_gun1.play();
_level0.mcSniperView.bigpic.mcVan.mcBadGuy_gun1.play();
}
if (varBGHitNo != 0) {
_level0.bigPic.mcBloodSpill.play();
_level0.mcSniperView.bigpic.mcBloodSpill.play();
_level0.varBGKilled++;
_level0.txtBGRemaining = _level0.varBGtoBeKilled - _level0.varBGKilled;
varBG_X = (((_level0.bigpic.mcVan._xscale / 100) * eval (("_level0.bigpic.mcVan.mcBadGuy_gun" + varBGHitNo) + "._x")) + _level0.bigpic._x) + _level0.bigpic.mcVan._x;
varBG_Y = (((_level0.bigpic.mcVan._yscale / 100) * eval (("_level0.bigpic.mcVan.mcBadGuy_gun" + varBGHitNo) + "._y")) + _level0.bigpic._y) + _level0.bigpic.mcVan._y;
_level0.arrBGNextSpawn[varBGHitNo] = _level0.varNextSpawnCount;
varSniperCrosshair_X = _level0.mcSniperView._x;
varSniperCrosshair_Y = _level0.mcSniperView._y;
varDiff_X = (varSniperCrosshair_X - varBG_X) / _level0.arrBGScale[varBGHitNo];
varDiff_Y = (varSniperCrosshair_Y - varBG_Y) / _level0.arrBGScale[varBGHitNo];
trace((((((((("Y: " + varDiff_Y) + " y0: ") + varBG_Y) + " y1: ") + _level0.bigpic._y) + " y2: ") + _level0.bigpic.mcVan._y) + " y3: ") + eval (("_level0.bigpic.mcVan.mcBadGuy_gun" + varBGHitNo) + "._y"));
_level0.mcShowBGHitLocation.mcYbar._x = varDiff_X;
_level0.mcShowBGHitLocation.mcXbar._y = varDiff_Y;
_level0.mcShowBGHitLocation.mcCircle._x = varDiff_X;
_level0.mcShowBGHitLocation.mcCircle._y = varDiff_Y;
varBGTypeHitNo = eval (("_level0.bigpic.mcVan.mcBadGuy_gun" + varBGHitNo) + ".varBGTypeNo");
if (_level0.checkShotLocation(varDiff_X, varDiff_Y, varBGTypeHitNo)) {
trace("headshot");
_level0.bigPic.mcBloodHeadShot.play();
_level0.mcSniperView.bigpic.mcBloodHeadShot.play();
}
} else {
_level0.plyrMissedShot();
_level0.mcSndSniperGunShotRicochet.play();
}
}
}
}
Instance of Symbol 551 MovieClip "mcGameMusic1" in Frame 61
onClipEvent (load) {
trace(_level0.varOptionMusicOn);
if (_level0.varOptionMusicOn) {
_level0.mcGameMusic1.gotoAndStop(2);
}
}
Frame 62
varCurrentRoundFrame++;
checkKeyPress();
updateSniperGunView();
if (!varChangeVanDirection) {
createBadGuyinVan();
}
txtTimeLeft = Math.round((varMaxFramesPerRound - varCurrentRoundFrame) / varFramesPerSecond);
mcVanProgressBar.mcVan._x = 2.5 * (_level0.bigpic.mcVan._y - 20);
if (varChangeVanDirection && (!rocket.status)) {
if (0 < varVanTravelDirection) {
bigpic.mcRoad.prevFrame();
mcSniperView.bigPic.mcRoad.prevFrame();
bigpic.mcVan.prevFrame();
mcSniperView.bigPic.mcVan.prevFrame();
bigpic.mcVanTires.prevFrame();
mcSniperView.bigPic.mcVanTires.prevFrame();
} else {
bigpic.mcRoad.nextFrame();
mcSniperView.bigPic.mcRoad.nextFrame();
bigpic.mcVan.nextFrame();
mcSniperView.bigPic.mcVan.nextFrame();
bigpic.mcVanTires.nextFrame();
mcSniperView.bigPic.mcVanTires.nextFrame();
}
bigpic.mcVan._x = bigpic.mcVan._x - varChangeVanDirectionStepX;
mcSniperView.bigPic.mcVan._x = bigpic.mcVan._x;
bigpic.mcVanTires._x = bigpic.mcVan._x;
mcSniperView.bigPic.mcVanTires._x = bigpic.mcVan._x;
arrBGvisible[1] = false;
}
mcNextBg.txtVis1 = arrBGvisible[1];
mcNextBg.txtVis2 = arrBGvisible[2];
mcNextBg.txtVis3 = arrBGvisible[3];
mcNextBg.txtVis4 = rocket.status;
mcNextBg.txtVis5 = arrHostStandvisible[2];
mcNextBg.txtVis6 = arrHostStandvisible[3];
mcShots.txtVis1 = varPlyrShotsFired;
mcShots.txtVis2 = varPlyrShotsMissed;
mcShots.txtVis3 = _level0.rocket.status;
mcShots.txtVis4 = arrHostFleevisible[2];
mcShots.txtVis5 = arrHostFleevisible[3];
mcShots.txtVis6 = arrHostFleevisible[4];
txtVisibleNow = varBGVisibleNow;
Frame 63
gotoAndPlay (62);
if ((((0 >= varPlyrHealth) || (mcVanProgressBar.mcVan._x < -90)) || (90 < mcVanProgressBar.mcVan._x)) || (0 >= txtTimeLeft)) {
if (((0 >= varPlyrHealth) || (mcVanProgressBar.mcVan._x < -90)) || (0 >= txtTimeLeft)) {
varPlyrStatus = "dead";
gotoAndPlay (64);
}
if (90 < mcVanProgressBar.mcVan._x) {
varPlyrStatus = "alive";
_quality = "HIGH";
gotoAndPlay (970);
}
resetBgnd();
stopAllSounds();
Mouse.show();
}
Frame 64
stopAllSounds();
Mouse.show();
_quality = "HIGH";
calculateScore();
if (varPlyrStatus == "dead") {
txtMissionEnd = "Mission Failed";
} else {
txtMissionEnd = "Mission Completed";
}
this.stop();
Frame 363
gotoAndPlay (45);
Instance of Symbol 432 MovieClip in Frame 435
onClipEvent (load) {
this._rotation = 360 * Math.random();
}
Frame 460
gotoAndPlay (49);
Frame 555
gotoAndPlay (50);
Frame 656
gotoAndPlay (54);
Frame 778
gotoAndPlay (55);
Frame 849
gotoAndPlay (59);
Frame 969
gotoAndPlay (60);
Frame 1111
stop();
Symbol 16 Button
on (release) {
getURL ("http://www.tuti.tv", "_blank");
}
Symbol 48 Button
on (release) {
gotoAndPlay (37);
}
Symbol 49 Button
on (release) {
gotoAndPlay (39);
}
Symbol 50 Button
on (release) {
gotoAndStop (36);
}
Symbol 57 Button
on (release) {
gotoAndPlay (38);
}
Symbol 60 Button
on (release) {
gotoAndPlay (35);
}
Symbol 62 Button
on (release) {
_level0.varWatchMoviesOnly = true;
gotoAndPlay (33);
}
Symbol 64 Button
on (release) {
gotoAndPlay (34);
}
Symbol 66 Button
on (release) {
gotoAndPlay (30);
}
Symbol 70 Button
on (release) {
gotoAndPlay (32);
}
Symbol 72 Button
on (release) {
gotoAndPlay (31);
}
Symbol 80 Button
on (release) {
getURL ("http://www.cafeshops.com/tuti_tv_sniper", "_blank");
}
Symbol 82 Button
on (release) {
gotoAndStop (29);
}
Symbol 91 Button
on (release) {
getURL ("https://paydirect.yahoo.com/PD/onePage/onePageSendMoneyX-drv.p\r\r\nd?PartnerLoginName=&RecipientName=Istvan+Orosi&RecipientEMailAddr=tutitv%40hotmail.com&PaymentAmount=&Memo=Tuti+TV+Support&Message\r\r\n=Please+support+Tuti+TV.+Thank+You%21&Pad=rt5BWXGdcwfOd06VGm7IWg2o6b\r\r\n0-&which=CHARITY", "_blank");
}
Symbol 94 Button
on (release) {
getURL ("https://www.paypal.com/xclick/business=tutitv%40hotmail.com&item_nam\r\r\ne=Tuti+TV+Support+Fund&item_number=1&no_note=1&tax=0¤cy_code=U\r\r\nSD", "_blank");
}
Symbol 99 Button
on (release) {
getURL ("http://www.tuti.tv/contact.php", "_blank");
}
Symbol 102 Button
on (release) {
gotoAndPlay (364);
}
Symbol 103 Button
on (release) {
gotoAndPlay (556);
}
Symbol 104 Button
on (release) {
gotoAndPlay (779);
}
Symbol 105 Button
on (release) {
gotoAndPlay (970);
}
Symbol 108 Button
on (release) {
gotoAndPlay (65);
}
Symbol 112 Button
on (release) {
gotoAndPlay (461);
}
Symbol 113 Button
on (release) {
gotoAndPlay (657);
}
Symbol 114 Button
on (release) {
gotoAndPlay (850);
}
Symbol 122 Button
on (release) {
getURL ("http://www.tuti.tv/movies/ev/ev.html", "_blank");
}
Symbol 130 Button
on (press) {
this.play();
trace(varSirenNo);
if ((_level0.varMissionNo == 1) || (_level0.varMissionNo == 2)) {
if (varSirenNo == 1) {
_level0.bigPic.mcSiren1.play();
} else if (varSirenNo == 2) {
_level0.bigPic.mcSiren2.play();
} else if (varSirenNo == 3) {
_level0.bigPic.mcSiren3.play();
}
} else if (_level0.varMissionNo == 3) {
if (varSirenNo == 1) {
_level0.bigPic.mcPoliceCar.mcSiren1.play();
} else if (varSirenNo == 2) {
_level0.bigPic.mcPoliceCar.mcSiren2.play();
}
}
}
Symbol 138 MovieClip Frame 1
this.stop();
Symbol 138 MovieClip Frame 4
stop();
Symbol 147 MovieClip Frame 6
_level0.bigpic.mcBomb.play();
_level0.mcSniperView.bigpic.mcBomb.play();
Symbol 147 MovieClip Frame 13
_level0.arrBGvisible[_parent._parent.varBGNo] = false;
_level0.arrBGNextSpawn[_parent._parent.varBGNo] = 10;
_parent._parent.prevFrame();
this.stop();
Symbol 157 MovieClip Frame 6
if (_level0.varMissionNo == 4) {
varBGX = ((_level0.bigpic.mcVan._xscale / 100) * _level0.bigpic.mcVan.mcBadGuy_gun1._x) - (_level0.varVanTravelDirection * 6);
varBGY = (_level0.bigpic.mcVan._yscale / 100) * _level0.bigpic.mcVan.mcBadGuy_gun1._y;
varVanX = _level0.bigpic.mcVan._x;
varVanY = _level0.bigpic.mcVan._y;
_level0.createRocket(_parent._parent.varBGNo, varBGX + varVanX, varBGY + varVanY);
} else {
varBGX = _parent._parent._x;
varBGY = _parent._parent._y;
_level0.createRocket(_parent._parent.varBGNo, varBGX + varVanX, varBGY + varVanY);
}
Symbol 157 MovieClip Frame 22
_level0.arrBGvisible[_parent._parent.varBGNo] = false;
_level0.arrBGNextSpawn[_parent._parent.varBGNo] = 10;
_parent._parent.prevFrame();
this.stop();
Symbol 158 MovieClip Frame 1
_parent.varBGTypeNo = _level0.varNextBGSelect;
if (1 >= _level0.varNextBGSelect) {
gotoAndPlay (2);
} else if (_level0.varNextBGSelect == 2) {
gotoAndPlay (3);
}
Symbol 158 MovieClip Frame 2
this.stop();
Symbol 158 MovieClip Frame 3
_level0.rocket.id = _parent.varBGNo;
this.stop();
Symbol 160 MovieClip Frame 7
_level0.arrBGvisible[_parent._parent.varBGNo] = false;
_level0.arrBGNextSpawn[_parent._parent.varBGNo] = 10;
_parent._parent.prevFrame();
this.stop();
Symbol 161 MovieClip Frame 1
function rocketHitPlyr() {
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_parent.varBGNo, "gun");
_level0.arrBGvisible[_parent.varBGNo] = false;
_parent.prevFrame(_parent.varBGtype);
this.stop();
}
if (1 >= _parent.varBGTypeNo) {
gotoAndPlay (2);
} else if (_parent.varBGTypeNo == 2) {
gotoAndPlay (3);
}
Symbol 161 MovieClip Frame 2
this.stop();
Symbol 161 MovieClip Frame 3
this.stop();
Symbol 162 MovieClip Frame 1
this.stop();
Symbol 162 MovieClip Frame 2
this.stop();
Instance of Symbol 158 MovieClip "mcBGvan" in Symbol 162 MovieClip Frame 2
onClipEvent (load) {
}
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 162 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 166 MovieClip Frame 2
if (Math.random() < 0.2) {
gotoAndPlay (1);
}
Symbol 186 MovieClip Frame 1
if (_level0.varChangeVanDirection) {
_level0.varVanTravelDirection = -1;
_level0.varChangeVanDirection = false;
trace("Right: " + _level0.varVanTravelDirection);
}
Instance of Symbol 162 MovieClip "mcBadGuy_gun1" in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Symbol 186 MovieClip Frame 19
if (_level0.varChangeVanDirection) {
_level0.varVanTravelDirection = 1;
_level0.varChangeVanDirection = false;
trace("Left: " + _level0.varVanTravelDirection);
}
this.stop();
Instance of Symbol 162 MovieClip "mcBadGuy_gun1" in Symbol 186 MovieClip Frame 19
onClipEvent (load) {
varBGNo = 1;
}
Symbol 199 MovieClip Frame 1
this.stop();
Symbol 199 MovieClip Frame 4
stop();
Symbol 200 MovieClip Frame 1
this.stop();
Symbol 200 MovieClip Frame 4
stop();
Symbol 202 Button
on (release) {
gotoAndPlay (29);
}
Symbol 216 Button
on (release) {
resetKeys();
displayKeys();
}
Symbol 233 Button
on (release) {
_level0.varScopeSize = _level0.varScopeSizeSMALL;
mcCheckScopeSizeSmall.gotoAndStop(2);
mcCheckScopeSizeMed.gotoAndStop(1);
mcCheckScopeSizeLarge.gotoAndStop(1);
}
Symbol 234 Button
on (release) {
_level0.varScopeSize = _level0.varScopeSizeMED;
mcCheckScopeSizeSmall.gotoAndStop(1);
mcCheckScopeSizeMed.gotoAndStop(2);
mcCheckScopeSizeLarge.gotoAndStop(1);
}
Symbol 235 Button
on (release) {
_level0.varScopeSize = _level0.varScopeSizeLARGE;
mcCheckScopeSizeSmall.gotoAndStop(1);
mcCheckScopeSizeMed.gotoAndStop(1);
mcCheckScopeSizeLarge.gotoAndStop(2);
}
Symbol 239 Button
on (release) {
_level0.varZoomScale = 1;
mcCheckZoomScale1x.gotoAndStop(2);
mcCheckZoomScale2x.gotoAndStop(1);
mcCheckZoomScale3x.gotoAndStop(1);
}
Symbol 240 Button
on (release) {
_level0.varZoomScale = 2;
mcCheckZoomScale1x.gotoAndStop(1);
mcCheckZoomScale2x.gotoAndStop(2);
mcCheckZoomScale3x.gotoAndStop(1);
}
Symbol 241 Button
on (release) {
_level0.varZoomScale = 3;
mcCheckZoomScale1x.gotoAndStop(1);
mcCheckZoomScale2x.gotoAndStop(1);
mcCheckZoomScale3x.gotoAndStop(2);
}
Symbol 243 Button
on (release) {
_level0.varOptionBloodOn = true;
mcCheckBloodOn.gotoAndStop(2);
mcCheckBloodOff.gotoAndStop(1);
}
Symbol 244 Button
on (release) {
_level0.varOptionBloodOn = false;
mcCheckBloodOn.gotoAndStop(1);
mcCheckBloodOff.gotoAndStop(2);
}
Symbol 253 Button
on (release) {
resetSettings();
displaySettings();
}
Symbol 260 MovieClip Frame 1
this.stop();
Symbol 260 MovieClip Frame 2
this.stop();
Symbol 261 Button
on (release) {
_level0.varOptionQualityOn = true;
mcCheckAutoQualityOn.gotoAndStop(2);
mcCheckAutoQualityOff.gotoAndStop(1);
}
Symbol 262 Button
on (release) {
_level0.varOptionQualityOn = false;
mcCheckAutoQualityOn.gotoAndStop(1);
mcCheckAutoQualityOff.gotoAndStop(2);
}
Symbol 265 Button
on (release) {
_level0.varDifficulty = "EASY";
mcCheckDifficultyEasy.gotoAndStop(2);
mcCheckDifficultyMed.gotoAndStop(1);
mcCheckDifficultyHard.gotoAndStop(1);
}
Symbol 266 Button
on (release) {
_level0.varDifficulty = "MED";
mcCheckDifficultyEasy.gotoAndStop(1);
mcCheckDifficultyMed.gotoAndStop(2);
mcCheckDifficultyHard.gotoAndStop(1);
}
Symbol 267 Button
on (release) {
_level0.varDifficulty = "HARD";
mcCheckDifficultyEasy.gotoAndStop(1);
mcCheckDifficultyMed.gotoAndStop(1);
mcCheckDifficultyHard.gotoAndStop(2);
}
Symbol 272 Button
on (release) {
_level0.varOptionMusicOn = true;
mcCheckMusicOn.gotoAndStop(2);
mcCheckMusicOff.gotoAndStop(1);
}
Symbol 273 Button
on (release) {
_level0.varOptionMusicOn = false;
mcCheckMusicOn.gotoAndStop(1);
mcCheckMusicOff.gotoAndStop(2);
}
Symbol 276 Button
on (release) {
play();
}
Symbol 295 MovieClip Frame 1
this.stop();
Symbol 297 MovieClip Frame 6
this.stop();
Symbol 299 MovieClip Frame 6
this.stop();
Symbol 300 MovieClip Frame 1
_parent.varBGTypeNo = _level0.varNextBGSelect;
if (2 >= _level0.varNextBGSelect) {
gotoAndPlay (2);
} else if (4 >= _level0.varNextBGSelect) {
gotoAndPlay (3);
}
Symbol 300 MovieClip Frame 2
this.stop();
Symbol 300 MovieClip Frame 3
_level0.rocket.id = _parent.varBGNo;
this.stop();
Symbol 301 MovieClip Frame 6
this.stop();
Symbol 302 MovieClip Frame 4
this.stop();
Symbol 303 MovieClip Frame 1
function rocketHitPlyr() {
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_parent.varBGNo, "gun");
_level0.arrBGvisible[_parent.varBGNo] = false;
_parent.prevFrame(_parent.varBGtype);
this.stop();
}
if (2 >= _parent.varBGTypeNo) {
gotoAndPlay (2);
} else if (4 >= _parent.varBGTypeNo) {
gotoAndPlay (3);
}
Symbol 303 MovieClip Frame 2
this.stop();
Symbol 303 MovieClip Frame 3
this.stop();
Symbol 304 MovieClip Frame 1
this.stop();
Symbol 304 MovieClip Frame 2
this.stop();
Instance of Symbol 300 MovieClip "mcBG" in Symbol 304 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 304 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 305 MovieClip Frame 1
this.stop();
Symbol 305 MovieClip Frame 2
this.stop();
Instance of Symbol 300 MovieClip "mcBG" in Symbol 305 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 305 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 306 MovieClip Frame 1
this.stop();
Symbol 306 MovieClip Frame 2
this.stop();
Instance of Symbol 300 MovieClip "mcBG" in Symbol 306 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 306 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 308 MovieClip Frame 1
this.stop();
Symbol 308 MovieClip Frame 2
this.stop();
Instance of Symbol 300 MovieClip "mcBG" in Symbol 308 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 308 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 309 MovieClip Frame 1
this.stop();
Symbol 309 MovieClip Frame 2
this.stop();
Instance of Symbol 300 MovieClip "mcBG" in Symbol 309 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 309 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 313 MovieClip Frame 1
this.stop();
Symbol 313 MovieClip Frame 7
this.stop();
Symbol 313 MovieClip Frame 10
gotoAndPlay (1);
Symbol 314 MovieClip Frame 1
this.stop();
Symbol 314 MovieClip Frame 7
this.stop();
Symbol 314 MovieClip Frame 10
gotoAndPlay (1);
Symbol 315 MovieClip Frame 1
this.stop();
Symbol 315 MovieClip Frame 7
this.stop();
Symbol 315 MovieClip Frame 10
gotoAndPlay (1);
Symbol 316 MovieClip Frame 1
this.stop();
Symbol 316 MovieClip Frame 7
this.stop();
Symbol 316 MovieClip Frame 10
gotoAndPlay (1);
Symbol 317 MovieClip Frame 1
this.stop();
Symbol 317 MovieClip Frame 7
this.stop();
Symbol 317 MovieClip Frame 10
gotoAndPlay (1);
Instance of Symbol 304 MovieClip "mcBadGuy_gun5" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 5;
_level0.arrBGScale[varBGNo] = 0.5;
}
Instance of Symbol 305 MovieClip "mcBadGuy_gun4" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 4;
_level0.arrBGScale[varBGNo] = 0.5;
}
Instance of Symbol 306 MovieClip "mcBadGuy_gun2" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 2;
_level0.arrBGScale[varBGNo] = 0.75;
}
Instance of Symbol 308 MovieClip "mcBadGuy_gun1" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Instance of Symbol 309 MovieClip "mcBadGuy_gun3" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 3;
_level0.arrBGScale[varBGNo] = 0.9;
}
Instance of Symbol 313 MovieClip "mcHostStand1" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Instance of Symbol 314 MovieClip "mcHostStand4" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 4;
}
Instance of Symbol 315 MovieClip "mcHostStand2" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 2;
}
Instance of Symbol 316 MovieClip "mcHostStand3" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 3;
}
Instance of Symbol 317 MovieClip "mcHostStand5" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 5;
}
Symbol 343 MovieClip Frame 1
this.stop();
Symbol 343 MovieClip Frame 2
if (0.5 < Math.random()) {
gotoAndPlay (5);
}
Symbol 343 MovieClip Frame 4
gotoAndStop (1);
Symbol 349 MovieClip Frame 23
_level0.setBgndScale();
this.stop();
_parent.play();
Symbol 351 MovieClip Frame 1
this.stop();
Symbol 360 MovieClip Frame 5
this.stop();
Symbol 369 MovieClip Frame 1
this.stop();
Symbol 369 MovieClip Frame 2
this.stop();
Symbol 369 MovieClip Frame 3
this.stop();
Symbol 369 MovieClip Frame 4
this.stop();
Symbol 369 MovieClip Frame 5
this.stop();
Symbol 369 MovieClip Frame 6
this.stop();
Symbol 372 MovieClip Frame 1
this.stop();
Symbol 372 MovieClip Frame 11
_level0.varWeaponReload = false;
_level0.mcSniperGunBullets.gotoAndPlay(1);
Symbol 375 MovieClip Frame 1
this.stop();
Symbol 378 MovieClip Frame 1
this.stop();
Symbol 379 MovieClip Frame 1
this.stop();
Symbol 380 Button
on (release) {
_level0.score = 0;
gotoAndPlay (29);
}
Symbol 381 Button
on (release) {
_level0.score = 0;
gotoAndPlay (36);
}
Symbol 402 MovieClip Frame 1
this._rotation = 360 * Math.random();
Symbol 403 MovieClip Frame 6
this.stop();
Symbol 403 MovieClip Frame 14
_level0.arrBGvisible[_parent._parent.varBGNo] = false;
_level0.arrBGNextSpawn[_parent._parent.varBGNo] = 10;
_parent._parent.prevFrame();
this.stop();
Symbol 404 MovieClip Frame 1
varFirstWarningCount = 0;
varSecondWarningCount = 0;
varThirdWarningCount = 0;
Symbol 404 MovieClip Frame 3
varFirstWarningCount++;
if (varFirstWarningCount < _level0.varFirstWarningCount) {
gotoAndPlay (2);
}
Symbol 404 MovieClip Frame 5
varSecondWarningCount++;
if (varSecondWarningCount < _level0.varSecondWarningCount) {
gotoAndPlay (4);
}
Symbol 404 MovieClip Frame 7
varThirdWarningCount++;
if (varThirdWarningCount < _level0.varThirdWarningCount) {
gotoAndPlay (6);
} else {
_level0.mcPlayerGetsShot.play();
}
Symbol 404 MovieClip Frame 9
_level0.mcPlayerGetsShot.play();
if (_level0.arrBGvisible[_parent._parent.varBGNo]) {
_level0.decreasePlyrHealth(_level0.varGunShotHealtLoss);
}
_parent.mcBG.play();
this.stop();
Symbol 410 MovieClip Frame 6
this.stop();
Symbol 410 MovieClip Frame 13
_level0.arrBGvisible[_parent._parent.varBGNo] = false;
_level0.arrBGNextSpawn[_parent._parent.varBGNo] = 10;
_parent._parent.prevFrame();
this.stop();
Symbol 411 MovieClip Frame 1
_parent.varBGTypeNo = _level0.varNextBGSelect;
if (1 >= _level0.varNextBGSelect) {
gotoAndPlay (2);
} else if (_level0.varNextBGSelect == 2) {
gotoAndPlay (3);
} else if (_level0.varNextBGSelect == 3) {
gotoAndPlay (4);
} else if (_level0.varNextBGSelect == 4) {
gotoAndPlay (5);
}
Symbol 411 MovieClip Frame 2
this.stop();
Symbol 411 MovieClip Frame 3
_level0.rocket.id = _parent.varBGNo;
this.stop();
Symbol 411 MovieClip Frame 4
this.stop();
Symbol 411 MovieClip Frame 5
this.stop();
Symbol 415 MovieClip Frame 1
function rocketHitPlyr() {
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_parent.varBGNo, "gun");
_level0.arrBGvisible[_parent.varBGNo] = false;
_parent.prevFrame(_parent.varBGtype);
this.stop();
}
if (1 >= _parent.varBGTypeNo) {
gotoAndPlay (2);
} else if (_parent.varBGTypeNo == 2) {
gotoAndPlay (3);
} else if (_parent.varBGTypeNo == 3) {
gotoAndPlay (4);
} else if (_parent.varBGTypeNo == 4) {
gotoAndPlay (5);
}
Symbol 415 MovieClip Frame 2
this.stop();
Instance of Symbol 412 MovieClip "mcBG" in Symbol 415 MovieClip Frame 2
onClipEvent (load) {
if (0.5 < Math.random()) {
_parent._xscale = -100;
}
}
Symbol 415 MovieClip Frame 3
this.stop();
Instance of Symbol 413 MovieClip "mcBG" in Symbol 415 MovieClip Frame 3
onClipEvent (load) {
if (0.5 < Math.random()) {
_parent._xscale = -100;
}
}
Symbol 415 MovieClip Frame 4
this.stop();
Instance of Symbol 414 MovieClip "mcBG" in Symbol 415 MovieClip Frame 4
onClipEvent (load) {
if (0.5 < Math.random()) {
_parent._xscale = -100;
}
}
Symbol 415 MovieClip Frame 5
this.stop();
Symbol 416 MovieClip Frame 1
this.stop();
Symbol 416 MovieClip Frame 2
this.stop();
Instance of Symbol 411 MovieClip "mcBG" in Symbol 416 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 416 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 417 MovieClip Frame 1
this.stop();
Symbol 417 MovieClip Frame 2
this.stop();
Instance of Symbol 411 MovieClip "mcBG" in Symbol 417 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 417 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 418 MovieClip Frame 1
this.stop();
Symbol 418 MovieClip Frame 2
this.stop();
Instance of Symbol 411 MovieClip "mcBG" in Symbol 418 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 418 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 419 MovieClip Frame 1
this.stop();
Symbol 419 MovieClip Frame 2
this.stop();
Instance of Symbol 411 MovieClip "mcBG" in Symbol 419 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 419 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 420 MovieClip Frame 1
this.stop();
Symbol 420 MovieClip Frame 2
this.stop();
Instance of Symbol 411 MovieClip "mcBG" in Symbol 420 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 420 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 421 MovieClip Frame 1
this.stop();
Symbol 421 MovieClip Frame 2
this.stop();
Instance of Symbol 411 MovieClip "mcBG" in Symbol 421 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 421 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Symbol 425 MovieClip Frame 1
this.stop();
Symbol 425 MovieClip Frame 2
setProperty(this, _rotation , 360 * Math.random());
Symbol 425 MovieClip Frame 8
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_level0.varMachineGunShotHealthLoss);
gotoAndPlay (2);
Symbol 426 MovieClip Frame 1
this.varBGTypeNo = varBGNo;
this.stop();
Instance of Symbol 422 MovieClip in Symbol 426 MovieClip Frame 1
/* no clip actions */
Symbol 426 MovieClip Frame 2
this.stop();
Symbol 432 MovieClip Frame 4
this.stop();
Symbol 434 MovieClip Frame 1
this.stop();
Symbol 434 MovieClip Frame 2
if (_level0.varOptionBloodOn) {
this._x = _level0._xmouse - _level0.bigPic._x;
this._y = _level0._ymouse - _level0.bigPic._y;
} else {
this.prevFrame();
}
Instance of Symbol 432 MovieClip in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this._rotation = 360 * Math.random();
}
Symbol 434 MovieClip Frame 5
this._x = -400;
this._y = -400;
Symbol 440 MovieClip Frame 1
this.stop();
Symbol 440 MovieClip Frame 2
if (_level0.varOptionBloodOn) {
this._x = _level0._xmouse - _level0.bigPic._x;
this._y = _level0._ymouse - _level0.bigPic._y;
} else {
this.prevFrame();
}
Symbol 440 MovieClip Frame 15
this._x = -400;
this._y = -400;
Symbol 445 MovieClip Frame 1
this.stop();
Symbol 445 MovieClip Frame 2
if (_level0.varOptionBloodOn) {
this._x = _level0._xmouse - _level0.bigPic._x;
this._y = _level0._ymouse - _level0.bigPic._y;
} else {
this.prevFrame();
}
Symbol 445 MovieClip Frame 15
this._x = -400;
this._y = -400;
Symbol 450 MovieClip Frame 2
gotoAndPlay (1);
Symbol 459 MovieClip Frame 1
this.stop();
Instance of Symbol 450 MovieClip in Symbol 459 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 8;
}
Symbol 459 MovieClip Frame 2
if (_level0.rocket.status) {
_level0.rocket.status = false;
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_level0.varRocketHitHealtLoss);
trace(_level0.rocket.status);
}
Symbol 459 MovieClip Frame 9
_level0.varChangeVanDirection = true;
_level0.varChangeVanDirectionStepX = _level0.bigpic.mcVan._x / 9;
_level0.removeRocket();
Instance of Symbol 416 MovieClip "mcBadGuy_gun1" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Instance of Symbol 417 MovieClip "mcBadGuy_gun3" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 3;
}
Instance of Symbol 418 MovieClip "mcBadGuy_gun2" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 2;
}
Instance of Symbol 419 MovieClip "mcBadGuy_gun4" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 4;
}
Instance of Symbol 420 MovieClip "mcBadGuy_gun5" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 5;
_level0.arrBGScale[varBGNo] = 0.7;
}
Instance of Symbol 421 MovieClip "mcBadGuy_gun6" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 6;
_level0.arrBGScale[varBGNo] = 0.7;
}
Instance of Symbol 434 MovieClip "mcBloodSpill" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 440 MovieClip "mcBloodHeadShot" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 445 MovieClip "mcBloodAnyShot" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 459 MovieClip "mcRocketFull" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varRocketNo = _level0.varNoOfRockets;
this._xscale = 5;
this._yscale = 5;
}
onClipEvent (enterFrame) {
if (_level0.rocket.status) {
this._x = this._x + _level0.rocket.stepX;
this._y = this._y + _level0.rocket.stepY;
this._xscale = this._xscale + ((100 * _level0.rocket.speed) / _level0.rocket.noOfFramesToTravel);
this._yscale = this._xscale;
if ((100 < this._xscale) && (_level0.rocket.status)) {
_level0.bigpic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
if (_level0.rocket.status) {
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_level0.varRocketHitHealtLoss);
}
_level0.rocket.status = false;
}
}
}
Instance of Symbol 138 MovieClip "mcSiren2" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varSirenNo = 2;
}
Instance of Symbol 199 MovieClip "mcSiren1" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varSirenNo = 1;
}
Instance of Symbol 200 MovieClip "mcSiren3" in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
varSirenNo = 3;
}
Symbol 469 MovieClip Frame 1
this._x = 0;
this._y = 0;
this.stop();
Symbol 469 MovieClip Frame 2
this._x = 300 * (Math.random() - 0.5);
this._y = 200 * (Math.random() - 0.5);
Symbol 485 MovieClip Frame 1
this.stop();
Symbol 485 MovieClip Frame 2
if (0.5 < Math.random()) {
gotoAndPlay (5);
}
Symbol 485 MovieClip Frame 4
gotoAndStop (1);
Symbol 488 MovieClip Frame 1
this.stop();
Symbol 488 MovieClip Frame 2
this.stop();
Symbol 489 MovieClip Frame 1
this.stop();
Symbol 513 MovieClip Frame 1
if (1 >= _level0.varNextHostStandSelect) {
gotoAndPlay (2);
} else if (2 >= _level0.varNextHostStandSelect) {
gotoAndPlay (1);
}
Symbol 513 MovieClip Frame 2
this.stop();
Symbol 513 MovieClip Frame 3
this.stop();
Symbol 514 MovieClip Frame 1
this.stop();
Symbol 514 MovieClip Frame 2
this.stop();
Symbol 514 MovieClip Frame 3
_level0.arrFleeCivvisible[this.varBGNo] = false;
_level0.arrFleeCivNextSpawn[this.varGBNo] = 10;
Symbol 514 MovieClip Frame 4
gotoAndPlay (1);
Symbol 515 MovieClip Frame 1
this.stop();
Symbol 515 MovieClip Frame 2
this.stop();
Symbol 515 MovieClip Frame 3
_level0.arrFleeCivvisible[this.varBGNo] = false;
_level0.arrFleeCivNextSpawn[this.varGBNo] = 10;
Symbol 515 MovieClip Frame 4
gotoAndPlay (1);
Symbol 516 MovieClip Frame 1
this.stop();
Symbol 516 MovieClip Frame 2
this.stop();
Symbol 516 MovieClip Frame 3
_level0.arrFleeCivvisible[this.varBGNo] = false;
_level0.arrFleeCivNextSpawn[this.varGBNo] = 10;
Symbol 516 MovieClip Frame 4
gotoAndPlay (1);
Symbol 519 MovieClip Frame 1
if (1 >= _level0.varNextFleeBGSelect) {
gotoAndPlay (2);
} else if (2 >= _level0.varNextFleeBGSelect) {
gotoAndPlay (3);
} else if (_level0.varNextFleeBGSelect == 3) {
gotoAndPlay (1);
} else if (_level0.varNextFleeBGSelect == 4) {
gotoAndPlay (1);
}
Symbol 519 MovieClip Frame 2
this.stop();
Symbol 519 MovieClip Frame 3
this.stop();
Instance of Symbol 518 MovieClip in Symbol 519 MovieClip Frame 3
onClipEvent (enterFrame) {
this._x = this._x - 4;
if (this._x < _parent.varLeftLimit) {
_parent.fleeBGGotAway();
}
}
Symbol 520 MovieClip Frame 1
this.stop();
Symbol 520 MovieClip Frame 2
this.stop();
Instance of Symbol 519 MovieClip "mcBG" in Symbol 520 MovieClip Frame 2
onClipEvent (load) {
varRightLimit = 0;
_parent._x = -14;
_parent._y = 100;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - _level0.varSpermBoxWalkSpeedX;
_parent._y = _parent._y + _level0.varSpermBoxWalkSpeedY;
if (varRightLimit < _parent._x) {
_level0.varBGwalkingVisible = false;
_level0.varNextSpermBoxWalkSpawn = 10;
_level0.varHostWalkingVisible = false;
_level0.bigPic.mcHostWalk.prevFrame();
_level0.mcSniperView.bigpic.mcHostWalk.prevFrame();
_parent.prevFrame();
}
}
Symbol 520 MovieClip Frame 5
_level0.varBGwalkingVisible = false;
Symbol 521 MovieClip Frame 1
if (1 >= _level0.arrHostFleeType[_parent.varHostNo]) {
gotoAndPlay (2);
} else if (2 >= _level0.arrHostFleeType[_parent.varHostNo]) {
gotoAndPlay (3);
}
Symbol 521 MovieClip Frame 2
this.stop();
Symbol 521 MovieClip Frame 3
this.stop();
Symbol 522 MovieClip Frame 1
this.stop();
Symbol 522 MovieClip Frame 2
this.stop();
Instance of Symbol 521 MovieClip "mcFleeCiv" in Symbol 522 MovieClip Frame 2
onClipEvent (load) {
varBottomLimit = 200;
_parent._x = -18;
_parent._y = 100;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - _level0.varSpermBoxWalkSpeedX;
_parent._y = _parent._y + _level0.varSpermBoxWalkSpeedY;
if ((varBottomLimit < _parent._y) || (0 < _parent._x)) {
_level0.varHostWalkingVisible = false;
_parent.prevFrame();
}
}
Symbol 522 MovieClip Frame 4
_level0.varHostWalkingVisible = false;
Symbol 528 MovieClip Frame 1
this.stop();
Symbol 528 MovieClip Frame 2
this.stop();
Instance of Symbol 523 MovieClip in Symbol 528 MovieClip Frame 2
onClipEvent (load) {
_level0.varSpermBoxVisible = true;
varLeftLimit = -110;
_parent._x = -20;
_parent._y = 90;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - _level0.varSpermBoxWalkSpeedX;
_parent._y = _parent._y + _level0.varSpermBoxWalkSpeedY;
if (varLeftLimit >= _parent._x) {
if (!_level0.varSpermBoxVisible) {
_level0.varSpermBoxWalkSpeedX = _level0.varRunSpeedX;
_level0.varSpermBoxWalkSpeedY = _level0.varRunSpeedY;
_level0.varSpermBoxWalkSpeedX = -1 * _level0.varSpermBoxWalkSpeedX;
_level0.varSpermBoxWalkSpeedY = -1 * _level0.varSpermBoxWalkSpeedY;
_level0.varSpermDelivered = _level0.varSpermDelivered + _level0.varSpermDeliveredIncr;
_level0.mcSpermDelivered._xscale = _level0.varSpermDelivered;
}
_level0.varSpermBoxVisible = false;
_parent.prevFrame();
}
}
Symbol 528 MovieClip Frame 7
_level0.varSpermBoxVisible = false;
Symbol 529 MovieClip Frame 1
if (1 >= _level0.arrHostFleeType[_parent.varHostNo]) {
gotoAndPlay (2);
} else if (2 >= _level0.arrHostFleeType[_parent.varHostNo]) {
gotoAndPlay (3);
}
Symbol 529 MovieClip Frame 2
this.stop();
Symbol 529 MovieClip Frame 3
this.stop();
Symbol 532 MovieClip Frame 1
trace((("varHost: " + _parent.varHostNo) + "_") + _level0.arrHostFleeType[_parent.varHostNo]);
if (1 >= _level0.arrHostFleeType[_parent.varHostNo]) {
gotoAndPlay (2);
} else if (2 >= _level0.arrHostFleeType[_parent.varHostNo]) {
gotoAndPlay (3);
}
Symbol 532 MovieClip Frame 2
this.stop();
Instance of Symbol 530 MovieClip "mcBG" in Symbol 532 MovieClip Frame 2
onClipEvent (load) {
if (0.5 < Math.random()) {
_parent._xscale = -100;
}
}
Symbol 532 MovieClip Frame 3
this.stop();
Instance of Symbol 531 MovieClip "mcBG" in Symbol 532 MovieClip Frame 3
onClipEvent (load) {
if (0.5 < Math.random()) {
_parent._xscale = -100;
}
}
Symbol 533 MovieClip Frame 1
this.stop();
Symbol 533 MovieClip Frame 2
this.stop();
Instance of Symbol 529 MovieClip "mcFleeCiv" in Symbol 533 MovieClip Frame 2
onClipEvent (load) {
varBottomLimit = 180;
varHostFleeSpeedX = 8;
varHostFleeSpeedY = 5;
}
onClipEvent (enterFrame) {
if (_parent.varHostNo == 1) {
_parent._x = _parent._x - (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 2) {
_parent._x = _parent._x - varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 3) {
_parent._x = _parent._x + varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 4) {
_parent._x = _parent._x + (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
}
if (varBottomLimit < _parent._y) {
_parent._x = 0;
_parent._y = 105;
_level0.arrHostFleeVisible[_parent.varHostNo] = false;
_level0.arrHostFleeNextSpawn[_parent.varHostNo] = 10;
_parent.prevFrame();
}
}
Instance of Symbol 532 MovieClip "mcHostFleeDies" in Symbol 533 MovieClip Frame 3
onClipEvent (unload) {
_parent._x = 0;
_parent._y = 105;
}
Symbol 533 MovieClip Frame 4
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
trace("First Frame Die::");
Symbol 533 MovieClip Frame 5
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
_level0.arrHostFleeVisible[this.varHostNo] = false;
_level0.arrHostFleeNextSpawn[this.varHostNo] = 10;
Symbol 534 MovieClip Frame 1
this.stop();
Symbol 534 MovieClip Frame 2
this.stop();
Instance of Symbol 529 MovieClip "mcFleeCiv" in Symbol 534 MovieClip Frame 2
onClipEvent (load) {
varBottomLimit = 180;
varHostFleeSpeedX = 8;
varHostFleeSpeedY = 5;
}
onClipEvent (enterFrame) {
if (_parent.varHostNo == 1) {
_parent._x = _parent._x - (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 2) {
_parent._x = _parent._x - varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 3) {
_parent._x = _parent._x + varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 4) {
_parent._x = _parent._x + (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
}
if (varBottomLimit < _parent._y) {
_parent._x = 0;
_parent._y = 105;
_level0.arrHostFleeVisible[_parent.varHostNo] = false;
_level0.arrHostFleeNextSpawn[_parent.varHostNo] = 10;
_parent.prevFrame();
}
}
Instance of Symbol 532 MovieClip "mcHostFleeDies" in Symbol 534 MovieClip Frame 3
onClipEvent (unload) {
_parent._x = 0;
_parent._y = 105;
}
Symbol 534 MovieClip Frame 4
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
trace("First Frame Die::");
Symbol 534 MovieClip Frame 5
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
_level0.arrHostFleeVisible[this.varHostNo] = false;
_level0.arrHostFleeNextSpawn[this.varHostNo] = 10;
Symbol 535 MovieClip Frame 1
this.stop();
Symbol 535 MovieClip Frame 2
this.stop();
Instance of Symbol 529 MovieClip "mcFleeCiv" in Symbol 535 MovieClip Frame 2
onClipEvent (load) {
varBottomLimit = 180;
varHostFleeSpeedX = 8;
varHostFleeSpeedY = 5;
}
onClipEvent (enterFrame) {
if (_parent.varHostNo == 1) {
_parent._x = _parent._x - (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 2) {
_parent._x = _parent._x - varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 3) {
_parent._x = _parent._x + varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 4) {
_parent._x = _parent._x + (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
}
if (varBottomLimit < _parent._y) {
_parent._x = 0;
_parent._y = 105;
_level0.arrHostFleeVisible[_parent.varHostNo] = false;
_level0.arrHostFleeNextSpawn[_parent.varHostNo] = 10;
_parent.prevFrame();
}
}
Instance of Symbol 532 MovieClip "mcHostFleeDies" in Symbol 535 MovieClip Frame 3
onClipEvent (unload) {
_parent._x = 0;
_parent._y = 105;
}
Symbol 535 MovieClip Frame 4
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
trace("First Frame Die::");
Symbol 535 MovieClip Frame 5
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
_level0.arrHostFleeVisible[this.varHostNo] = false;
_level0.arrHostFleeNextSpawn[this.varHostNo] = 10;
Symbol 536 MovieClip Frame 1
this.stop();
Symbol 536 MovieClip Frame 2
this.stop();
Instance of Symbol 529 MovieClip "mcFleeCiv" in Symbol 536 MovieClip Frame 2
onClipEvent (load) {
varBottomLimit = 180;
varHostFleeSpeedX = 8;
varHostFleeSpeedY = 5;
}
onClipEvent (enterFrame) {
if (_parent.varHostNo == 1) {
_parent._x = _parent._x - (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 2) {
_parent._x = _parent._x - varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 3) {
_parent._x = _parent._x + varHostFleeSpeedX;
_parent._y = _parent._y + varHostFleeSpeedY;
} else if (_parent.varHostNo == 4) {
_parent._x = _parent._x + (varHostFleeSpeedX * 1.3);
_parent._y = _parent._y + varHostFleeSpeedY;
}
if (varBottomLimit < _parent._y) {
_parent._x = 0;
_parent._y = 105;
_level0.arrHostFleeVisible[_parent.varHostNo] = false;
_level0.arrHostFleeNextSpawn[_parent.varHostNo] = 10;
_parent.prevFrame();
}
}
Instance of Symbol 532 MovieClip "mcHostFleeDies" in Symbol 536 MovieClip Frame 3
onClipEvent (unload) {
_parent._x = 0;
_parent._y = 105;
}
Symbol 536 MovieClip Frame 4
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
trace("First Frame Die::");
Symbol 536 MovieClip Frame 5
trace((("Host Flee die: " + _level0.arrHostFleeVisible[this.varHostNo]) + " ") + this.varHostNo);
_level0.arrHostFleeVisible[this.varHostNo] = false;
_level0.arrHostFleeNextSpawn[this.varHostNo] = 10;
Instance of Symbol 416 MovieClip "mcBadGuy_gun1" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Instance of Symbol 514 MovieClip "mcHostStand1" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 4;
}
Instance of Symbol 418 MovieClip "mcBadGuy_gun2" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 2;
}
Instance of Symbol 515 MovieClip "mcHostStand2" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 5;
}
Instance of Symbol 417 MovieClip "mcBadGuy_gun3" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 3;
}
Instance of Symbol 516 MovieClip "mcHostStand3" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 6;
}
Instance of Symbol 520 MovieClip "mcBGWalk" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Instance of Symbol 522 MovieClip "mcHostWalk" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 0;
}
Instance of Symbol 533 MovieClip "mcHostFlee4" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varHostNo = 4;
}
Instance of Symbol 534 MovieClip "mcHostFlee1" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varHostNo = 1;
}
Instance of Symbol 535 MovieClip "mcHostFlee2" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varHostNo = 2;
}
Instance of Symbol 536 MovieClip "mcHostFlee3" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varHostNo = 3;
}
Instance of Symbol 459 MovieClip "mcRocketFull" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
varRocketNo = _level0.varNoOfRockets;
this._xscale = 5;
this._yscale = 5;
}
onClipEvent (enterFrame) {
if (_level0.rocket.status) {
this._x = this._x + _level0.rocket.stepX;
this._y = this._y + _level0.rocket.stepY;
this._xscale = this._xscale + ((100 * _level0.rocket.speed) / _level0.rocket.noOfFramesToTravel);
this._yscale = this._xscale;
if ((100 < this._xscale) && (_level0.rocket.status)) {
_level0.bigpic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
if (_level0.rocket.status) {
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_level0.varRocketHitHealtLoss);
}
_level0.rocket.status = false;
}
}
}
Instance of Symbol 434 MovieClip "mcBloodSpill" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 440 MovieClip "mcBloodHeadShot" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 445 MovieClip "mcBloodAnyShot" in Symbol 537 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 539 MovieClip Frame 1
this.stop();
Symbol 551 MovieClip Frame 1
this.stop();
Symbol 551 MovieClip Frame 2
this.stop();
Symbol 573 MovieClip Frame 1
_parent.varBGTypeNo = _level0.varNextBGSelect;
if (1 >= _level0.varNextBGSelect) {
gotoAndPlay (2);
} else if (_level0.varNextBGSelect == 2) {
gotoAndPlay (3);
}
Symbol 573 MovieClip Frame 2
this.stop();
Symbol 573 MovieClip Frame 3
_level0.rocket.id = _parent.varBGNo;
this.stop();
Symbol 574 MovieClip Frame 1
this.stop();
Symbol 574 MovieClip Frame 2
this.stop();
Instance of Symbol 573 MovieClip "mcBGvanTop" in Symbol 574 MovieClip Frame 2
onClipEvent (unload) {
_level0.removeStandingHostage(_parent.varBGNo);
}
Symbol 574 MovieClip Frame 5
_level0.arrBGvisible[this.varBGNo] = false;
_level0.txtVis1 = false;
_level0.arrBGNextSpawn[this.varGBNo] = 10;
Instance of Symbol 138 MovieClip "mcSiren2" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
varSirenNo = 2;
}
Instance of Symbol 138 MovieClip "mcSiren2" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
varSirenNo = 2;
}
Symbol 580 MovieClip Frame 1
this.stop();
Symbol 580 MovieClip Frame 2
this.stop();
Instance of Symbol 579 MovieClip in Symbol 580 MovieClip Frame 2
onClipEvent (load) {
_level0.varBombVisible = true;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + _level0.varBombSpeedX;
if (_level0.bigPic.mcPoliceCar._x < _parent._x) {
trace("Car damage: " + _level0.varPoliceCarDamage);
_level0.varPoliceCarDamagePosititionX = _level0.bigPic.mcPoliceCar._x;
_level0.varPoliceCarSpeedX = -1 * _level0.varFastSpeed;
_level0.varPoliceCarDamage = _level0.varPoliceCarDamage + _level0.varPoliceCarDamageIncrement;
_level0.bigpic.mcPoliceCar.mcSmoke._xscale = _level0.varPoliceCarDamage;
_level0.bigpic.mcPoliceCar.mcSmoke._yscale = _level0.varPoliceCarDamage;
_level0.mcSniperView.bigPic.mcPoliceCar.mcSmoke._xscale = _level0.varPoliceCarDamage;
_level0.mcSniperView.bigPic.mcPoliceCar.mcSmoke._yscale = _level0.varPoliceCarDamage;
_parent.play();
}
}
Symbol 580 MovieClip Frame 7
_level0.txtVis1 = false;
_level0.removeBomb();
Symbol 581 MovieClip Frame 1
this.varBGTypeNo = varBGNo;
this.stop();
Instance of Symbol 422 MovieClip in Symbol 581 MovieClip Frame 1
/* no clip actions */
Symbol 581 MovieClip Frame 2
this.stop();
Symbol 582 MovieClip Frame 1
this.varBGTypeNo = varBGNo;
this.stop();
Instance of Symbol 422 MovieClip in Symbol 582 MovieClip Frame 1
/* no clip actions */
Symbol 582 MovieClip Frame 2
this.stop();
Instance of Symbol 571 MovieClip in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.5;
}
Instance of Symbol 574 MovieClip "mcBadGuy_gun2" in Symbol 586 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 2;
}
Instance of Symbol 162 MovieClip "mcBadGuy_gun1" in Symbol 586 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Instance of Symbol 578 MovieClip "mcPoliceCar" in Symbol 586 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - _level0.varPoliceCarSpeedX;
_level0.mcSniperView.bigPic.mcPoliceCar._x = _level0.bigpic.mcPoliceCar._x;
if ((_level0.varPoliceCarDamagePosititionX + _level0.varPoliceCarFallBackDistance) < this._x) {
_level0.varPoliceCarSpeedX = _level0.varSlowSpeed / 2;
}
}
Instance of Symbol 581 MovieClip "mcBadGuy_gun4" in Symbol 586 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 4;
}
onClipEvent (enterFrame) {
this._x = _parent.mcTruck._x + 30;
}
Instance of Symbol 582 MovieClip "mcBadGuy_gun3" in Symbol 586 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 3;
}
onClipEvent (enterFrame) {
this._x = _parent.mcTruck._x + 10;
}
Instance of Symbol 585 MovieClip "mcTruck" in Symbol 586 MovieClip Frame 1
onClipEvent (load) {
varLimitLeft = -10;
varLimitRight = 50;
}
onClipEvent (enterFrame) {
this._x = this._x - _level0.varTruckSpeedX;
varTruckBGNo1Status = "stand";
if (((this._x < varLimitRight) && (_level0.varTruckSpeedX != _level0.varSlowSpeed)) && (0 < _level0.varTruckNoOfBG)) {
_level0.varTruckSpeedX = _level0.varSlowSpeed;
_level0.bigPic.mcBadGuy_gun3.mcBullet.gotoAndPlay(1);
_level0.mcSniperView.bigPic.mcBadGuy_gun3.mcBullet.gotoAndPlay(1);
_level0.bigPic.mcBadGuy_gun4.mcBullet.gotoAndPlay(1);
_level0.mcSniperView.bigPic.mcBadGuy_gun4.mcBullet.gotoAndPlay(1);
}
if ((this._x < varLimitLeft) && (_level0.varTruckSpeedX != _level0.varFastSpeed)) {
_level0.varTruckSpeedX = 3 * _level0.varFastSpeed;
_level0.bigPic.mcBadGuy_gun3.mcBullet.stop();
_level0.mcSniperView.bigPic.mcBadGuy_gun3.mcBullet.stop();
_level0.bigPic.mcBadGuy_gun4.mcBullet.stop();
_level0.mcSniperView.bigPic.mcBadGuy_gun4.mcBullet.stop();
}
if ((1000 < this._x) || (this._x < -400)) {
_level0.startTruck();
}
}
Instance of Symbol 434 MovieClip "mcBloodSpill" in Symbol 586 MovieClip Frame 1
onClipEvent (load) {
}
Instance of Symbol 459 MovieClip "mcRocketFull" in Symbol 586 MovieClip Frame 1
onClipEvent (load) {
varRocketNo = _level0.varNoOfRockets;
this._xscale = 5;
this._yscale = 5;
}
onClipEvent (enterFrame) {
if (_level0.rocket.status) {
this._x = this._x + _level0.rocket.stepX;
this._y = this._y + _level0.rocket.stepY;
this._xscale = this._xscale + ((100 * _level0.rocket.speed) / _level0.rocket.noOfFramesToTravel);
this._yscale = this._xscale;
if ((100 < this._xscale) && (_level0.rocket.status)) {
_level0.bigpic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
if (_level0.rocket.status) {
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_level0.varRocketHitHealtLoss);
}
_level0.rocket.status = false;
}
}
}
Symbol 608 MovieClip Frame 1
this._rotation = this._rotation + (10 * (Math.random() - 0.5));
Symbol 608 MovieClip Frame 2
if (Math.random() < 0.8) {
gotoAndPlay (1);
}
Symbol 609 MovieClip Frame 1
this._rotation = this._rotation + (10 * (Math.random() - 0.5));
Symbol 609 MovieClip Frame 2
if (Math.random() < 0.8) {
gotoAndPlay (1);
}
Symbol 630 MovieClip Frame 19
this.stop();
Symbol 650 MovieClip Frame 19
this.stop();
Symbol 651 MovieClip Frame 1
if (_level0.varChangeVanDirection) {
_level0.varVanTravelDirection = -1;
_level0.varChangeVanDirection = false;
trace("Right: " + _level0.varVanTravelDirection);
}
Instance of Symbol 162 MovieClip "mcBadGuy_gun1" in Symbol 651 MovieClip Frame 1
onClipEvent (load) {
varBGNo = 1;
}
Symbol 651 MovieClip Frame 19
if (_level0.varChangeVanDirection) {
_level0.varVanTravelDirection = 1;
_level0.varChangeVanDirection = false;
trace("Left: " + _level0.varVanTravelDirection);
}
this.stop();
Instance of Symbol 162 MovieClip "mcBadGuy_gun1" in Symbol 651 MovieClip Frame 19
onClipEvent (load) {
varBGNo = 1;
}
Symbol 652 MovieClip Frame 1
this.stop();
Symbol 652 MovieClip Frame 2
if (_level0.varOptionBloodOn) {
this._x = _level0._xmouse - _level0.bigPic._x;
this._y = _level0._ymouse - _level0.bigPic._y;
} else {
this.prevFrame();
}
Instance of Symbol 432 MovieClip in Symbol 652 MovieClip Frame 2
onClipEvent (load) {
this._rotation = 360 * Math.random();
}
Symbol 652 MovieClip Frame 5
this._x = -400;
this._y = -400;
Symbol 653 MovieClip Frame 1
this.stop();
Symbol 653 MovieClip Frame 2
if (_level0.varOptionBloodOn) {
this._x = _level0._xmouse - _level0.bigPic._x;
this._y = _level0._ymouse - _level0.bigPic._y;
} else {
this.prevFrame();
}
Symbol 653 MovieClip Frame 15
this._x = -400;
this._y = -400;
Symbol 654 MovieClip Frame 1
this.stop();
Instance of Symbol 450 MovieClip in Symbol 654 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 8;
}
Symbol 654 MovieClip Frame 2
if (_level0.rocket.status) {
_level0.rocket.status = false;
_level0.mcPlayerGetsShot.play();
_level0.decreasePlyrHealth(_level0.varRocketHitHealtLoss);
trace(_level0.rocket.status);
}
Symbol 654 MovieClip Frame 9
_level0.varChangeVanDirection = true;
_level0.varChangeVanDirectionStepX = _level0.bigpic.mcVan._x / 9;
_level0.removeRocket();
Instance of Symbol 650 MovieClip "mcVanTires" in Symbol 655 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 651 MovieClip "mcVan" in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_level0.varChangeVanDirection) {
this._y = this._y - (_level0.varVanSpeed / 8);
this._x = (4 * _level0.varVanTravelDirection) * this._y;
_level0.mcSniperView.bigPic.mcVan._y = _level0.bigpic.mcVan._y;
_level0.bigpic.mcVan._xscale = 100 + (3 * this._y);
_level0.bigpic.mcVan._yscale = _level0.bigpic.mcVan._xscale;
_level0.mcSniperView.bigPic.mcVan._xscale = _level0.bigpic.mcVan._xscale;
_level0.mcSniperView.bigPic.mcVan._yscale = _level0.bigpic.mcVan._xscale;
_level0.bigpic.mcVanTires._x = _level0.bigpic.mcVan._x;
_level0.bigpic.mcVanTires._y = _level0.bigpic.mcVan._y;
_level0.mcSniperView.bigPic.mcVanTires._x = _level0.bigpic.mcVan._x;
_level0.mcSniperView.bigPic.mcVanTires._y = _level0.bigpic.mcVan._y;
_level0.bigpic.mcVanTires._xscale = _level0.bigpic.mcVan._xscale;
_level0.bigpic.mcVanTires._yscale = _level0.bigpic.mcVan._xscale;
_level0.mcSniperView.bigPic.mcVanTires._xscale = _level0.bigpic.mcVan._xscale;
_level0.mcSniperView.bigPic.mcVanTires._yscale = _level0.bigpic.mcVan._xscale;
if ((_level0.varVanDamagePosititionY + _level0.varVanFallBackDistance) < this._y) {
_level0.varVanSpeed = _level0.varSlowSpeed;
}
}
}
Instance of Symbol 652 MovieClip "mcBloodSpill" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this._xscale = _level0.bigpic.mcVan._xscale / 2;
this._yscale = this._xscale;
}
Instance of Symbol 653 MovieClip "mcBloodHeadShot" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this._xscale = _level0.bigpic.mcVan._xscale / 2;
this._yscale = this._xscale;
}
Instance of Symbol 654 MovieClip "mcRocketFull" in Symbol 655 MovieClip Frame 1
onClipEvent (load) {
varRocketNo = _level0.varNoOfRockets;
this._xscale = 5;
this._yscale = 5;
}
onClipEvent (enterFrame) {
if (_level0.rocket.status) {
this._x = this._x + _level0.rocket.stepX;
this._y = this._y + _level0.rocket.stepY;
this._xscale = this._xscale + ((100 * _level0.rocket.speed) / _level0.rocket.noOfFramesToTravel);
this._yscale = this._xscale;
if ((100 < this._xscale) && (_level0.rocket.status)) {
_level0.bigpic.mcRocketFull.play();
_level0.mcSniperView.bigpic.mcRocketFull.play();
}
}
}
Symbol 671 MovieClip Frame 1
this._rotation = this._rotation + 27;
Symbol 671 MovieClip Frame 2
gotoAndPlay (1);
Symbol 686 Button
on (release) {
gotoAndPlay (45);
}
Symbol 704 MovieClip Frame 1
if (0.5 < Math.random()) {
gotoAndPlay (5);
}
Symbol 704 MovieClip Frame 4
gotoAndPlay (1);
Symbol 710 MovieClip Frame 1
this._x = this._x + (40 * (Math.random() - 0.5));
this._y = this._y + (10 * (Math.random() - 0.5));
this._rotation = 360 * Math.random();
Symbol 727 Button
on (release) {
gotoAndPlay (49);
}
Symbol 731 Button
on (release) {
gotoAndPlay (50);
}
Symbol 732 Button
on (release) {
gotoAndPlay (54);
}
Symbol 735 MovieClip Frame 1
this._y = this._y + (25 * (Math.random() - 0.5));
Symbol 735 MovieClip Frame 2
if (Math.random() < 0.5) {
gotoAndPlay (1);
}
Symbol 736 Button
on (release) {
gotoAndPlay (55);
}
Symbol 751 Button
on (release) {
gotoAndPlay (59);
}
Symbol 752 Button
on (release) {
gotoAndPlay (60);
}
Symbol 754 Button
on (release) {
gotoAndPlay (64);
}
Symbol 756 MovieClip Frame 1
this._rotation = 360 * Math.random();