STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228073
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/80781977?noj=FRM80781977-29DC" width="1" height="1"></div>

Operation BlackKnife - an overhead space combat simulator.swf

This is the info page for
Flash #90192

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 2 { frame 12 { _parent.gotoAndStop(1); } } movieClip 3 gbiai { frame 1 { stop(); } frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { _x = _parent.ship._x; _y = _parent.ship._y; _rotation = _parent.ship._rotation; if (_parent.fire == 1) { cd -= 1; if (cd <= 0) { cd = 60; } } if (cd == 59) { ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; _parent._parent['eshot' + _root.effectCounter].xt = _parent.targeter._x + _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent.targeter._y + _parent._y; _parent._parent['eshot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].cl = 30; _parent._parent['eshot' + _root.effectCounter].aitarget = _parent.ship.myTarget; cd -= 1; } if (cd == 40) { ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; _parent._parent['eshot' + _root.effectCounter].xt = _parent.targeter._x + _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent.targeter._y + _parent._y; _parent._parent['eshot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].cl = 30; _parent._parent['eshot' + _root.effectCounter].aitarget = _parent.ship.myTarget; cd -= 1; } if (cd == 20) { ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; _parent._parent['eshot' + _root.effectCounter].xt = _parent.targeter._x + _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent.targeter._y + _parent._y; _parent._parent['eshot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].cl = 30; _parent._parent['eshot' + _root.effectCounter].aitarget = _parent.ship.myTarget; cd -= 1; nextFrame(); } } else { _visible = false; } } }; onLoad = function () { cd = 3; }; } } movieClip 5 gliiai { frame 1 { stop(); onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { aitarget = _parent.ship.myTarget; if (_parent.fire == 1) { cd -= 1; if (cd <= 0) { cd = 8; if (_parent._parent.aitargets == 1) { xDis = _parent._parent._parent.player._x - _x - _parent._x - _parent._parent._x; yDis = _parent._parent._parent.player._y - _y - _parent._y - _parent._parent._y; } else { xDis = aitarget._x + aitarget.ship._x - _parent._x - _x; yDis = aitarget._y + aitarget.ship._y - _parent._y - _y; } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; if (_parent._parent.aitargets == 1) { _parent._parent['eshot' + _root.effectCounter].xt = _parent._parent._parent.player._x - _parent._parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent._parent._parent.player._y - _parent._parent._y; } else { _parent._parent['eshot' + _root.effectCounter].xt = aitarget._x + aitarget.ship._x - _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = aitarget._y + aitarget.ship._y - _parent._y; } _parent._parent['eshot' + _root.effectCounter].cl = 4; _parent._parent['eshot' + _root.effectCounter].aitarget = aitarget; gotoAndStop(2); } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { _visible = false; } } }; onLoad = function () { cd = 3; }; } } movieClip 6 gsmiai { frame 1 { stop(); onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { cd -= 1; _x = _parent.ship._x; _y = _parent.ship._y; _rotation = _parent.ship._rotation; if (_parent.fire == 1) { if (cd <= 0) { cd = 60; } } if (cd == 59) { ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; _parent._parent['eshot' + _root.effectCounter].xt = _parent.ship.myTarget._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent.ship.myTarget._y; _parent._parent['eshot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].cl = 36; _parent._parent['eshot' + _root.effectCounter].aitarget = _parent.ship.myTarget; } } else { _visible = false; } } }; onLoad = function () { cd = 3; }; } } movieClip 7 gmsiai { frame 1 { stop(); onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { cd -= 1; _x = _parent.ship._x; _y = _parent.ship._y; _rotation = _parent.ship._rotation; if (_parent.fire == 1) { if (cd <= 0) { cd = 60; } } if (cd == 59) { ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; _parent._parent['eshot' + _root.effectCounter].xt = _parent.targeter._x + _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent.targeter._y + _parent._y; _parent._parent['eshot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].cl = 36; _parent._parent['eshot' + _root.effectCounter].aitarget = _parent.ship.myTarget; } } else { _visible = false; } } }; onLoad = function () { cd = 3; }; } } movieClip 9 gpiai { frame 1 { stop(); } frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { aitarget = _parent.ship.myTarget; if (_parent.fire == 1) { cd -= 1; if (cd <= 0) { cd = 30; if (_parent._parent.aitargets == 1) { xDis = _parent._parent._parent.player._x - _x - _parent._x - _parent._parent._x; yDis = _parent._parent._parent.player._y - _y - _parent._y - _parent._parent._y; } else { xDis = aitarget._x + aitarget.ship._x - _parent._x - _x; yDis = aitarget._y + aitarget.ship._y - _parent._y - _y; } if (aitarget.hitTest(_parent)) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; if (_parent._parent.aitargets == 1) { _parent._parent['eshot' + _root.effectCounter].xt = _parent._parent._parent.player._x - _parent._parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent._parent._parent.player._y - _parent._parent._y; } else { _parent._parent['eshot' + _root.effectCounter].xt = aitarget._x + aitarget.ship._x - _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = aitarget._y + aitarget.ship._y - _parent._y; } _parent._parent['eshot' + _root.effectCounter].cl = 22; _parent._parent['eshot' + _root.effectCounter].aitarget = aitarget; gotoAndStop(2); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { _visible = false; } } }; onLoad = function () { cd = 3; }; } } movieClip 10 gpiiai { frame 1 { stop(); } frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { aitarget = _parent.ship.myTarget; if (_parent.fire == 1) { cd -= 1; if (cd <= 0) { cd = 30; if (_parent._parent.aitargets == 1) { xDis = _parent._parent._parent.player._x - _x - _parent._x - _parent._parent._x; yDis = _parent._parent._parent.player._y - _y - _parent._y - _parent._parent._y; } else { xDis = aitarget._x + aitarget.ship._x - _parent._x - _x; yDis = aitarget._y + aitarget.ship._y - _parent._y - _y; } if (aitarget.hitTest(_parent)) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; if (_parent._parent.aitargets == 1) { _parent._parent['eshot' + _root.effectCounter].xt = _parent._parent._parent.player._x - _parent._parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent._parent._parent.player._y - _parent._parent._y; } else { _parent._parent['eshot' + _root.effectCounter].xt = aitarget._x + aitarget.ship._x - _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = aitarget._y + aitarget.ship._y - _parent._y; } _parent._parent['eshot' + _root.effectCounter].cl = 24; _parent._parent['eshot' + _root.effectCounter].aitarget = aitarget; gotoAndStop(2); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { _visible = false; } } }; onLoad = function () { cd = 3; }; } } movieClip 19 { frame 97 { stop(); } } movieClip 21 { frame 1 { stop(); } } movieClip 22 { } movieClip 23 mostest { frame 1 { real = 1; } instance ship of movieClip 22 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent._parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent._parent.player.yt * 100) / 100; _rotation = _rotation + rt; _x = _x + xt; _y = _y + yt; } } onClipEvent (load) { _x = random(600) - 300; _y = random(400) - 200; xt = (random(100) - 50) / 100; rt = (random(100) - 50) / 80; yt = (random(100) - 50) / 100; } } } movieClip 24 gmiai { frame 1 { stop(); onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { cd -= 1; _x = _parent.ship._x; _y = _parent.ship._y; _rotation = _parent.ship._rotation; if (_parent.fire == 1) { if (cd <= 0) { cd = 60; } } if (cd == 59) { ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; _parent._parent['eshot' + _root.effectCounter].xt = _parent.ship.myTarget._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent.ship.myTarget._y; _parent._parent['eshot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['eshot' + _root.effectCounter].cl = 14; _parent._parent['eshot' + _root.effectCounter].aitarget = _parent.ship.myTarget; } } else { _visible = false; } } }; onLoad = function () { cd = 3; }; } } movieClip 25 { } movieClip 26 gliai { frame 1 { stop(); onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.death == 0) { aitarget = _parent.ship.myTarget; if (_parent.fire == 1) { acd -= 1; if (acd < -60) { acd = 60; } if (acd > 30) { cd -= 1; if (cd <= 0) { cd = 8; if (_parent._parent.aitargets == 1) { xDis = _parent._parent._parent.player._x - _x - _parent._x - _parent._parent._x; yDis = _parent._parent._parent.player._y - _y - _parent._y - _parent._parent._y; } else { xDis = aitarget._x + aitarget.ship._x - _parent._x - _x; yDis = aitarget._y + aitarget.ship._y - _parent._y - _y; } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); ++_root.effectCounter; _parent._parent.eshot1.duplicateMovieClip('eshot' + _root.effectCounter, _root.effectCounter); _parent._parent['eshot' + _root.effectCounter]._visible = true; _parent._parent['eshot' + _root.effectCounter]._x = _parent._x + Math.cos(this._rotation * 6.283185307179586 / 360) + this._x; _parent._parent['eshot' + _root.effectCounter]._y = _parent._y + Math.sin(this._rotation * 6.283185307179586 / 360) + this._y; if (_parent._parent.aitargets == 1) { _parent._parent['eshot' + _root.effectCounter].xt = _parent._parent._parent.player._x - _parent._parent._x; _parent._parent['eshot' + _root.effectCounter].yt = _parent._parent._parent.player._y - _parent._parent._y; } else { _parent._parent['eshot' + _root.effectCounter].xt = aitarget._x + aitarget.ship._x - _parent._x; _parent._parent['eshot' + _root.effectCounter].yt = aitarget._y + aitarget.ship._y - _parent._y; } _parent._parent['eshot' + _root.effectCounter].cl = 2; _parent._parent['eshot' + _root.effectCounter].aitarget = aitarget; gotoAndStop(2); } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { _visible = false; } } } }; } instance of movieClip 25 { onClipEvent (load) { _parent.acd = 60; _parent.cd = 8; } } } movieClip 32 { } movieClip 33 adBox { frame 1 { stop(); existance = 1; } } frame 1 { stop(); } frame 1 { function Home() { getURL('http://lonewolfproductions.us/', ''); } function CopyRight() { getURL('mailto:ryder@lonewolfproductions.us/', _blank); } function Contact() { getURL('http://armorgames.com/#!/?ref=blackknife', _blank); } function Flash() { getURL('http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash', '_blank'); } percent = 0; act = 1; adsloaded = 0; var CPMStarContentSpotID = '2706Q60C5CC00'; System.security.allowDomain('server.cpmstar.com'); System.security.allowDomain('lonewolfproductions.us'); urlStart = _url.indexOf('://') + 3; urlEnd = _url.indexOf('/', urlStart); domain = _url.substring(urlStart, urlEnd); LastDot = domain.lastIndexOf('.') - 1; pfixEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(pfixEnd, domain.length); trace(domain); if (domain == 'armorgames.com') { ver = 'No ads'; } else { trace('ads active'); ver = 'Ads active'; } goose = 0; loading.onEnterFrame = function () { if (sentvar == 1) { if (percent > 15) { if (goose == 0) { goose = 1; sentvar = 3; trace('loaded ads'); this.adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); } } } loading.dpercent = '%' + percent; if (percent == 100) { if (act == 1) { act = 0; loading.gotoAndStop(31); } } else { loading.loadBar.percent = percent; percent = Math.round((getBytesLoaded() / getBytesTotal()) * 100); loading.loadBar.bar._x = (getBytesLoaded() / getBytesTotal()) * 100; } }; stop(); var myContextMenu = new ContextMenu(); myContextMenu.hideBuiltInItems(); var Home = new ContextMenuItem('LoneWolf Productions', Home); var Contact = new ContextMenuItem('ArmorGames', Contact); var Copyright = new ContextMenuItem('Copyright 2010 LoneWolf Productions', CopyRight); var Flash = new ContextMenuItem('Get Flash 10', Flash); myContextMenu.customItems.push(Home); myContextMenu.customItems.push(Forum); myContextMenu.customItems.push(Contact); myContextMenu.customItems.push(Flash); myContextMenu.customItems.push(Copyright); this.menu = myContextMenu; } movieClip 35 { } movieClip 36 { } // unknown tag 88 length 27 button 45 { on (release) { getURL('http://armorgames.com/#!/?ref=blackknife', '_blank'); } } button 52 { on (release) { play(); } } movieClip 55 { instance adBox of movieClip 33 adBox { onClipEvent (load) { _root.sentvar = 1; } } frame 30 { stop(); } instance adBox of movieClip 33 adBox { onClipEvent (load) { _root.sentvar = 1; } } instance adBox of movieClip 33 adBox { onClipEvent (load) { _root.sentvar = 1; } } frame 60 { _parent.nextFrame(); } } frame 2 { vrelease = 'Release V 103'; } frame 2 { nextFrame(); } frame 2 { this.createEmptyMovieClip('thruster_mc', 1131); var thruster_snd = new Sound(thruster_mc); thruster_snd.attachSound('thruster_mc'); thruster_snd.setVolume(0); thruster_snd.start(0, 100000); this.createEmptyMovieClip('type_mc', 10); var type_snd = new Sound(type_mc); type_snd.attachSound('text'); type_snd.start(0, 1000000); type_snd.setVolume(0); soundreset = 0; } // unknown tag 88 length 52 movieClip 60 blip { frame 1 { _xscale = random(100); _yscale = _xscale; onEnterFrame = function () { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _xscale = _xscale - 2; _yscale = _yscale - 2; if (_xscale < 5) { this.removeMovieClip(); } } }; } } movieClip 62 { } movieClip 63 jumparea.darkspot { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { _xscale = _xscale * 0.99; _yscale = _xscale; if (_xscale < 10) { this.removeMovieClip(); } _x = _x - speed; _y = _y - (_parent.player.yt * 100 / 100 - yspeed); } }; _x = -random(15); _y = random(30) - 15; speed = random(40) + 1; yspeed = random(4) - 2; _xscale = random(50) + 50; _yscale = _xscale; } } movieClip 68 normalmatter { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { _x = _x - (_parent.player.xt * 100 / 100 / (_xscale / 10)) * (10 * ms); _y = _y - _parent.player.yt * 100 / 100 / (_xscale / 50); } if (_x < -400) { _x = random(100) + 350; _y = random(400) - 200; _xscale = random(100); _yscale = _xscale / ms; ms = random(5) + 1; gotoAndStop(random(4) + 1); _alpha = _xscale / 2; } _alpha = _xscale / 2; }; _xscale = random(100); _yscale = _xscale; ms = random(5) + 1; gotoAndStop(random(4) + 1); _alpha = _xscale / 2; } } movieClip 70 darkmatter { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { _x = _x - (_parent.player.xt * 100 / 100 / (_xscale / 10)) * (2 * ms); _y = _y - _parent.player.yt * 100 / 100 / (_xscale / 50); } if (_y > 500) { _y = -490; } if (_y < -500) { _y = 490; } if (_x < -400) { alert = 0; _x = random(100) + 350; _y = random(400) - 200; _xscale = random(100) + 100; _yscale = random(50) + 100; ms = random(5) + 1; dead = 0; gotoAndStop(1); _alpha = _xscale; } if (dead == 0) { if (this.hitTest(_parent.player.ship.hit)) { music_snd.setVolume(0); _parent.back.gotoAndPlay(2); this.play(); _parent.ds += Math.round(_xscale / 10); _parent.player.yt += this._y * 2; _parent.targeter._y += this._y * 10; _root.pchp -= Math.round(_xscale / (20 / _root.difficulty)); dead = 1; } } _alpha = _xscale; }; _xscale = random(100) + 50; alert = 0; _yscale = random(50) + 100; ms = random(5) + 1; dead = 0; _alpha = _xscale; stop(); } frame 21 { stop(); } } movieClip 74 acquiredtext { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { if (remove == 0) { if (_alpha < 100) { _alpha = _alpha + 5; } cd -= 1; if (cd < 0) { remove = 1; } } else { _alpha = _alpha - 10; if (_alpha < 0) { this.removeMovieClip(); } } } }; cd = 90; _alpha = 0; remove = 0; } } movieClip 78 { } movieClip 79 dynamicbarbar { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { if (_name == 'iltrhp') { if (this._alpha < 50) { this._alpha += 2; } if (this.bar._x <= 0) { if (_root.game.uni.fail == 0) { _root.game.uni.fail = 1; _root.failure = 1; _root.reason4failure = 'The Disaster Ship was destroyed'; _root.gpause = 1; } } this._x = _root.game.uni.iltr.ship._x - 80; this._y = _root.game.uni.iltr.ship._y - 100; this.bar._x = (_root.game.uni.iltr.health / 3000) * 100; } if (_name == 'itlhp') { if (this._alpha < 50) { this._alpha += 2; } this._x = _root.game.uni.itl.ship._x - 80; this._y = _root.game.uni.itl.ship._y - 70; this.bar._x = (_root.game.uni.itl.health / 50) * 100; } } }; } } movieClip 81 { } movieClip 85 { frame 1 { stop(); } instance bar of movieClip 79 dynamicbarbar { onClipEvent (load) { bar._x = -100; } onClipEvent (enterFrame) { bar._x += _parent.speed; } } frame 2 { _root.game.uni.trig += 1; } frame 41 { _parent._parent.crate1 += 1; } frame 116 { stop(); } } movieClip 86 weaponsdepot { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { ship.bar.bar._x = decodes; _x = _x - _parent.player.xt * 100 / 100; _y = _y - _parent.player.yt * 100 / 100; xdis = _x - _parent.player._x; if (decodes > 100) { if (decoded == 0) { ship.play(); ++decoded; } } ydis = _y - _parent.player._y; } }; decoded = 0; decodes = 0; _parent.attachMovie('keys', 'c4k1', 2177); _parent.c4k1._x = 20; _parent.c4k1._y = 60; _parent.c4k1.inst = 'Hold E'; _parent.c4k1.letter = 'E'; _parent.c4k1.remove = 0; _parent.c4k1.kid = this; } } movieClip 89 { } movieClip 92 crate { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { this._rotation += rs; _x = _x - _parent.player.xt * 100 / 100; _y = _y - _parent.player.yt * 100 / 100; bar.bar._x = prog; if (prog < 100) { if (this.hitTest(_parent.player.hit)) { bar._visible = true; prog += 1; } else { bar._visible = false; } } else { if (unlocked == 0) { if (holding == 'money') { ++_root.otherCounter; _parent._parent.attachMovie('acquiredtext', 'acquiredtext' + _root.otherCounter, _root.otherCounter); _parent._parent['acquiredtext' + _root.otherCounter]._x = random(400) + 125; _parent._parent['acquiredtext' + _root.otherCounter]._y = random(200) + 100; _parent._parent['acquiredtext' + _root.otherCounter].cd = 90; _parent._parent['acquiredtext' + _root.otherCounter].dis = ['+' + amount + ' Credits!']; _parent._parent['acquiredtext' + _root.otherCounter].gotoAndStop(2); _root.pmoney += amount; } if (holding == 'weapons') { ++_root.otherCounter; _parent._parent.attachMovie('acquiredtext', 'acquiredtext' + _root.otherCounter, _root.otherCounter); _parent._parent['acquiredtext' + _root.otherCounter]._x = random(400) + 125; _parent._parent['acquiredtext' + _root.otherCounter]._y = random(200) + 100; _parent._parent['acquiredtext' + _root.otherCounter].cd = 90; if (weapon == 'missilei') { _parent._parent['acquiredtext' + _root.otherCounter].dis = 'Guided Missile I'; } if (weapon == 'streakerii') { _parent._parent['acquiredtext' + _root.otherCounter].dis = 'Streaker Missile II'; } if (weapon == 'pulsari') { _parent._parent['acquiredtext' + _root.otherCounter].dis = 'Pulse Lance I'; } if (weapon == 'spoon') { _parent._parent['acquiredtext' + _root.otherCounter].dis = 'a rusty spork'; } if (weapon == 'mod1') { _parent._parent['acquiredtext' + _root.otherCounter].dis = '10% Weapon Damage Module'; } _parent._parent['acquiredtext' + _root.otherCounter].gotoAndStop(1); _root[weapon] = 1; } unlocked = 1; gotoAndStop(3); } } } }; prog = 0; unlocked = 0; rs = (1 / (random(150) + 50)) * random(4) * -2; stop(); if (holding == 'money') { gotoAndStop(1); } if (holding == 'weapons') { gotoAndStop(2); } } instance bar of movieClip 79 dynamicbarbar { onClipEvent (load) { bar._x = -100; } onClipEvent (enterFrame) { bar._x += _parent.speed; } } } movieClip 98 debri { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _x = _x + xt; _y = _y + yt; _rotation = _rotation + (xt + yt); cd -= 1; if (cd < 0) { this.removeMovieClip(); } } }; cd = random(210) + 60; _rotation = random(360); gotoAndStop(random(5) + 1); } } movieClip 109 keys { frame 1 { stop(); onEnterFrame = function () { if (_root.gpause == 0) { if (_name == 'c7k1' or _name == 'c7k2' or _name == 'c7k3' or _name == 'c7k4' or _name == 'c7k5' or _name == 'c7k6' or _name == 'c7k7') { if (this.remove == 1) { _root.game.uni.player.datalight.gotoAndStop(1); this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } else { if (_root.game.uni.player.hitTest(kid.hit)) { this._visible = true; if (Key.isDown(_root.interactK)) { _root.game.uni.player.datalight.gotoAndStop('blue'); this.gotoAndStop(2); kid.prog += 0.5; } else { this.gotoAndStop(1); _root.game.uni.player.datalight.gotoAndStop(1); } kid.bar._visible = true; } else { _root.game.uni.player.datalight.gotoAndStop(1); this.gotoAndStop(1); this._visible = false; kid.bar._visible = false; } } } if (_name == 'c3k2') { if (this.remove == 1) { this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } else { if (_root.game.uni.player.hitTest(_root.game.uni.antaris.dockhit)) { this._alpha = 100; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.guides.gotoAndStop(2); _root.game.buyscreen.gotoAndStop(8); this.gotoAndStop(2); _root.game.uni.trig += 1; this.remove = 1; } } else { this._alpha = 40; } } } if (_name == 'c4k1') { if (_root.game.uni.trig == 9) { remove = 1; } if (this.remove == 1) { _root.game.uni.player.datalight.gotoAndStop(1); this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } else { if (_root.game.uni.player.hitTest(kid.hit)) { this._visible = true; if (Key.isDown(_root.interactK)) { _root.game.uni.player.datalight.gotoAndStop('red'); this.gotoAndStop(2); kid.decodes += 1; } else { this.gotoAndStop(1); _root.game.uni.player.datalight.gotoAndStop(1); } } else { _root.game.uni.player.datalight.gotoAndStop(1); this.gotoAndStop(1); this._visible = false; } } } if (_name == 't1k1') { if (this.remove == 1) { this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } else { if (Key.isDown(_root.interactK)) { _parent._parent.returntrig = 13; _parent._parent.gotoAndStop('c3'); _root.wflash.play(); } } } if (_name == 'c3k1') { if (this.remove == 1) { this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } else { if (Key.isDown(_root.interactK)) { _root.game.uni.player.datalight.gotoAndStop('blue'); _root.sounds.gotoAndStop('radionoise'); this.gotoAndStop(2); _root.game.uni.mcd = 0; _root.game.uni.trig += 1; this.remove = 1; } } } if (_name == 'c2k2') { if (this.remove == 1) { this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } } if (_name == 'c2k1') { if (this.remove == 1) { this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } else { if (_root.game.uni.player.hit.hitTest(_root.game.uni.itl.ship.hit)) { this._alpha = 100; if (Key.isDown(_root.interactK)) { _root.game.buyscreen.gotoAndStop(9); _root.gpause = 1; _root.sounds.gotoAndStop('button1'); this.gotoAndStop(2); this.remove = 1; _root.c2guiloadouthit = 1; } } else { this._alpha = 50; } } } if (_name == 'c1k1') { if (_root.failure == 1) { this.remove = 1; } if (Key.isDown(70)) { _root.sounds.gotoAndStop('button1'); this.gotoAndStop(2); this.remove = 1; } if (this.remove == 1) { this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } } if (_name == 'c1k2') { if (_root.failure == 1) { this.remove = 1; } if (_root.game.uni.anim.trig == 12) { remove = 1; } if (_root.game.uni.anim.dis > 300) { } else { if (Key.isDown(_root.interactK)) { if (this.key1 == 0) { _root.sounds.gotoAndStop('button1'); this.gotoAndStop(2); this.key1 += 5; _root.game.uni.anim.hack.bar.bar._x += 1 * _root.difficulty; } } else { this.gotoAndStop(1); this.key1 = 0; } } if (this.remove == 1) { this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } } } }; } } movieClip 112 { } movieClip 117 { frame 1 { onEnterFrame = function () { if (this.hitTest(_root.game.plights.a1)) { _visible = false; } else { _visible = true; } if (this.hitTest(_root.game.plights.b1)) { _alpha = 50; } else { _alpha = 100; } }; } } movieClip 122 { } movieClip 124 { frame 1 { gotoAndPlay(random(6) + 2); } frame 6 { gotoAndPlay(2); } } movieClip 127 c1.ts { frame 1 { real = 1; death = 0; stop(); } instance of movieClip 21 { onClipEvent (enterFrame) { if (_root.game.uni.anim.trig == 8) { if (this.hitTest(_root.game.plights.a1)) { _root.game.uni.anim.cd = -190; _root.game.uni.anim.trig += 1; } } } } frame 2 { _parent._parent.changetrack = 2; } frame 15 { stop(); } } movieClip 130 { } movieClip 144 { } movieClip 146 { } movieClip 147 { instance of movieClip 144 { onClipEvent (enterFrame) { _alpha = random(10) + 20; } } instance of movieClip 146 { onClipEvent (enterFrame) { _alpha = random(70); _xscale = random(100); _yscale = random(100); _x = random(40) - 20; _y = random(52); } } instance of movieClip 146 { onClipEvent (enterFrame) { _alpha = random(70); _xscale = random(100); _yscale = random(100); _x = random(40) - 20; _y = random(52); } } } movieClip 148 { frame 23 { gotoAndPlay('a' + (random(4) + 1)); } frame 65 { gotoAndPlay(22); } frame 78 { gotoAndPlay(22); } frame 93 { gotoAndPlay(22); } } movieClip 153 { frame 23 { gotoAndPlay('a' + (random(4) + 1)); } frame 65 { gotoAndPlay(22); } frame 78 { gotoAndPlay(22); } frame 93 { gotoAndPlay(22); } } movieClip 154 { frame 1 { stop(); } } movieClip 155 { } button 157 { on (release) { _root.gpause = 0; this.cd = 0; _parent.trig += 1; } } button 159 { on (release) { _root.sounds.radio.radiooff.play(); _root.sounds.radio.stop(); remove = 1; _root.gpause = 0; this.cd = 0; _parent.trig += 1; } } movieClip 163 textline { frame 1 { remove = 0; var str = nstr; count = 0; if (dprompt == 1) { _root.gpause = 1; } stop(); _root.type_snd.setVolume(100); if (radio == 1) { if (loud == 1) { _root.sounds.radio.gotoAndPlay(random(300) + 300); } else { _root.sounds.radio.gotoAndPlay(random(300)); } _root.sounds.radio.radioon.play(); gotoAndStop(2); } onEnterFrame = function () { if (str.length > count) { theText.text = str.substring(0, count); count += speed; } if (str.length == count) { if (remove == 0) { if (radio == 1) { portrait.portrait.stop(); _root.sounds.radio.radiooff.play(); _root.sounds.radio.stop(); } _root.type_snd.setVolume(0); remove = 1; } } else { if (dprompt == 1) { skipbtn._visible = true; } else { skipbtn._visible = false; } } if (remove == 1) { skipbtn._visible = false; if (dprompt == 1) { contbtn._visible = true; } else { contbtn._visible = false; } cd -= 1; if (cd < 0) { if (radio == 1) { this._yscale *= 0.8; this._alpha = _yscale; this._xscale *= 1.05; } _alpha = _alpha - 1; } else {} if (_alpha < 0) { this.removeMovieClip(); } } else { _xscale = 100 * (100 / _parent._xscale); _yscale = _xscale; } }; } frame 2 { portrait.gotoAndStop(p); contbtn._visible = false; stop(); } instance portrait of movieClip 154 { onClipEvent (load) { gotoAndStop(_parent.po); } } } movieClip 165 effect.partical { } movieClip 178 indi { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { if (dobjremove == 1) { if (obj._currentframe == 2) { remove = 1; } } _yscale = 100; tx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ty -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (remove == 1) { this._alpha -= 4; if (this._alpha < 0) { this.removeMovieClip(); } } if (tracking == 'object') { dis = Math.abs(obj._x - _parent._x + 255) + Math.abs(obj._y - _parent._y + 255); if (obj._parent.real == 0) { this.removeMovieClip(); } if (tx >= -325 / (_parent._xscale / 100) && tx <= 325 / (_parent._xscale / 100) && ty >= -200 / (_parent._xscale / 100) && ty <= 200 / (_parent._xscale / 100)) { _xscale = 100 / (_parent._xscale / 100); _yscale = _xscale; tx = obj._x; ty = obj._y; _x = tx; _y = ty; gotoAndStop(2 + mod); } else { _xscale = 25000 / dis + 10; tx = obj._x; ty = obj._y; xDis = tx - _x; yDis = ty - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); _x = 325 - _parent._x; _y = 200 - _parent._y; gotoAndStop(1 + mod); } } else { if (_parent._x + tx >= 0 && _parent._x + tx <= 650 && _parent._y + ty >= 0 && _parent._y + ty <= 400) { _x = tx; _y = ty; gotoAndStop(2 + mod); } else { xDis = tx - _x; yDis = ty - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); _x = 323 - _parent._x; _y = 207 - _parent._y; gotoAndStop(1 + mod); } } } }; remove = 0; } } movieClip 179 { } movieClip 181 { } movieClip 189 { frame 22 { stop(); guide += 0.5; } } movieClip 192 { } button 194 { on (press) { task = 2; } } button 195 { on (press) { task = 3; gotoAndStop(5); } } button 196 { on (press) { task = 1; gotoAndStop(3); } } button 197 { on (press) { startDrag('', true); } on (release, releaseOutside) { _parent.retarget = 0; stopDrag(); } } movieClip 198 { frame 1 { onEnterFrame = function () { if (_parent._parent.pcom == 1) { if (_root.pcom == 1) { if (task == 0) { _visible = true; gotoAndStop(2); _xscale = 100; _yscale = _xscale; } if (task == 1) { gotoAndStop(3); for (i in _root.allyList) { if (this.hitTest(_root.allyList[i].ship.hit)) { _parent.cd = 0; _parent.myGuardTarget = _root.allyList[i]; _parent.guard = 1; } } } if (task == 2) { gotoAndStop(1); _parent.guard = 0; } if (task == 3) { gotoAndStop(5); _parent.retarget = 0; } } else { task = 0; _visible = false; gotoAndStop(1); } } }; } frame 1 { stop(); } } movieClip 200 { } movieClip 202 jump { frame 1 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 1 { sizebonus = 2; if (_parent._parent.nojump == 1) { this.gotoAndStop(51); _parent.ship._xscale = 100; _parent.ship._yscale = 100; _parent.jumpcomplete = 1; } } frame 2 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 2 { _root.sounds.gotoAndPlay('warp1'); } frame 3 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 4 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 5 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 6 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 7 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 8 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 9 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 10 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 11 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 12 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 13 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 14 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 15 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 16 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 17 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 18 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 19 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 20 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 21 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 22 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 23 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 24 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 25 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 26 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 27 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 28 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 29 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 30 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 31 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 32 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 33 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 34 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 35 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 36 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 37 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 38 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 39 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 40 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 41 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 42 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 43 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 44 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 45 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 46 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 47 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 48 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 49 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 50 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 51 { _parent.ship._xscale += sizebonus; _parent.ship._yscale += sizebonus; } frame 51 { stop(); _parent.jumpcomplete = 1; if (_parent._name == 'player') { _parent.jump = 0; } } frame 52 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 53 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 54 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 55 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 56 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 57 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 58 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 59 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 60 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 61 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 62 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 63 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 64 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 65 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 66 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 67 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 68 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 69 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 70 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 71 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 72 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 73 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 74 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 75 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 76 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 77 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 78 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 79 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 80 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 81 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 82 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 83 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 84 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 85 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 86 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 87 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 88 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 89 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 90 { _parent.ship._xscale -= sizebonus * 1.1; _parent.ship._yscale -= sizebonus * 1.1; } frame 91 { stop(); _parent.jumpaway = 2; } } movieClip 211 { } movieClip 212 effect.explosiondeath { frame 1 { smokeCounter = 1; } frame 1 { if (_parent._parent._visible == true) { s = new Sound(this); s.attachSound('ex' + (random(4) + 1)); s.start(); } } instance b of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } instance a of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } instance a of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); _rotation = random(360); } } frame 31 { _parent.exfinished += 1; stop(); } } movieClip 213 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 10; } } frame 7 { stop(); } frame 8 { stop(); } } movieClip 214 ifi { frame 1 { health = 20; death = 0; real = 1; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 or ship._x + _parent._x + _x <= -100 or ship._y + _parent._y + _y >= 500 or ship._y + _parent._y + _y <= -100) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; if (_root.mission1 == 1) { _root.jsfkills += 1; } death += 1; ship.play(); } } }; } instance ship of movieClip 213 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ff'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 5 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (xthrust >= 5) { xthrust = 5; } if (xthrust <= -5) { xthrust = -5; } if (ythrust >= 5) { ythrust = 5; } if (ythrust <= -5) { ythrust = -5; } if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { retarget = 1; jumpcomplete = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 200; _yscale = random(800) + 200; } } } movieClip 216 { } movieClip 217 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } frame 7 { stop(); } frame 8 { stop(); } } movieClip 218 ifri { frame 1 { health = 250; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 217 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('fc'); _parent.gun1._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun1._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun2._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun2._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun3._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun3._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (exfinished >= 1) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { retarget = random(100) + 100; myTarget = _root.enemyList[i]; } } _parent.fire = 0; } } else {} } } onClipEvent (load) { jumpcomplete = 0; detector._visible = false; retarget = 1; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 220 { } movieClip 221 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance ship of movieClip 220 { } instance of movieClip 202 jump { onClipEvent (enterFrame) { sizebonus = 4.6; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 222 bci { frame 1 { health = 350; death = 0; real = 1; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 / (_parent._xscale / 100) or ship._x + _parent._x + _x <= -100 / (_parent._xscale / 100) or ship._y + _parent._y + _y >= 500 / (_parent._xscale / 100) or ship._y + _parent._y + _y <= -100 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 221 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (exfinished >= 3) { _root.pmoney += 1200; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ec'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { jumpcomplete = 0; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); } onClipEvent (load) { _visible = false; _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } // unknown tag 88 length 68 movieClip 229 fps { frame 1 { fps = 30; averagefps = 30; counted = 0; clock = 0; var timeinit = new Date(); var lasttime = timeinit.getMilliseconds(); onEnterFrame = function () { var v1 = new Date(); timepassed = v1.getMilliseconds() - lasttime >= 0 ? v1.getMilliseconds() - lasttime : 1000 + (v1.getMilliseconds() - lasttime); fps = Math.round(10000 / timepassed) / 10; counted += fps; clock += 1; averagefps = Math.round(counted / clock); lasttime = v1.getMilliseconds(); }; } } movieClip 234 node { } movieClip 236 { } movieClip 238 { frame 1 { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; de = (random(10) - 5) / 10; onEnterFrame = function () { xs -= de; _x = _x + xs; _y = _y + ys; _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1) * 5; ++_parent.smokeCounter; _parent.smoke1.duplicateMovieClip('smoke' + _parent.smokeCounter, _parent.smokeCounter); _parent['smoke' + _parent.smokeCounter]._visible = true; _parent['smoke' + _parent.smokeCounter]._rotation = this._rotation - 90; _parent['smoke' + _parent.smokeCounter]._x = this._x; _parent['smoke' + _parent.smokeCounter]._y = this._y; _parent['smoke' + _parent.smokeCounter]._alpha = this._alpha; }; } } movieClip 239 { frame 1 { s = new Sound(this); s.attachSound('ex' + (random(4) + 1)); s.start(); } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } instance of movieClip 238 { onClipEvent (load) { xs = (random(60) + 10) / 10 - 3; ys = (random(60) + 10) / 10 - 3; _xscale = random(400) + 1; _yscale = _xscale; rs = (random(30) + 10) / 10 - 1.5; } onClipEvent (enterFrame) { _x = _x + xs / (_xscale / 100); _y = _y + ys / (_xscale / 100); _rotation = _rotation + rs; _alpha = _alpha - (Math.abs(rs) + 1); } } frame 51 { _parent.exfinished += 1; stop(); } } movieClip 240 { frame 1 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 241 bfi { frame 1 { health = 10; real = 1; death = 0; act = 0; da = 0; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 / (_parent._xscale / 100) or ship._x + _parent._x + _x <= -250 / (_parent._xscale / 100) or ship._y + _parent._y + _y >= 500 / (_parent._xscale / 100) or ship._y + _parent._y + _y <= -100 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (da == 1) { real = 0; trace('dying'); if (cd > 0) { if (cd == 10) { ++_root.effectCounter; attachMovie('effect.explosion_weapons', 'exp1', _root.effectCounter); exp1._xscale = random(100); exp1._yscale = exp1._xscale; exp1._x = ship._x; exp1._y = ship._y; } if (cd == 20) { ++_root.effectCounter; attachMovie('effect.explosion_weapons', 'exp2', _root.effectCounter); exp2._xscale = random(100); exp2._yscale = exp2._xscale; exp2._x = ship._x; exp2._y = ship._y; } death = 1; cd -= 1; ship._rotation += (ship.xthrust + ship.ythrust) * 10; ship.xthrust *= 1.5; ship.ythrust *= 1.5; } else { if (act == 1) { real = 0; ship.play(); act = 2; } } } if (health <= 0) { if (act == 0) { death = 1; real = 0; ship.play(); act = 2; cd = random(20) + 20; act = 1; } } }; } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 200; _yscale = random(800) + 200; } } instance ship of movieClip 240 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun1._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._x; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { if (movespeed <= 3) { movespeed += 0.5; } cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.pmoney += 200; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (xthrust > 5) { xthrust = 5; } if (xthrust < -5) { xthrust = -5; } if (ythrust > 5) { ythrust = 5; } if (ythrust < -5) { ythrust = -5; } if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { jumpcomplete = 0; } onClipEvent (load) { detector._visible = false; retarget = 1; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; _root.game.overlay.radar['obj' + radar].gotoAndStop('ef'); alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 1; } } } movieClip 243 { } movieClip 244 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 10; } } frame 7 { stop(); } frame 8 { stop(); } } movieClip 245 bfii { frame 1 { health = 20; real = 1; death = 0; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 / (_parent._xscale / 100) or ship._x + _parent._x + _x <= -100 / (_parent._xscale / 100) or ship._y + _parent._y + _y >= 500 / (_parent._xscale / 100) or ship._y + _parent._y + _y <= -100 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 244 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ef'); _parent.gun1._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun1._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun2._y = Math.sin((this._rotation + 210) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun2._x = Math.cos((this._rotation + 210) * 6.283185307179586 / 360) * 5 + this._x; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { if (movespeed <= 6) { movespeed += 1; } cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.pmoney += 350; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop(4); gotoAndStop('dead'); graveYard = 0.5; _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (graveYard == 0.5) { graveYardId = _parent._parent.graveYardId; _parent._parent.graveYardId += 1; graveYard = 1; } if (graveYard == 1) { if (_parent._parent.graveYardRevive == graveYardId) { _parent._parent.graveYardRevive += 0.5; graveYard = 0; revive(); } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { function revive() { _parent._x = _parent._parent.gate._x; _parent._y = _parent._parent.gate._y; gotoAndStop(1); _parent.health = 20; _parent.real = 1; _parent.death = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } jumpcomplete = 0; retarget = 1; graveYard = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 1100; _yscale = random(800) + 1100; } } } movieClip 246 effect.explosiondamage { frame 1 { smokeCounter = 1; } frame 1 { s = new Sound(this); s.attachSound('ex' + (random(4) + 1)); s.start(); } instance b of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } instance a of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } instance a of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); _rotation = random(360); } } frame 31 { stop(); } } movieClip 247 effect.explosion_weapons { frame 1 { smokeCounter = 1; } frame 1 { if (_parent._visible == true) { s = new Sound(this); s.attachSound('ex' + (random(4) + 1)); s.start(); } } instance b of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } instance a of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); } } instance a of movieClip 211 { onClipEvent (load) { gotoAndStop(random(3) + 1); _rotation = random(360); } } frame 31 { stop(); _parent.remove = 1; } } movieClip 249 jumpparticle { } movieClip 252 { frame 50 { gotoAndPlay(1); } } movieClip 257 { frame 1 { stop(); gotoAndStop(_parent._parent._parent.skins); } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } } movieClip 258 { } movieClip 259 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 260 ici { frame 1 { health = 400; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 259 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar].gotoAndStop('fc'); _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } else { action = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; detector._x = 0; detector._y = 0; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 1000; detector._x = 0; detector._y = 0; } } } } else {} } } onClipEvent (load) { guard = 0; jumpcomplete = 0; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = random(800) + 2000; _yscale = random(800) + 2000; } } } movieClip 262 { } movieClip 263 { frame 1 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 264 bfiii { frame 1 { health = 60; real = 1; death = 0; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 / (_parent._xscale / 100) or ship._x + _parent._x + _x <= -100 / (_parent._xscale / 100) or ship._y + _parent._y + _y >= 500 / (_parent._xscale / 100) or ship._y + _parent._y + _y <= -100 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 263 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ef'); _parent.gun1._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun1._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun2._y = Math.sin((this._rotation + 210) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun2._x = Math.cos((this._rotation + 210) * 6.283185307179586 / 360) * 5 + this._x; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { if (movespeed <= 6) { movespeed += 1; } cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.pmoney += 450; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop(4); gotoAndStop('dead'); graveYard = 0.5; _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (graveYard == 0.5) { graveYardId = _parent._parent.graveYardId; _parent._parent.graveYardId += 1; graveYard = 1; } if (graveYard == 1) { if (_parent._parent.graveYardRevive == graveYardId) { _parent._parent.graveYardRevive += 0.5; graveYard = 0; revive(); } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { function revive() { _parent._x = _parent._parent.gate._x; _parent._y = _parent._parent.gate._y; gotoAndStop(1); _parent.health = 20; _parent.real = 1; _parent.death = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } jumpcomplete = 0; retarget = 1; graveYard = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 1100; _yscale = random(800) + 1100; } } } movieClip 266 { } movieClip 267 { frame 1 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 268 bfiv { frame 1 { health = 100; real = 1; death = 0; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 / (_parent._xscale / 100) or ship._x + _parent._x + _x <= -100 / (_parent._xscale / 100) or ship._y + _parent._y + _y >= 500 / (_parent._xscale / 100) or ship._y + _parent._y + _y <= -100 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 267 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ef'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 5 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { if (movespeed <= 6) { movespeed += 1; } cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.pmoney += 500; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop(4); gotoAndStop('dead'); graveYard = 0.5; _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (graveYard == 0.5) { graveYardId = _parent._parent.graveYardId; _parent._parent.graveYardId += 1; graveYard = 1; } if (graveYard == 1) { if (_parent._parent.graveYardRevive == graveYardId) { _parent._parent.graveYardRevive += 0.5; graveYard = 0; revive(); } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { function revive() { _parent._x = _parent._parent.gate._x; _parent._y = _parent._parent.gate._y; gotoAndStop(1); _parent.health = 20; _parent.real = 1; _parent.death = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } jumpcomplete = 0; retarget = 1; graveYard = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 20; _yscale = random(800) + 20; } } } movieClip 270 { } movieClip 271 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 10; } } frame 7 { stop(); } frame 8 { stop(); } } movieClip 272 ifii { frame 1 { health = 40; death = 0; real = 1; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 or ship._x + _parent._x + _x <= -100 or ship._y + _parent._y + _y >= 500 or ship._y + _parent._y + _y <= -100) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; if (_root.mission1 == 1) { _root.jsfkills += 1; } death += 1; ship.play(); } } }; } instance ship of movieClip 271 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ff'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 5 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 5 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 5 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (xthrust >= 5) { xthrust = 5; } if (xthrust <= -5) { xthrust = -5; } if (ythrust >= 5) { ythrust = 5; } if (ythrust <= -5) { ythrust = -5; } if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { retarget = 1; jumpcomplete = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 200; _yscale = random(800) + 200; } } } movieClip 274 { } movieClip 275 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 10; } } frame 7 { stop(); } frame 8 { stop(); } } movieClip 276 ifiii { frame 1 { health = 80; death = 0; real = 1; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 or ship._x + _parent._x + _x <= -100 or ship._y + _parent._y + _y >= 500 or ship._y + _parent._y + _y <= -100) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; if (_root.mission1 == 1) { _root.jsfkills += 1; } death += 1; ship.play(); } } }; } instance ship of movieClip 275 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ff'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 9 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 9 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 9 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 9 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (xthrust >= 5) { xthrust = 5; } if (xthrust <= -5) { xthrust = -5; } if (ythrust >= 5) { ythrust = 5; } if (ythrust <= -5) { ythrust = -5; } if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { retarget = 1; jumpcomplete = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 200; _yscale = random(800) + 200; } } } movieClip 278 { } movieClip 279 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 10; } } frame 7 { stop(); } frame 8 { stop(); } } movieClip 280 ifiv { frame 1 { health = 100; death = 0; real = 1; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 or ship._x + _parent._x + _x <= -100 or ship._y + _parent._y + _y >= 500 or ship._y + _parent._y + _y <= -100) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; if (_root.mission1 == 1) { _root.jsfkills += 1; } death += 1; ship.play(); } } }; } instance ship of movieClip 279 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ff'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 9 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 9 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 9 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 9 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 9 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; thrustCounter = random(30); alertion.gotoAndStop(2); } lights1.gotoAndStop(1); lights2.gotoAndStop(1); _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xt = _parent._parent.ap1._x + (random(700) - 350); yt = _parent._parent.ap1._y + (random(700) - 350); cd = 100 + random(200); } if (Math.round(_x / 10) == Math.round(xt / 10) or Math.round(_y / 10) == Math.round(yt / 10)) { cd = 0; } } if (action == 1) { lights1.gotoAndStop(2); lights2.gotoAndStop(2); cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } if (cd <= 0) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } cd = 30; } _parent.fire = 0; } if (action == 1.5) { cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { xt = _parent._parent._parent.player._x - _parent._parent._x - _parent._x; yt = _parent._parent._parent.player._y - _parent._parent._y - _parent._y; } else { if (myTarget.real == 1) { _parent.fire = 1; xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (exfinished >= 1) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (xthrust >= 5) { xthrust = 5; } if (xthrust <= -5) { xthrust = -5; } if (ythrust >= 5) { ythrust = 5; } if (ythrust <= -5) { ythrust = -5; } if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._visible = false; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; detector._visible = false; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { retarget = 1; jumpcomplete = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; xt = _x; yt = _y; action = 0; cd = 30; movespeed = 3; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } this._x -= (run / 10) * (_parent._xscale / 100); this._y -= (rise / 10) * (_parent._xscale / 100); } onClipEvent (load) { _xscale = random(800) + 200; _yscale = random(800) + 200; } } } movieClip 282 { } movieClip 283 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } frame 32 { stop(); } frame 33 { stop(); } } movieClip 284 ifrii { frame 1 { health = 350; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 283 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('fc'); _parent.gun1._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun1._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun2._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun2._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun3._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun3._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { retarget = random(100) + 100; myTarget = _root.enemyList[i]; } } _parent.fire = 0; } } else {} } } onClipEvent (load) { jumpcomplete = 0; detector._visible = false; retarget = 1; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 286 { } movieClip 287 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 288 bfri { frame 1 { health = 200; death = 0; real = 1; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 / (_parent._xscale / 100) or ship._x + _parent._x + _x <= -100 / (_parent._xscale / 100) or ship._y + _parent._y + _y >= 500 / (_parent._xscale / 100) or ship._y + _parent._y + _y <= -100 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 287 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (exfinished >= 3) { _root.pmoney += 750; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ec'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= range) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { jumpcomplete = 0; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); } onClipEvent (load) { _visible = false; _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 290 { } movieClip 291 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance of movieClip 202 jump { onClipEvent (enterFrame) { sizebonus = 4.6; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 292 bfrii { frame 1 { health = 250; death = 0; real = 1; onEnterFrame = function () { if (ship._x + _parent._x + _x >= 750 / (_parent._xscale / 100) or ship._x + _parent._x + _x <= -100 / (_parent._xscale / 100) or ship._y + _parent._y + _y >= 500 / (_parent._xscale / 100) or ship._y + _parent._y + _y <= -100 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 291 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (exfinished >= 3) { _root.pmoney += 900; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ec'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { jumpcomplete = 0; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); } onClipEvent (load) { _visible = false; _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 294 { } movieClip 295 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 296 bcii { frame 1 { health = 350; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 295 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (exfinished >= 3) { _root.pmoney += 1600; _root.game.uni.numEnemies -= 1; _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('ec'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; } for (i in _root.allyList) { if (detector.hitTest(_root.allyList[i].ship.hit)) { myTarget = _root.allyList[i]; retarget = random(100) + 100; } } } } else {} } } onClipEvent (load) { jumpcomplete = 0; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); } onClipEvent (load) { _visible = false; _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 298 { instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } } movieClip 299 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 300 icii { frame 1 { health = 400; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 299 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar].gotoAndStop('fc'); _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } else { action = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; detector._x = 0; detector._y = 0; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 1000; detector._x = 0; detector._y = 0; } } } } else {} } } onClipEvent (load) { guard = 0; jumpcomplete = 0; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 302 { } movieClip 303 eli { frame 1 { stop(); onEnterFrame = function () { if (_parent._name == 'itl') { if (_root.gpause == 0) { if (_parent.death == 0) { xDis = _parent.tlt._x - _x - _parent._x; yDis = _parent.tlt._y - _y - _parent._y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } else { if (_root.gpause == 0) { if (_parent.death == 0) { aitarget = _parent.ship.myTarget; xDis = aitarget.ship._x - _x - _parent._x; yDis = aitarget.ship._y - _y - _parent._y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } }; onLoad = function () { cd = 3; }; } } movieClip 305 { instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } } movieClip 306 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 20; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 307 isamerch { frame 1 { health = 400; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 306 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (jumpaway == 0) { if (_root.race == 0) { jumpaway = 1; } } if (jumpaway == 1) { ship._xscale *= 0.8; ship._yscale *= 0.8; jump.play(); } if (jumpaway == 2) { root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar].gotoAndStop('fc'); _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 40 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 40 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { if (movespeed <= 2) { } xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } else { action = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; detector._x = 0; detector._y = 0; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 1000; detector._x = 0; detector._y = 0; } } } } else {} } } onClipEvent (load) { jumpaway = 0; jumpcomplete = 0; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); } onClipEvent (load) { _visible = false; _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 311 triangle { frame 20 { stop(); } } movieClip 312 { } movieClip 328 superexplosion { frame 226 { stop(); } } movieClip 331 { } movieClip 332 hack { instance bar of movieClip 331 { onClipEvent (load) { bar._x = -100; } onClipEvent (enterFrame) { bar._x += _parent.speed; } } } movieClip 334 dynamicbar { frame 1 { onEnterFrame = function () { if (_root.game.buyscreen._currentframe == 1) { _visible = true; } else { _visible = false; } if (_root.gpause == 0) { if (dis == 'Time Left') { _root.game.uni.tl -= 1; if (_root.game.uni.tl < 0) { _root.game.uni.itl.ship.jump.gotoAndPlay(52); _root.game.uni.nextWave(); this.removeMovieClip(); } if (this._alpha < 100) { this._alpha += 2; } this.bar.bar._x = _root.game.uni.tl / 4.5; } if (dis == 'Detection') { this.bar.bar._x = _root.game.uni.detection; } if (dis == 'Antaris Station HP') { if (this._alpha < 100) { this._alpha += 2; } if ((_root.game.uni.antaris.health / 400) * 100 < 0) { _root.failure = 1; _root.reason4failure = 'Antaris Station was destroyed. '; _root.gpause = 1; } this.bar.bar._x = (_root.game.uni.antaris.health / 400) * 100; } if (dis == 'Remaining Time') { if (this._alpha < 100) { this._alpha += 2; } this.bar.bar._x = _root.game.uni.cd / 36; } if (dis == 'Repair Progress') { if (this._alpha < 100) { this._alpha += 2; } this.bar.bar._x = _root.game.uni.prog; } } if (_parent.removedynamicbars == 1) { _parent.removedynamicbars = 0; this.removeMovieClip(); } if (dis == 'Rescue Ship HP') { if (this._alpha < 100) { this._alpha += 2; } this.bar.bar._x = (_parent.uni.itl.health / 50) * 100; } if (dis == 'Jump Timer') { this.bar.bar._x = this.cd / 6; this.cd += 1; if (this._alpha < 100) { this._alpha += 2; } if (this.cd == 600 or _parent.jt.bar.bar._x == 100) { _root.pmoney += 1000; _root.briefing.gotoAndStop(3); _parent.changetrack = 4; _parent.mvl = 100; _parent.uni.itl.ship.allowmove = 0; _parent.uni.itl.ship.xtt = itl.ship._x; _parent.uni.itl.ship.ytt = itl.ship._y; _parent.uni.itl.ship.jump.play(); _parent.itlhp.removeMovieClip(); _parent.uni.attachMovie('jump', 'jump', -50); _parent.uni.jump._x = player._x; _parent.uni.jump._y = player._y; _parent.uni.jump.gotoAndPlay(52); this.removeMovieClip(); } } }; } instance bar of movieClip 79 dynamicbarbar { onClipEvent (load) { bar._x = -100; } onClipEvent (enterFrame) { bar._x += _parent.speed; } } } movieClip 336 { frame 1 { gotoAndPlay(random(51) + 1); } frame 51 { gotoAndPlay(2); } } movieClip 337 { } movieClip 339 { } movieClip 340 { frame 1 { stop(); } } movieClip 341 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 336 { onClipEvent (enterFrame) { gotoAndPlay(random(50)); } } } movieClip 342 { frame 1 { stop(); } instance trail of movieClip 179 { onClipEvent (enterFrame) { if (_parent.jumpcomplete == 0) { _visible = false; } else { _visible = true; } _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 50; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { if (_parent.jumpcomplete == 0) { _visible = false; } else { _visible = true; } _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 50; } } instance trail of movieClip 179 { onClipEvent (enterFrame) { if (_parent.jumpcomplete == 0) { _visible = false; } else { _visible = true; } _yscale = (Math.abs(_parent.xthrust) + Math.abs(_parent.ythrust)) * 60; } } frame 13 { stop(); } frame 14 { stop(); } } movieClip 343 itl { frame 1 { health = 50; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 342 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _root.game.overlay.radar['obj' + radar].gotoAndStop('fc'); _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 20 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 20 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (allowmove == 1) { if (thrustCounter <= 0) { thrustCounter = random(60) + 30; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { xtt = 115; ytt = -550; } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (allowmove == 1) { if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = _parent._parent._parent.player._x + (random(200) - 100) - _parent._parent._x - _parent._x; ytt = _parent._parent._parent.player._y + (random(200) - 100) - _parent._parent._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else {} } } acd -= 1; if (acd < 0) { action = 1.5; acd = random(90); } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (allowmove == 1) { if (thrustCounter <= 0) { thrustCounter = random(30) + 5; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; _parent.fire = 0; } } if (jumpaway == 2) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } } onClipEvent (load) { allowmove = 0; ship._xscale = 1; ship._yscale = 1; jumpcomplete = 0; detector._visible = false; retarget = 1; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = -8; thrustCounter = random(200) + 30; action = 0; cd = 30; movespeed = 0.5; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 10) * (_parent._xscale / 700); this._y -= (rise / 10) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = 1000; _yscale = 1000; } } instance tlt of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - xt; run = this._x - yt; this._x -= (run / 2) * (_parent._xscale / 700); this._y -= (rise / 2) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = 1000; _yscale = 1000; } } } movieClip 346 mapnavpoint { frame 1 { onEnterFrame = function () { _xscale = dis; _yscale = dis; if (dis <= _parent.dis + 99) { if (_alpha < dis + _parent.dis) { _alpha = _alpha + 1; } if (_alpha > dis + _parent.dis) { _alpha = _alpha - 1; } } else { if (_alpha < dis + _parent.dis * -1) { _alpha = _alpha + 1; } if (_alpha > dis + _parent.dis * -1) { _alpha = _alpha - 1; } } }; } } movieClip 348 { } movieClip 350 { } movieClip 351 { frame 1 { stop(); } frame 17 { stop(); } frame 19 { stop(); } } movieClip 352 iti { frame 1 { health = 400; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 351 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar].gotoAndStop('fp'); _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 3 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (cd <= 0) { if (guard == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } else { action = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= range) { detector._xscale = 1; detector._yscale = 1; detector._x = 0; detector._y = 0; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 1000; detector._x = 0; detector._y = 0; } } } } else {} } } onClipEvent (load) { range = 5000; guard = 0; jumpcomplete = 1; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 3) * (_parent._xscale / 700); this._y -= (rise / 3) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 354 { } movieClip 356 { frame 1 { gotoAndPlay(random(51) + 1); } frame 51 { gotoAndPlay(2); } } movieClip 358 { } movieClip 360 { } movieClip 361 { } movieClip 362 antaris { frame 1 { stop(); health = 400; death = 0; real = 1; } frame 90 { stop(); } frame 120 { stop(); } frame 155 { stop(); } } movieClip 364 { } movieClip 365 { frame 1 { stop(); } frame 17 { stop(); } frame 19 { stop(); } } movieClip 366 bja { frame 1 { health = 100; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { _parent.jammerdeath += 1; real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 365 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar].gotoAndStop('ep'); _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 3 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (cd <= 0) { if (guard == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } else { action = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= 10000) { detector._xscale = 1; detector._yscale = 1; detector._x = 0; detector._y = 0; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 1000; detector._x = 0; detector._y = 0; } } } } else {} } } onClipEvent (load) { guard = 0; jumpcomplete = 1; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; } } } movieClip 367 { } movieClip 369 { instance trail of movieClip 179 { onClipEvent (enterFrame) { _yscale = (Math.abs(_parent._parent._parent.xthrust) + Math.abs(_parent._parent._parent.ythrust)) * 20; } } } movieClip 388 { } movieClip 390 { } // unknown tag 88 length 179 movieClip 395 { } movieClip 396 { instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } } movieClip 397 { instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } } movieClip 398 { frame 1 { stop(); } instance hit of movieClip 367 { onClipEvent (load) { gotoAndStop(_parent.ships); } } instance ship of movieClip 397 { onClipEvent (load) { gotoAndStop(_parent.ships); } } instance jump of movieClip 202 jump { onClipEvent (load) { _xscale = _parent.jumpsize; _yscale = _parent.jumpsize; } } frame 17 { stop(); } frame 19 { stop(); } } movieClip 399 ship { frame 1 { death = 0; real = 1; onEnterFrame = function () { if (_parent.removeShips == 1) { this.removeMovieClip(); } if (health <= 0) { if (death == 0) { if (_parent._parent._currentframe != 3) { if (ship.ships == 'bfi') { _root.pmoney += 50; } if (ship.ships == 'bfii') { _root.pmoney += 100; } if (ship.ships == 'bfiii') { _root.pmoney += 150; } if (ship.ships == 'bfiv') { _root.pmoney += 200; } if (ship.ships == 'bfri') { _root.pmoney += 250; } if (ship.ships == 'bfrii') { _root.pmoney += 350; } if (ship.ships == 'bci') { _root.pmoney += 500; } if (ship.ships == 'bcii') { _root.pmoney += 800; } } real = 0; if (deathCounter == 1) { _parent.deathCount += 1; } _parent.numEnemies -= 1; death += 1; } } if (ship._x >= 450 / (_parent._xscale / 100) or ship._x <= -450 / (_parent._xscale / 100) or ship._y >= 250 / (_parent._xscale / 100) or ship._y <= -250 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } }; } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_parent.capital == 1) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; } else { rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; } this._x -= run * ((_parent.ship.movespeed + 1) / 100); this._y -= rise * ((_parent.ship.movespeed + 1) / 100); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { this._x = _parent.ship._x + random(100) - 50; this._y = _parent.ship._y + random(100) - 50; _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } instance ship of movieClip 398 { onClipEvent (load) { function createDebri() { ++_root.otherCounter; _parent._parent.attachMovie('debri', 'd' + _root.otherCounter, _root.otherCounter); _parent._parent['d' + _root.otherCounter].xt = xthrust + random(6) - 3; _parent._parent['d' + _root.otherCounter].yt = ythrust + random(6) - 3; _parent._parent['d' + _root.otherCounter]._x = _x; _parent._parent['d' + _root.otherCounter]._y = _y; _parent._parent['d' + _root.otherCounter]._xscale = jumpsize * 2.5; _parent._parent['d' + _root.otherCounter]._yscale = jumpsize * 2.5; } dcd = 0; guard = 0; jumpcomplete = 0; retarget = 1; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 0; detector._visible = false; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (exfinished >= Numexp) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; yt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (jumpcomplete == 1) { if (_parent.death == 1) { if (_parent.capital == 0) { xthrust *= 1.5; ythrust *= 1.5; _rotation = _rotation + xthrust; } dcd += 1; if (dcd == 1) { debri = random(5); if (fe1 != undefined) { if (_root.geffects == 3) { createDebri(); createDebri(); createDebri(); } if (_root.geffects == 2) { createDebri(); } ++_root.otherCounter; attachMovie('effect.explosiondeath', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(dex); this['exp' + _root.otherCounter]._y = random(dey); } } if (dcd == 15) { ship._visible = false; if (fe2 != undefined) { if (_root.geffects == 3) { createDebri(); createDebri(); } if (_root.geffects == 2) { createDebri(); } ++_root.otherCounter; attachMovie('effect.explosiondeath', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(dex); this['exp' + _root.otherCounter]._y = random(dey); } } if (dcd == 30) { if (fe3 != undefined) { if (_root.geffects == 3) { createDebri(); createDebri(); } if (_root.geffects == 2) { createDebri(); } ++_root.otherCounter; attachMovie('effect.explosiondeath', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(dex); this['exp' + _root.otherCounter]._y = random(dey); } } } if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar].gotoAndStop(radartype); _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * gdis + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * gdis + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * gdis + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * gdis + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * gdis + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * gdis + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * gdis + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * gdis + this._y; if (action == 0) { lights.gotoAndStop(1); action = 1; xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = tc; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y; } else { if (idlezone == undefined) { if (nomove == 0) { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } else { xt = _parent._parent[idlezone]._x + (random(700) - 350); yt = _parent._parent[idlezone]._y + (random(700) - 350); cd = 100 + random(200); } } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; if (_parent.capital == 1) { xt = _parent.targeter._x; yt = _parent.targeter._y; } else { if (myTarget.real == 1) { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } else { xt = _parent.targeter._x; yt = _parent.targeter._y; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = tc; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } if (cd <= 0) { if (guard == 1) { xtt = myGuardTarget._x + myGuardTarget.ship._x - _parent._x + random(200) - 100; ytt = myGuardTarget._y + myGuardTarget.ship._y - _parent._y + random(200) - 100; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x + random(200) - 100; ytt = myTarget._y + myTarget.ship._y - _parent._y + random(200) - 100; } else { if (idlezone == undefined) { if (nomove == 0) { xtt = _x + (random(700) - 350); ytt = _y + (random(700) - 350); cd = 500 + random(200); } } else { if (capital == 1) { xtt = idlezone._x + (random(700) - 350); cd = 100 + random(200); ytt = idlezone._y + (random(700) - 350); } else { xt = idlezone._x + (random(700) - 350); yt = idlezone._y + (random(700) - 350); cd = 100 + random(200); } } } } } if (myTarget.real == 1) { acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } } _parent.fire = 0; } if (action == 1.5) { if (_parent.capital == 1) { xt = _parent.targeter._x; yt = _parent.targeter._y; } else { xt = myTarget._x + myTarget.ship._x - _parent._x; yt = myTarget._y + myTarget.ship._y - _parent._y; } cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } else { action = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (thrustCounter <= 0) { thrustCounter = tc; if (_rotation > 180) { if (this.hitTest(_parent.targeter)) { } else { xthrust -= movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust += movespeed * Math.cos(0.0174532925199433 * _rotation); } } else { if (this.hitTest(_parent.targeter)) { } else { xthrust += movespeed * Math.sin(0.0174532925199433 * _rotation); ythrust -= movespeed * Math.cos(0.0174532925199433 * _rotation); } } } } } if (xthrust > movespeed) { xthrust = movespeed * 0.9; } if (xthrust < -movespeed) { xthrust = -movespeed * 0.9; } if (ythrust > movespeed) { ythrust = movespeed * 0.9; } if (ythrust < -movespeed) { ythrust = -movespeed * 0.9; } if (_parent.health < fe1) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(dex); this['exp' + _root.otherCounter]._y = random(dey); damages += 1; } } if (_parent.health < fe2) { if (damages < 2) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(dex); this['exp' + _root.otherCounter]._y = random(dey); damages += 1; } } if (_parent.health < fe3) { if (damages < 3) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(dex); this['exp' + _root.otherCounter]._y = random(dey); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { if (_parent._parent.section == 'c7') { if (_parent._parent.faildetect == 0) { trace('detect!'); _parent._parent.faildetect = 1; } } detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= range) { detector._xscale = 1; detector._yscale = 1; detector._x = 0; detector._y = 0; } for (i in _root[dlist]) { if (detector.hitTest(_root[dlist][i].ship.hit)) { myTarget = _root[dlist][i]; retarget = random(100) + 1000; detector._x = 0; detector._y = 0; } } } } else {} } } } } movieClip 402 leakpartical { } movieClip 403 { frame 1 { onEnterFrame = function () { if (_parent.lsev == 0) { } if (_parent.lsev == 1) { cd -= 2; if (cd < 0) { cd = 30; ++i; attachMovie('leakpartical', 'l' + i, i); this['l' + i].xt = (random(3) + 1) / 7; this['l' + i].yt = (random(60) - 30) / 60; this['l' + i].onEnterFrame = function () { this._alpha -= (Math.abs(this.yt) + this.xt) * 2; this._x += this.xt; this._y += this.yt; }; } } if (_parent.lsev == 2) { cd -= 3; if (cd < 0) { cd = 30; ++i; attachMovie('leakpartical', 'l' + i, i); this['l' + i].xt = (random(3) + 1) / 7; this['l' + i].yt = (random(60) - 30) / 60; color = random(3); if (color == 0) { var v3 = new Color(this['l' + i]); v3.setRGB(16711680); } this['l' + i].onEnterFrame = function () { this._alpha -= (Math.abs(this.yt) + this.xt) * 2; this._x += this.xt; this._y += this.yt; }; } } if (_parent.lsev == 3) { cd -= 4; if (cd < 0) { cd = 30; ++i; attachMovie('leakpartical', 'l' + i, i); this['l' + i].xt = (random(3) + 1) / 7; this['l' + i].yt = (random(60) - 30) / 60; color = random(3); if (color == 0) { v3 = new Color(this['l' + i]); v3.setRGB(16711680); } if (color == 1) { v3 = new Color(this['l' + i]); v3.setRGB(16776960); } this['l' + i].onEnterFrame = function () { this._alpha -= (Math.abs(this.yt) + this.xt) * 2; this._x += this.xt; this._y += this.yt; }; } } if (_parent.lsev == 4) { cd -= 5; if (cd < 0) { cd = 30; ++i; attachMovie('leakpartical', 'l' + i, i); this['l' + i].xt = (random(3) + 1) / 7; this['l' + i].yt = (random(60) - 30) / 60; color = random(3); if (color == 0) { v3 = new Color(this['l' + i]); v3.setRGB(16711680); } if (color == 1) { v3 = new Color(this['l' + i]); v3.setRGB(16776960); } if (color == 2) { v3 = new Color(this['l' + i]); v3.setRGB(255); } this['l' + i].onEnterFrame = function () { this._alpha -= (Math.abs(this.yt) + this.xt) * 2; this._x += this.xt; this._y += this.yt; }; } } if (i > 15) { i = 0; } }; cd = 30; i = 0; var colorful = new Color(this['b' + _root.effectCounter]); colorful.setRGB(16711680); } frame 2 { stop(); } } movieClip 409 { frame 3 { gotoAndPlay(random(5) * 3 + 1); } frame 6 { gotoAndPlay(random(5) * 3 + 1); } frame 9 { gotoAndPlay(random(5) * 3 + 1); } frame 12 { gotoAndPlay(random(5) * 3 + 1); } frame 15 { gotoAndPlay(random(5) * 3 + 1); } } movieClip 410 { instance of movieClip 409 { onClipEvent (enterFrame) { neg = random(3); if (neg == 0) { _yscale = _yscale * -1; } if (neg == 1) { _xscale = _xscale * -1; } if (neg == 2) { _xscale = _xscale * -1; _yscale = _yscale * -1; } _xscale = random(20) + 80; _yscale = random(30) + 70; } } instance of movieClip 409 { onClipEvent (enterFrame) { neg = random(3); if (neg == 0) { _yscale = _yscale * -1; } if (neg == 1) { _xscale = _xscale * -1; } if (neg == 2) { _xscale = _xscale * -1; _yscale = _yscale * -1; } _xscale = random(20) + 80; _yscale = random(30) + 70; } } instance of movieClip 409 { onClipEvent (enterFrame) { neg = random(3); if (neg == 0) { _yscale = _yscale * -1; } if (neg == 1) { _xscale = _xscale * -1; } if (neg == 2) { _xscale = _xscale * -1; _yscale = _yscale * -1; } _xscale = random(20) + 80; _yscale = random(30) + 70; } } instance of movieClip 409 { onClipEvent (enterFrame) { neg = random(3); if (neg == 0) { _yscale = _yscale * -1; } if (neg == 1) { _xscale = _xscale * -1; } if (neg == 2) { _xscale = _xscale * -1; _yscale = _yscale * -1; } _xscale = random(20) + 80; _yscale = random(30) + 70; } } } movieClip 411 { } movieClip 412 { frame 1 { _visible = false; } instance of movieClip 89 { onClipEvent (enterFrame) { _y = random(20) - 10; _alpha = random(50) + 50; } } instance of movieClip 89 { onClipEvent (enterFrame) { _y = random(20) - 10; _alpha = random(50) + 50; } } } movieClip 413 { frame 1 { stop(); } frame 17 { stop(); } frame 19 { stop(); } } movieClip 414 itr { frame 1 { health = 3000; cat = 3; death = 0; real = 1; onEnterFrame = function () { if (health <= 0) { if (death == 0) { real = 0; death += 1; ship.play(); } } }; } instance ship of movieClip 413 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (exfinished >= 3) { _root.game.overlay.radar['obj' + radar].swapDepths(1000); _root.game.overlay.radar['obj' + radar].removeMovieClip(); gotoAndStop('dead'); _parent.real = 0; _parent.swapDepths(1000); _parent.removeMovieClip(); } _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; ytt -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; if (jumpcomplete == 1) { if (_parent.death == 0) { _root.game.overlay.radar['obj' + radar].gotoAndStop('fp'); _root.game.overlay.radar['obj' + radar]._x = (_x + _parent._parent._x - 325) / 20; _root.game.overlay.radar['obj' + radar]._y = (_y + _parent._parent._y - 210) / 20; _parent.gun1._x = Math.cos((this._rotation + 240) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun1._y = Math.sin((this._rotation + 240) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun2._x = Math.cos((this._rotation + 300) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun2._y = Math.sin((this._rotation + 300) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun3._x = Math.cos((this._rotation + 120) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun3._y = Math.sin((this._rotation + 120) * 6.283185307179586 / 360) * 3 + this._y; _parent.gun4._x = Math.cos((this._rotation + 60) * 6.283185307179586 / 360) * 3 + this._x; _parent.gun4._y = Math.sin((this._rotation + 60) * 6.283185307179586 / 360) * 3 + this._y; if (action == 0) { if (_parent._parent.alert == 1) { action = 1; cd = 1; thrustCounter = random(30); } lights.gotoAndStop(1); xt = _parent.targeter._x; yt = _parent.targeter._y; _parent.fire = 0; cd -= 1; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; if (cd <= 0) { if (guard == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; cd = 500 + random(200); } } } if (action == 1) { lights.gotoAndStop(2); cd -= 1; xt = _parent.targeter._x; yt = _parent.targeter._y; xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); if (cd <= 0) { if (_parent._parent.aitargets == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; cd = 30 + random(200); } else { if (guard == 1) { xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { if (myTarget.real == 1) { cd = 30 + random(200); xtt = myTarget._x + myTarget.ship._x - _parent._x; ytt = myTarget._y + myTarget.ship._y - _parent._y; } else { action = 1; } } } } acd -= 1; if (acd <= 1) { actioncounter -= 1; if (actioncounter <= 0) { action = 1.5; actioncounter = random(3) + 1; } acd = 30; } _parent.fire = 0; } if (action == 1.5) { xt = _parent.targeter._x; yt = _parent.targeter._y; cd -= 1; if (cd <= 0) { action = 1; } if (_parent._parent.aitargets == 1) { _parent.fire = 1; } else { if (myTarget.real == 1) { _parent.fire = 1; } else { action = 1; } } xDis = xt - _x; yDis = yt - _y; radAngle = Math.atan2(yDis, xDis); laser._rotation = int(radAngle * 180 / Math.PI + 90); thrustCounter -= 1; } } if (xthrust >= 3) { xthrust = 3; } if (xthrust <= -3) { xthrust = -3; } if (ythrust >= 3) { ythrust = 3; } if (ythrust <= -3) { ythrust = -3; } if (_parent.health < 100) { if (damages < 1) { ++_root.otherCounter; attachMovie('effect.explosiondamage', 'exp' + _root.otherCounter, _root.otherCounter); this['exp' + _root.otherCounter]._x = random(50); this['exp' + _root.otherCounter]._y = random(200); damages += 1; } } xthrust *= 0.98; ythrust *= 0.98; _x = _x + xthrust; _y = _y + ythrust; if (myTarget.real == 1 && retarget >= 0) { detector._xscale = 1; retarget -= 1; detector._yscale = detector._xscale; } else { _parent.fire = 0; detector._xscale *= 1.5; detector._yscale *= 1.5; if (detector._xscale >= range) { detector._xscale = 1; detector._yscale = 1; detector._x = 0; detector._y = 0; } for (i in _root.enemyList) { if (detector.hitTest(_root.enemyList[i].ship.hit)) { myTarget = _root.enemyList[i]; retarget = random(100) + 1000; detector._x = 0; detector._y = 0; } } } } else {} } } onClipEvent (load) { range = 5000; guard = 0; jumpcomplete = 1; retarget = 1; detector._visible = false; damages = 0; ++_root.otherCounter; _root.game.overlay.radar.obj1.duplicateMovieClip('obj' + _root.otherCounter, _root.otherCounter); radar = _root.otherCounter; acd = 1; alert = 0; exfinished = 0; xthrust = 0; actioncounter = random(3) + 1; ythrust = 0; thrustCounter = random(200) + 30; action = 0; cd = 30; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.ship.ytt; run = this._x - _parent.ship.xtt; this._x -= (run / 3) * (_parent._xscale / 700); this._y -= (rise / 3) * (_parent._xscale / 700); if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } onClipEvent (load) { _xscale = random(800) + 1000; _yscale = random(800) + 1000; } } } movieClip 434 { frame 1 { stop(); } } movieClip 440 { } button 445 { on (press) { getURL('http://www.armorgames.com', '_blank'); } } movieClip 448 { frame 1 { _root.stop(); gotoAndPlay(2); } frame 184 { _parent.play(); } } button 451 { on (release) { getURL('http://lonewolfproductions.us/', '_blank'); } } // unknown tag 88 length 74 movieClip 455 { } movieClip 457 { } movieClip 459 { } movieClip 460 { } movieClip 462 { } movieClip 464 { } movieClip 466 { } movieClip 468 { } movieClip 470 { } movieClip 472 { } movieClip 474 { } movieClip 476 { } movieClip 478 { } movieClip 480 { } movieClip 482 { } movieClip 484 { } movieClip 486 { } movieClip 488 { } movieClip 490 { } movieClip 492 { } movieClip 494 { } movieClip 496 { } movieClip 498 { } movieClip 500 { } movieClip 502 { } movieClip 504 { } movieClip 506 { } movieClip 508 { } movieClip 510 { } movieClip 512 { } movieClip 514 { } movieClip 516 { } movieClip 518 { } movieClip 520 { } movieClip 522 { } movieClip 524 { } movieClip 526 { } movieClip 528 { } movieClip 530 { } movieClip 532 { } movieClip 534 { } movieClip 536 { } movieClip 538 { } movieClip 540 { } movieClip 542 { } movieClip 544 { } movieClip 546 { } movieClip 548 { } movieClip 550 { } movieClip 552 { } movieClip 554 { } movieClip 556 { } movieClip 558 { } movieClip 560 { } movieClip 562 { } movieClip 563 { frame 30 { stop(); } } movieClip 564 { frame 1 { stop(); } frame 125 { _parent.nextFrame(); } } movieClip 1663 __Packages.mochi.as2.MochiSync { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSync) { var v1 = function () { this._syncContainer = {}; }; mochi.as2.MochiSync = v1; var v2 = v1.prototype; v2.getProp = function (name) { return this._syncContainer[name]; }; v2.setProp = function (name, value) { if (this._syncContainer[name] == value) { return undefined; } this._syncContainer[name] = value; mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value}); }; v2.triggerEvent = function (eventType, args) { switch (eventType) { case mochi.as2.MochiSync.SYNC_REQUEST: mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer); break; case mochi.as2.MochiSync.SYNC_PROPERTY: this._syncContainer[args.name] = args.value; } }; v1.SYNC_REQUEST = 'SyncRequest'; v1.SYNC_PROPERTY = 'UpdateProperty'; ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1); } #endinitclip } movieClip 1664 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.8 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args); break; case 'sync': mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.updateCopy = function (args) { mochi.as2.MochiServices.send('coins_updateCopy', args, null, null); }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; var v6; if (_root._url.indexOf('mochiad_options') != -1) { var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1; v6 = _root._url.substr(v2, _root._url.length); } else { if (_root.mochiad_options) { v6 = _root.mochiad_options; } } if (v6) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': case 'b': case 'c': break; case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1.servicesSync = new mochi.as2.MochiSync(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 1665 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 1666 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.setNotifications = function (clip, style) { var v2 = {}; for (var v3 in style) { v2[v3] = style[v3]; } v2.clip = clip; mochi.as2.MochiServices.send('events_setNotifications', v2, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startPlay = function (tag) { if (tag == undefined) { tag = 'gameplay'; } mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null); }; v1.endPlay = function () { mochi.as2.MochiServices.send('events_clearRoundID', null, null, null); }; v1.trackEvent = function (tag, value) { mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null); }; v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 1667 __Packages.mochi.as2.MochiSocial { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSocial) { var v1 = function () {}; mochi.as2.MochiSocial = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('coins_hideLoginWidget'); }; v1.requestLogin = function () { mochi.as2.MochiServices.send('coins_requestLogin'); }; v1.getUserInfo = function () { mochi.as2.MochiServices.send('coins_getUserInfo'); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('coins_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.LOGIN_SHOWN = 'LoginShown'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1); } #endinitclip } frame 4 { var savefile1 = SharedObject.getLocal('bkp1', '/'); savefile1.flush(); var savefile2 = SharedObject.getLocal('bkp2', '/'); savefile2.flush(); var savefile3 = SharedObject.getLocal('bkp3', '/'); savefile3.flush(); var quicksavefile = SharedObject.getLocal('bkquicksave', '/'); quicksavefile.flush(); } frame 4 { difficulty = 1; prank = 'Specialist'; g1 = 'none'; g2 = 'none'; g3 = 'none'; g4 = 'none'; m1 = 1; m2 = 1; m3 = 1; m4 = 1; mission = 1; thrust = 60; phandling = 1; pthrust = 0.8; prthrust = 0.5; pwdamage = 1; pwcooldown = 1; pweapon = 1; ewdamage = 1; plights = -1; palignment = 0; pchp = 100; pmhp = 100; powerlevel = 100; spower = 'none'; spowerspeed = 0; penr = 3; pme = 100; pce = 100; pmoney = 0; pcore = 0; pshields = 0; pmshields = 0; pship = 6; pms = 1; pws = 1; pws1 = 1; pws2 = 0; pws3 = 0; pws4 = 0; lasersi = 1; lasersii = 0; lasersiii = 0; plasmai = 0; plasmaii = 0; plasmaiii = 0; missilei = 0; missileii = 0; missileiii = 0; streakeri = 0; streakerii = 0; streakeriii = 0; cmi = 0; cmii = 0; cmiii = 0; blacki = 0; blackii = 0; blackiii = 0; pulsari = 0; pulsarii = 0; pulsariii = 0; bati = 0; batii = 0; batiii = 0; ioni = q; mod1 = 0; mod2 = 0; mod3 = 0; mod4 = 0; mod5 = 0; mod6 = 0; mod7 = 0; mod8 = 0; mod9 = 0; mod10 = 0; mod11 = 0; mod12 = 0; mod13 = 0; mod14 = 0; mod15 = 0; mod16 = 0; mod17 = 0; mod18 = 0; mod19 = 0; mod20 = 0; mod21 = 0; mod22 = 0; mod23 = 0; mod24 = 0; mod25 = 0; mod26 = 0; mod27 = 0; mod28 = 0; mod29 = 0; mod30 = 0; mod31 = 0; mod32 = 0; mod33 = 0; mod34 = 0; mod35 = 0; mod36 = 0; mod37 = 0; mod38 = 0; mod39 = 0; mod40 = 0; upK = 87; downK = 83; leftK = 65; rightK = 68; afterburnerK = 16; auxpowersK = 67; sfireK = 32; jumpK = 74; interactK = 69; geffects = 3; gversion = 1.2; onEnterFrame = function () { if (gqload == 1) { game.gotoAndStop('gload'); upK = quicksavefile.data.upK; downK = quicksavefile.data.downK; leftK = quicksavefile.data.leftK; rightK = quicksavefile.data.rightK; afterburnerK = quicksavefile.data.afterburnerK; auxpowersK = quicksavefile.data.auxpowersK; sfireK = quicksavefile.data.sfireK; jumpK = quicksavefile.data.jumpK; interactK = quicksavefile.data.interactK; pname = quicksavefile.data.pname; prank = quicksavefile.data.prank; g1 = quicksavefile.data.g1; g2 = quicksavefile.data.g2; g3 = quicksavefile.data.g3; g4 = quicksavefile.data.g4; m1 = quicksavefile.data.m1; m2 = quicksavefile.data.m2; m3 = quicksavefile.data.m3; m4 = quicksavefile.data.m4; thrust = quicksavefile.data.thrust; phandling = quicksavefile.data.phandling; pthrust = quicksavefile.data.pthrust; prthrust = quicksavefile.data.prthrust; pwdamage = quicksavefile.data.pwdamage; pwcooldown = quicksavefile.data.pwcooldown; ewdamage = quicksavefile.data.ewdamage; pweapon = quicksavefile.data.pweapon; pchp = quicksavefile.data.pchp; pmhp = quicksavefile.data.pmhp; powerlevel = quicksavefile.data.powerlevel; spower = quicksavefile.data.spower; spowerspeed = quicksavefile.data.spowerspeed; penr = quicksavefile.data.penr; pme = quicksavefile.data.pme; pce = quicksavefile.data.pce; pmoney = quicksavefile.data.pmoney; pshields = quicksavefile.data.pshield; pmshields = quicksavefile.data.pmshields; pms = quicksavefile.data.pms; pws1 = quicksavefile.data.pws1; pws2 = quicksavefile.data.pws2; pws3 = quicksavefile.data.pws3; pws4 = quicksavefile.data.pws4; lasersi = quicksavefile.data.lasersi; lasersii = quicksavefile.data.lasersii; lasersiii = quicksavefile.data.lasersiii; missilei = quicksavefile.data.missilei; missileii = quicksavefile.data.missileii; missileiii = quicksavefile.data.missileiii; streakeri = quicksavefile.data.streakeri; streakerii = quicksavefile.data.streakerii; streakeriii = quicksavefile.data.streakeriii; cmi = quicksavefile.data.cmi; cmii = quicksavefile.data.cmii; cmiii = quicksavefile.data.cmiii; pulsari = quicksavefile.data.pulsari; pulsarii = quicksavefile.data.pulsarii; pulsariii = quicksavefile.data.pulsariii; bati = quicksavefile.data.bati; batii = quicksavefile.data.batii; batiii = quicksavefile.data.batiii; mod1 = quicksavefile.data.mod1; mod2 = quicksavefile.data.mod2; mod3 = quicksavefile.data.mod3; mod4 = quicksavefile.data.mod4; mod5 = quicksavefile.data.mod5; mod6 = quicksavefile.data.mod6; mod7 = quicksavefile.data.mod7; mod8 = quicksavefile.data.mod8; mod9 = quicksavefile.data.mod9; mod10 = quicksavefile.data.mod10; mod11 = quicksavefile.data.mod11; mod12 = quicksavefile.data.mod12; mod13 = quicksavefile.data.mod13; mod14 = quicksavefile.data.mod14; mod15 = quicksavefile.data.mod15; mod16 = quicksavefile.data.mod16; mod17 = quicksavefile.data.mod17; mod18 = quicksavefile.data.mod18; mod19 = quicksavefile.data.mod19; mod20 = quicksavefile.data.mod20; mod21 = quicksavefile.data.mod21; mod22 = quicksavefile.data.mod22; mod23 = quicksavefile.data.mod23; mod24 = quicksavefile.data.mod24; mod25 = quicksavefile.data.mod25; mod26 = quicksavefile.data.mod26; mod27 = quicksavefile.data.mod27; mod28 = quicksavefile.data.mod28; mod29 = quicksavefile.data.mod29; mod30 = quicksavefile.data.mod30; mod31 = quicksavefile.data.mod31; mod32 = quicksavefile.data.mod32; mod33 = quicksavefile.data.mod33; mod34 = quicksavefile.data.mod34; mod35 = quicksavefile.data.mod35; mod36 = quicksavefile.data.mod36; mod37 = quicksavefile.data.mod37; mod38 = quicksavefile.data.mod38; mod39 = quicksavefile.data.mod39; mod40 = quicksavefile.data.mod40; mission = quicksavefile.data.mission; geffects = quicksavefile.data.geffects; ogversion = quicksavefile.data.ogversion; gqload = 0; } if (lsavefile1 == 1) { trace('loaded'); game.gotoAndStop('gload'); upK = savefile1.data.upK; downK = savefile1.data.downK; leftK = savefile1.data.leftK; rightK = savefile1.data.rightK; afterburnerK = savefile1.data.afterburnerK; auxpowersK = savefile1.data.auxpowersK; sfireK = savefile1.data.sfireK; jumpK = savefile1.data.jumpK; interactK = savefile1.data.interactK; pname = savefile1.data.pname; prank = savefile1data.prank; g1 = savefile1.data.g1; g2 = savefile1.data.g2; g3 = savefile1.data.g3; g4 = savefile1.data.g4; m1 = savefile1.data.m1; m2 = savefile1.data.m2; m3 = savefile1.data.m3; m4 = savefile1.data.m4; thrust = savefile1.data.thrust; phandling = savefile1.data.phandling; pthrust = savefile1.data.pthrust; prthrust = savefile1.data.prthrust; pwdamage = savefile1.data.pwdamage; pwcooldown = savefile1.data.pwcooldown; ewdamage = savefile1.data.ewdamage; pweapon = savefile1.data.pweapon; pchp = savefile1.data.pchp; pmhp = savefile1.data.pmhp; powerlevel = savefile1.data.powerlevel; spower = savefile1.data.spower; spowerspeed = savefile1.data.spowerspeed; penr = savefile1.data.penr; pme = savefile1.data.pme; pce = savefile1.data.pce; pmoney = savefile1.data.pmoney; pshields = savefile1.data.pshield; pmshields = savefile1.data.pmshields; pms = savefile1.data.pms; pws1 = savefile1.data.pws1; pws2 = savefile1.data.pws2; pws3 = savefile1.data.pws3; pws4 = savefile1.data.pws4; lasersi = savefile1.data.lasersi; lasersii = savefile1.data.lasersii; lasersiii = savefile1.data.lasersiii; missilei = savefile1.data.missilei; missileii = savefile1.data.missileii; missileiii = savefile1.data.missileiii; streakeri = savefile1.data.streakeri; streakerii = savefile1.data.streakerii; streakeriii = savefile1.data.streakeriii; cmi = savefile1.data.cmi; cmii = savefile1.data.cmii; cmiii = savefile1.data.cmiii; pulsari = savefile1.data.pulsari; pulsarii = savefile1.data.pulsarii; pulsariii = savefile1.data.pulsariii; bati = savefile1.data.bati; batii = savefile1.data.batii; batiii = savefile1.data.batiii; mod1 = savefile1.data.mod1; mod2 = savefile1.data.mod2; mod3 = savefile1.data.mod3; mod4 = savefile1.data.mod4; mod5 = savefile1.data.mod5; mod6 = savefile1.data.mod6; mod7 = savefile1.data.mod7; mod8 = savefile1.data.mod8; mod9 = savefile1.data.mod9; mod10 = savefile1.data.mod10; mod11 = savefile1.data.mod11; mod12 = savefile1.data.mod12; mod13 = savefile1.data.mod13; mod14 = savefile1.data.mod14; mod15 = savefile1.data.mod15; mod16 = savefile1.data.mod16; mod17 = savefile1.data.mod17; mod18 = savefile1.data.mod18; mod19 = savefile1.data.mod19; mod20 = savefile1.data.mod20; mod21 = savefile1.data.mod21; mod22 = savefile1.data.mod22; mod23 = savefile1.data.mod23; mod24 = savefile1.data.mod24; mod25 = savefile1.data.mod25; mod26 = savefile1.data.mod26; mod27 = savefile1.data.mod27; mod28 = savefile1.data.mod28; mod29 = savefile1.data.mod29; mod30 = savefile1.data.mod30; mod31 = savefile1.data.mod31; mod32 = savefile1.data.mod32; mod33 = savefile1.data.mod33; mod34 = savefile1.data.mod34; mod35 = savefile1.data.mod35; mod36 = savefile1.data.mod36; mod37 = savefile1.data.mod37; mod38 = savefile1.data.mod38; mod39 = savefile1.data.mod39; mod40 = savefile1.data.mod40; mission = savefile1.data.mission; geffects = savefile1.data.geffects; ogversion = savefile1.data.ogversion; lsavefile1 = 0; } if (ssavefile1 == 1) { trace('saved'); savefile1.data.upK = upK; savefile1.data.downK = downK; savefile1.data.leftK = leftK; savefile1.data.rightK = rightK; savefile1.data.afterburnerK = afterburnerK; savefile1.data.auxpowersK = auxpowersK; savefile1.data.sfireK = sfireK; savefile1.data.jumpK = jumpK; savefile1.data.interactK = interactK; savefile1.data.pname = pname; savefile1.data.prank = prank; savefile1.data.mission = mission; savefile1.data.g1 = g1; savefile1.data.g2 = g2; savefile1.data.g3 = g3; savefile1.data.g4 = g4; savefile1.data.m1 = m1; savefile1.data.m2 = m2; savefile1.data.m3 = m3; savefile1.data.m4 = m4; savefile1.data.thrust = thrust; savefile1.data.phandling = phandling; savefile1.data.pthrust = pthrust; savefile1.data.prthrust = prthrust; savefile1.data.pwdamage = pwdamage; savefile1.data.pwcooldown = pwcooldown; savefile1.data.ewdamage = ewdamage; savefile1.data.pweapon = pweapon; savefile1.data.pchp = pchp; savefile1.data.pmhp = pmhp; savefile1.data.powerlevel = powerlevel; savefile1.data.spower = spower; savefile1.data.spowerspeed = spowerspeed; savefile1.data.penr = penr; savefile1.data.pme = pme; savefile1.data.pce = pce; savefile1.data.pmoney = pmoney; savefile1.data.pshield = pshields; savefile1.data.pmshields = pmshields; savefile1.data.pms = pms; savefile1.data.pws1 = pws1; savefile1.data.pws2 = pws2; savefile1.data.pws3 = pws3; savefile1.data.pws4 = pws4; savefile1.data.lasersi = lasersi; savefile1.data.lasersii = lasersii; savefile1.data.lasersiii = lasersiii; savefile1.data.missilei = missilei; savefile1.data.missileii = missileii; savefile1.data.missileiii = missileiii; savefile1.data.streakeri = streakeri; savefile1.data.streakerii = streakerii; savefile1.data.streakeriii = streakeriii; savefile1.data.cmi = cmi; savefile1.data.cmii = cmii; savefile1.data.cmiii = cmiii; savefile1.data.pulsari = pulsari; savefile1.data.pulsarii = pulsarii; savefile1.data.pulsariii = pulsariii; savefile1.data.bati = bati; savefile1.data.batii = batii; savefile1.data.batiii = batiii; savefile1.data.mod1 = mod1; savefile1.data.mod2 = mod2; savefile1.data.mod3 = mod3; savefile1.data.mod4 = mod4; savefile1.data.mod5 = mod5; savefile1.data.mod6 = mod6; savefile1.data.mod7 = mod7; savefile1.data.mod8 = mod8; savefile1.data.mod9 = mod9; savefile1.data.mod10 = mod10; savefile1.data.mod11 = mod11; savefile1.data.mod12 = mod12; savefile1.data.mod13 = mod13; savefile1.data.mod14 = mod14; savefile1.data.mod15 = mod15; savefile1.data.mod16 = mod16; savefile1.data.mod17 = mod17; savefile1.data.mod18 = mod18; savefile1.data.mod19 = mod19; savefile1.data.mod20 = mod20; savefile1.data.mod21 = mod21; savefile1.data.mod22 = mod22; savefile1.data.mod23 = mod23; savefile1.data.mod24 = mod24; savefile1.data.mod25 = mod25; savefile1.data.mod26 = mod26; savefile1.data.mod27 = mod27; savefile1.data.mod28 = mod28; savefile1.data.mod29 = mod29; savefile1.data.mod30 = mod30; savefile1.data.mod31 = mod31; savefile1.data.mod32 = mod32; savefile1.data.mod33 = mod33; savefile1.data.mod34 = mod34; savefile1.data.mod35 = mod35; savefile1.data.mod36 = mod36; savefile1.data.mod37 = mod37; savefile1.data.mod38 = mod38; savefile1.data.mod39 = mod39; savefile1.data.mod40 = mod40; savefile1.data.geffects = geffects; savefile1.data.gversion = ogversion; savefile1.flush(); ssavefile1 = 0; } if (lsavefile2 == 1) { game.gotoAndStop('gload'); upK = savefile2.data.upK; downK = savefile2.data.downK; leftK = savefile2.data.leftK; rightK = savefile2.data.rightK; afterburnerK = savefile2.data.afterburnerK; auxpowersK = savefile2.data.auxpowersK; sfireK = savefile2.data.sfireK; jumpK = savefile2.data.jumpK; interactK = savefile2.data.interactK; pname = savefile2.data.pname; prank = savefile2.data.prank; g1 = savefile2.data.g1; g2 = savefile2.data.g2; g3 = savefile2.data.g3; g4 = savefile2.data.g4; m1 = savefile2.data.m1; m2 = savefile2.data.m2; m3 = savefile2.data.m3; m4 = savefile2.data.m4; thrust = savefile2.data.thrust; phandling = savefile2.data.phandling; pthrust = savefile2.data.pthrust; prthrust = savefile2.data.prthrust; pwdamage = savefile2.data.pwdamage; pwcooldown = savefile2.data.pwcooldown; ewdamage = savefile2.data.ewdamage; pweapon = savefile2.data.pweapon; pchp = savefile2.data.pchp; pmhp = savefile2.data.pmhp; powerlevel = savefile2.data.powerlevel; spower = savefile2.data.spower; spowerspeed = savefile2.data.spowerspeed; penr = savefile2.data.penr; pme = savefile2.data.pme; pce = savefile2.data.pce; pmoney = savefile2.data.pmoney; pshields = savefile2.data.pshield; pmshields = savefile2.data.pmshields; pms = savefile2.data.pms; pws1 = savefile2.data.pws1; pws2 = savefile2.data.pws2; pws3 = savefile2.data.pws3; pws4 = savefile2.data.pws4; lasersi = savefile2.data.lasersi; lasersii = savefile2.data.lasersii; lasersiii = savefile2.data.lasersiii; missilei = savefile2.data.missilei; missileii = savefile2.data.missileii; missileiii = savefile2.data.missileiii; streakeri = savefile2.data.streakeri; streakerii = savefile2.data.streakerii; streakeriii = savefile2.data.streakeriii; cmi = savefile2.data.cmi; cmii = savefile2.data.cmii; cmiii = savefile2.data.cmiii; pulsari = savefile2.data.pulsari; pulsarii = savefile2.data.pulsarii; pulsariii = savefile2.data.pulsariii; bati = savefile2.data.bati; batii = savefile2.data.batii; batiii = savefile2.data.batiii; mod1 = savefile2.data.mod1; mod2 = savefile2.data.mod2; mod3 = savefile2.data.mod3; mod4 = savefile2.data.mod4; mod5 = savefile2.data.mod5; mod6 = savefile2.data.mod6; mod7 = savefile2.data.mod7; mod8 = savefile2.data.mod8; mod9 = savefile2.data.mod9; mod10 = savefile2.data.mod10; mod11 = savefile2.data.mod11; mod12 = savefile2.data.mod12; mod13 = savefile2.data.mod13; mod14 = savefile2.data.mod14; mod15 = savefile2.data.mod15; mod16 = savefile2.data.mod16; mod17 = savefile2.data.mod17; mod18 = savefile2.data.mod18; mod19 = savefile2.data.mod19; mod20 = savefile2.data.mod20; mod21 = savefile2.data.mod21; mod22 = savefile2.data.mod22; mod23 = savefile2.data.mod23; mod24 = savefile2.data.mod24; mod25 = savefile2.data.mod25; mod26 = savefile2.data.mod26; mod27 = savefile2.data.mod27; mod28 = savefile2.data.mod28; mod29 = savefile2.data.mod29; mod30 = savefile2.data.mod30; mod31 = savefile2.data.mod31; mod32 = savefile2.data.mod32; mod33 = savefile2.data.mod33; mod34 = savefile2.data.mod34; mod35 = savefile2.data.mod35; mod36 = savefile2.data.mod36; mod37 = savefile2.data.mod37; mod38 = savefile2.data.mod38; mod39 = savefile2.data.mod39; mod40 = savefile2.data.mod40; mission = savefile2.data.mission; geffects = savefile2.data.geffects; ogversion = savefile2.data.ogversion; lsavefile2 = 0; } if (ssavefile2 == 1) { savefile2.data.upK = upK; savefile2.data.downK = downK; savefile2.data.leftK = leftK; savefile2.data.rightK = rightK; savefile2.data.afterburnerK = afterburnerK; savefile2.data.auxpowersK = auxpowersK; savefile2.data.sfireK = sfireK; savefile2.data.jumpK = jumpK; savefile2.data.interactK = interactK; savefile2.data.pname = pname; savefile2.data.prank = prank; savefile2.data.mission = mission; savefile2.data.g1 = g1; savefile2.data.g2 = g2; savefile2.data.g3 = g3; savefile2.data.g4 = g4; savefile2.data.m1 = m1; savefile2.data.m2 = m2; savefile2.data.m3 = m3; savefile2.data.m4 = m4; savefile2.data.thrust = thrust; savefile2.data.phandling = phandling; savefile2.data.pthrust = pthrust; savefile2.data.prthrust = prthrust; savefile2.data.pwdamage = pwdamage; savefile2.data.pwcooldown = pwcooldown; savefile2.data.ewdamage = ewdamage; savefile2.data.pweapon = pweapon; savefile2.data.pchp = pchp; savefile2.data.pmhp = pmhp; savefile2.data.powerlevel = powerlevel; savefile2.data.spower = spower; savefile2.data.spowerspeed = spowerspeed; savefile2.data.penr = penr; savefile2.data.pme = pme; savefile2.data.pce = pce; savefile2.data.pmoney = pmoney; savefile2.data.pshield = pshields; savefile2.data.pmshields = pmshields; savefile2.data.pms = pms; savefile2.data.pws1 = pws1; savefile2.data.pws2 = pws2; savefile2.data.pws3 = pws3; savefile2.data.pws4 = pws4; savefile2.data.lasersi = lasersi; savefile2.data.lasersii = lasersii; savefile2.data.lasersiii = lasersiii; savefile2.data.missilei = missilei; savefile2.data.missileii = missileii; savefile2.data.missileiii = missileiii; savefile2.data.streakeri = streakeri; savefile2.data.streakerii = streakerii; savefile2.data.streakeriii = streakeriii; savefile2.data.cmi = cmi; savefile2.data.cmii = cmii; savefile2.data.cmiii = cmiii; savefile2.data.pulsari = pulsari; savefile2.data.pulsarii = pulsarii; savefile2.data.pulsariii = pulsariii; savefile2.data.bati = bati; savefile2.data.batii = batii; savefile2.data.batiii = batiii; savefile2.data.mod1 = mod1; savefile2.data.mod2 = mod2; savefile2.data.mod3 = mod3; savefile2.data.mod4 = mod4; savefile2.data.mod5 = mod5; savefile2.data.mod6 = mod6; savefile2.data.mod7 = mod7; savefile2.data.mod8 = mod8; savefile2.data.mod9 = mod9; savefile2.data.mod10 = mod10; savefile2.data.mod11 = mod11; savefile2.data.mod12 = mod12; savefile2.data.mod13 = mod13; savefile2.data.mod14 = mod14; savefile2.data.mod15 = mod15; savefile2.data.mod16 = mod16; savefile2.data.mod17 = mod17; savefile2.data.mod18 = mod18; savefile2.data.mod19 = mod19; savefile2.data.mod20 = mod20; savefile2.data.mod21 = mod21; savefile2.data.mod22 = mod22; savefile2.data.mod23 = mod23; savefile2.data.mod24 = mod24; savefile2.data.mod25 = mod25; savefile2.data.mod26 = mod26; savefile2.data.mod27 = mod27; savefile2.data.mod28 = mod28; savefile2.data.mod29 = mod29; savefile2.data.mod30 = mod30; savefile2.data.mod31 = mod31; savefile2.data.mod32 = mod32; savefile2.data.mod33 = mod33; savefile2.data.mod34 = mod34; savefile2.data.mod35 = mod35; savefile2.data.mod36 = mod36; savefile2.data.mod37 = mod37; savefile2.data.mod38 = mod38; savefile2.data.mod39 = mod39; savefile2.data.mod40 = mod40; savefile2.data.geffects = geffects; savefile2.data.gversion = ogversion; savefile2.flush(); ssavefile2 = 0; } if (lsavefile3 == 1) { game.gotoAndStop('gload'); upK = savefile3.data.upK; downK = savefile3.data.downK; leftK = savefile3.data.leftK; rightK = savefile3.data.rightK; afterburnerK = savefile3.data.afterburnerK; auxpowersK = savefile3.data.auxpowersK; sfireK = savefile3.data.sfireK; jumpK = savefile3.data.jumpK; interactK = savefile3.data.interactK; pname = savefile3.data.pname; prank = savefile3.data.prank; g1 = savefile3.data.g1; g2 = savefile3.data.g2; g3 = savefile3.data.g3; g4 = savefile3.data.g4; m1 = savefile3.data.m1; m2 = savefile3.data.m2; m3 = savefile3.data.m3; m4 = savefile3.data.m4; thrust = savefile3.data.thrust; phandling = savefile3.data.phandling; pthrust = savefile3.data.pthrust; prthrust = savefile3.data.prthrust; pwdamage = savefile3.data.pwdamage; pwcooldown = savefile3.data.pwcooldown; ewdamage = savefile3.data.ewdamage; pweapon = savefile3.data.pweapon; pchp = savefile3.data.pchp; pmhp = savefile3.data.pmhp; powerlevel = savefile3.data.powerlevel; spower = savefile3.data.spower; spowerspeed = savefile3.data.spowerspeed; penr = savefile3.data.penr; pme = savefile3.data.pme; pce = savefile3.data.pce; pmoney = savefile3.data.pmoney; pshields = savefile3.data.pshield; pmshields = savefile3.data.pmshields; pms = savefile3.data.pms; pws1 = savefile3.data.pws1; pws2 = savefile3.data.pws2; pws3 = savefile3.data.pws3; pws4 = savefile3.data.pws4; lasersi = savefile3.data.lasersi; lasersii = savefile3.data.lasersii; lasersiii = savefile3.data.lasersiii; missilei = savefile3.data.missilei; missileii = savefile3.data.missileii; missileiii = savefile3.data.missileiii; streakeri = savefile3.data.streakeri; streakerii = savefile3.data.streakerii; streakeriii = savefile3.data.streakeriii; cmi = savefile3.data.cmi; cmii = savefile3.data.cmii; cmiii = savefile3.data.cmiii; pulsari = savefile3.data.pulsari; pulsarii = savefile3.data.pulsarii; pulsariii = savefile3.data.pulsariii; bati = savefile3.data.bati; batii = savefile3.data.batii; batiii = savefile3.data.batiii; mod1 = savefile3.data.mod1; mod2 = savefile3.data.mod2; mod3 = savefile3.data.mod3; mod4 = savefile3.data.mod4; mod5 = savefile3.data.mod5; mod6 = savefile3.data.mod6; mod7 = savefile3.data.mod7; mod8 = savefile3.data.mod8; mod9 = savefile3.data.mod9; mod10 = savefile3.data.mod10; mod11 = savefile3.data.mod11; mod12 = savefile3.data.mod12; mod13 = savefile3.data.mod13; mod14 = savefile3.data.mod14; mod15 = savefile3.data.mod15; mod16 = savefile3.data.mod16; mod17 = savefile3.data.mod17; mod18 = savefile3.data.mod18; mod19 = savefile3.data.mod19; mod20 = savefile3.data.mod20; mod21 = savefile3.data.mod21; mod22 = savefile3.data.mod22; mod23 = savefile3.data.mod23; mod24 = savefile3.data.mod24; mod25 = savefile3.data.mod25; mod26 = savefile3.data.mod26; mod27 = savefile3.data.mod27; mod28 = savefile3.data.mod28; mod29 = savefile3.data.mod29; mod30 = savefile3.data.mod30; mod31 = savefile3.data.mod31; mod32 = savefile3.data.mod32; mod33 = savefile3.data.mod33; mod34 = savefile3.data.mod34; mod35 = savefile3.data.mod35; mod36 = savefile3.data.mod36; mod37 = savefile3.data.mod37; mod38 = savefile3.data.mod38; mod39 = savefile3.data.mod39; mod40 = savefile3.data.mod40; mission = savefile3.data.mission; geffects = savefile3.data.geffects; ogversion = savefile3.data.ogversion; lsavefile3 = 0; } if (ssavefile3 == 1) { savefile3.data.upK = upK; savefile3.data.downK = downK; savefile3.data.leftK = leftK; savefile3.data.rightK = rightK; savefile3.data.afterburnerK = afterburnerK; savefile3.data.auxpowersK = auxpowersK; savefile3.data.sfireK = sfireK; savefile3.data.jumpK = jumpK; savefile3.data.interactK = interactK; savefile3.data.pname = pname; savefile3.data.prank = prank; savefile3.data.mission = mission; savefile3.data.g1 = g1; savefile3.data.g2 = g2; savefile3.data.g3 = g3; savefile3.data.g4 = g4; savefile3.data.m1 = m1; savefile3.data.m2 = m2; savefile3.data.m3 = m3; savefile3.data.m4 = m4; savefile3.data.thrust = thrust; savefile3.data.phandling = phandling; savefile3.data.pthrust = pthrust; savefile3.data.prthrust = prthrust; savefile3.data.pwdamage = pwdamage; savefile3.data.pwcooldown = pwcooldown; savefile3.data.ewdamage = ewdamage; savefile3.data.pweapon = pweapon; savefile3.data.pchp = pchp; savefile3.data.pmhp = pmhp; savefile3.data.powerlevel = powerlevel; savefile3.data.spower = spower; savefile3.data.spowerspeed = spowerspeed; savefile3.data.penr = penr; savefile3.data.pme = pme; savefile3.data.pce = pce; savefile3.data.pmoney = pmoney; savefile3.data.pshield = pshields; savefile3.data.pmshields = pmshields; savefile3.data.pms = pms; savefile3.data.pws1 = pws1; savefile3.data.pws2 = pws2; savefile3.data.pws3 = pws3; savefile3.data.pws4 = pws4; savefile3.data.lasersi = lasersi; savefile3.data.lasersii = lasersii; savefile3.data.lasersiii = lasersiii; savefile3.data.missilei = missilei; savefile3.data.missileii = missileii; savefile3.data.missileiii = missileiii; savefile3.data.streakeri = streakeri; savefile3.data.streakerii = streakerii; savefile3.data.streakeriii = streakeriii; savefile3.data.cmi = cmi; savefile3.data.cmii = cmii; savefile3.data.cmiii = cmiii; savefile3.data.pulsari = pulsari; savefile3.data.pulsarii = pulsarii; savefile3.data.pulsariii = pulsariii; savefile3.data.bati = bati; savefile3.data.batii = batii; savefile3.data.batiii = batiii; savefile3.data.mod1 = mod1; savefile3.data.mod2 = mod2; savefile3.data.mod3 = mod3; savefile3.data.mod4 = mod4; savefile3.data.mod5 = mod5; savefile3.data.mod6 = mod6; savefile3.data.mod7 = mod7; savefile3.data.mod8 = mod8; savefile3.data.mod9 = mod9; savefile3.data.mod10 = mod10; savefile3.data.mod11 = mod11; savefile3.data.mod12 = mod12; savefile3.data.mod13 = mod13; savefile3.data.mod14 = mod14; savefile3.data.mod15 = mod15; savefile3.data.mod16 = mod16; savefile3.data.mod17 = mod17; savefile3.data.mod18 = mod18; savefile3.data.mod19 = mod19; savefile3.data.mod20 = mod20; savefile3.data.mod21 = mod21; savefile3.data.mod22 = mod22; savefile3.data.mod23 = mod23; savefile3.data.mod24 = mod24; savefile3.data.mod25 = mod25; savefile3.data.mod26 = mod26; savefile3.data.mod27 = mod27; savefile3.data.mod28 = mod28; savefile3.data.mod29 = mod29; savefile3.data.mod30 = mod30; savefile3.data.mod31 = mod31; savefile3.data.mod32 = mod32; savefile3.data.mod33 = mod33; savefile3.data.mod34 = mod34; savefile3.data.mod35 = mod35; savefile3.data.mod36 = mod36; savefile3.data.mod37 = mod37; savefile3.data.mod38 = mod38; savefile3.data.mod39 = mod39; savefile3.data.mod40 = mod40; savefile3.data.geffects = geffects; savefile3.data.gversion = ogversion; savefile3.flush(); ssavefile3 = 0; } if (quicksave == 1) { quicksavefile.data.upK = upK; quicksavefile.data.downK = downK; quicksavefile.data.leftK = leftK; quicksavefile.data.rightK = rightK; quicksavefile.data.afterburnerK = afterburnerK; quicksavefile.data.auxpowersK = auxpowersK; quicksavefile.data.sfireK = sfireK; quicksavefile.data.jumpK = jumpK; quicksavefile.data.interactK = interactK; quicksavefile.data.pname = pname; quicksavefile.data.prank = prank; quicksavefile.data.mission = mission; quicksavefile.data.g1 = g1; quicksavefile.data.g2 = g2; quicksavefile.data.g3 = g3; quicksavefile.data.g4 = g4; quicksavefile.data.m1 = m1; quicksavefile.data.m2 = m2; quicksavefile.data.m3 = m3; quicksavefile.data.m4 = m4; quicksavefile.data.thrust = thrust; quicksavefile.data.phandling = phandling; quicksavefile.data.pthrust = pthrust; quicksavefile.data.prthrust = prthrust; quicksavefile.data.pwdamage = pwdamage; quicksavefile.data.pwcooldown = pwcooldown; quicksavefile.data.ewdamage = ewdamage; quicksavefile.data.pweapon = pweapon; quicksavefile.data.pchp = pchp; quicksavefile.data.pmhp = pmhp; quicksavefile.data.powerlevel = powerlevel; quicksavefile.data.spower = spower; quicksavefile.data.spowerspeed = spowerspeed; quicksavefile.data.penr = penr; quicksavefile.data.pme = pme; quicksavefile.data.pce = pce; quicksavefile.data.pmoney = pmoney; quicksavefile.data.pshield = pshields; quicksavefile.data.pmshields = pmshields; quicksavefile.data.pms = pms; quicksavefile.data.pws1 = pws1; quicksavefile.data.pws2 = pws2; quicksavefile.data.pws3 = pws3; quicksavefile.data.pws4 = pws4; quicksavefile.data.lasersi = lasersi; quicksavefile.data.lasersii = lasersii; quicksavefile.data.lasersiii = lasersiii; quicksavefile.data.missilei = missilei; quicksavefile.data.missileii = missileii; quicksavefile.data.missileiii = missileiii; quicksavefile.data.streakeri = streakeri; quicksavefile.data.streakerii = streakerii; quicksavefile.data.streakeriii = streakeriii; quicksavefile.data.cmi = cmi; quicksavefile.data.cmii = cmii; quicksavefile.data.cmiii = cmiii; quicksavefile.data.pulsari = pulsari; quicksavefile.data.pulsarii = pulsarii; quicksavefile.data.pulsariii = pulsariii; quicksavefile.data.bati = bati; quicksavefile.data.batii = batii; quicksavefile.data.batiii = batiii; quicksavefile.data.mod1 = mod1; quicksavefile.data.mod2 = mod2; quicksavefile.data.mod3 = mod3; quicksavefile.data.mod4 = mod4; quicksavefile.data.mod5 = mod5; quicksavefile.data.mod6 = mod6; quicksavefile.data.mod7 = mod7; quicksavefile.data.mod8 = mod8; quicksavefile.data.mod9 = mod9; quicksavefile.data.mod10 = mod10; quicksavefile.data.mod11 = mod11; quicksavefile.data.mod12 = mod12; quicksavefile.data.mod13 = mod13; quicksavefile.data.mod14 = mod14; quicksavefile.data.mod15 = mod15; quicksavefile.data.mod16 = mod16; quicksavefile.data.mod17 = mod17; quicksavefile.data.mod18 = mod18; quicksavefile.data.mod19 = mod19; quicksavefile.data.mod20 = mod20; quicksavefile.data.mod21 = mod21; quicksavefile.data.mod22 = mod22; quicksavefile.data.mod23 = mod23; quicksavefile.data.mod24 = mod24; quicksavefile.data.mod25 = mod25; quicksavefile.data.mod26 = mod26; quicksavefile.data.mod27 = mod27; quicksavefile.data.mod28 = mod28; quicksavefile.data.mod29 = mod29; quicksavefile.data.mod30 = mod30; quicksavefile.data.mod31 = mod31; quicksavefile.data.mod32 = mod32; quicksavefile.data.mod33 = mod33; quicksavefile.data.mod34 = mod34; quicksavefile.data.mod35 = mod35; quicksavefile.data.mod36 = mod36; quicksavefile.data.mod37 = mod37; quicksavefile.data.mod38 = mod38; quicksavefile.data.mod39 = mod39; quicksavefile.data.mod40 = mod40; quicksavefile.data.geffects = geffects; quicksavefile.data.gversion = ogversion; quicksavefile.flush(); quicksave = 0; } }; } frame 4 { stop(); } movieClip 569 { } movieClip 570 { instance rt of movieClip 569 { onClipEvent (enterFrame) { _rotation = _rotation + _parent.rs; } onClipEvent (load) { _rotation = random(360); } } } movieClip 573 { frame 1 { onEnterFrame = function () { _xscale = dis; _yscale = dis; if (dis <= _parent.dis + 99) { if (_alpha < dis + _parent.dis) { _alpha = _alpha + 1; } if (_alpha > dis + _parent.dis) { _alpha = _alpha - 1; } } else { if (_alpha < dis + _parent.dis * -1) { _alpha = _alpha + 1; } if (_alpha > dis + _parent.dis * -1) { _alpha = _alpha - 1; } } }; } } movieClip 577 { } movieClip 578 { instance rt of movieClip 577 { onClipEvent (enterFrame) { _rotation = _rotation + _parent.rs; } onClipEvent (load) { _rotation = random(360); } } } movieClip 580 { instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } frame 154 { stop(); _parent.gotoAndStop(2); } } movieClip 582 { frame 1 { stop(); } frame 2 { i = 1; ++i; dis = 0; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = 150; this['l' + i]._y = 40; this['l' + i].dname = 'NewGame'; this['l' + i].dis = 55; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = -130; this['l' + i]._y = -10; this['l' + i].dname = 'Other'; this['l' + i].dis = 55; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i].dname = 'Sol'; this['l' + i].dis = 70; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = 130; this['l' + i]._y = -80; this['l' + i].dname = 'Wave Mode'; this['l' + i].dis = 50; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = -30; this['l' + i]._y = -70; this['l' + i].dname = 'SandBox Mode'; this['l' + i].dis = 40; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = 65; this['l' + i]._y = 54; this['l' + i].dname = 'Settings'; this['l' + i].dis = 50; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = 70; this['l' + i]._y = -20; this['l' + i].dname = 'Load Game'; this['l' + i].dis = 50; } } movieClip 584 { frame 1 { stop(); } instance map of movieClip 582 { onClipEvent (enterFrame) { rise = this._y - yt; run = this._x - xt; this._x -= run / 5; this._y -= rise / 5; } onClipEvent (load) { xt = 0; yt = 0; } } } movieClip 588 { } movieClip 589 { frame 5 { stop(); } } movieClip 590 { frame 5 { stop(); } } button 593 { on (release) { _parent.mastersave = savefile; _parent.gotoAndStop(36); } } button 597 { on (release) { _root['l' + savefile] = 1; _root.mastersave = savefile; _parent.gotoAndPlay(37); } } movieClip 598 { frame 10 { stop(); } } button 601 { on (release, keyPress '<Enter>') { if (name_txt.text == 'Empty' or name_txt.text == '' or name_txt.text == ' ') { warning = 'Cant be Empty'; } else { trace(name_txt.text); _root.pname = name_txt.text; _root['s' + mastersave] = 1; gotoAndPlay(19); } } } movieClip 604 { instance savefile1 of movieClip 598 { onClipEvent (enterFrame) { if (_root.savefile1.data.pname == undefined) { pname = 'Empty'; gotoAndStop(1); } else { pname = _root.savefile1.data.prank + '\n' + _root.savefile1.data.pname; } savefile = 'savefile1'; } } instance of movieClip 598 { onClipEvent (enterFrame) { if (_root.savefile2.data.pname == undefined) { pname = 'Empty'; gotoAndStop(1); } else { pname = _root.savefile2.data.prank + '\n' + _root.savefile2.data.pname; } savefile = 'savefile2'; } } instance of movieClip 598 { onClipEvent (enterFrame) { if (_root.savefile3.data.pname == undefined) { pname = 'Empty'; gotoAndStop(1); } else { pname = _root.savefile3.data.prank + '\n' + _root.savefile3.data.pname; } savefile = 'savefile3'; } } frame 35 { stop(); } instance savefile1 of movieClip 598 { onClipEvent (enterFrame) { if (_root.savefile1.data.pname == undefined) { pname = 'Empty'; gotoAndStop(1); } else { pname = _root.savefile1.data.prank + '\n' + _root.savefile1.data.pname; } savefile = 'savefile1'; } } frame 55 { _parent.gotoAndStop('mainmenu'); } } movieClip 606 { frame 1 { stop(); } frame 16 { gotoAndStop(1); } } frame 5 { game.gotoAndStop('gload'); trace('Loaded'); upK = _root[mastersave].data.upK; downK = _root[mastersave].data.downK; leftK = _root[mastersave].data.leftK; rightK = _root[mastersave].data.rightK; afterburnerK = _root[mastersave].data.afterburnerK; auxpowersK = _root[mastersave].data.auxpowersK; sfireK = _root[mastersave].data.sfireK; jumpK = _root[mastersave].data.jumpK; interactK = _root[mastersave].data.interactK; pname = _root[mastersave].data.pname; prank = _root[mastersave].data.prank; trace(pname + mission); g1 = _root[mastersave].data.g1; g2 = _root[mastersave].data.g2; g3 = _root[mastersave].data.g3; g4 = _root[mastersave].data.g4; m1 = _root[mastersave].data.m1; m2 = _root[mastersave].data.m2; m3 = _root[mastersave].data.m3; m4 = _root[mastersave].data.m4; thrust = _root[mastersave].data.thrust; phandling = _root[mastersave].data.phandling; pthrust = _root[mastersave].data.pthrust; prthrust = _root[mastersave].data.prthrust; pwdamage = _root[mastersave].data.pwdamage; pwcooldown = _root[mastersave].data.pwcooldown; ewdamage = _root[mastersave].data.ewdamage; pweapon = _root[mastersave].data.pweapon; pchp = _root[mastersave].data.pchp; pmhp = _root[mastersave].data.pmhp; powerlevel = _root[mastersave].data.powerlevel; spower = _root[mastersave].data.spower; spowerspeed = _root[mastersave].data.spowerspeed; penr = _root[mastersave].data.penr; pme = _root[mastersave].data.pme; pce = _root[mastersave].data.pce; pmoney = _root[mastersave].data.pmoney; pshields = _root[mastersave].data.pshield; pmshields = _root[mastersave].data.pmshields; pms = _root[mastersave].data.pms; pws1 = _root[mastersave].data.pws1; pws2 = _root[mastersave].data.pws2; pws3 = _root[mastersave].data.pws3; pws4 = _root[mastersave].data.pws4; lasersi = _root[mastersave].data.lasersi; lasersii = _root[mastersave].data.lasersii; lasersiii = _root[mastersave].data.lasersiii; missilei = _root[mastersave].data.missilei; missileii = _root[mastersave].data.missileii; missileiii = _root[mastersave].data.missileiii; streakeri = _root[mastersave].data.streakeri; streakerii = _root[mastersave].data.streakerii; streakeriii = _root[mastersave].data.streakeriii; cmi = _root[mastersave].data.cmi; cmii = _root[mastersave].data.cmii; cmiii = _root[mastersave].data.cmiii; pulsari = _root[mastersave].data.pulsari; pulsarii = _root[mastersave].data.pulsarii; pulsariii = _root[mastersave].data.pulsariii; bati = _root[mastersave].data.bati; batii = _root[mastersave].data.batii; batiii = _root[mastersave].data.batiii; mod1 = _root[mastersave].data.mod1; mod2 = _root[mastersave].data.mod2; mod3 = _root[mastersave].data.mod3; mod4 = _root[mastersave].data.mod4; mod5 = _root[mastersave].data.mod5; mod6 = _root[mastersave].data.mod6; mod7 = _root[mastersave].data.mod7; mod8 = _root[mastersave].data.mod8; mod9 = _root[mastersave].data.mod9; mod10 = _root[mastersave].data.mod10; mod11 = _root[mastersave].data.mod11; mod12 = _root[mastersave].data.mod12; mod13 = _root[mastersave].data.mod13; mod14 = _root[mastersave].data.mod14; mod15 = _root[mastersave].data.mod15; mod16 = _root[mastersave].data.mod16; mod17 = _root[mastersave].data.mod17; mod18 = _root[mastersave].data.mod18; mod19 = _root[mastersave].data.mod19; mod20 = _root[mastersave].data.mod20; mod21 = _root[mastersave].data.mod21; mod22 = _root[mastersave].data.mod22; mod23 = _root[mastersave].data.mod23; mod24 = _root[mastersave].data.mod24; mod25 = _root[mastersave].data.mod25; mod26 = _root[mastersave].data.mod26; mod27 = _root[mastersave].data.mod27; mod28 = _root[mastersave].data.mod28; mod29 = _root[mastersave].data.mod29; mod30 = _root[mastersave].data.mod30; mod31 = _root[mastersave].data.mod31; mod32 = _root[mastersave].data.mod32; mod33 = _root[mastersave].data.mod33; mod34 = _root[mastersave].data.mod34; mod35 = _root[mastersave].data.mod35; mod36 = _root[mastersave].data.mod36; mod37 = _root[mastersave].data.mod37; mod38 = _root[mastersave].data.mod38; mod39 = _root[mastersave].data.mod39; mod40 = _root[mastersave].data.mod40; mission = _root[mastersave].data.mission; geffects = _root[mastersave].data.geffects; ogversion = _root[mastersave].data.ogversion; lsavefile = 0; } frame 5 { trace(mission); } button 607 { on (release) { if (_root.mission == 1) { stopAllSounds(); _parent.nextFrame(); } } on (rollOver) { c._alpha = 50; o._alpha = 10; m._alpha = 10; loadBar.yt = 177.5; map.map.xt = -565; map.map.yt = -155; } } button 608 { on (rollOver) { c._alpha = 50; o._alpha = 10; m._alpha = 10; loadBar.yt = 210; map.map.xt = -260; map.map.yt = 75; } on (release) { if (_root.mission == 1) { } else { stopAllSounds(); _root.gotoAndStop('game'); } } } button 609 { on (rollOver) { c._alpha = 10; o._alpha = 10; m._alpha = 50; loadBar.yt = 242; map.map.xt = -490; map.map.yt = 300; } on (release) { if (_root.misson >= 3) { _root.playwave = 1; stopAllSounds(); _root.gotoAndStop('game'); } } } button 610 { on (rollOver) { c._alpha = 10; o._alpha = 10; m._alpha = 50; loadBar.yt = 275; map.map.xt = 115; map.map.yt = 260; } on (release) { if (_root.mission >= 3) { _root.playsand = 1; stopAllSounds(); _root.gotoAndStop('game'); } } } button 611 { on (rollOver) { c._alpha = 10; o._alpha = 50; m._alpha = 10; loadBar.yt = 306; map.map.xt = -240; map.map.yt = -210; } on (release) { gotoAndStop(44); } } button 612 { on (rollOver) { c._alpha = 10; o._alpha = 50; m._alpha = 10; loadBar.yt = 340; } on (release) { getURL('http://armorgames.com/#!/?ref=blackknife', '_blank'); } } button 613 { on (release) { stopAllSounds(); _parent.prevFrame(); } } movieClip 619 { } button 627 { on (release) { getURL('http://armorgames.com/guide/operation-black-knife-guide', '_blank'); } } movieClip 629 { frame 15 { stop(); } } button 634 { on (release) { _quality = 'Medium'; } } button 635 { on (release) { _quality = 'Low'; } } button 636 { on (release) { _quality = 'High'; } } button 640 { on (release) { _root.geffects = 2; } } button 641 { on (release) { _root.geffects = 1; } } button 642 { on (release) { _root.geffects = 3; } } button 643 { on (release) { _root.difficulty = 1; } } button 644 { on (release) { _root.difficulty = 0.5; } } button 645 { on (release) { _root.difficulty = 2; } } button 649 { on (release) { gotoAndStop(2); } } button 651 { on (release) { gotoAndStop(3); } } button 653 { on (release) { _root.difficulty = 0.1; } on (rollOut) { dullspoon._alpha = 0; } on (rollOver) { dullspoon._alpha = 100; } } movieClip 659 { } button 661 { on (release) { gotoAndStop(1); } } movieClip 670 { } button 690 { on (release) { setNewKey.dname = 'Up'; setNewKey.nKey = _root.upK; setNewKey.gotoAndStop(2); } } button 694 { on (release) { setNewKey.dname = 'Down'; setNewKey.nKey = _root.downK; setNewKey.gotoAndStop(2); } } button 695 { on (release) { setNewKey.dname = 'Left'; setNewKey.nKey = _root.leftK; setNewKey.gotoAndStop(2); } } button 696 { on (release) { setNewKey.dname = 'Right'; setNewKey.nKey = _root.rightK; setNewKey.gotoAndStop(2); } } button 697 { on (release) { setNewKey.dname = 'Secondary Fire'; setNewKey.nKey = _root.sfireK; setNewKey.gotoAndStop(2); } } button 698 { on (release) { setNewKey.dname = 'Auxiliary Powers'; setNewKey.nKey = _root.auxpowersK; setNewKey.gotoAndStop(2); } } button 699 { on (release) { setNewKey.dname = 'Interact'; setNewKey.nKey = _root.interactK; setNewKey.gotoAndStop(2); } } button 700 { on (release) { setNewKey.dname = 'Jump'; setNewKey.nKey = _root.jumpK; setNewKey.gotoAndStop(2); } } button 701 { on (release) { setNewKey.dname = 'Afterburners'; setNewKey.nKey = _root.afterburnerK; setNewKey.gotoAndStop(2); } } button 707 { on (release) { _root['s' + _root.mastersave] = 1; if (dname == 'Up') { _root.upK = nKey; } if (dname == 'Down') { _root.downK = nKey; } if (dname == 'Left') { _root.leftK = nKey; } if (dname == 'Right') { _root.rightK = nKey; } if (dname == 'Secondary Fire') { _root.sfireK = nKey; } if (dname == 'Interact') { _root.interactK = nKey; } if (dname == 'Jump') { _root.jumpK = nKey; } if (dname == 'Auxiliary Powers') { _root.auxpowersK = nKey; } if (dname == 'Afterburners') { _root.afterburnerK = nKey; } gotoAndStop(1); } } button 709 { on (release) { gotoAndStop(1); } } movieClip 711 { frame 1 { stop(); } } movieClip 712 { frame 1 { stop(); onEnterFrame = function () { if (_root.geffects == 3) { e1_btn._alpha = 25; e2_btn._alpha = 25; e3_btn._alpha = 100; } if (_root.geffects == 2) { e1_btn._alpha = 25; e2_btn._alpha = 100; e3_btn._alpha = 25; } if (_root.geffects == 1) { e1_btn._alpha = 100; e2_btn._alpha = 25; e3_btn._alpha = 25; } if (_root.difficulty == 0.1) { d1_btn._alpha = 25; d2_btn._alpha = 25; d3_btn._alpha = 25; d0_btn._alpha = 100; } if (_root.difficulty == 0.5) { d1_btn._alpha = 100; d2_btn._alpha = 25; d3_btn._alpha = 25; d0_btn._alpha = 25; } if (_root.difficulty == 1) { d1_btn._alpha = 25; d2_btn._alpha = 100; d3_btn._alpha = 25; d0_btn._alpha = 25; } if (_root.difficulty == 2) { d1_btn._alpha = 25; d2_btn._alpha = 25; d3_btn._alpha = 100; d0_btn._alpha = 25; } if (_root._quality == 'LOW') { q1_btn._alpha = 100; q2_btn._alpha = 25; q3_btn._alpha = 25; } if (_root._quality == 'MEDIUM') { q1_btn._alpha = 25; q2_btn._alpha = 100; q3_btn._alpha = 25; } if (_root._quality == 'HIGH') { q1_btn._alpha = 25; q2_btn._alpha = 25; q3_btn._alpha = 100; } }; } instance dullspoon of movieClip 659 { onClipEvent (load) { startDrag('', true); } } frame 2 { gver = _root.gversion; System.security.allowDomain('games.lonewolfproductions.us'); System.security.allowInsecureDomain('games.lonewolfproductions.us'); myLoadVar = new LoadVars(); gv.loadMovie('http://games.lonewolfproductions.us/bkver.swf'); } frame 3 { onEnterFrame = function () { upK = _root.upK; downK = _root.downK; leftK = _root.leftK; rightK = _root.rightK; afterburnerK = _root.afterburnerK; auxpowersK = _root.auxpowersK; sfireK = _root.sfireK; jumpK = _root.jumpK; interactK = _root.interactK; if (upK == 13) { upKd = 'ENTER'; } if (upK == 16) { upKd = 'SHIFT'; } if (upK == 32) { upKd = 'SPACE'; } if (upK == 48) { upKd = '0'; } if (upK == 49) { upKd = '1'; } if (upK == 50) { upKd = '2'; } if (upK == 51) { upKd = '3'; } if (upK == 52) { upKd = '4'; } if (upK == 53) { upKd = '5'; } if (upK == 54) { upKd = '6'; } if (upK == 55) { upKd = '7'; } if (upK == 56) { upKd = '8'; } if (upK == 57) { upKd = '9'; } if (upK == 65) { upKd = 'A'; } if (upK == 66) { upKd = 'B'; } if (upK == 67) { upKd = 'C'; } if (upK == 68) { upKd = 'D'; } if (upK == 69) { upKd = 'E'; } if (upK == 70) { upKd = 'F'; } if (upK == 71) { upKd = 'G'; } if (upK == 72) { upKd = 'H'; } if (upK == 73) { upKd = 'I'; } if (upK == 74) { upKd = 'J'; } if (upK == 75) { upKd = 'K'; } if (upK == 76) { upKd = 'L'; } if (upK == 77) { upKd = 'M'; } if (upK == 78) { upKd = 'N'; } if (upK == 79) { upKd = 'O'; } if (upK == 80) { upKd = 'P'; } if (upK == 81) { upKd = 'Q'; } if (upK == 82) { upKd = 'R'; } if (upK == 83) { upKd = 'S'; } if (upK == 84) { upKd = 'T'; } if (upK == 85) { upKd = 'U'; } if (upK == 86) { upKd = 'V'; } if (upK == 87) { upKd = 'W'; } if (upK == 88) { upKd = 'X'; } if (upK == 89) { upKd = 'Y'; } if (upK == 90) { upKd = 'Z'; } if (downK == 13) { downKd = 'ENTER'; } if (downK == 16) { downKd = 'SHIFT'; } if (downK == 32) { downKd = 'SPACE'; } if (downK == 48) { downKd = '0'; } if (downK == 49) { downKd = '1'; } if (downK == 50) { downKd = '2'; } if (downK == 51) { downKd = '3'; } if (downK == 52) { downKd = '4'; } if (downK == 53) { downKd = '5'; } if (downK == 54) { downKd = '6'; } if (downK == 55) { downKd = '7'; } if (downK == 56) { downKd = '8'; } if (downK == 57) { downKd = '9'; } if (downK == 65) { downKd = 'A'; } if (downK == 66) { downKd = 'B'; } if (downK == 67) { downKd = 'C'; } if (downK == 68) { downKd = 'D'; } if (downK == 69) { downKd = 'E'; } if (downK == 70) { downKd = 'F'; } if (downK == 71) { downKd = 'G'; } if (downK == 72) { downKd = 'H'; } if (downK == 73) { downKd = 'I'; } if (downK == 74) { downKd = 'J'; } if (downK == 75) { downKd = 'K'; } if (downK == 76) { downKd = 'L'; } if (downK == 77) { downKd = 'M'; } if (downK == 78) { downKd = 'N'; } if (downK == 79) { downKd = 'O'; } if (downK == 80) { downKd = 'P'; } if (downK == 81) { downKd = 'Q'; } if (downK == 82) { downKd = 'R'; } if (downK == 83) { downKd = 'S'; } if (downK == 84) { downKd = 'T'; } if (downK == 85) { downKd = 'U'; } if (downK == 86) { downKd = 'V'; } if (downK == 87) { downKd = 'W'; } if (downK == 88) { downKd = 'X'; } if (downK == 89) { downKd = 'Y'; } if (downK == 90) { downKd = 'Z'; } if (leftK == 13) { leftKd = 'ENTER'; } if (leftK == 16) { leftKd = 'SHIFT'; } if (leftK == 32) { leftKd = 'SPACE'; } if (leftK == 48) { leftKd = '0'; } if (leftK == 49) { leftKd = '1'; } if (leftK == 50) { leftKd = '2'; } if (leftK == 51) { leftKd = '3'; } if (leftK == 52) { leftKd = '4'; } if (leftK == 53) { leftKd = '5'; } if (leftK == 54) { leftKd = '6'; } if (leftK == 55) { leftKd = '7'; } if (leftK == 56) { leftKd = '8'; } if (leftK == 57) { leftKd = '9'; } if (leftK == 65) { leftKd = 'A'; } if (leftK == 66) { leftKd = 'B'; } if (leftK == 67) { leftKd = 'C'; } if (leftK == 68) { leftKd = 'D'; } if (leftK == 69) { leftKd = 'E'; } if (leftK == 70) { leftKd = 'F'; } if (leftK == 71) { leftKd = 'G'; } if (leftK == 72) { leftKd = 'H'; } if (leftK == 73) { leftKd = 'I'; } if (leftK == 74) { leftKd = 'J'; } if (leftK == 75) { leftKd = 'K'; } if (leftK == 76) { leftKd = 'L'; } if (leftK == 77) { leftKd = 'M'; } if (leftK == 78) { leftKd = 'N'; } if (leftK == 79) { leftKd = 'O'; } if (leftK == 80) { leftKd = 'P'; } if (leftK == 81) { leftKd = 'Q'; } if (leftK == 82) { leftKd = 'R'; } if (leftK == 83) { leftKd = 'S'; } if (leftK == 84) { leftKd = 'T'; } if (leftK == 85) { leftKd = 'U'; } if (leftK == 86) { leftKd = 'V'; } if (leftK == 87) { leftKd = 'W'; } if (leftK == 88) { leftKd = 'X'; } if (leftK == 89) { leftKd = 'Y'; } if (leftK == 90) { leftKd = 'Z'; } if (rightK == 13) { rightKd = 'ENTER'; } if (rightK == 16) { rightKd = 'SHIFT'; } if (rightK == 32) { rightKd = 'SPACE'; } if (rightK == 48) { rightKd = '0'; } if (rightK == 49) { rightKd = '1'; } if (rightK == 50) { rightKd = '2'; } if (rightK == 51) { rightKd = '3'; } if (rightK == 52) { rightKd = '4'; } if (rightK == 53) { rightKd = '5'; } if (rightK == 54) { rightKd = '6'; } if (rightK == 55) { rightKd = '7'; } if (rightK == 56) { rightKd = '8'; } if (rightK == 57) { rightKd = '9'; } if (rightK == 65) { rightKd = 'A'; } if (rightK == 66) { rightKd = 'B'; } if (rightK == 67) { rightKd = 'C'; } if (rightK == 68) { rightKd = 'D'; } if (rightK == 69) { rightKd = 'E'; } if (rightK == 70) { rightKd = 'F'; } if (rightK == 71) { rightKd = 'G'; } if (rightK == 72) { rightKd = 'H'; } if (rightK == 73) { rightKd = 'I'; } if (rightK == 74) { rightKd = 'J'; } if (rightK == 75) { rightKd = 'K'; } if (rightK == 76) { rightKd = 'L'; } if (rightK == 77) { rightKd = 'M'; } if (rightK == 78) { rightKd = 'N'; } if (rightK == 79) { rightKd = 'O'; } if (rightK == 80) { rightKd = 'P'; } if (rightK == 81) { rightKd = 'Q'; } if (rightK == 82) { rightKd = 'R'; } if (rightK == 83) { rightKd = 'S'; } if (rightK == 84) { rightKd = 'T'; } if (rightK == 85) { rightKd = 'U'; } if (rightK == 86) { rightKd = 'V'; } if (rightK == 87) { rightKd = 'W'; } if (rightK == 88) { rightKd = 'X'; } if (rightK == 89) { rightKd = 'Y'; } if (rightK == 90) { rightKd = 'Z'; } if (afterburnerK == 13) { afterburnerKd = 'ENTER'; } if (afterburnerK == 16) { afterburnerKd = 'SHIFT'; } if (afterburnerK == 32) { afterburnerKd = 'SPACE'; } if (afterburnerK == 48) { afterburnerKd = '0'; } if (afterburnerK == 49) { afterburnerKd = '1'; } if (afterburnerK == 50) { afterburnerKd = '2'; } if (afterburnerK == 51) { afterburnerKd = '3'; } if (afterburnerK == 52) { afterburnerKd = '4'; } if (afterburnerK == 53) { afterburnerKd = '5'; } if (afterburnerK == 54) { afterburnerKd = '6'; } if (afterburnerK == 55) { afterburnerKd = '7'; } if (afterburnerK == 56) { afterburnerKd = '8'; } if (afterburnerK == 57) { afterburnerKd = '9'; } if (afterburnerK == 65) { afterburnerKd = 'A'; } if (afterburnerK == 66) { afterburnerKd = 'B'; } if (afterburnerK == 67) { afterburnerKd = 'C'; } if (afterburnerK == 68) { afterburnerKd = 'D'; } if (afterburnerK == 69) { afterburnerKd = 'E'; } if (afterburnerK == 70) { afterburnerKd = 'F'; } if (afterburnerK == 71) { afterburnerKd = 'G'; } if (afterburnerK == 72) { afterburnerKd = 'H'; } if (afterburnerK == 73) { afterburnerKd = 'I'; } if (afterburnerK == 74) { afterburnerKd = 'J'; } if (afterburnerK == 75) { afterburnerKd = 'K'; } if (afterburnerK == 76) { afterburnerKd = 'L'; } if (afterburnerK == 77) { afterburnerKd = 'M'; } if (afterburnerK == 78) { afterburnerKd = 'N'; } if (afterburnerK == 79) { afterburnerKd = 'O'; } if (afterburnerK == 80) { afterburnerKd = 'P'; } if (afterburnerK == 81) { afterburnerKd = 'Q'; } if (afterburnerK == 82) { afterburnerKd = 'R'; } if (afterburnerK == 83) { afterburnerKd = 'S'; } if (afterburnerK == 84) { afterburnerKd = 'T'; } if (afterburnerK == 85) { afterburnerKd = 'U'; } if (afterburnerK == 86) { afterburnerKd = 'V'; } if (afterburnerK == 87) { afterburnerKd = 'W'; } if (afterburnerK == 88) { afterburnerKd = 'X'; } if (afterburnerK == 89) { afterburnerKd = 'Y'; } if (afterburnerK == 90) { afterburnerKd = 'Z'; } if (auxpowersK == 13) { auxpowersKd = 'ENTER'; } if (auxpowersK == 16) { auxpowersKd = 'SHIFT'; } if (auxpowersK == 32) { auxpowersKd = 'SPACE'; } if (auxpowersK == 48) { auxpowersKd = '0'; } if (auxpowersK == 49) { auxpowersKd = '1'; } if (auxpowersK == 50) { auxpowersKd = '2'; } if (auxpowersK == 51) { auxpowersKd = '3'; } if (auxpowersK == 52) { auxpowersKd = '4'; } if (auxpowersK == 53) { auxpowersKd = '5'; } if (auxpowersK == 54) { auxpowersKd = '6'; } if (auxpowersK == 55) { auxpowersKd = '7'; } if (auxpowersK == 56) { auxpowersKd = '8'; } if (auxpowersK == 57) { auxpowersKd = '9'; } if (auxpowersK == 65) { auxpowersKd = 'A'; } if (auxpowersK == 66) { auxpowersKd = 'B'; } if (auxpowersK == 67) { auxpowersKd = 'C'; } if (auxpowersK == 68) { auxpowersKd = 'D'; } if (auxpowersK == 69) { auxpowersKd = 'E'; } if (auxpowersK == 70) { auxpowersKd = 'F'; } if (auxpowersK == 71) { auxpowersKd = 'G'; } if (auxpowersK == 72) { auxpowersKd = 'H'; } if (auxpowersK == 73) { auxpowersKd = 'I'; } if (auxpowersK == 74) { auxpowersKd = 'J'; } if (auxpowersK == 75) { auxpowersKd = 'K'; } if (auxpowersK == 76) { auxpowersKd = 'L'; } if (auxpowersK == 77) { auxpowersKd = 'M'; } if (auxpowersK == 78) { auxpowersKd = 'N'; } if (auxpowersK == 79) { auxpowersKd = 'O'; } if (auxpowersK == 80) { auxpowersKd = 'P'; } if (auxpowersK == 81) { auxpowersKd = 'Q'; } if (auxpowersK == 82) { auxpowersKd = 'R'; } if (auxpowersK == 83) { auxpowersKd = 'S'; } if (auxpowersK == 84) { auxpowersKd = 'T'; } if (auxpowersK == 85) { auxpowersKd = 'U'; } if (auxpowersK == 86) { auxpowersKd = 'V'; } if (auxpowersK == 87) { auxpowersKd = 'W'; } if (auxpowersK == 88) { auxpowersKd = 'X'; } if (auxpowersK == 89) { auxpowersKd = 'Y'; } if (auxpowersK == 90) { auxpowersKd = 'Z'; } if (sfireK == 13) { sfireKd = 'ENTER'; } if (sfireK == 16) { sfireKd = 'SHIFT'; } if (sfireK == 32) { sfireKd = 'SPACE'; } if (sfireK == 48) { sfireKd = '0'; } if (sfireK == 49) { sfireKd = '1'; } if (sfireK == 50) { sfireKd = '2'; } if (sfireK == 51) { sfireKd = '3'; } if (sfireK == 52) { sfireKd = '4'; } if (sfireK == 53) { sfireKd = '5'; } if (sfireK == 54) { sfireKd = '6'; } if (sfireK == 55) { sfireKd = '7'; } if (sfireK == 56) { sfireKd = '8'; } if (sfireK == 57) { sfireKd = '9'; } if (sfireK == 65) { sfireKd = 'A'; } if (sfireK == 66) { sfireKd = 'B'; } if (sfireK == 67) { sfireKd = 'C'; } if (sfireK == 68) { sfireKd = 'D'; } if (sfireK == 69) { sfireKd = 'E'; } if (sfireK == 70) { sfireKd = 'F'; } if (sfireK == 71) { sfireKd = 'G'; } if (sfireK == 72) { sfireKd = 'H'; } if (sfireK == 73) { sfireKd = 'I'; } if (sfireK == 74) { sfireKd = 'J'; } if (sfireK == 75) { sfireKd = 'K'; } if (sfireK == 76) { sfireKd = 'L'; } if (sfireK == 77) { sfireKd = 'M'; } if (sfireK == 78) { sfireKd = 'N'; } if (sfireK == 79) { sfireKd = 'O'; } if (sfireK == 80) { sfireKd = 'P'; } if (sfireK == 81) { sfireKd = 'Q'; } if (sfireK == 82) { sfireKd = 'R'; } if (sfireK == 83) { sfireKd = 'S'; } if (sfireK == 84) { sfireKd = 'T'; } if (sfireK == 85) { sfireKd = 'U'; } if (sfireK == 86) { sfireKd = 'V'; } if (sfireK == 87) { sfireKd = 'W'; } if (sfireK == 88) { sfireKd = 'X'; } if (sfireK == 89) { sfireKd = 'Y'; } if (sfireK == 90) { sfireKd = 'Z'; } if (jumpK == 13) { jumpKd = 'ENTER'; } if (jumpK == 16) { jumpKd = 'SHIFT'; } if (jumpK == 32) { jumpKd = 'SPACE'; } if (jumpK == 48) { jumpKd = '0'; } if (jumpK == 49) { jumpKd = '1'; } if (jumpK == 50) { jumpKd = '2'; } if (jumpK == 51) { jumpKd = '3'; } if (jumpK == 52) { jumpKd = '4'; } if (jumpK == 53) { jumpKd = '5'; } if (jumpK == 54) { jumpKd = '6'; } if (jumpK == 55) { jumpKd = '7'; } if (jumpK == 56) { jumpKd = '8'; } if (jumpK == 57) { jumpKd = '9'; } if (jumpK == 65) { jumpKd = 'A'; } if (jumpK == 66) { jumpKd = 'B'; } if (jumpK == 67) { jumpKd = 'C'; } if (jumpK == 68) { jumpKd = 'D'; } if (jumpK == 69) { jumpKd = 'E'; } if (jumpK == 70) { jumpKd = 'F'; } if (jumpK == 71) { jumpKd = 'G'; } if (jumpK == 72) { jumpKd = 'H'; } if (jumpK == 73) { jumpKd = 'I'; } if (jumpK == 74) { jumpKd = 'J'; } if (jumpK == 75) { jumpKd = 'K'; } if (jumpK == 76) { jumpKd = 'L'; } if (jumpK == 77) { jumpKd = 'M'; } if (jumpK == 78) { jumpKd = 'N'; } if (jumpK == 79) { jumpKd = 'O'; } if (jumpK == 80) { jumpKd = 'P'; } if (jumpK == 81) { jumpKd = 'Q'; } if (jumpK == 82) { jumpKd = 'R'; } if (jumpK == 83) { jumpKd = 'S'; } if (jumpK == 84) { jumpKd = 'T'; } if (jumpK == 85) { jumpKd = 'U'; } if (jumpK == 86) { jumpKd = 'V'; } if (jumpK == 87) { jumpKd = 'W'; } if (jumpK == 88) { jumpKd = 'X'; } if (jumpK == 89) { jumpKd = 'Y'; } if (jumpK == 90) { jumpKd = 'Z'; } if (interactK == 13) { interactKd = 'ENTER'; } if (interactK == 16) { interactKd = 'SHIFT'; } if (interactK == 32) { interactKd = 'SPACE'; } if (interactK == 48) { interactKd = '0'; } if (interactK == 49) { interactKd = '1'; } if (interactK == 50) { interactKd = '2'; } if (interactK == 51) { interactKd = '3'; } if (interactK == 52) { interactKd = '4'; } if (interactK == 53) { interactKd = '5'; } if (interactK == 54) { interactKd = '6'; } if (interactK == 55) { interactKd = '7'; } if (interactK == 56) { interactKd = '8'; } if (interactK == 57) { interactKd = '9'; } if (interactK == 65) { interactKd = 'A'; } if (interactK == 66) { interactKd = 'B'; } if (interactK == 67) { interactKd = 'C'; } if (interactK == 68) { interactKd = 'D'; } if (interactK == 69) { interactKd = 'E'; } if (interactK == 70) { interactKd = 'F'; } if (interactK == 71) { interactKd = 'G'; } if (interactK == 72) { interactKd = 'H'; } if (interactK == 73) { interactKd = 'I'; } if (interactK == 74) { interactKd = 'J'; } if (interactK == 75) { interactKd = 'K'; } if (interactK == 76) { interactKd = 'L'; } if (interactK == 77) { interactKd = 'M'; } if (interactK == 78) { interactKd = 'N'; } if (interactK == 79) { interactKd = 'O'; } if (interactK == 80) { interactKd = 'P'; } if (interactK == 81) { interactKd = 'Q'; } if (interactK == 82) { interactKd = 'R'; } if (interactK == 83) { interactKd = 'S'; } if (interactK == 84) { interactKd = 'T'; } if (interactK == 85) { interactKd = 'U'; } if (interactK == 86) { interactKd = 'V'; } if (interactK == 87) { interactKd = 'W'; } if (interactK == 88) { interactKd = 'X'; } if (interactK == 89) { interactKd = 'Y'; } if (interactK == 90) { interactKd = 'Z'; } }; } instance setNewKey of movieClip 711 { onClipEvent (enterFrame) { if (_currentframe == 2) { if (nKey == 13) { nKeyd = 'ENTER'; } if (nKey == 16) { nKeyd = 'SHIFT'; } if (nKey == 32) { nKeyd = 'SPACE'; } if (nKey == 48) { nKeyd = '0'; } if (nKey == 49) { nKeyd = '1'; } if (nKey == 50) { nKeyd = '2'; } if (nKey == 51) { nKeyd = '3'; } if (nKey == 52) { nKeyd = '4'; } if (nKey == 53) { nKeyd = '5'; } if (nKey == 54) { nKeyd = '6'; } if (nKey == 55) { nKeyd = '7'; } if (nKey == 56) { nKeyd = '8'; } if (nKey == 57) { nKeyd = '9'; } if (nKey == 65) { nKeyd = 'A'; } if (nKey == 66) { nKeyd = 'B'; } if (nKey == 67) { nKeyd = 'C'; } if (nKey == 68) { nKeyd = 'D'; } if (nKey == 69) { nKeyd = 'E'; } if (nKey == 70) { nKeyd = 'F'; } if (nKey == 71) { nKeyd = 'G'; } if (nKey == 72) { nKeyd = 'H'; } if (nKey == 73) { nKeyd = 'I'; } if (nKey == 74) { nKeyd = 'J'; } if (nKey == 75) { nKeyd = 'K'; } if (nKey == 76) { nKeyd = 'L'; } if (nKey == 77) { nKeyd = 'M'; } if (nKey == 78) { nKeyd = 'N'; } if (nKey == 79) { nKeyd = 'O'; } if (nKey == 80) { nKeyd = 'P'; } if (nKey == 81) { nKeyd = 'Q'; } if (nKey == 82) { nKeyd = 'R'; } if (nKey == 83) { nKeyd = 'S'; } if (nKey == 84) { nKeyd = 'T'; } if (nKey == 85) { nKeyd = 'U'; } if (nKey == 86) { nKeyd = 'V'; } if (nKey == 87) { nKeyd = 'W'; } if (nKey == 88) { nKeyd = 'X'; } if (nKey == 89) { nKeyd = 'Y'; } if (nKey == 90) { nKeyd = 'Z'; } if (Key.isDown(13)) { nKey = '13'; } if (Key.isDown(16)) { nKey = '16'; } if (Key.isDown(32)) { nKey = '32'; } if (Key.isDown(48)) { nKey = '48'; } if (Key.isDown(49)) { nKey = '49'; } if (Key.isDown(50)) { nKey = '50'; } if (Key.isDown(51)) { nKey = '51'; } if (Key.isDown(52)) { nKey = '52'; } if (Key.isDown(53)) { nKey = '53'; } if (Key.isDown(54)) { nKey = '54'; } if (Key.isDown(55)) { nKey = '55'; } if (Key.isDown(56)) { nKey = '56'; } if (Key.isDown(57)) { nKey = '57'; } if (Key.isDown(65)) { nKey = '65'; } if (Key.isDown(66)) { nKey = '66'; } if (Key.isDown(67)) { nKey = '67'; } if (Key.isDown(68)) { nKey = '68'; } if (Key.isDown(69)) { nKey = '69'; } if (Key.isDown(70)) { nKey = '70'; } if (Key.isDown(71)) { nKey = '71'; } if (Key.isDown(72)) { nKey = '72'; } if (Key.isDown(73)) { nKey = '73'; } if (Key.isDown(74)) { nKey = '74'; } if (Key.isDown(75)) { nKey = '75'; } if (Key.isDown(76)) { nKey = '76'; } if (Key.isDown(77)) { nKey = '77'; } if (Key.isDown(78)) { nKey = '78'; } if (Key.isDown(79)) { nKey = '79'; } if (Key.isDown(81)) { nKey = '81'; } if (Key.isDown(82)) { nKey = '82'; } if (Key.isDown(83)) { nKey = '83'; } if (Key.isDown(84)) { nKey = '84'; } if (Key.isDown(85)) { nKey = '85'; } if (Key.isDown(86)) { nKey = '86'; } if (Key.isDown(87)) { nKey = '87'; } if (Key.isDown(88)) { nKey = '88'; } if (Key.isDown(89)) { nKey = '89'; } if (Key.isDown(90)) { nKey = '90'; } } } } } movieClip 713 { frame 26 { if (_root.mission >= 3) { trace('nolol'); sand_btn._alpha = 100; wave_btn._alpha = 100; } else { trace('lol'); sand_btn._alpha = 20; wave_btn._alpha = 20; } if (_root.mission == 1) { newgame_btn._alpha = 100; cont_btn._alpha = 20; } else { newgame_btn._alpha = 20; cont_btn._alpha = 100; } } instance c of movieClip 619 { onClipEvent (load) { _alpha = 50; dis = 'Campaign'; } } instance m of movieClip 619 { onClipEvent (load) { _alpha = 10; dis = 'Quick Modes'; if (_root.mission < 3) { dis2 = 'Unlocked at Level 3'; } else { dis2 = 'Unlocked'; } } } instance o of movieClip 619 { onClipEvent (load) { _alpha = 10; dis = 'Other'; } } frame 34 { if (_root.mission >= 3) { trace('nolol'); sand_btn._alpha = 100; wave_btn._alpha = 100; } else { trace('lol'); sand_btn._alpha = 20; wave_btn._alpha = 20; } if (_root.mission == 1) { newgame_btn._alpha = 100; cont_btn._alpha = 20; } else { newgame_btn._alpha = 20; cont_btn._alpha = 100; } } instance c of movieClip 619 { onClipEvent (load) { _alpha = 50; dis = 'Campaign'; } } instance m of movieClip 619 { onClipEvent (load) { _alpha = 10; dis = 'Quick Modes'; if (_root.mission < 3) { dis2 = 'Unlocked at Level 3'; } else { dis2 = 'Unlocked'; } } } instance o of movieClip 619 { onClipEvent (load) { _alpha = 10; dis = 'Other'; } } frame 42 { stop(); if (_root.mission >= 3) { trace('nolol'); sand_btn._alpha = 100; wave_btn._alpha = 100; } else { trace('lol'); sand_btn._alpha = 20; wave_btn._alpha = 20; } if (_root.mission == 1) { newgame_btn._alpha = 100; cont_btn._alpha = 20; } else { newgame_btn._alpha = 20; cont_btn._alpha = 100; } } instance loadBar of movieClip 36 { onClipEvent (enterFrame) { rise = this._y - yt; this._y -= rise / 5; } } } instance of movieClip 713 { onClipEvent (enterFrame) { if (_root.upK == undefined) { _root.upK = 87; } if (_root.downK == undefined) { _root.downK = 83; } if (_root.leftK == undefined) { _root.leftK = 65; } if (_root.righK == undefined) { _root.righK = 68; } if (_root.afterburnerK == undefined) { _root.afterburnerK = 16; } if (_root.interactK == undefined) { _root.interactK = 69; } if (_root.jumpK == undefined) { _root.jumpK = 74; } if (_root.auxpowersK == undefined) { _root.auxpowersK = 67; } if (_root.sfireK == undefined) { _root.sfireK = 32; } } } frame 6 { stop(); cinemamode = 1; effectCounter = 40; objectCounter = 1; otherCounter = 101; trailCounter = 401; negCounter = -111; permCounter = 501; bmenu = 0; radarreset = 0; powerlevel = 100; plights = -1; enemyList = new Array(); allyList = new Array(); enemyListTemp = new Array(); allyListTemp = new Array(); graveYard = new Array(); me = 1; aioff = 0; failure = 0; reason4failure = 'Your Ugly'; scales = 3; sector = 'Wave Mode'; jzone = 'rt1'; gpause = 0; mission1 = 0; jsfkills = 0; save = 1; onEnterFrame = function () { if (_root.upK == undefined) { _root.upK = 87; } if (_root.downK == undefined) { _root.downK = 83; } if (_root.leftK == undefined) { _root.leftK = 65; } if (_root.righK == undefined) { _root.righK = 68; } if (_root.afterburnerK == undefined) { _root.afterburnerK = 16; } if (_root.interactK == undefined) { _root.interactK = 69; } if (_root.jumpK == undefined) { _root.jumpK = 74; } if (_root.auxpowersK == undefined) { _root.auxpowersK = 67; } if (_root.sfireK == undefined) { _root.sfireK = 32; } if (soundreset == 1) { trace('FUCK YOU GAME'); soundreset = 0; } if (gqload == 1) { trace('quickLoded'); game.gotoAndStop('gload'); upK = quicksavefile.data.upK; downK = quicksavefile.data.downK; leftK = quicksavefile.data.leftK; rightK = quicksavefile.data.rightK; afterburnerK = quicksavefile.data.afterburnerK; auxpowersK = quicksavefile.data.auxpowersK; sfireK = quicksavefile.data.sfireK; jumpK = quicksavefile.data.jumpK; interactK = quicksavefile.data.interactK; pname = quicksavefile.data.pname; prank = quicksavefile.data.prank; g1 = quicksavefile.data.g1; g2 = quicksavefile.data.g2; g3 = quicksavefile.data.g3; g4 = quicksavefile.data.g4; m1 = quicksavefile.data.m1; m2 = quicksavefile.data.m2; m3 = quicksavefile.data.m3; m4 = quicksavefile.data.m4; thrust = quicksavefile.data.thrust; phandling = quicksavefile.data.phandling; pthrust = quicksavefile.data.pthrust; prthrust = quicksavefile.data.prthrust; pwdamage = quicksavefile.data.pwdamage; pwcooldown = quicksavefile.data.pwcooldown; ewdamage = quicksavefile.data.ewdamage; pweapon = quicksavefile.data.pweapon; pchp = quicksavefile.data.pchp; pmhp = quicksavefile.data.pmhp; powerlevel = quicksavefile.data.powerlevel; spower = quicksavefile.data.spower; spowerspeed = quicksavefile.data.spowerspeed; penr = quicksavefile.data.penr; pme = quicksavefile.data.pme; pce = quicksavefile.data.pce; pmoney = quicksavefile.data.pmoney; pshields = quicksavefile.data.pshield; pmshields = quicksavefile.data.pmshields; pms = quicksavefile.data.pms; pws1 = quicksavefile.data.pws1; pws2 = quicksavefile.data.pws2; pws3 = quicksavefile.data.pws3; pws4 = quicksavefile.data.pws4; lasersi = quicksavefile.data.lasersi; lasersii = quicksavefile.data.lasersii; lasersiii = quicksavefile.data.lasersiii; missilei = quicksavefile.data.missilei; missileii = quicksavefile.data.missileii; missileiii = quicksavefile.data.missileiii; streakeri = quicksavefile.data.streakeri; streakerii = quicksavefile.data.streakerii; streakeriii = quicksavefile.data.streakeriii; cmi = quicksavefile.data.cmi; cmii = quicksavefile.data.cmii; cmiii = quicksavefile.data.cmiii; pulsari = quicksavefile.data.pulsari; pulsarii = quicksavefile.data.pulsarii; pulsariii = quicksavefile.data.pulsariii; bati = quicksavefile.data.bati; batii = quicksavefile.data.batii; batiii = quicksavefile.data.batiii; mod1 = quicksavefile.data.mod1; mod2 = quicksavefile.data.mod2; mod3 = quicksavefile.data.mod3; mod4 = quicksavefile.data.mod4; mod5 = quicksavefile.data.mod5; mod6 = quicksavefile.data.mod6; mod7 = quicksavefile.data.mod7; mod8 = quicksavefile.data.mod8; mod9 = quicksavefile.data.mod9; mod10 = quicksavefile.data.mod10; mod11 = quicksavefile.data.mod11; mod12 = quicksavefile.data.mod12; mod13 = quicksavefile.data.mod13; mod14 = quicksavefile.data.mod14; mod15 = quicksavefile.data.mod15; mod16 = quicksavefile.data.mod16; mod17 = quicksavefile.data.mod17; mod18 = quicksavefile.data.mod18; mod19 = quicksavefile.data.mod19; mod20 = quicksavefile.data.mod20; mod21 = quicksavefile.data.mod21; mod22 = quicksavefile.data.mod22; mod23 = quicksavefile.data.mod23; mod24 = quicksavefile.data.mod24; mod25 = quicksavefile.data.mod25; mod26 = quicksavefile.data.mod26; mod27 = quicksavefile.data.mod27; mod28 = quicksavefile.data.mod28; mod29 = quicksavefile.data.mod29; mod30 = quicksavefile.data.mod30; mod31 = quicksavefile.data.mod31; mod32 = quicksavefile.data.mod32; mod33 = quicksavefile.data.mod33; mod34 = quicksavefile.data.mod34; mod35 = quicksavefile.data.mod35; mod36 = quicksavefile.data.mod36; mod37 = quicksavefile.data.mod37; mod38 = quicksavefile.data.mod38; mod39 = quicksavefile.data.mod39; mod40 = quicksavefile.data.mod40; mission = quicksavefile.data.mission; geffects = quicksavefile.data.geffects; ogversion = quicksavefile.data.ogversion; gqload = 0; } if (lsavefile == 1) { game.gotoAndStop('gload'); pname = _root[mastersave].data.pname; trace(mastersave); trace(pname); mission = _root[mastersave].data.mission; trace(mission); upK = _root[mastersave].data.upK; downK = _root[mastersave].data.downK; leftK = _root[mastersave].data.leftK; rightK = _root[mastersave].data.rightK; afterburnerK = _root[mastersave].data.afterburnerK; auxpowersK = _root[mastersave].data.auxpowersK; sfireK = _root[mastersave].data.sfireK; jumpK = _root[mastersave].data.jumpK; interactK = _root[mastersave].data.interactK; prank = _root[mastersave].data.prank; g1 = _root[mastersave].data.g1; g2 = _root[mastersave].data.g2; g3 = _root[mastersave].data.g3; g4 = _root[mastersave].data.g4; m1 = _root[mastersave].data.m1; m2 = _root[mastersave].data.m2; m3 = _root[mastersave].data.m3; m4 = _root[mastersave].data.m4; thrust = _root[mastersave].data.thrust; phandling = _root[mastersave].data.phandling; pthrust = _root[mastersave].data.pthrust; prthrust = _root[mastersave].data.prthrust; pwdamage = _root[mastersave].data.pwdamage; pwcooldown = _root[mastersave].data.pwcooldown; ewdamage = _root[mastersave].data.ewdamage; pweapon = _root[mastersave].data.pweapon; pchp = _root[mastersave].data.pchp; pmhp = _root[mastersave].data.pmhp; powerlevel = _root[mastersave].data.powerlevel; spower = _root[mastersave].data.spower; spowerspeed = _root[mastersave].data.spowerspeed; penr = _root[mastersave].data.penr; pme = _root[mastersave].data.pme; pce = _root[mastersave].data.pce; pmoney = _root[mastersave].data.pmoney; pshields = _root[mastersave].data.pshield; pmshields = _root[mastersave].data.pmshields; pms = _root[mastersave].data.pms; pws1 = _root[mastersave].data.pws1; pws2 = _root[mastersave].data.pws2; pws3 = _root[mastersave].data.pws3; pws4 = _root[mastersave].data.pws4; lasersi = _root[mastersave].data.lasersi; lasersii = _root[mastersave].data.lasersii; lasersiii = _root[mastersave].data.lasersiii; missilei = _root[mastersave].data.missilei; missileii = _root[mastersave].data.missileii; missileiii = _root[mastersave].data.missileiii; streakeri = _root[mastersave].data.streakeri; streakerii = _root[mastersave].data.streakerii; streakeriii = _root[mastersave].data.streakeriii; cmi = _root[mastersave].data.cmi; cmii = _root[mastersave].data.cmii; cmiii = _root[mastersave].data.cmiii; pulsari = _root[mastersave].data.pulsari; pulsarii = _root[mastersave].data.pulsarii; pulsariii = _root[mastersave].data.pulsariii; bati = _root[mastersave].data.bati; batii = _root[mastersave].data.batii; batiii = _root[mastersave].data.batiii; mod1 = _root[mastersave].data.mod1; mod2 = _root[mastersave].data.mod2; mod3 = _root[mastersave].data.mod3; mod4 = _root[mastersave].data.mod4; mod5 = _root[mastersave].data.mod5; mod6 = _root[mastersave].data.mod6; mod7 = _root[mastersave].data.mod7; mod8 = _root[mastersave].data.mod8; mod9 = _root[mastersave].data.mod9; mod10 = _root[mastersave].data.mod10; mod11 = _root[mastersave].data.mod11; mod12 = _root[mastersave].data.mod12; mod13 = _root[mastersave].data.mod13; mod14 = _root[mastersave].data.mod14; mod15 = _root[mastersave].data.mod15; mod16 = _root[mastersave].data.mod16; mod17 = _root[mastersave].data.mod17; mod18 = _root[mastersave].data.mod18; mod19 = _root[mastersave].data.mod19; mod20 = _root[mastersave].data.mod20; mod21 = _root[mastersave].data.mod21; mod22 = _root[mastersave].data.mod22; mod23 = _root[mastersave].data.mod23; mod24 = _root[mastersave].data.mod24; mod25 = _root[mastersave].data.mod25; mod26 = _root[mastersave].data.mod26; mod27 = _root[mastersave].data.mod27; mod28 = _root[mastersave].data.mod28; mod29 = _root[mastersave].data.mod29; mod30 = _root[mastersave].data.mod30; mod31 = _root[mastersave].data.mod31; mod32 = _root[mastersave].data.mod32; mod33 = _root[mastersave].data.mod33; mod34 = _root[mastersave].data.mod34; mod35 = _root[mastersave].data.mod35; mod36 = _root[mastersave].data.mod36; mod37 = _root[mastersave].data.mod37; mod38 = _root[mastersave].data.mod38; mod39 = _root[mastersave].data.mod39; mod40 = _root[mastersave].data.mod40; mission = _root[mastersave].data.mission; geffects = _root[mastersave].data.geffects; ogversion = _root[mastersave].data.ogversion; lsavefile = 0; } if (ssavefile == 1) { trace('GO GO GO'); _root[mastersave].data.upK = upK; _root[mastersave].data.downK = downK; _root[mastersave].data.leftK = leftK; _root[mastersave].data.rightK = rightK; _root[mastersave].data.afterburnerK = afterburnerK; _root[mastersave].data.auxpowersK = auxpowersK; _root[mastersave].data.sfireK = sfireK; _root[mastersave].data.jumpK = jumpK; _root[mastersave].data.interactK = interactK; _root[mastersave].data.pname = pname; _root[mastersave].data.prank = prank; _root[mastersave].data.mission = mission; _root[mastersave].data.g1 = g1; _root[mastersave].data.g2 = g2; _root[mastersave].data.g3 = g3; _root[mastersave].data.g4 = g4; _root[mastersave].data.m1 = m1; _root[mastersave].data.m2 = m2; _root[mastersave].data.m3 = m3; _root[mastersave].data.m4 = m4; _root[mastersave].data.thrust = thrust; _root[mastersave].data.phandling = phandling; _root[mastersave].data.pthrust = pthrust; _root[mastersave].data.prthrust = prthrust; _root[mastersave].data.pwdamage = pwdamage; _root[mastersave].data.pwcooldown = pwcooldown; _root[mastersave].data.ewdamage = ewdamage; _root[mastersave].data.pweapon = pweapon; _root[mastersave].data.pchp = pchp; _root[mastersave].data.pmhp = pmhp; _root[mastersave].data.powerlevel = powerlevel; _root[mastersave].data.spower = spower; _root[mastersave].data.spowerspeed = spowerspeed; _root[mastersave].data.penr = penr; _root[mastersave].data.pme = pme; _root[mastersave].data.pce = pce; _root[mastersave].data.pmoney = pmoney; _root[mastersave].data.pshield = pshields; _root[mastersave].data.pmshields = pmshields; _root[mastersave].data.pms = pms; _root[mastersave].data.pws1 = pws1; _root[mastersave].data.pws2 = pws2; _root[mastersave].data.pws3 = pws3; _root[mastersave].data.pws4 = pws4; _root[mastersave].data.lasersi = lasersi; _root[mastersave].data.lasersii = lasersii; _root[mastersave].data.lasersiii = lasersiii; _root[mastersave].data.missilei = missilei; _root[mastersave].data.missileii = missileii; _root[mastersave].data.missileiii = missileiii; _root[mastersave].data.streakeri = streakeri; _root[mastersave].data.streakerii = streakerii; _root[mastersave].data.streakeriii = streakeriii; _root[mastersave].data.cmi = cmi; _root[mastersave].data.cmii = cmii; _root[mastersave].data.cmiii = cmiii; _root[mastersave].data.pulsari = pulsari; _root[mastersave].data.pulsarii = pulsarii; _root[mastersave].data.pulsariii = pulsariii; _root[mastersave].data.bati = bati; _root[mastersave].data.batii = batii; _root[mastersave].data.batiii = batiii; _root[mastersave].data.mod1 = mod1; _root[mastersave].data.mod2 = mod2; _root[mastersave].data.mod3 = mod3; _root[mastersave].data.mod4 = mod4; _root[mastersave].data.mod5 = mod5; _root[mastersave].data.mod6 = mod6; _root[mastersave].data.mod7 = mod7; _root[mastersave].data.mod8 = mod8; _root[mastersave].data.mod9 = mod9; _root[mastersave].data.mod10 = mod10; _root[mastersave].data.mod11 = mod11; _root[mastersave].data.mod12 = mod12; _root[mastersave].data.mod13 = mod13; _root[mastersave].data.mod14 = mod14; _root[mastersave].data.mod15 = mod15; _root[mastersave].data.mod16 = mod16; _root[mastersave].data.mod17 = mod17; _root[mastersave].data.mod18 = mod18; _root[mastersave].data.mod19 = mod19; _root[mastersave].data.mod20 = mod20; _root[mastersave].data.mod21 = mod21; _root[mastersave].data.mod22 = mod22; _root[mastersave].data.mod23 = mod23; _root[mastersave].data.mod24 = mod24; _root[mastersave].data.mod25 = mod25; _root[mastersave].data.mod26 = mod26; _root[mastersave].data.mod27 = mod27; _root[mastersave].data.mod28 = mod28; _root[mastersave].data.mod29 = mod29; _root[mastersave].data.mod30 = mod30; _root[mastersave].data.mod31 = mod31; _root[mastersave].data.mod32 = mod32; _root[mastersave].data.mod33 = mod33; _root[mastersave].data.mod34 = mod34; _root[mastersave].data.mod35 = mod35; _root[mastersave].data.mod36 = mod36; _root[mastersave].data.mod37 = mod37; _root[mastersave].data.mod38 = mod38; _root[mastersave].data.mod39 = mod39; _root[mastersave].data.mod40 = mod40; _root[mastersave].data.geffects = geffects; _root[mastersave].data.gversion = ogversion; _root[mastersave].flush(); trace('mastersave is saved'); ssavefile = 0; } if (quicksave == 1) { trace('quickSaved'); quicksavefile.data.upK = upK; quicksavefile.data.downK = downK; quicksavefile.data.leftK = leftK; quicksavefile.data.rightK = rightK; quicksavefile.data.afterburnerK = afterburnerK; quicksavefile.data.auxpowersK = auxpowersK; quicksavefile.data.sfireK = sfireK; quicksavefile.data.jumpK = jumpK; quicksavefile.data.interactK = interactK; quicksavefile.data.pname = pname; quicksavefile.data.prank = prank; quicksavefile.data.mission = mission; quicksavefile.data.g1 = g1; quicksavefile.data.g2 = g2; quicksavefile.data.g3 = g3; quicksavefile.data.g4 = g4; quicksavefile.data.m1 = m1; quicksavefile.data.m2 = m2; quicksavefile.data.m3 = m3; quicksavefile.data.m4 = m4; quicksavefile.data.thrust = thrust; quicksavefile.data.phandling = phandling; quicksavefile.data.pthrust = pthrust; quicksavefile.data.prthrust = prthrust; quicksavefile.data.pwdamage = pwdamage; quicksavefile.data.pwcooldown = pwcooldown; quicksavefile.data.ewdamage = ewdamage; quicksavefile.data.pweapon = pweapon; quicksavefile.data.pchp = pchp; quicksavefile.data.pmhp = pmhp; quicksavefile.data.powerlevel = powerlevel; quicksavefile.data.spower = spower; quicksavefile.data.spowerspeed = spowerspeed; quicksavefile.data.penr = penr; quicksavefile.data.pme = pme; quicksavefile.data.pce = pce; quicksavefile.data.pmoney = pmoney; quicksavefile.data.pshield = pshields; quicksavefile.data.pmshields = pmshields; quicksavefile.data.pms = pms; quicksavefile.data.pws1 = pws1; quicksavefile.data.pws2 = pws2; quicksavefile.data.pws3 = pws3; quicksavefile.data.pws4 = pws4; quicksavefile.data.lasersi = lasersi; quicksavefile.data.lasersii = lasersii; quicksavefile.data.lasersiii = lasersiii; quicksavefile.data.missilei = missilei; quicksavefile.data.missileii = missileii; quicksavefile.data.missileiii = missileiii; quicksavefile.data.streakeri = streakeri; quicksavefile.data.streakerii = streakerii; quicksavefile.data.streakeriii = streakeriii; quicksavefile.data.cmi = cmi; quicksavefile.data.cmii = cmii; quicksavefile.data.cmiii = cmiii; quicksavefile.data.pulsari = pulsari; quicksavefile.data.pulsarii = pulsarii; quicksavefile.data.pulsariii = pulsariii; quicksavefile.data.bati = bati; quicksavefile.data.batii = batii; quicksavefile.data.batiii = batiii; quicksavefile.data.mod1 = mod1; quicksavefile.data.mod2 = mod2; quicksavefile.data.mod3 = mod3; quicksavefile.data.mod4 = mod4; quicksavefile.data.mod5 = mod5; quicksavefile.data.mod6 = mod6; quicksavefile.data.mod7 = mod7; quicksavefile.data.mod8 = mod8; quicksavefile.data.mod9 = mod9; quicksavefile.data.mod10 = mod10; quicksavefile.data.mod11 = mod11; quicksavefile.data.mod12 = mod12; quicksavefile.data.mod13 = mod13; quicksavefile.data.mod14 = mod14; quicksavefile.data.mod15 = mod15; quicksavefile.data.mod16 = mod16; quicksavefile.data.mod17 = mod17; quicksavefile.data.mod18 = mod18; quicksavefile.data.mod19 = mod19; quicksavefile.data.mod20 = mod20; quicksavefile.data.mod21 = mod21; quicksavefile.data.mod22 = mod22; quicksavefile.data.mod23 = mod23; quicksavefile.data.mod24 = mod24; quicksavefile.data.mod25 = mod25; quicksavefile.data.mod26 = mod26; quicksavefile.data.mod27 = mod27; quicksavefile.data.mod28 = mod28; quicksavefile.data.mod29 = mod29; quicksavefile.data.mod30 = mod30; quicksavefile.data.mod31 = mod31; quicksavefile.data.mod32 = mod32; quicksavefile.data.mod33 = mod33; quicksavefile.data.mod34 = mod34; quicksavefile.data.mod35 = mod35; quicksavefile.data.mod36 = mod36; quicksavefile.data.mod37 = mod37; quicksavefile.data.mod38 = mod38; quicksavefile.data.mod39 = mod39; quicksavefile.data.mod40 = mod40; quicksavefile.data.geffects = geffects; quicksavefile.data.gversion = ogversion; quicksavefile.flush(); quicksave = 0; } if (arrayupdate == 1) { trace('Before Splice - ' + _root.enemyList); for (i in _root.allyList) { if (_root.allyList[i].real == 1) { _root.allyListTemp.push(_root.allyList[i]); } } for (i in _root.enemyList) { if (_root.enemyList[i].real == 1) { _root.enemyListTemp.push(_root.enemyList[i]); } } arrayupdate += 0.5; } if (arrayupdate == 1.5) { enemyList = new Array(); allyList = new Array(); trace('After Splice - ' + _root.enemyList); _root.enemyList = _root.enemyListTemp; _root.allyList = _root.allyListTemp; trace(_root.enemyListTemp + 'enemyTemp'); arrayupdate += 0.5; } if (arrayupdate == 2) { trace('After update - ' + _root.enemyList); arrayupdate = 0; enemyListTemp = new Array(); allyListTemp = new Array(); } if (objectCounter >= 80) { objectCounter = 1; } if (effectCounter >= 160) { effectCounter = 81; } if (otherCounter >= 400) { otherCounter = 161; } if (trailCounter >= 500) { trailCounter = 401; } opme = pme * game.uni.player.m1.energy * game.uni.player.m2.energy * game.uni.player.m3.energy * game.uni.player.m4.energy; if (statreset == 1) { trace('reset'); statreset = 0; g1 = 'laseri'; g2 = 'none'; g3 = 'none'; g4 = 'none'; m1 = 1; m2 = 1; m3 = 1; m4 = 1; thrust = 60; phandling = 1; pthrust = 0.8; prthrust = 0.5; pwdamage = 1; pwcooldown = 1; pweapon = 1; ewdamage = 1; plights = -1; palignment = 0; pchp = 100; pmhp = 100; powerlevel = 100; spower = 'none'; spowerspeed = 0; penr = 3; pme = 100; pce = 100; pmoney = 0; pcore = 0; pshields = 0; pmshields = 0; pship = 6; pms = 1; pws = 1; pws1 = 1; pws2 = 0; pws3 = 0; pws4 = 0; lasersi = 1; lasersii = 0; lasersiii = 0; plasmai = 0; plasmaii = 0; plasmaiii = 0; missilei = 0; missileii = 0; missileiii = 0; streakeri = 0; streakerii = 0; streakeriii = 0; cmi = 0; cmii = 0; cmiii = 0; blacki = 0; blackii = 0; blackiii = 0; pulsari = 0; pulsarii = 0; pulsariii = 0; bati = 0; batii = 0; batiii = 0; ioni = q; mod1 = 0; mod2 = 0; mod3 = 0; mod4 = 0; mod5 = 0; mod6 = 0; mod7 = 0; mod8 = 0; mod9 = 0; mod10 = 0; mod11 = 0; mod12 = 0; mod13 = 0; mod14 = 0; mod15 = 0; mod16 = 0; mod17 = 0; mod18 = 0; mod19 = 0; mod20 = 0; mod21 = 0; mod22 = 0; mod23 = 0; mod24 = 0; mod25 = 0; mod26 = 0; mod27 = 0; mod28 = 0; mod29 = 0; mod30 = 0; mod31 = 0; mod32 = 0; mod33 = 0; mod34 = 0; mod35 = 0; mod36 = 0; mod37 = 0; mod38 = 0; mod39 = 0; mod40 = 0; gpause = 0; } }; } movieClip 720 { } movieClip 721 { instance of movieClip 720 { onClipEvent (load) { gotoAndStop(random(3) + 1); rs = random(2); _rotation = rs * 180; xs = random(2) + 1; ys = random(2) + 1; if (xs == 1) { _xscale = 100; } else { _xscale = -100; } if (ys == 1) { _yscale = 100; } else { _yscale = -100; } _alpha = 100; } } instance of movieClip 720 { onClipEvent (load) { gotoAndStop(random(3) + 1); rs = random(2); _rotation = rs * 180; xs = random(2) + 1; ys = random(2) + 1; if (xs == 1) { _xscale = 100; } else { _xscale = -100; } if (ys == 1) { _yscale = 100; } else { _yscale = -100; } _alpha = random(50); } } } movieClip 723 { frame 1 { if (_root.sandbox == 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 724 { frame 1 { if (_root.geffects == 3) { dustCounter = 1; ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); } if (_root.geffects == 2) { ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); } if (_root.geffects == 1) { ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); } } instance d1 of movieClip 723 { onClipEvent (load) { _x = random(650); _y = random(400); _xscale = random(100); _yscale = _xscale; _alpha = random(100); } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (_x >= 750) { _xscale = random(100); _yscale = _xscale; _alpha = random(100); _x = 1 - random(100); _y = random(400); } if (_x <= -100) { _xscale = random(100); _yscale = _xscale; _alpha = random(100); _x = 650 + random(100); _y = random(400); } if (_y >= 500) { _xscale = random(100); _yscale = _xscale; _alpha = random(100); _y = -random(100); _x = random(650); } if (_y <= -100) { _xscale = random(100); _yscale = _xscale; _alpha = random(100); _y = random(100) + 400; _x = random(650); } _x = _x - (Math.ceil(Math.round(_parent._parent.uni.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent._parent.uni.player.yt * 100)) / 100) * (_xscale / 100); } } } } movieClip 725 { } movieClip 726 { frame 1 { stop(); } } movieClip 736 { frame 1 { if (_root.geffects == 3) { } else { this.removeMovieClip(); _visible = false; } } frame 9 { stop(); } } movieClip 739 { frame 1 { gotoAndPlay(random(20) + 2); } frame 20 { gotoAndPlay(2); } } movieClip 746 { } movieClip 747 { } movieClip 748 { instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 746 { onClipEvent (load) { gotoAndPlay(random(70)); } } instance of movieClip 746 { onClipEvent (load) { gotoAndPlay(random(70)); } } instance of movieClip 746 { onClipEvent (load) { gotoAndPlay(random(70)); } } instance of movieClip 746 { onClipEvent (load) { gotoAndPlay(random(70)); } } instance of movieClip 746 { onClipEvent (load) { gotoAndPlay(random(70)); } } instance of movieClip 746 { onClipEvent (load) { gotoAndPlay(random(70)); } } frame 30 { stop(); } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } instance of movieClip 739 { onClipEvent (load) { _rotation = random(360); _xscale = random(200); _yscale = _xscale; } } } movieClip 749 { frame 1 { stop(); } instance jump of movieClip 748 { onClipEvent (load) { jumpfinished = 0; } onClipEvent (enterFrame) { if (jumpfinished == 1) { _xscale = _xscale * 0.95; _y = 0; _yscale = _yscale * 0.95; if (_xscale <= 10) { jumpfinished = 0; _parent._parent.targeter.jump = 0; _parent._parent.player.jump = 0; _parent.gotoAndStop(1); } } } } } movieClip 755 { frame 1 { gotoAndStop(random(4) + 1); } } movieClip 756 { } movieClip 761 { } movieClip 763 { } movieClip 764 { frame 15 { stop(); } } movieClip 765 { instance of movieClip 179 { onClipEvent (enterFrame) { _xscale = _parent._parent.movespeed * 4; _yscale = _parent._parent.movespeed * 7; } } instance of movieClip 761 { onClipEvent (enterFrame) { if (_parent._parent.cl == 14) { _visible = false; } else { _parent._parent.trailsize = _yscale; _yscale = _parent._parent.movespeed * 80; } } } } movieClip 767 { } movieClip 769 { instance hit of movieClip 767 { onClipEvent (load) { rs = random(15) + 1; xs = 4; _xscale = random(100); _yscale = _xscale; _rotation = random(360); } onClipEvent (enterFrame) { if (_xscale >= 0) { _xscale = _xscale - xs; _yscale = _yscale - xs; } else { _xscale = 100; _yscale = 100; } _rotation = _rotation + rs; } } instance of movieClip 767 { onClipEvent (load) { rs = random(15) + 1; xs = 4; _xscale = random(100); _yscale = _xscale; _rotation = random(360); } onClipEvent (enterFrame) { if (_xscale >= 0) { _xscale = _xscale - xs; _yscale = _yscale - xs; } else { _xscale = 100; _yscale = 100; } _rotation = _rotation + rs; } } instance of movieClip 767 { onClipEvent (load) { rs = random(15) + 1; xs = 4; _xscale = random(100); _yscale = _xscale; _rotation = random(360); } onClipEvent (enterFrame) { if (_xscale >= 0) { _xscale = _xscale - xs; _yscale = _yscale - xs; } else { _xscale = 100; _yscale = 100; } _rotation = _rotation + rs; } } instance of movieClip 767 { onClipEvent (load) { rs = random(15) + 1; xs = 4; _xscale = random(100); _yscale = _xscale; _rotation = random(360); } onClipEvent (enterFrame) { if (_xscale >= 0) { _xscale = _xscale - xs; _yscale = _yscale - xs; } else { _xscale = 100; _yscale = 100; } _rotation = _rotation + rs; } } instance of movieClip 767 { onClipEvent (load) { rs = random(15) + 1; xs = 4; _xscale = random(100); _yscale = _xscale; _rotation = random(360); } onClipEvent (enterFrame) { if (_xscale >= 0) { _xscale = _xscale - xs; _yscale = _yscale - xs; } else { _xscale = 100; _yscale = 100; } _rotation = _rotation + rs; } } instance of movieClip 767 { onClipEvent (load) { rs = random(15) + 1; xs = 4; _xscale = random(100); _yscale = _xscale; _rotation = random(360); } onClipEvent (enterFrame) { if (_xscale >= 0) { _xscale = _xscale - xs; _yscale = _yscale - xs; } else { _xscale = 100; _yscale = 100; } _rotation = _rotation + rs; } } instance of movieClip 767 { onClipEvent (load) { rs = random(15) + 1; xs = 4; _xscale = random(100); _yscale = _xscale; _rotation = random(360); } onClipEvent (enterFrame) { if (_xscale >= 0) { _xscale = _xscale - xs; _yscale = _yscale - xs; } else { _xscale = 100; _yscale = 100; } _rotation = _rotation + rs; } } } movieClip 771 { } movieClip 775 { frame 30 { _parent.remove = 1; } } movieClip 777 { } movieClip 778 { } movieClip 784 { frame 31 { gotoAndPlay(16); } } movieClip 787 { frame 2 { gotoAndStop(cl + 1); } frame 3 { stop(); if (_visible == true) { _root.sounds.gotoAndStop('laser'); } } frame 4 { remove = 1; stop(); } frame 5 { stop(); } instance of movieClip 756 { onClipEvent (load) { _y = _y + (random(10) - 5); } } instance of movieClip 756 { onClipEvent (load) { _y = _y + (random(10) - 5); } } frame 6 { remove = 1; } frame 7 { stop(); } instance of movieClip 756 { onClipEvent (load) { _y = _y + (random(10) - 5); } } instance of movieClip 756 { onClipEvent (load) { _y = _y + (random(10) - 5); } } instance of movieClip 756 { onClipEvent (load) { _y = _y + (random(10) - 5); } } frame 8 { remove = 1; } instance hit of movieClip 769 { onClipEvent (enterFrame) { _xscale = _xscale / 1.1; _yscale = _xscale; } } instance of movieClip 769 { onClipEvent (enterFrame) { _xscale = _xscale / 1.1; _yscale = _xscale; if (_xscale <= 0) { _parent.remove = 1; } } } instance hit of movieClip 769 { onClipEvent (enterFrame) { _xscale = _xscale / 1.1; _yscale = _xscale; } } instance of movieClip 769 { onClipEvent (enterFrame) { _xscale = _xscale / 1.1; _yscale = _xscale; if (_xscale <= 0) { _parent.remove = 1; } } } instance hit of movieClip 769 { onClipEvent (enterFrame) { _xscale = _xscale / 1.1; _yscale = _xscale; } } instance of movieClip 769 { onClipEvent (enterFrame) { _xscale = _xscale / 1.1; _yscale = _xscale; if (_xscale <= 0) { _parent.remove = 1; } } } instance of movieClip 778 { onClipEvent (enterFrame) { _xscale = _xscale * 0.9; if (_xscale <= 10) { _parent.remove = 1; } } } frame 33 { stop(); } frame 34 { remove = 1; stop(); } frame 35 { stop(); } frame 36 { remove = 1; stop(); } instance of movieClip 761 { onClipEvent (enterFrame) { _yscale = _yscale * 0.85; } onClipEvent (load) { _yscale = _parent.trailsize; } } instance of movieClip 761 { onClipEvent (enterFrame) { _yscale = _yscale * 0.85; } onClipEvent (load) { _yscale = _parent.trailsize; } } } movieClip 790 { frame 1 { stop(); } } movieClip 798 { frame 1 { stop(); damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 2 { damage = 1.01; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 3 { damage = 1.02; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 4 { damage = 1.03; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 5 { damage = 1.04; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 6 { damage = 1.05; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 7 { damage = 1.06; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 8 { damage = 1.07; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 9 { damage = 1.08; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 10 { damage = 1.09; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 11 { damage = 1.1; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 12 { damage = 1; armor = 1; speed = 1.1; energy = 1; energyregen = 1; handling = 1; } frame 13 { damage = 1; armor = 1; speed = 1.2; energy = 1; energyregen = 1; handling = 1; } frame 14 { damage = 1; armor = 1; speed = 1.3; energy = 1; energyregen = 1; handling = 1; } frame 15 { damage = 1; armor = 1; speed = 1.4; energy = 1; energyregen = 1; handling = 1; } frame 16 { damage = 1; armor = 1; speed = 1.5; energy = 1; energyregen = 1; handling = 1; } frame 17 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1.2; } frame 18 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1.4; } frame 19 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1.6; } frame 20 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 1.8; } frame 21 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1; handling = 2; } frame 22 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1.2; handling = 1; } frame 23 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1.4; handling = 1; } frame 24 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1.6; handling = 1; } frame 25 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 1.8; handling = 1; } frame 26 { damage = 1; armor = 1; speed = 1; energy = 1; energyregen = 2; handling = 1; } frame 27 { damage = 1; armor = 1; speed = 1; energy = 1.2; energyregen = 1; handling = 1; } frame 28 { damage = 1; armor = 1; speed = 1; energy = 1.4; energyregen = 1; handling = 1; } frame 29 { damage = 1; armor = 1; speed = 1; energy = 1.6; energyregen = 1; handling = 1; } frame 30 { damage = 1; armor = 1; speed = 1; energy = 1.8; energyregen = 1; handling = 1; } frame 31 { damage = 1; armor = 1; speed = 1; energy = 2; energyregen = 1; handling = 1; } frame 32 { damage = 1; armor = 1.1; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 33 { damage = 1; armor = 1.2; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 34 { damage = 1; armor = 1.3; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 35 { damage = 1; armor = 1.4; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 36 { damage = 1; armor = 1.5; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 37 { damage = 1; armor = 1.6; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 38 { damage = 1; armor = 1.7; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 39 { damage = 1; armor = 1.8; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 40 { damage = 1; armor = 1.9; speed = 1; energy = 1; energyregen = 1; handling = 1; } frame 41 { damage = 1; armor = 2; speed = 1; energy = 1; energyregen = 1; handling = 1; } } movieClip 803 { } movieClip 804 { } movieClip 807 { } movieClip 809 { } movieClip 810 { frame 1 { stop(); } frame 45 { gotoAndPlay(1); } frame 66 { gotoAndPlay(1); } frame 91 { gotoAndPlay(1); } } movieClip 811 { frame 1 { stop(); } instance trail1 of movieClip 761 { onClipEvent (enterFrame) { cx = this._x + _parent._x; cy = this._y + _parent._y; convert = 57.29577951308232; mx = _parent._parent.tracer._x; my = _parent._parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert - 90 - _parent._rotation; } } instance m1 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m1); } } instance m2 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m2); } } instance m3 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m3); } } instance m4 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m4); } } instance jump of movieClip 202 jump { onClipEvent (load) { _parent.ship._xscale = 1; _parent.ship._yscale = 1; } } instance trail3 of movieClip 761 { onClipEvent (enterFrame) { if (Math.round(Math.abs(Math.round(_parent.xt)) + Math.abs(Math.round(_parent.yt))) > 3) { _visible = true; } else { _visible = false; } } } frame 2 { stop(); exfinished = 0; onEnterFrame = function () { if (exfinished == 1) { trace('DEAD'); _root.failure = 1; _root.reason4failure = 'You were destroyed'; _root.gpause = 1; exfinished += 1; } }; } instance trail1 of movieClip 761 { onClipEvent (enterFrame) { cx = this._x + _parent._x; cy = this._y + _parent._y; convert = 57.29577951308232; mx = _parent._parent.tracer._x; my = _parent._parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert - 90 - _parent._rotation; } } instance m1 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m1); } } instance m2 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m2); } } instance m3 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m3); } } instance m4 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m4); } } instance jump of movieClip 202 jump { onClipEvent (load) { _parent.ship._xscale = 1; _parent.ship._yscale = 1; } } instance trail3 of movieClip 761 { onClipEvent (enterFrame) { if (Math.round(Math.abs(Math.round(_parent.xt)) + Math.abs(Math.round(_parent.yt))) > 3) { _visible = true; } else { _visible = false; } } } } movieClip 815 { frame 2 { stop(); } frame 15 { stop(); } instance of movieClip 336 { onClipEvent (enterFrame) { gotoAndStop(5); } } instance of movieClip 336 { onClipEvent (enterFrame) { gotoAndStop(5); } } frame 25 { stop(); } frame 40 { stop(); } } // unknown tag 88 length 63 movieClip 818 { frame 130 { stop(); } } movieClip 819 { frame 1 { ship.gotoAndStop(2); } instance ship of movieClip 790 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } frame 19 { attachMovie('textline', 't1', 2134); t1.nstr = 'Testing Grounds \n Dratis Station \n Sector 43a1 '; t1.speed = 0.5; t1._x = 0; t1.cd = 90; t1.remove = 0; t1._y = -100; } frame 100 { st.play(); } frame 180 { st.play(); } frame 312 { _parent.player.xt = -7; _parent.player.yt = -3; } frame 354 { _parent.player.xt = -6; _parent.player.yt = -2; } frame 370 { _parent.player.xt = -5; _parent.player.yt = -2; } frame 398 { _parent.player.xt = -4; _parent.player.yt = -1; } frame 434 { _parent.player.xt = -3; _parent.player.yt = -1; } frame 463 { _parent.player.xt = -1; _parent.player.yt = -0.5; } frame 490 { _parent.player.xt = 0; _parent.player.yt = 0; } frame 565 { st.play(); } frame 606 { _parent.targeter._x = 100; _parent.targeter._y = 85; } frame 607 { cd = 300; accd = 0; _parent.targeter._x = 100; _parent.targeter._y = 85; _root.cinemamode = 0; _root.pthrust = 0; _root.prthrust = 0; trig = 0; onEnterFrame = function () { if (_root.gpause == 0) { st._x -= Math.ceil(_parent.player.xt * 100) / 100; st._y -= Math.ceil(_parent.player.yt * 100) / 100; if (cd > 80) { _parent.targeter._x = 100; _parent.targeter._y = 85; } cd -= 1; if (cd == 170) { _parent.player.ship.gotoAndStop(1); } if (cd < 260 && cd > 230) { _parent.player.light1._alpha += 3; } if (cd < 230 && cd > 200) { _parent.player.light2._alpha += 3; } if (cd == 199) { _parent._parent.overlay.gotoAndPlay(2); _parent._parent.overlay._visible = true; } if (cd == 50) { attachMovie('textline', 't1', 2135); t1.nstr = 'Calibrating Control Systems\n '; t1.speed = 0.8; t1._x = 0; t1.cd = 0; t1.remove = 0; t1._y = -100; _parent.attachMovie('triangle', 't1', 31); _parent.t1._xscale = 50; _parent.t1._yscale = 50; _parent.t1._y = -100; _parent.t1._x = 100; _parent.t1.remove = 0; _parent.t1.onEnterFrame = function () { if (this.hitTest(_parent.targeter)) { if (this.remove == 0) { trig += 1; this.remove = 1; } } if (this.remove == 1) { this._yscale *= 0.9; this._xscale *= 1.05; this._alpha = this._yscale - 5; if (this._alpha < 0) { this.removeMovieClip(); } } }; } if (cd == 20) { _parent.attachMovie('triangle', 't2', 32); _parent.t2._xscale = 50; _parent.t2._yscale = 50; _parent.t2._y = 100; _parent.t2._x = -100; _parent.t2.remove = 0; _parent.t2.onEnterFrame = function () { if (this.hitTest(_parent.targeter)) { if (this.remove == 0) { trig += 1; this.remove = 1; } } if (this.remove == 1) { this._yscale *= 0.9; this._xscale *= 1.05; this._alpha = this._yscale - 5; if (this._alpha < 0) { this.removeMovieClip(); } } }; } if (cd == -10) { attachMovie('textline', 't2', 2136); t2.nstr = 'Use your mouse to point your ship at the green triangles\n '; t2.speed = 0.5; t2._x = 0; t2.cd = 60; t2.remove = 0; t2._y = 100; _parent.attachMovie('triangle', 't3', 33); _parent.t3._xscale = 50; _parent.t3._yscale = 50; _parent.t3._y = 100; _parent.t3._x = 100; _parent.t3.remove = 0; _parent.t3.onEnterFrame = function () { if (this.hitTest(_parent.targeter)) { if (this.remove == 0) { trig += 1; this.remove = 1; } } if (this.remove == 1) { this._yscale *= 0.9; this._xscale *= 1.05; this._alpha = this._yscale - 5; if (this._alpha < 0) { this.removeMovieClip(); } } }; } if (trig == 3) { attachMovie('textline', 't2', 2135); t2.nstr = 'Activating Thrusters\n'; cd = -11; t2.speed = 0.5; t2._x = 0; t2.cd = 30; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 4) { if (cd == -31) { _root.sounds.gotoAndStop('cycle'); _parent.player.xt = -5; _parent.player.yt = -10; _root.pthrust = 0.8; _root.prthrust = 0.5; } if (cd == -60) { attachMovie('textline', 't2', 2135); t2.nstr = 'Move your ship with the WASD keys\n'; t2.speed = 0.5; t2._x = 0; t2.cd = 30; t2.remove = 0; t2._y = -100; } if (cd == -120) { attachMovie('textline', 't1', 2136); t1.nstr = 'Proceed to WayPoint 1\n'; t1.speed = 0.5; t1._x = 0; t1.cd = 60; t1.remove = 0; t1._y = 100; ++_root.permCounter; _parent.attachMovie('indi', 'indi', _root.permCounter); _parent.indi.tx = -100 + _parent.absx; _parent.indi.ty = -200 + _parent.absy; _parent.indi.mod = 2; _parent.indi.dname = 'WayPoint 1'; } if (_parent.player.hitTest(_parent.indi)) { cd = -200; _root.sounds.gotoAndStop('commit'); _parent.indi.tx = 100 + _parent.absx; _parent.indi.ty = -300 + _parent.absy; _parent.indi.mod = 2; _parent.indi.dname = 'WayPoint 2'; trig += 1; } } if (trig == 5) { if (cd < -205) { if (_parent.player.hitTest(_parent.indi)) { _root.sounds.gotoAndStop('commit'); _parent.indi.tx = -300 + _parent.absx; _parent.indi.ty = -200 + _parent.absy; _parent.indi.mod = 2; _parent.indi.dname = 'WayPoint 3'; trig += 1; cd = -200; } } } if (trig == 6) { if (cd < -205) { if (_parent.player.hitTest(_parent.indi)) { _root.sounds.gotoAndStop('commit'); _parent.indi.removeMovieClip(); cd = -200; trig += 1; } } } if (trig == 7) { if (cd == -230) { attachMovie('textline', 't1', 2135); t1.nstr = 'This is Dratis Station, we are picking up an unidentified ship. \n X1 Delta we have updated your HUD with the coordinates, could you please check it out for us.\n'; t1.speed = 0.5; t1._x = 0; t1.cd = 120; t1.radio = 1; t1.dname = 'Dratis Station'; t1.po = 'dratis'; t1.remove = 0; t1._y = 100; } if (cd == -320) { ++_root.permCounter; _parent.attachMovie('indi', 'indi', _root.permCounter); _parent.indi.tracking = 'object'; _parent.indi.obj = _parent.tl; _parent.indi.mod = 4; _parent.indi.dname = 'Unidentified Object'; } if (cd == -620) { attachMovie('textline', 't1', 2135); t1.nstr = '. . . Afterburners Active \n Hold SHIFT while moving to engage Afterburners\n'; t1.speed = 0.5; t1._x = 0; t1.cd = 120; t1.remove = 0; t1._y = 100; } if (_parent.absx > 2300 && _parent.absy > 1700) { attachMovie('textline', 't1', 2135); _parent.indi.dname = 'Unidentified Ship'; _parent.indi.mod = 4; t1.nstr = 'The ship appears to be unpowered \n X1 Delta engage your lights and illuminate the situation please.\n'; t1.speed = 0.5; t1._x = 0; t1.cd = 90; t1.radio = 1; t1.dname = 'Dratis Station'; t1.po = 'dratis'; t1.remove = 0; t1._y = 100; cd = -200; trig += 1; } } if (trig == 8) { if (cd == -310) { _parent._parent.c1k1 = 1; _parent._parent.overlay.missiontext.mission = 'Press F to toggle your ships lights'; _parent._parent.overlay.missiontext.dshow = 3; } } if (trig == 9) { cd = -200; attachMovie('textline', 't2', 2135); t2.nstr = 'Those are UCF Markings! \n We are picking up large radiation signitures!\n'; _parent.indi.dname = 'UCF Hostile'; _parent.indi.mod = 0; t2.speed = 0.5; t2._x = 0; t2.cd = 90; t2.radio = 1; t2.loud = 1; t2.dname = 'Dratis Station'; t2.po = 'dratis'; t2.remove = 0; t2._y = 100; trig += 1; } if (trig == 10) { if (cd == -400) { _parent.tl.play(); _parent.tl.xacc = 0; _parent.tl.yacc = 0; _root.sounds.gotoAndPlay('startengines'); cd = -200; trig += 1; } } if (trig == 11) { if (cd == -260) { attachMovie('textline', 't2', 2135); t2.nstr = 'Hostile has engaged intercept course with Dratis Station!\n X1 we are going to try a remote override, maintain a close proximity to target!'; t2.speed = 0.5; t2._x = 0; t2.cd = 90; t2.radio = 1; t2.loud = 1; t2.dname = 'Dratis Station'; t2.po = 'dratis'; t2.remove = 0; t2._y = 100; } if (cd == -550) { _parent._parent.c1k2 = 1; attachMovie('hack', 'hack', 2140); hack._x = 20; hack._y = -20; hack.onEnterFrame = function () { if (dis > 300) { this._alpha = 20; } else { this._alpha = random(50) + 50; this.speed = 0; } }; } if (_root.game.uni.anim.hack.bar.bar._x == -40) { _parent.indi.dname = 'Cover'; _parent.indi.mod = 2; _parent.indi.tracking = 'none'; _parent.indi.tx = 400 + _parent.absx; _parent.indi.ty = 200 + _parent.absy; attachMovie('textline', 't2', 2135); _parent._parent.c1k2.remove = 1; hack.removeMovieClip(); t2.nstr = 'Cancel the Remote Override X1, theres no time \n take cover behind the station!'; t2.speed = 0.5; t2._x = 0; t2.cd = 90; t2.radio = 1; t2.loud = 1; t2.dname = 'Dratis Station'; t2.po = 'dratis'; t2.remove = 0; t2._y = -100; trig += 1; } if (_parent.tl.dest == 0) { accd += 1; if (accd > 20) { _root.failure = 1; _root.reason4failure = 'You failed to hack the hostile ship'; } } } if (trig == 12) { if (_parent.tl.dest == 0) { accd += 1; if (_parent.player.hit.hitTest(_parent.station.safezone)) { _parent._parent.overlay.scaler.xx._y *= 0.97; _parent._parent.overlay.shake = 1; _parent._parent.overlay.sev = 1.5; if (accd > 20) { _parent._parent.present.play(); } } else { _root.failure = 1; _root.reason4failure = 'You didnt take cover from the blast'; } } } disx = _parent.tl._x - _parent.player._x; disy = _parent.tl._y - _parent.player._y; dis = Math.abs(disx) + Math.abs(disy); } }; stop(); } } movieClip 821 { instance of movieClip 790 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 790 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 790 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 790 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(1); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(10); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(30); } } instance of movieClip 252 { onClipEvent (load) { gotoAndPlay(20); } } } movieClip 824 { frame 1 { stop(); } } movieClip 827 { frame 1 { stop(); } } movieClip 830 { frame 1 { stop(); } } movieClip 832 { frame 1 { stop(); } } movieClip 834 { frame 1 { stop(); } } movieClip 836 { frame 1 { stop(); } } movieClip 838 { frame 1 { stop(); } } movieClip 840 { frame 1 { stop(); } } movieClip 842 { frame 1 { stop(); } } movieClip 844 { frame 1 { stop(); } } movieClip 846 { frame 1 { stop(); } } movieClip 848 { frame 1 { stop(); } } movieClip 850 { frame 1 { stop(); } } movieClip 852 { frame 1 { stop(); } } movieClip 854 { frame 1 { stop(); } } movieClip 856 { frame 1 { stop(); } } movieClip 858 { frame 1 { stop(); } } movieClip 860 { frame 1 { stop(); } } movieClip 862 { frame 1 { stop(); } } movieClip 863 { frame 1 { onEnterFrame = function () { if (this._currentframe == 21) { _root.game.overlay[_name]._visible = false; } else { _root.game.overlay[_name]._visible = true; _root.game.overlay[_name].bar._x = (g.cd / g.mcd) * 100; } }; } frame 1 { stop(); } instance g of movieClip 824 { onClipEvent (load) { cd = 3; fire = 0; mcd = 8; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 15) { if (cd <= 0) { nextFrame(); cd = mcd; _root.pce -= 15; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 2; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 827 { onClipEvent (load) { cd = 3; fire = 0; mcd = 8; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 10) { if (cd <= 0) { _root.pce -= 25; cd = mcd; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 4; gotoAndStop(2); } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 830 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 15) { if (cd <= 0) { _root.pce -= 35; cd = mcd; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 6; gotoAndStop(2); } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { cd = 3; fire = 0; mcd = 8; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance of movieClip 832 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (fire == 1) { cd -= 1; if (_root.pce >= 6) { if (cd <= 0) { _root.pce -= 6; cd = 3; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 8; } else { gotoAndStop(1); } } else { gotoAndStop(1); } } } } onClipEvent (load) { cd = 3; fire = 0; mcd = 3; } onClipEvent (mouseDown) { fire = 1; } onClipEvent (mouseUp) { fire = 0; } } instance of movieClip 834 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (fire == 1) { cd -= 1; if (_root.pce >= 6) { if (cd <= 0) { _root.pce -= 6; cd = 1; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 10; } else { gotoAndStop(1); } } else { gotoAndStop(1); } } } } onClipEvent (load) { cd = 3; fire = 0; } onClipEvent (mouseDown) { fire = 1; } onClipEvent (mouseUp) { fire = 0; } } instance of movieClip 836 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (fire == 1) { cd -= 1; if (_root.pce >= 8) { if (cd <= 0) { _root.pce -= 8; cd = 2; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 12; if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } } } onClipEvent (load) { cd = 3; fire = 0; } onClipEvent (mouseDown) { fire = 1; } onClipEvent (mouseUp) { fire = 0; } } instance g of movieClip 838 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 50) { if (cd <= 0) { cd = mcd; _root.pce -= 50; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 14; nextFrame(); } } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { cd = 3; fire = 0; mcd = 60; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance of movieClip 840 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 40) { if (cd <= 0) { cd = mcd; _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 14; nextFrame(); } } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { mcd = 40; cd = 3; fire = 0; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 842 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 30) { if (cd <= 0) { cd = mcd; _root.pce -= 30; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 14; nextFrame(); } } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { cd = 3; mcd = 20; fire = 0; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance of movieClip 844 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (fire == 1) { cd -= 1; if (cd <= 0) { cd = 20; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 16; } else { gotoAndStop(1); } } else { gotoAndStop(1); } } } onClipEvent (load) { cd = 3; fire = 0; } onClipEvent (mouseDown) { fire = 1; } onClipEvent (mouseUp) { fire = 0; } } instance of movieClip 846 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (cd <= 0) { cd = 20; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 18; } else { gotoAndStop(1); } } else { gotoAndStop(1); } } } onClipEvent (load) { cd = 3; fire = 0; } onClipEvent (mouseDown) { fire = 1; } onClipEvent (mouseUp) { fire = 0; } } instance of movieClip 848 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (cd <= 0) { cd = 20; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 20; } else { gotoAndStop(1); } } else { gotoAndStop(1); } } } onClipEvent (load) { cd = 3; fire = 0; } onClipEvent (mouseDown) { fire = 1; } onClipEvent (mouseUp) { fire = 0; } } instance g of movieClip 850 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 70) { if (cd <= 0) { cd = mcd; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 22; _root.pce -= 70; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { cd = 3; fire = 0; mcd = 10; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 852 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 100) { if (cd <= 0) { cd = mcd; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 24; _root.pce -= 100; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { cd = 3; fire = 0; mcd = 15; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 854 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 130) { if (cd <= 0) { cd = mcd; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 26; _root.pce -= 130; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { cd = 3; fire = 0; mcd = 20; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance of movieClip 856 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (cd <= 0) { cd = 60; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 28; } else { gotoAndStop(1); } } else { gotoAndStop(1); } } } onClipEvent (load) { cd = 3; fire = 0; } onClipEvent (mouseDown) { fire = 1; } onClipEvent (mouseUp) { fire = 0; } } instance g of movieClip 858 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (cd <= 0) { cd = mcd; } } if (cd == 59) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 56) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } } if (cd == 53) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } nextFrame(); if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (load) { cd = 3; mcd = 60; fire = 0; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 860 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (cd <= 0) { cd = 60; } } if (cd == 59) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 56) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 53) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 50) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 47) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } } if (cd == 44) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } nextFrame(); } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (load) { cd = 3; mcd = 60; fire = 0; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 862 { onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (cd <= 0) { cd = 60; } } if (cd == 59) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 56) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 53) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 50) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 47) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 44) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 41) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 38) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 35) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 32) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 29) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } } if (cd == 26) { if (_root.pce >= 40) { _root.pce -= 40; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].mbx = random(100) - 50; _parent._parent['shot' + _root.effectCounter].mby = random(100) - 50; _parent._parent['shot' + _root.effectCounter].cl = 30; } gotoAndStop(1); } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } } onClipEvent (load) { mcd = 60; cd = 3; fire = 0; } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } frame 20 { gotoAndStop(1); } instance g of movieClip 824 { onClipEvent (load) { cd = 3; fire = 0; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 15) { if (cd <= 0) { gotoAndStop(2); cd = 8; _root.pce -= 15; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 32; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } fire = 0; } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 0; } else { fire = 1; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } } instance g of movieClip 824 { onClipEvent (load) { cd = 3; fire = 0; mcd = 45; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 15) { if (cd <= 0) { gotoAndStop(2); cd = 45; _root.pce -= 15; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 34; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 838 { onClipEvent (load) { cd = 3; fire = 0; mcd = 90; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 50) { if (cd <= 0) { gotoAndStop(2); cd = 90; _root.pce -= 50; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 36; _parent._parent['shot' + _root.effectCounter].cd = 90; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 840 { onClipEvent (load) { cd = 3; mcd = 60; fire = 0; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 35) { if (cd <= 0) { gotoAndStop(2); cd = 60; _root.pce -= 35; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 36; _parent._parent['shot' + _root.effectCounter].cd = 90; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 842 { onClipEvent (load) { cd = 3; fire = 0; mcd = 30; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 20) { if (cd <= 0) { gotoAndStop(2); cd = 30; _root.pce -= 20; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 36; _parent._parent['shot' + _root.effectCounter].cd = 90; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 838 { onClipEvent (load) { cd = 3; fire = 0; mcd = 240; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 70) { if (cd <= 0) { gotoAndStop(2); cd = 240; _root.pce -= 70; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 38; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 840 { onClipEvent (load) { cd = 3; fire = 0; mcd = 150; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 50) { if (cd <= 0) { gotoAndStop(2); cd = mcd; _root.pce -= 50; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 38; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } instance g of movieClip 842 { onClipEvent (load) { cd = 3; fire = 0; mcd = 90; } onClipEvent (enterFrame) { if (_root.gpause == 0) { cd -= 1; if (fire == 1) { if (_root.pce >= 50) { if (cd <= 0) { gotoAndStop(2); cd = mcd; _root.pce -= 50; ++_root.effectCounter; _parent._parent.shot1.duplicateMovieClip('shot' + _root.effectCounter, _root.effectCounter); _parent._parent['shot' + _root.effectCounter]._visible = true; _parent._parent['shot' + _root.effectCounter]._x = _parent._x; _parent._parent['shot' + _root.effectCounter]._y = _parent._y; _parent._parent['shot' + _root.effectCounter].xt = _parent._parent.targeter._x; _parent._parent['shot' + _root.effectCounter].yt = _parent._parent.targeter._y; _parent._parent['shot' + _root.effectCounter].cl = 38; if (_parent._name == 'g1') { } if (_parent._name == 'g2') { _parent._parent['shot' + _root.effectCounter]._xscale *= -1; } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } else { gotoAndStop(1); } } if (_parent._name == 'g3' or _parent._name == 'g4') { if (Key.isDown(_root.sfireK)) { fire = 1; } else { fire = 0; } } } onClipEvent (mouseDown) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 1; } } onClipEvent (mouseUp) { if (_parent._name == 'g1' or _parent._name == 'g2') { fire = 0; } } } } movieClip 864 { frame 1 { graveYardId = 100; graveYardRevive = 100; player.ship.gotoAndStop(2); player.light1._alpha = 0; player.light2._alpha = 0; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance of movieClip 198 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } if (_parent.buytime == 1) { if (_root.gpause == 0) { if (this.hitTest(_parent.player.hit)) { _root.game.overlay.missiontext.mission = 'Press E to interact with Merchant Ship'; _root.game.overlay.missiontext.dshow = 1; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _parent._parent.buyscreen.gotoAndStop(8); } } } } } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance jump of movieClip 749 { onClipEvent (load) { stop(); } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (guide == 1) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } else {} if (guide == 0.5) { _x = 100; _y = 85; play(); } } onClipEvent (load) { stop(); guide = 0; jump = 0; } } instance tracer of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _rotation + 5; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } instance tl of movieClip 127 c1.ts { onClipEvent (load) { rotspeed = 1; xt = 0; yt = 0; speed = 0.1; dest = 1; } onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; xt -= Math.ceil(_parent.player.xt * 100) / 100; yt -= Math.ceil(_parent.player.yt * 100) / 100; if (dest == 1) { if (this.hitTest(_parent.station.hit)) { gotoAndStop(16); dest = 0; _parent.attachMovie('superexplosion', 's', 400); _parent.s._x = this._x; _parent.s._y = this._y; _parent.s._xscale = 1400; _parent.s._yscale = 1400; _parent.s.onEnterFrame = function () { this._x -= Math.ceil(_parent.player.xt * 100) / 100; this._y -= Math.ceil(_parent.player.yt * 100) / 100; }; } } rt = 45; if (_x >= xt + 5) { xacc -= speed; } if (_x <= xt - 5) { xacc += speed; } if (_y >= yt + 5) { yacc -= speed; } if (_y <= yt - 5) { yacc += speed; } xacc *= 0.95; yacc *= 0.95; _x = _x + xacc; _y = _y + yacc; _rotation = 120; } } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { edamage = _root.ewdamage * _root.difficulty; if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 15; } aitarget.health -= edamage * 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 3; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 5; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance player of movieClip 811 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (_root.cinemamode == 0) { if (dead == 0) { if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); _visible = true; } else { _visible = false; } } } onClipEvent (load) { jump.swapDepths(1000); jump.removeMovieClip(); ship._xscale = 100; ship._yscale = 100; burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 0; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.cinemamode == 0) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } } instance station of movieClip 821 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } } button 868 { on (keyPress 'f') { trace('lights'); if (_root.gpause == 0) { _root.plights *= -1; } } on (keyPress 'F') { if (_root.gpause == 0) { _root.plights *= -1; } } on (release) { trace('ENEMY LIST ' + _root.enemyList); _root.arrayupdate = 1; } } movieClip 869 { frame 15 { stop(); } } movieClip 870 { frame 1 { stop(); } } // unknown tag 88 length 61 movieClip 876 { } movieClip 877 { frame 1 { stop(); } } movieClip 878 { } button 885 { on (press) { startDrag('', true, not_set_yet, 100, not_set_yet, 70); } on (release, releaseOutside) { stopDrag(); } } movieClip 886 { } movieClip 887 { } movieClip 890 { } movieClip 892 { } movieClip 893 { instance thrust of movieClip 892 { onClipEvent (enterFrame) { bar._y = _root.thrust - 60; if (Key.isDown(_root.afterburnerK) or bar._y > 5) { _alpha = 100; } else { if (_alpha >= 0) { _alpha = _alpha - 5; } } } } } movieClip 897 { } movieClip 905 { } movieClip 906 { instance of movieClip 897 { onClipEvent (load) { this.swapDepths(150); } } instance obj1 of movieClip 905 { onClipEvent (enterFrame) { if (Math.abs(_x) + Math.abs(_y) <= 51 && Math.abs(_x) + Math.abs(_y) >= -51) { _visible = true; } else { _visible = false; } if (remove == 1 or _root.radarreset == 1) { if (this._name == 'obj1') { } else { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { remove = 0; } } } // unknown tag 88 length 72 movieClip 914 { } movieClip 915 { frame 1 { stop(); } } button 919 { on (release) { gotoAndStop(1); _root['mission' + missionnumber] += 0.5; } } button 921 { on (release) { gotoAndStop(1); } } movieClip 926 { frame 16 { stop(); } } movieClip 927 { frame 1 { stop(); } } button 931 { on (release) { gotoAndStop(1); _root['mission' + missionnumber] += 0.5; } } button 933 { on (release) { gotoAndStop(1); } } movieClip 944 { frame 1 { fail = 0; stop(); } frame 2 { time = _root.race_time; markers = _root.race_markers; gradenumber = _root.race_besttime / _root.race_time; if (fail == 1) { 'F-'; } else { if (gradenumber <= 0.6) { grade = 'F'; } if (gradenumber >= 0.65) { grade = 'D'; } if (gradenumber >= 0.7) { grade = 'C'; } if (gradenumber >= 0.75) { grade = 'C+'; } if (gradenumber >= 0.8) { grade = 'B-'; } if (gradenumber >= 0.83) { grade = 'B'; } if (gradenumber >= 0.86) { grade = 'B+'; } if (gradenumber >= 0.89) { grade = 'A-'; } if (gradenumber >= 0.9300000000000001) { grade = 'A'; } if (gradenumber >= 0.97) { grade = 'A+'; } if (gradenumber >= 1) { grade = 'A++'; } if (gradenumber >= 1.1) { grade = 'A++'; } } score = Math.round(markers * 7 * time * gradenumber); } } movieClip 946 { } movieClip 954 { } movieClip 956 { frame 20 { stop(); } } movieClip 957 { frame 1 { stop(); } } movieClip 960 { } movieClip 961 { } movieClip 971 { frame 1 { this.createEmptyMovieClip('node1', 1); this.createEmptyMovieClip('node2', 2); this.createEmptyMovieClip('node3', 3); this.createEmptyMovieClip('node4', 4); this.createEmptyMovieClip('node5', 5); this.createEmptyMovieClip('node6', 6); this.createEmptyMovieClip('node7', 7); rand = 1; up = 0; onEnterFrame = function () { powerlevel = _root.powerlevel; if (up == 1) { if (rand < 1) { rand += (powerlevel + 1) / 500; } else { up = 0; } } else { if (rand > -1) { rand -= (powerlevel + 1) / 500; } else { up = 1; } } node2._x = 30 + random(50) - 25; node2._y = powerlevel * rand; node3._x = 90 + random(100) - 50; node3._y = node2._y * -1 / 2; node4._x = 120 + random(70); node4._y = node3._y * -1 / 2; node5._x = 150 + random(100); node5._y = node4._y * -1 / 2; node6._x = 190 + random(150); node6._y = node5._y * -1 / 2; node7._x = 350; node1.createEmptyMovieClip('line_mc1', 8); node1.line_mc1.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50); node1.line_mc1.lineTo(node2._x - node1._x, node2._y - node1._y); node2.createEmptyMovieClip('line_mc2', 9); node2.line_mc2.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50); node2.line_mc2.lineTo(node3._x - node2._x, node3._y - node2._y); node3.createEmptyMovieClip('line_mc3', 10); node3.line_mc3.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50); node3.line_mc3.lineTo(node4._x - node3._x, node4._y - node3._y); node4.createEmptyMovieClip('line_mc4', 10); node4.line_mc4.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50); node4.line_mc4.lineTo(node5._x - node4._x, node5._y - node4._y); node5.createEmptyMovieClip('line_mc5', 10); node5.line_mc5.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50); node5.line_mc5.lineTo(node6._x - node5._x, node6._y - node5._y); node6.createEmptyMovieClip('line_mc6', 10); node6.line_mc6.lineStyle(2, 39423, 100, 40, 'normal', 'none', 'round', 50); node6.line_mc6.lineTo(node7._x - node6._x, node7._y - node6._y); }; } } movieClip 972 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 975 { instance waves of movieClip 972 { onClipEvent (enterFrame) { if (_root.spower == 'none') { gotoAndStop(1); } else { gotoAndStop(2); } } } } movieClip 977 { } movieClip 979 { } movieClip 981 { } movieClip 983 { } movieClip 984 { } movieClip 987 { } movieClip 990 { } movieClip 1005 { frame 1 { stop(); } instance missiontext of movieClip 878 { onClipEvent (load) { dshow = 0; degen = 0; } onClipEvent (enterFrame) { if (dshow >= 1) { degen = 0; _alpha = 100; dshow -= 0.01; } else { degen = 1; } if (degen == 1) { if (_alpha >= 0) { _alpha = _alpha * 0.98; } } } } instance scaler of movieClip 887 { onClipEvent (enterFrame) { _parent._parent.uni._xscale = xx._y; _parent._parent.uni._yscale = _parent._parent.uni._xscale; } } instance rad of movieClip 915 { onClipEvent (enterFrame) { if (_currentframe == 2) { if (_parent.shake == 1) { timeleft -= 0.03333; Math.ceil(timeleft); if (timeleft <= 0) { _root.pchp *= 0.99; } } else { timeleft = 10; } } } } instance auxpowers of movieClip 984 { onClipEvent (enterFrame) { if (_root.spower == 'none') { normal._alpha = 100; armor._alpha = 30; speed._alpha = 30; cloak._alpha = 30; } if (_root.spower == 'armor') { normal._alpha = 30; armor._alpha = 100; speed._alpha = 30; cloak._alpha = 30; } if (_root.spower == 'speed') { normal._alpha = 30; armor._alpha = 30; speed._alpha = 100; cloak._alpha = 30; } if (_root.spower == 'cloak') { normal._alpha = 30; armor._alpha = 30; speed._alpha = 30; cloak._alpha = 100; } } } instance hangericon of movieClip 987 { onClipEvent (load) { _visible = false; } } instance jumpicon of movieClip 990 { onClipEvent (load) { _visible = false; } } instance of movieClip 887 { onClipEvent (enterFrame) { _parent._parent.uni._xscale = xx._y; _parent._parent.uni._yscale = _parent._parent.uni._xscale; } } frame 140 { _parent.uni.targeter.guide = 0.5; } } movieClip 1007 { } movieClip 1009 { } movieClip 1012 { instance of movieClip 1007 { onClipEvent (load) { gotoAndStop(3); } } instance of movieClip 1007 { onClipEvent (load) { gotoAndStop(4); } } instance of movieClip 1007 { onClipEvent (load) { gotoAndStop(2); } } instance of movieClip 1007 { onClipEvent (load) { gotoAndStop(1); } } instance selector of movieClip 1009 { onClipEvent (enterFrame) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent._xmouse; my = _parent._ymouse; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } frame 5 { stop(); onEnterFrame = function () { if (selector._rotation > -45 && selector._rotation < 45) { power = 'STANDARD'; _root.spower = 'none'; normal._xscale = 130; normal._yscale = 130; normal._alpha = 100; } else { normal._xscale = 100; normal._yscale = 100; normal._alpha = 20; } if (selector._rotation > 45 && selector._rotation < 135) { power = 'SPEED'; _root.spower = 'speed'; speed._xscale = 130; speed._yscale = 130; speed._alpha = 100; } else { speed._xscale = 100; speed._yscale = 100; speed._alpha = 20; } if (selector._rotation < -45 && selector._rotation > -135) { power = 'CLOAK'; _root.spower = 'cloak'; cloak._xscale = 130; cloak._yscale = 130; cloak._alpha = 100; } else { cloak._xscale = 100; cloak._yscale = 100; cloak._alpha = 20; } if (selector._rotation < -135 or selector._rotation > 135) { power = 'ARMOR'; _root.phplock = _root.pchp; _root.spower = 'armor'; armor._xscale = 130; armor._yscale = 130; armor._alpha = 100; } else { armor._xscale = 100; armor._yscale = 100; armor._alpha = 20; } }; } instance cloak of movieClip 1007 { onClipEvent (load) { gotoAndStop(3); } } instance speed of movieClip 1007 { onClipEvent (load) { gotoAndStop(4); } } instance armor of movieClip 1007 { onClipEvent (load) { gotoAndStop(2); } } instance normal of movieClip 1007 { onClipEvent (load) { gotoAndStop(1); } } } movieClip 1015 { } movieClip 1019 { frame 1 { stop(); } frame 25 { stop(); } } movieClip 1020 { frame 1 { stop(); _root.gpause = 0; _root.pcom = 0; scale = 1; textt.play(); } frame 2 { _root.gpause = 1; _root.pcom = 1; scale = 100; stop(); textt.play(); } instance of movieClip 1015 { onClipEvent (enterFrame) { _x = _parent._xmouse; _y = _parent._ymouse; } } instance of movieClip 1015 { onClipEvent (enterFrame) { _x = _parent._xmouse; _y = _parent._ymouse; } } } button 1027 { on (release) { _parent.g2.gotoAndStop(1); _parent.g3.gotoAndStop(1); _parent.g4.gotoAndStop(1); if (_name == 'g1') { trace('LOLLLL'); _root.c2guiloadouthit += 1; _parent.g2.gotoAndStop(1); _parent.g3.gotoAndStop(1); _parent.g4.gotoAndStop(1); } if (_name == 'g2') { _parent.g1.gotoAndStop(1); _parent.g3.gotoAndStop(1); _parent.g4.gotoAndStop(1); } if (_name == 'g3') { _parent.g2.gotoAndStop(1); _parent.g1.gotoAndStop(1); _parent.g4.gotoAndStop(1); } if (_name == 'g4') { _parent.g2.gotoAndStop(1); _parent.g3.gotoAndStop(1); _parent.g1.gotoAndStop(1); } gotoAndStop(2); } } button 1030 { on (release) { gotoAndStop(1); } } button 1036 { on (release) { if (ditem == 'Laser I') { if (_parent._parent._name == 'g1') { _root.g1 = 'laseri'; } if (_parent._parent._name == 'g2') { _root.g2 = 'laseri'; } if (_parent._parent._name == 'g3') { _root.g3 = 'laseri'; } if (_parent._parent._name == 'g4') { _root.g4 = 'laseri'; } } if (ditem == 'Laser II') { if (_parent._parent._name == 'g1') { _root.g1 = 'laserii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'laserii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'laserii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'laserii'; } } if (ditem == 'Laser III') { if (_parent._parent._name == 'g1') { _root.g1 = 'laseriii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'laseriii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'laseriii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'laseriii'; } } if (ditem == 'PlasmaTorch I') { if (_parent._parent._name == 'g1') { _root.g1 = 'plasmai'; } if (_parent._parent._name == 'g2') { _root.g2 = 'plasmai'; } if (_parent._parent._name == 'g3') { _root.g3 = 'plasmai'; } if (_parent._parent._name == 'g4') { _root.g4 = 'plasmai'; } } if (ditem == 'PlasmaTorch II') { if (_parent._parent._name == 'g1') { _root.g1 = 'plasmaii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'plasmaii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'plasmaii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'plasmaii'; } } if (ditem == 'PlasmaTorch III') { if (_parent._parent._name == 'g1') { _root.g1 = 'plasmaiii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'plasmaiii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'plasmaiii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'plasmaiii'; } } if (ditem == 'StreakMissile I') { if (_parent._parent._name == 'g1') { _root.g1 = 'streakeri'; } if (_parent._parent._name == 'g2') { _root.g2 = 'streakeri'; } if (_parent._parent._name == 'g3') { _root.g3 = 'streakeri'; } if (_parent._parent._name == 'g4') { _root.g4 = 'streakeri'; } } if (ditem == 'StreakMissile II') { if (_parent._parent._name == 'g1') { _root.g1 = 'streakerii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'streakerii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'streakerii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'streakerii'; } } if (ditem == 'StreakMissile III') { if (_parent._parent._name == 'g1') { _root.g1 = 'streakeriii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'streakeriii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'streakeriii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'streakeriii'; } } if (ditem == 'GuidedMissile I') { if (_parent._parent._name == 'g1') { _root.g1 = 'missilei'; } if (_parent._parent._name == 'g2') { _root.g2 = 'missilei'; } if (_parent._parent._name == 'g3') { _root.g3 = 'missilei'; } if (_parent._parent._name == 'g4') { _root.g4 = 'missilei'; } } if (ditem == 'CapitalMissile I') { if (_parent._parent._name == 'g1') { _root.g1 = 'cmi'; } if (_parent._parent._name == 'g2') { _root.g2 = 'cmi'; } if (_parent._parent._name == 'g3') { _root.g3 = 'cmi'; } if (_parent._parent._name == 'g4') { _root.g4 = 'cmi'; } } if (ditem == 'CapitalMissile II') { if (_parent._parent._name == 'g1') { _root.g1 = 'cmii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'cmii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'cmii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'cmii'; } } if (ditem == 'CapitalMissile III') { if (_parent._parent._name == 'g1') { _root.g1 = 'cmiii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'cmiii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'cmiii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'cmiii'; } } if (ditem == 'GuidedMissile II') { if (_parent._parent._name == 'g1') { _root.g1 = 'missileii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'missileii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'missileii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'missileii'; } } if (ditem == 'GuidedMissile III') { if (_parent._parent._name == 'g1') { _root.g1 = 'missileiii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'missileiii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'missileiii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'missileiii'; } } if (ditem == 'BlackHoleGen I') { if (_parent._parent._name == 'g1') { _root.g1 = 'blacki'; } if (_parent._parent._name == 'g2') { _root.g2 = 'blacki'; } if (_parent._parent._name == 'g3') { _root.g3 = 'blacki'; } if (_parent._parent._name == 'g4') { _root.g4 = 'blacki'; } } if (ditem == 'BlackHoleGen II') { if (_parent._parent._name == 'g1') { _root.g1 = 'blackii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'blackii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'blackii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'blackii'; } } if (ditem == 'BlackHoleGen III') { if (_parent._parent._name == 'g1') { _root.g1 = 'blackiii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'blackiii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'blackiii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'blackiii'; } } if (ditem == 'PulsarLance I') { if (_parent._parent._name == 'g1') { _root.g1 = 'pulsari'; } if (_parent._parent._name == 'g2') { _root.g2 = 'pulsari'; } if (_parent._parent._name == 'g3') { _root.g3 = 'pulsari'; } if (_parent._parent._name == 'g4') { _root.g4 = 'pulsari'; } } if (ditem == 'PulsarLance II') { if (_parent._parent._name == 'g1') { _root.g1 = 'pulsarii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'pulsarii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'pulsarii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'pulsarii'; } } if (ditem == 'PulsarLance III') { if (_parent._parent._name == 'g1') { _root.g1 = 'pulsariii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'pulsariii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'pulsariii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'pulsariii'; } } if (ditem == 'MissileBat I') { if (_parent._parent._name == 'g1') { _root.g1 = 'bati'; } if (_parent._parent._name == 'g2') { _root.g2 = 'bati'; } if (_parent._parent._name == 'g3') { _root.g3 = 'bati'; } if (_parent._parent._name == 'g4') { _root.g4 = 'bati'; } } if (ditem == 'MissileBat II') { if (_parent._parent._name == 'g1') { _root.g1 = 'batii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'batii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'batii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'batii'; } } if (ditem == 'MissileBat III') { if (_parent._parent._name == 'g1') { _root.g1 = 'batiii'; } if (_parent._parent._name == 'g2') { _root.g2 = 'batiii'; } if (_parent._parent._name == 'g3') { _root.g3 = 'batiii'; } if (_parent._parent._name == 'g4') { _root.g4 = 'batiii'; } } if (ditem == '+1% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm1'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm1'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm1'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm1'; } } if (ditem == '+2% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm2'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm2'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm2'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm2'; } } if (ditem == '+3% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm3'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm3'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm3'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm3'; } } if (ditem == '+4% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm4'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm4'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm4'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm4'; } } if (ditem == '+5% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm5'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm5'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm5'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm5'; } } if (ditem == '+6% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm6'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm6'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm6'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm6'; } } if (ditem == '+7% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm7'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm7'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm7'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm7'; } } if (ditem == '+8% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm8'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm8'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm8'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm8'; } } if (ditem == '+9% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm9'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm9'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm9'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm9'; } } if (ditem == '+10% Damage') { if (_parent._parent._name == 'm1') { _root.m1 = 'm10'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm10'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm10'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm10'; } } if (ditem == '+10% Speed') { if (_parent._parent._name == 'm1') { _root.m1 = 'm11'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm11'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm11'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm11'; } } if (ditem == '+20% Speed') { if (_parent._parent._name == 'm1') { _root.m1 = 'm12'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm12'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm12'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm12'; } } if (ditem == '+30% Speed') { if (_parent._parent._name == 'm1') { _root.m1 = 'm13'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm13'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm13'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm13'; } } if (ditem == '+40% Speed') { if (_parent._parent._name == 'm1') { _root.m1 = 'm14'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm14'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm14'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm14'; } } if (ditem == '+50% Speed') { if (_parent._parent._name == 'm1') { _root.m1 = 'm15'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm15'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm15'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm15'; } } if (ditem == '+20% Handling') { if (_parent._parent._name == 'm1') { _root.m1 = 'm16'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm16'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm16'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm16'; } } if (ditem == '+40% Handling') { if (_parent._parent._name == 'm1') { _root.m1 = 'm17'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm17'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm17'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm17'; } } if (ditem == '+60% Handling') { if (_parent._parent._name == 'm1') { _root.m1 = 'm18'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm18'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm18'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm18'; } } if (ditem == '+80% Handling') { if (_parent._parent._name == 'm1') { _root.m1 = 'm19'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm19'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm19'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm19'; } } if (ditem == '+100% Handling') { if (_parent._parent._name == 'm1') { _root.m1 = 'm20'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm20'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm20'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm20'; } } if (ditem == '+20% Energy Regen') { if (_parent._parent._name == 'm1') { _root.m1 = 'm21'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm21'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm21'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm21'; } } if (ditem == '+40% Energy Regen') { if (_parent._parent._name == 'm1') { _root.m1 = 'm22'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm22'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm22'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm22'; } } if (ditem == '+60% Energy Regen') { if (_parent._parent._name == 'm1') { _root.m1 = 'm23'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm23'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm23'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm23'; } } if (ditem == '+80% Energy Regen') { if (_parent._parent._name == 'm1') { _root.m1 = 'm24'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm24'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm24'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm24'; } } if (ditem == '+100% Energy Regen') { if (_parent._parent._name == 'm1') { _root.m1 = 'm25'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm25'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm25'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm25'; } } if (ditem == '+20% Energy Cap') { if (_parent._parent._name == 'm1') { _root.m1 = 'm26'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm26'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm26'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm26'; } } if (ditem == '+40% Energy Cap') { if (_parent._parent._name == 'm1') { _root.m1 = 'm27'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm27'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm27'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm27'; } } if (ditem == '+60% Energy Cap') { if (_parent._parent._name == 'm1') { _root.m1 = 'm28'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm28'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm28'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm28'; } } if (ditem == '+80% Energy Cap') { if (_parent._parent._name == 'm1') { _root.m1 = 'm29'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm29'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm29'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm29'; } } if (ditem == '+100% Energy Cap') { if (_parent._parent._name == 'm1') { _root.m1 = 'm30'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm30'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm30'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm30'; } } if (ditem == '+10% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm31'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm31'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm31'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm31'; } } if (ditem == '+20% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm32'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm32'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm32'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm32'; } } if (ditem == '+30% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm33'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm33'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm33'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm33'; } } if (ditem == '+40% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm34'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm34'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm34'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm34'; } } if (ditem == '+50% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm35'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm35'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm35'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm35'; } } if (ditem == '+60% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm36'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm36'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm36'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm36'; } } if (ditem == '+70% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm37'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm37'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm37'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm37'; } } if (ditem == '+80% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm38'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm38'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm38'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm38'; } } if (ditem == '+90% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm39'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm39'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm39'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm39'; } } if (ditem == '+100% Armor') { if (_parent._parent._name == 'm1') { _root.m1 = 'm40'; } if (_parent._parent._name == 'm2') { _root.m2 = 'm40'; } if (_parent._parent._name == 'm3') { _root.m3 = 'm40'; } if (_parent._parent._name == 'm4') { _root.m4 = 'm40'; } } _parent._parent.gotoAndStop(1); _parent._parent._parent.weapondis._visible = false; } } // unknown tag 88 length 48 button 1040 { on (release) { if (_parent.ditem == 'Laser I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'laseri'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'laseri'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'laseri'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'laseri'; } } if (_parent.ditem == 'Laser II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'laserii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'laserii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'laserii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'laserii'; } } if (_parent.ditem == 'Laser III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'laseriii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'laseriii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'laseriii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'laseriii'; } } if (_parent.ditem == 'PlasmaTorch I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'plasmai'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'plasmai'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'plasmai'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'plasmai'; } } if (_parent.ditem == 'PlasmaTorch II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'plasmaii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'plasmaii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'plasmaii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'plasmaii'; } } if (_parent.ditem == 'PlasmaTorch III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'plasmaiii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'plasmaiii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'plasmaiii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'plasmaiii'; } } if (_parent.ditem == 'StreakMissile I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'streakeri'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'streakeri'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'streakeri'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'streakeri'; } } if (_parent.ditem == 'StreakMissile II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'streakerii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'streakerii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'streakerii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'streakerii'; } } if (_parent.ditem == 'StreakMissile III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'streakeriii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'streakeriii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'streakeriii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'streakeriii'; } } if (_parent.ditem == 'GuidedMissile I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'missilei'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'missilei'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'missilei'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'missilei'; } } if (_parent.ditem == 'CapitalMissile I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'cmi'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'cmi'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'cmi'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'cmi'; } } if (_parent.ditem == 'CapitalMissile II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'cmii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'cmii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'cmii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'cmii'; } } if (_parent.ditem == 'CapitalMissile III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'cmiii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'cmiii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'cmiii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'cmiii'; } } if (_parent.ditem == 'GuidedMissile II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'missileii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'missileii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'missileii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'missileii'; } } if (_parent.ditem == 'GuidedMissile III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'missileiii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'missileiii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'missileiii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'missileiii'; } } if (_parent.ditem == 'BlackHoleGen I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'blacki'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'blacki'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'blacki'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'blacki'; } } if (_parent.ditem == 'BlackHoleGen II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'blackii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'blackii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'blackii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'blackii'; } } if (_parent.ditem == 'BlackHoleGen III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'blackiii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'blackiii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'blackiii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'blackiii'; } } if (_parent.ditem == 'PulsarLance I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'pulsari'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'pulsari'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'pulsari'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'pulsari'; } } if (_parent.ditem == 'PulsarLance II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'pulsarii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'pulsarii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'pulsarii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'pulsarii'; } } if (_parent.ditem == 'PulsarLance III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'pulsariii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'pulsariii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'pulsariii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'pulsariii'; } } if (_parent.ditem == 'MissileBat I') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'bati'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'bati'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'bati'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'bati'; } } if (_parent.ditem == 'MissileBat II') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'batii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'batii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'batii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'batii'; } } if (_parent.ditem == 'MissileBat III') { if (_parent._parent._parent._name == 'g1') { _root.g1 = 'batiii'; } if (_parent._parent._parent._name == 'g2') { _root.g2 = 'batiii'; } if (_parent._parent._parent._name == 'g3') { _root.g3 = 'batiii'; } if (_parent._parent._parent._name == 'g4') { _root.g4 = 'batiii'; } } if (_parent.ditem == '+1% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm1'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm1'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm1'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm1'; } } if (_parent.ditem == '+2% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm2'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm2'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm2'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm2'; } } if (_parent.ditem == '+3% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm3'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm3'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm3'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm3'; } } if (_parent.ditem == '+4% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm4'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm4'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm4'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm4'; } } if (_parent.ditem == '+5% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm5'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm5'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm5'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm5'; } } if (_parent.ditem == '+6% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm6'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm6'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm6'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm6'; } } if (_parent.ditem == '+7% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm7'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm7'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm7'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm7'; } } if (_parent.ditem == '+8% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm8'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm8'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm8'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm8'; } } if (_parent.ditem == '+9% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm9'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm9'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm9'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm9'; } } if (_parent.ditem == '+10% Damage') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm10'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm10'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm10'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm10'; } } if (_parent.ditem == '+10% Speed') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm11'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm11'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm11'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm11'; } } if (_parent.ditem == '+20% Speed') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm12'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm12'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm12'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm12'; } } if (_parent.ditem == '+30% Speed') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm13'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm13'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm13'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm13'; } } if (_parent.ditem == '+40% Speed') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm14'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm14'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm14'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm14'; } } if (_parent.ditem == '+50% Speed') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm15'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm15'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm15'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm15'; } } if (_parent.ditem == '+20% Handling') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm16'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm16'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm16'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm16'; } } if (_parent.ditem == '+40% Handling') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm17'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm17'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm17'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm17'; } } if (_parent.ditem == '+60% Handling') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm18'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm18'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm18'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm18'; } } if (_parent.ditem == '+80% Handling') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm19'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm19'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm19'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm19'; } } if (_parent.ditem == '+100% Handling') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm20'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm20'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm20'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm20'; } } if (_parent.ditem == '+20% Energy Regen') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm21'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm21'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm21'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm21'; } } if (_parent.ditem == '+40% Energy Regen') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm22'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm22'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm22'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm22'; } } if (_parent.ditem == '+60% Energy Regen') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm23'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm23'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm23'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm23'; } } if (_parent.ditem == '+80% Energy Regen') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm24'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm24'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm24'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm24'; } } if (_parent.ditem == '+100% Energy Regen') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm25'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm25'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm25'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm25'; } } if (_parent.ditem == '+20% Energy Cap') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm26'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm26'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm26'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm26'; } } if (_parent.ditem == '+40% Energy Cap') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm27'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm27'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm27'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm27'; } } if (_parent.ditem == '+60% Energy Cap') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm28'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm28'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm28'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm28'; } } if (_parent.ditem == '+80% Energy Cap') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm29'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm29'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm29'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm29'; } } if (_parent.ditem == '+100% Energy Cap') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm30'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm30'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm30'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm30'; } } if (_parent.ditem == '+10% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm31'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm31'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm31'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm31'; } } if (_parent.ditem == '+20% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm32'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm32'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm32'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm32'; } } if (_parent.ditem == '+30% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm33'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm33'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm33'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm33'; } } if (_parent.ditem == '+40% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm34'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm34'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm34'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm34'; } } if (_parent.ditem == '+50% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm35'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm35'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm35'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm35'; } } if (_parent.ditem == '+60% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm36'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm36'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm36'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm36'; } } if (_parent.ditem == '+70% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm37'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm37'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm37'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm37'; } } if (_parent.ditem == '+80% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm38'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm38'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm38'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm38'; } } if (_parent.ditem == '+90% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm39'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm39'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm39'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm39'; } } if (_parent.ditem == '+100% Armor') { if (_parent._parent._parent._name == 'm1') { _root.m1 = 'm40'; } if (_parent._parent._parent._name == 'm2') { _root.m2 = 'm40'; } if (_parent._parent._parent._name == 'm3') { _root.m3 = 'm40'; } if (_parent._parent._parent._name == 'm4') { _root.m4 = 'm40'; } } _parent._parent._parent._parent.weapondis._visible = false; _parent._parent._parent.gotoAndStop(1); } on (rollOut) { _parent._parent._parent._parent.weapondis._visible = false; } on (rollOver) { if (_parent.ditem == 'Laser I') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'Laser I'; _parent._parent._parent._parent.weapondis.e1 = 15; _parent._parent._parent._parent.weapondis.r1 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d1 = 2; _parent._parent._parent._parent.weapondis.w2 = 'Laser II'; _parent._parent._parent._parent.weapondis.e2 = 15; _parent._parent._parent._parent.weapondis.r2 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d2 = 4; _parent._parent._parent._parent.weapondis.w3 = 'Laser III'; _parent._parent._parent._parent.weapondis.e3 = 15; _parent._parent._parent._parent.weapondis.r3 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d3 = 6; } if (_parent.ditem == 'Laser II') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'Laser I'; _parent._parent._parent._parent.weapondis.e1 = 15; _parent._parent._parent._parent.weapondis.r1 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d1 = 2; _parent._parent._parent._parent.weapondis.w2 = 'Laser II'; _parent._parent._parent._parent.weapondis.e2 = 15; _parent._parent._parent._parent.weapondis.r2 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d2 = 4; _parent._parent._parent._parent.weapondis.w3 = 'Laser III'; _parent._parent._parent._parent.weapondis.e3 = 15; _parent._parent._parent._parent.weapondis.r3 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d3 = 6; } if (_parent.ditem == 'Laser III') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'Laser I'; _parent._parent._parent._parent.weapondis.e1 = 15; _parent._parent._parent._parent.weapondis.r1 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d1 = 2; _parent._parent._parent._parent.weapondis.w2 = 'Laser II'; _parent._parent._parent._parent.weapondis.e2 = 15; _parent._parent._parent._parent.weapondis.r2 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d2 = 4; _parent._parent._parent._parent.weapondis.w3 = 'Laser III'; _parent._parent._parent._parent.weapondis.e3 = 15; _parent._parent._parent._parent.weapondis.r3 = '.25 Seconds'; _parent._parent._parent._parent.weapondis.d3 = 6; } if (_parent.ditem == 'StreakMissile I' or _parent.ditem == 'StreakMissile II' or _parent.ditem == 'StreakMissile III') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'StreakMissile I'; _parent._parent._parent._parent.weapondis.e1 = 50; _parent._parent._parent._parent.weapondis.r1 = '3 Seconds'; _parent._parent._parent._parent.weapondis.d1 = 40; _parent._parent._parent._parent.weapondis.w2 = 'StreakMissile II'; _parent._parent._parent._parent.weapondis.e2 = 35; _parent._parent._parent._parent.weapondis.r2 = '2 Seconds'; _parent._parent._parent._parent.weapondis.d2 = 40; _parent._parent._parent._parent.weapondis.w3 = 'StreakMissile III'; _parent._parent._parent._parent.weapondis.e3 = 20; _parent._parent._parent._parent.weapondis.r3 = '1 Seconds'; _parent._parent._parent._parent.weapondis.d3 = 40; } if (_parent.ditem == 'GuidedMissile I' or _parent.ditem == 'GuidedMissile II' or _parent.ditem == 'GuidedMissile III') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'GuidedMissile I'; _parent._parent._parent._parent.weapondis.e1 = 50; _parent._parent._parent._parent.weapondis.r1 = '2 Seconds'; _parent._parent._parent._parent.weapondis.d1 = 60; _parent._parent._parent._parent.weapondis.w2 = 'GuidedMissile I'; _parent._parent._parent._parent.weapondis.e2 = 40; _parent._parent._parent._parent.weapondis.r2 = '1.3 Seconds'; _parent._parent._parent._parent.weapondis.d2 = 60; _parent._parent._parent._parent.weapondis.w3 = 'GuidedMissile I'; _parent._parent._parent._parent.weapondis.e3 = 30; _parent._parent._parent._parent.weapondis.r3 = '.6 Seconds'; _parent._parent._parent._parent.weapondis.d3 = 60; } if (_parent.ditem == 'CapitalMissile I' or _parent.ditem == 'CapitalMissile II' or _parent.ditem == 'CapitalMissile III') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'CapitalMissile I'; _parent._parent._parent._parent.weapondis.e1 = 70; _parent._parent._parent._parent.weapondis.r1 = '8 Seconds'; _parent._parent._parent._parent.weapondis.d1 = 300; _parent._parent._parent._parent.weapondis.w2 = 'CapitalMissile II'; _parent._parent._parent._parent.weapondis.e2 = 50; _parent._parent._parent._parent.weapondis.r2 = '5 Seconds'; _parent._parent._parent._parent.weapondis.d2 = 300; _parent._parent._parent._parent.weapondis.w3 = 'CapitalMissile III'; _parent._parent._parent._parent.weapondis.e3 = 50; _parent._parent._parent._parent.weapondis.r3 = '3 Seconds'; _parent._parent._parent._parent.weapondis.d3 = 300; } if (_parent.ditem == 'PulsarLance I' or _parent.ditem == 'PulsarLance II' or _parent.ditem == 'PulsarLance III') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'PulsarLance I'; _parent._parent._parent._parent.weapondis.e1 = 70; _parent._parent._parent._parent.weapondis.r1 = '.3 Seconds'; _parent._parent._parent._parent.weapondis.d1 = '60/s'; _parent._parent._parent._parent.weapondis.w2 = 'PulsarLance II'; _parent._parent._parent._parent.weapondis.e2 = 100; _parent._parent._parent._parent.weapondis.r2 = '.5 Seconds'; _parent._parent._parent._parent.weapondis.d2 = '150/s'; _parent._parent._parent._parent.weapondis.w3 = 'PulsarLance III'; _parent._parent._parent._parent.weapondis.e3 = 130; _parent._parent._parent._parent.weapondis.r3 = '.3 Seconds'; _parent._parent._parent._parent.weapondis.d3 = '450/s'; } if (_parent.ditem == 'MissileBat I' or _parent.ditem == 'MissileBat II' or _parent.ditem == 'MissileBat III') { _parent._parent._parent._parent.weapondis._visible = true; _parent._parent._parent._parent.weapondis.w1 = 'MissileBat I'; _parent._parent._parent._parent.weapondis.e1 = 120; _parent._parent._parent._parent.weapondis.r1 = '2 Seconds'; _parent._parent._parent._parent.weapondis.d1 = '120(3m)'; _parent._parent._parent._parent.weapondis.w2 = 'MissileBat II'; _parent._parent._parent._parent.weapondis.e2 = 240; _parent._parent._parent._parent.weapondis.r2 = '2 Seconds'; _parent._parent._parent._parent.weapondis.d2 = '240(6m)'; _parent._parent._parent._parent.weapondis.w3 = 'MissileBat III'; _parent._parent._parent._parent.weapondis.e3 = 480; _parent._parent._parent._parent.weapondis.r3 = '2 Seconds'; _parent._parent._parent._parent.weapondis.d3 = '480(12m)'; } } } movieClip 1041 { frame 1 { onEnterFrame = function () { if (_parent._parent._parent._parent._currentframe == 1) { } else { _visible = false; } }; } } // unknown tag 88 length 220 movieClip 1044 { } movieClip 1045 { instance ditem of movieClip 1044 { onClipEvent (enterFrame) { rise = this._y - yt; this._y -= rise / 5; } } } button 1046 { on (release) { if (_name == 'g1') { if (_root.pmoney >= dwname) { _root.pmoney -= dwname; _root.pws += 1; _root.pws1 = 1; gotoAndStop(1); } } if (_name == 'g2') { if (_root.pmoney >= dwname) { _root.pmoney -= dwname; _root.pws += 1; _root.pws2 = 1; gotoAndStop(1); } } if (_name == 'g3') { if (_root.pmoney >= dwname) { _root.pmoney -= dwname; _root.pws += 1; _root.pws3 = 1; gotoAndStop(1); } } if (_name == 'g4') { if (_root.pmoney >= dwname) { _root.pmoney -= dwname; _root.pws += 1; _root.pws4 = 1; gotoAndStop(1); } } } } movieClip 1050 { frame 1 { stop(); } instance of movieClip 1045 { onClipEvent (load) { row = 0; if (_parent._name == 'g1') { _y = -61; _x = 125; } if (_parent._name == 'g2') { _y = -61; _x = -127; } if (_parent._name == 'g3') { _y = -296.4; _x = 125; } if (_parent._name == 'g4') { _y = -296.4; _x = -127; } } onClipEvent (load) { if (_root.lasersi == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'Laser I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.lasersii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'Laser II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.lasersiii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'Laser III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.plasmai == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'PlasmaTorch I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.plasmaii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'PlasmaTorch II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.plasmaiii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'PlasmaTorch III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.streakeri == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'StreakMissile I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.streakerii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'StreakMissile II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.streakeriii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'StreakMissile III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.cmi == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'CapitalMissile I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.cmii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'CapitalMissile II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.cmiii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'CapitalMissile III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.missilei == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'GuidedMissile I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.missileii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'GuidedMissile II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.missileiii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'GuidedMissile III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.blacki == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'BlackHoleGen I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.blackii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'BlackHoleGen II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.blackiii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'BlackHoleGen III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.pulsari == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'PulsarLance I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.pulsarii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'PulsarLance II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.pulsariii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'PulsarLance III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.bati == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'MissileBat I'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.batii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'MissileBat II'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } if (_root.batiii == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = 'MissileBat III'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } ditem._visible = false; } } } button 1053 { on (release) { gotoAndStop(2); if (_name == 'm1') { _parent.m2.gotoAndStop(1); _parent.m3.gotoAndStop(1); _parent.m4.gotoAndStop(1); } if (_name == 'm2') { _parent.m1.gotoAndStop(1); _parent.m3.gotoAndStop(1); _parent.m4.gotoAndStop(1); } if (_name == 'm3') { _parent.m2.gotoAndStop(1); _parent.m1.gotoAndStop(1); _parent.m4.gotoAndStop(1); } if (_name == 'm4') { _parent.m2.gotoAndStop(1); _parent.m3.gotoAndStop(1); _parent.m1.gotoAndStop(1); } } } button 1056 { on (release, releaseOutside) { gotoAndStop(1); } } movieClip 1059 { frame 1 { stop(); } instance of movieClip 1045 { onClipEvent (load) { row = 0; if (_parent._name == 'm1') { _y = -61; _x = 125; } if (_parent._name == 'm2') { _y = -61; _x = -127; } if (_parent._name == 'm3') { _y = -296.4; _x = 125; } if (_parent._name == 'm4') { _y = -296.4; _x = -127; } } onClipEvent (load) { if (_root.mod1 == 1) { if (_root.mod2 == 1) { if (_root.mod3 == 1) { if (_root.mod4 == 1) { if (_root.mod5 == 1) { if (_root.mod6 == 1) { if (_root.mod7 == 1) { if (_root.mod8 == 1) { if (_root.mod9 == 1) { if (_root.mod10 == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+10% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+9% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+9% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+7% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+6% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+5% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+4% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+3% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+2% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+1% Damage'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } if (_root.mod11 == 1) { if (_root.mod12 == 1) { if (_root.mod13 == 1) { if (_root.mod14 == 1) { if (_root.mod15 == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+50% Speed'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+40% Speed'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+30% Speed'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+20% Speed'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+10% Speed'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } if (_root.mod16 == 1) { if (_root.mod17 == 1) { if (_root.mod18 == 1) { if (_root.mod19 == 1) { if (_root.mod20 == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+100% Handling'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+80% Handling'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+60% Handling'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+40% Handling'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+20% Handling'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } if (_root.mod21 == 1) { if (_root.mod22 == 1) { if (_root.mod23 == 1) { if (_root.mod24 == 1) { if (_root.mod25 == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+100% Energy Regen'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+80% Energy Regen'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+60% Energy Regen'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+40% Energy Regen'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+20% Energy Regen'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } if (_root.mod26 == 1) { if (_root.mod27 == 1) { if (_root.mod28 == 1) { if (_root.mod29 == 1) { if (_root.mod30 == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+100% Energy Cap'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+80% Energy Cap'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+60% Energy Cap'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+40% Energy Cap'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+20% Energy Cap'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } if (_root.mod31 == 1) { if (_root.mod32 == 1) { if (_root.mod33 == 1) { if (_root.mod34 == 1) { if (_root.mod35 == 1) { if (_root.mod36 == 1) { if (_root.mod37 == 1) { if (_root.mod38 == 1) { if (_root.mod39 == 1) { if (_root.mod40 == 1) { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+100% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+90% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+80% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+70% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+60% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+50% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+40% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+30% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+20% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } else { ++_root.effectCounter; row += 1; ditem.duplicateMovieClip('item' + _root.effectCounter, _root.effectCounter); this['item' + _root.effectCounter]._visible = true; this['item' + _root.effectCounter].ditem = '+10% Armor'; this['item' + _root.effectCounter]._x = 0; this['item' + _root.effectCounter].yt = 22 * row; } } ditem._visible = false; } } } // unknown tag 88 length 189 button 1066 { on (release) { _root.gpause = 0; remove = 1; gotoAndStop(1); _root.gmenu = 0; _root.bmenu = 0; } } button 1069 { on (release) { if (item == 'Lasers I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwlasersi += 1; } } if (item == 'Lasers II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwlasersii += 1; } } if (item == 'Lasers III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwlasersiii += 1; } } if (item == 'Plasma Thower I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwplasmai += 1; } } if (item == 'Plasma Thower II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwplasmaii += 1; } } if (item == 'Plasma Thower III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwplasmaiii += 1; } } if (item == 'Missile I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmissilei += 1; } } if (item == 'Missile II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmissileii += 1; } } if (item == 'Missile III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmissileiii += 1; } } if (item == 'Singularity Gen I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwblackholei += 1; } } if (item == 'Singularity Gen II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwblackholeii += 1; } } if (item == 'Singularity Gen III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwblackholeiii += 1; } } if (item == 'Pulse Laser I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwpulseri += 1; } } if (item == 'Pulse Laser II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwpulserii += 1; } } if (item == 'Pulse Laser III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwpulseriii += 1; } } if (item == 'Missile Battery I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmbati += 1; } } if (item == 'Missile Battery II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmbatii += 1; } } if (item == 'Missile Battery III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmbatiii += 1; } } if (item == 'ION Cannon I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwioni += 1; } } } } // unknown tag 88 length 173 movieClip 1073 { } button 1074 { on (release) { if (item == 'Lasers I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwlasersi += 1; } } if (item == 'Lasers II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwlasersii += 1; } } if (item == 'Lasers III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwlasersiii += 1; } } if (item == 'Plasma Thower I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwplasmai += 1; } } if (item == 'Plasma Thower II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwplasmaii += 1; } } if (item == 'Plasma Thower III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwplasmaiii += 1; } } if (item == 'Missile I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmissilei += 1; } } if (item == 'Missile II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmissileii += 1; } } if (item == 'Missile III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmissileiii += 1; } } if (item == 'Singularity Gen I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwblackholei += 1; } } if (item == 'Singularity Gen II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwblackholeii += 1; } } if (item == 'Singularity Gen III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwblackholeiii += 1; } } if (item == 'Pulse Laser I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwpulseri += 1; } } if (item == 'Pulse Laser II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwpulserii += 1; } } if (item == 'Pulse Laser III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwpulseriii += 1; } } if (item == 'Missile Battery I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmbati += 1; } } if (item == 'Missile Battery II') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmbatii += 1; } } if (item == 'Missile Battery III') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwmbatiii += 1; } } if (item == 'ION Cannon I') { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pwioni += 1; } } } } button 1076 { on (rollOut) { _parent._parent.weapondis._visible = false; } on (rollOver) { if (_parent.item == 'Laser I') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'Laser I'; _parent._parent.weapondis.e1 = 15; _parent._parent.weapondis.r1 = '.25 Seconds'; _parent._parent.weapondis.d1 = 2; _parent._parent.weapondis.w2 = 'Laser II'; _parent._parent.weapondis.e2 = 15; _parent._parent.weapondis.r2 = '.25 Seconds'; _parent._parent.weapondis.d2 = 4; _parent._parent.weapondis.w3 = 'Laser III'; _parent._parent.weapondis.e3 = 15; _parent._parent.weapondis.r3 = '.25 Seconds'; _parent._parent.weapondis.d3 = 6; } if (_parent.item == 'Laser II') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'Laser I'; _parent._parent.weapondis.e1 = 15; _parent._parent.weapondis.r1 = '.25 Seconds'; _parent._parent.weapondis.d1 = 2; _parent._parent.weapondis.w2 = 'Laser II'; _parent._parent.weapondis.e2 = 15; _parent._parent.weapondis.r2 = '.25 Seconds'; _parent._parent.weapondis.d2 = 4; _parent._parent.weapondis.w3 = 'Laser III'; _parent._parent.weapondis.e3 = 15; _parent._parent.weapondis.r3 = '.25 Seconds'; _parent._parent.weapondis.d3 = 6; } if (_parent.item == 'Laser III') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'Laser I'; _parent._parent.weapondis.e1 = 15; _parent._parent.weapondis.r1 = '.25 Seconds'; _parent._parent.weapondis.d1 = 2; _parent._parent.weapondis.w2 = 'Laser II'; _parent._parent.weapondis.e2 = 15; _parent._parent.weapondis.r2 = '.25 Seconds'; _parent._parent.weapondis.d2 = 4; _parent._parent.weapondis.w3 = 'Laser III'; _parent._parent.weapondis.e3 = 15; _parent._parent.weapondis.r3 = '.25 Seconds'; _parent._parent.weapondis.d3 = 6; } if (_parent.item == 'StreakMissile I' or _parent.item == 'StreakMissile II' or _parent.item == 'StreakMissile III') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'StreakMissile I'; _parent._parent.weapondis.e1 = 50; _parent._parent.weapondis.r1 = '3 Seconds'; _parent._parent.weapondis.d1 = 40; _parent._parent.weapondis.w2 = 'StreakMissile II'; _parent._parent.weapondis.e2 = 35; _parent._parent.weapondis.r2 = '2 Seconds'; _parent._parent.weapondis.d2 = 40; _parent._parent.weapondis.w3 = 'StreakMissile III'; _parent._parent.weapondis.e3 = 20; _parent._parent.weapondis.r3 = '1 Seconds'; _parent._parent.weapondis.d3 = 40; } if (_parent.item == 'GuidedMissile I' or _parent.item == 'GuidedMissile II' or _parent.item == 'GuidedMissile III') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'GuidedMissile I'; _parent._parent.weapondis.e1 = 50; _parent._parent.weapondis.r1 = '2 Seconds'; _parent._parent.weapondis.d1 = 60; _parent._parent.weapondis.w2 = 'GuidedMissile I'; _parent._parent.weapondis.e2 = 40; _parent._parent.weapondis.r2 = '1.3 Seconds'; _parent._parent.weapondis.d2 = 60; _parent._parent.weapondis.w3 = 'GuidedMissile I'; _parent._parent.weapondis.e3 = 30; _parent._parent.weapondis.r3 = '.6 Seconds'; _parent._parent.weapondis.d3 = 60; } if (_parent.item == 'CapitalMissile I' or _parent.item == 'CapitalMissile II' or _parent.item == 'CapitalMissile III') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'CapitalMissile I'; _parent._parent.weapondis.e1 = 70; _parent._parent.weapondis.r1 = '8 Seconds'; _parent._parent.weapondis.d1 = 300; _parent._parent.weapondis.w2 = 'CapitalMissile II'; _parent._parent.weapondis.e2 = 50; _parent._parent.weapondis.r2 = '5 Seconds'; _parent._parent.weapondis.d2 = 300; _parent._parent.weapondis.w3 = 'CapitalMissile III'; _parent._parent.weapondis.e3 = 50; _parent._parent.weapondis.r3 = '3 Seconds'; _parent._parent.weapondis.d3 = 300; } if (_parent.item == 'Pulsar Lance I' or _parent.item == 'Pulsar Lance II' or _parent.item == 'Pulsar Lance III') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'Pulsar Lance I'; _parent._parent.weapondis.e1 = 70; _parent._parent.weapondis.r1 = '.3 Seconds'; _parent._parent.weapondis.d1 = '60/s'; _parent._parent.weapondis.w2 = 'Pulsar Lance II'; _parent._parent.weapondis.e2 = 100; _parent._parent.weapondis.r2 = '.5 Seconds'; _parent._parent.weapondis.d2 = '150/s'; _parent._parent.weapondis.w3 = 'Pulsar Lance III'; _parent._parent.weapondis.e3 = 130; _parent._parent.weapondis.r3 = '.3 Seconds'; _parent._parent.weapondis.d3 = '450/s'; } if (_parent.item == 'Missile Battery I' or _parent.item == 'Missile Battery II' or _parent.item == 'Missile Battery III') { _parent._parent.weapondis._visible = true; _parent._parent.weapondis.w1 = 'Missile Battery I'; _parent._parent.weapondis.e1 = 120; _parent._parent.weapondis.r1 = '2 Seconds'; _parent._parent.weapondis.d1 = '120(3m)'; _parent._parent.weapondis.w2 = 'Missile Battery II'; _parent._parent.weapondis.e2 = 240; _parent._parent.weapondis.r2 = '2 Seconds'; _parent._parent.weapondis.d2 = '240(6m)'; _parent._parent.weapondis.w3 = 'Missile Battery III'; _parent._parent.weapondis.e3 = 480; _parent._parent.weapondis.r3 = '2 Seconds'; _parent._parent.weapondis.d3 = '480(12m)'; } } } movieClip 1078 { } button 1079 { on (release) { if (item == 'Laser I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.lasersi += 1; citem = 'Laser II'; cprice = 500; } } if (item == 'Laser II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.lasersii += 1; citem = 'Laser III'; cprice = 1500; } } if (item == 'Laser III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.lasersiii += 1; remove = 1; } } if (item == 'Plasma Thower I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.plasmai += 1; } } if (item == 'Plasma Thower II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.plasmaii += 1; } } if (item == 'Plasma Thower III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.plasmaiii += 1; } } if (item == 'GuidedMissile I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.missilei += 1; citem = 'GuidedMissile II'; cprice = 2000; } } if (item == 'GuidedMissile II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.missileii += 1; citem = 'GuidedMissile III'; cprice = 3000; } } if (item == 'GuidedMissile III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.missileiii += 1; remove = 1; } } if (item == 'CapitalMissile I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.cmi += 1; citem = 'CapitalMissile II'; cprice = 4000; } } if (item == 'CapitalMissile II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.cmii += 1; citem = 'CapitalMissile III'; cprice = 6000; } } if (item == 'CapitalMissile III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.cmiii += 1; remove = 1; } } if (item == 'Singularity Gen I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.blackholei += 1; } } if (item == 'Singularity Gen II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.blackholeii += 1; } } if (item == 'Singularity Gen III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.blackholeiii += 1; } } if (item == 'Pulsar Lance I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.pulsari += 1; citem = 'Pulsar Lance II'; cprice = 4000; } } if (item == 'Pulsar Lance II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.pulsarii += 1; citem = 'Pulsar Lance III'; cprice = 6000; } } if (item == 'Pulsar Lance III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.pulsariii += 1; remove = 1; } } if (item == 'StreakMissile I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.streakeri += 1; citem = 'StreakMissile II'; cprice = 2000; } } if (item == 'StreakMissile II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.streakerii += 1; citem = 'StreakMissile III'; cprice = 4000; } } if (item == 'StreakMissile III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.streakeriii += 1; remove = 1; } } if (item == 'Missile Battery I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.bati += 1; citem = 'Missile Battery II'; cprice = 8000; } } if (item == 'Missile Battery II') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.batii += 1; citem = 'Missile Battery III'; cprice = 12000; } } if (item == 'Missile Battery III') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.batiii += 1; remove = 1; } } if (item == 'ION Cannon I') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.ioni += 1; } } if (item == 'Weapon Enhance +1% Damage') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod1 += 1; citem = 'Weapon Enhance +2% Damage'; cprice = 1000; } } if (item == 'Weapon Enhance +2% Damage') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod2 += 1; citem = 'Weapon Enhance +3% Damage'; cprice = 3000; } } if (item == 'Weapon Enhance +3% Damage') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod3 += 1; citem = 'Weapon Enhance +4% Damage'; cprice = 6000; } } if (item == 'Weapon Enhance +4% Damage') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod4 += 1; citem = 'Weapon Enhance +5% Damage'; cprice = 12000; } } if (item == 'Weapon Enhance +5% Damage') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod5 += 1; remove = 1; } } if (item == 'Engine Boost +10% Speed') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod11 += 1; citem = 'Engine Boost +20% Speed'; cprice = 500; } } if (item == 'Engine Boost +20% Speed') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod12 += 1; citem = 'Engine Boost +30% Speed'; cprice = 1000; } } if (item == 'Engine Boost +30% Speed') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod13 += 1; citem = 'Engine Boost +40% Speed'; cprice = 1500; } } if (item == 'Engine Boost +40% Speed') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod14 += 1; citem = 'Engine Boost +50% Speed'; cprice = 2500; } } if (item == 'Engine Boost +50% Speed') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod15 += 1; remove = 1; } } if (item == 'Handling +20%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod16 += 1; citem = 'Handling +40%'; cprice = 500; } } if (item == 'Handling +40%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod17 += 1; citem = 'Handling +60%'; cprice = 1000; } } if (item == 'Handling +60%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod18 += 1; citem = 'Handling +80%'; cprice = 1500; } } if (item == 'Handling +80%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod19 += 1; citem = 'Handling +100%'; cprice = 2000; } } if (item == 'Handling +100%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod20 += 1; remove = 1; } } if (item == 'Energy Regeneration +20%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod21 += 1; citem = 'Energy Regeneration +40%'; cprice = 1000; } } if (item == 'Energy Regeneration +40%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod22 += 1; citem = 'Energy Regeneration +60%'; cprice = 2000; } } if (item == 'Energy Regeneration +60%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod23 += 1; citem = 'Energy Regeneration +80%'; cprice = 3000; } } if (item == 'Energy Regeneration +80%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod24 += 1; citem = 'Energy Regeneration +100%'; cprice = 4000; } } if (item == 'Energy Regeneration +100%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod25 += 1; remove = 1; } } if (item == 'Energy Capacity +20%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod26 += 1; citem = 'Energy Capacity +40%'; cprice = 1000; } } if (item == 'Energy Capacity +40%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod27 += 1; citem = 'Energy Capacity +60%'; cprice = 2000; } } if (item == 'Energy Capacity +60%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod28 += 1; citem = 'Energy Capacity +80%'; cprice = 3000; } } if (item == 'Energy Capacity +80%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod29 += 1; citem = 'Energy Capacity +100%'; cprice = 4000; } } if (item == 'Energy Capacity +100%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod30 += 1; remove = 1; } } if (item == 'Armor Enhance +10%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod31 += 1; citem = 'Armor Enhance +20%'; cprice = 500; } } if (item == 'Armor Enhance +20%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod32 += 1; citem = 'Armor Enhance +30%'; cprice = 1500; } } if (item == 'Armor Enhance +30%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod33 += 1; citem = 'Armor Enhance +40%'; cprice = 2500; } } if (item == 'Armor Enhance +40%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod34 += 1; citem = 'Armor Enhance +50%'; cprice = 4500; } } if (item == 'Armor Enhance +50%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod35 += 1; citem = 'Armor Enhance +60%'; cprice = 8500; } } if (item == 'Armor Enhance +60%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod36 += 1; citem = 'Armor Enhance +70%'; cprice = 12000; } } if (item == 'Armor Enhance +70%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod37 += 1; citem = 'Armor Enhance +80%'; cprice = 18000; } } if (item == 'Armor Enhance +80%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod38 += 1; citem = 'Armor Enhance +90%'; cprice = 24000; } } if (item == 'Armor Enhance +90%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod39 += 1; citem = 'Armor Enhance +100%'; cprice = 32000; } } if (item == 'Armor Enhance +100%') { if (_root.pmoney >= dcost.cost) { _root.pmoney -= dcost.cost; _root.mod40 += 1; remove = 1; } } } } movieClip 1080 { frame 1 { onEnterFrame = function () { if (_parent._currentframe == 5) { q_btn._visible = false; } }; } frame 15 { stop(); } } movieClip 1093 { } movieClip 1094 { frame 1 { onEnterFrame = function () { if (_x > 380 / (_parent._xscale / 100) or _x < -380 / (_parent._xscale / 100) or _y > 230 / (_parent._xscale / 100) or _y < -230 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } }; } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } instance of movieClip 1093 { onClipEvent (load) { _x = random(40) - 20; _y = random(40) - 20; _rotation = random(360); gotoAndStop(random(9) + 1); } } } button 1101 { on (release) { _root.pmoney += sellore; _root.pcore = 0; } } button 1108 { on (rollOver) { _parent.nsp = pthrust * 100; _parent.nsa = pmhp; _parent.nse = pce; _parent.nsws = pws; _parent.nsms = pms; } on (rollOut) { _parent.nsp = ''; _parent.nsa = ''; _parent.nse = ''; _parent.nsws = ''; _parent.nsms = ''; } on (release) { _root.pship = pship; _root.pthrust = pthrust; _root.pmhp = pmhp; _root.pchp = pchp; _root.pme = pme; _root.pce = pce; _root.pms = pms; _root.pws = pws; } } movieClip 1110 { } movieClip 1111 { frame 1 { stop(); } } movieClip 1112 { instance of movieClip 1111 { onClipEvent (enterFrame) { if (_parent._parent.lights == 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1111 { onClipEvent (enterFrame) { if (_parent._parent.lights == 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 1114 { } movieClip 1116 { } movieClip 1118 { } movieClip 1120 { } movieClip 1122 { } movieClip 1124 { } movieClip 1125 { frame 2 { pship = 2; pthrust = 0.5; pmhp = 100; pchp = 100; pme = 100; pce = 100; pms = 1; pws = 1; } frame 3 { pship = 3; pthrust = 0.7; pmhp = 130; pchp = 130; pme = 110; pce = 110; pms = 1; pws = 1; } frame 4 { pship = 4; pthrust = 0.7; pmhp = 160; pchp = 160; pme = 130; pce = 130; pms = 1; pws = 2; } frame 5 { pship = 5; pthrust = 1; pmhp = 180; pchp = 180; pme = 170; pce = 170; pms = 1; pws = 2; } frame 6 { pship = 6; pthrust = 1.2; pmhp = 200; pchp = 200; pme = 200; pce = 200; pms = 2; pws = 3; } frame 7 { pship = 7; pthrust = 1.3; pmhp = 240; pchp = 240; pme = 220; pce = 220; pms = 3; pws = 2; } frame 8 { pship = 8; pthrust = 1.4; pmhp = 260; pchp = 260; pme = 250; pce = 250; pms = 3; pws = 3; } frame 9 { pship = 9; pthrust = 1.8; pmhp = 300; pchp = 300; pme = 350; pce = 350; pms = 4; pws = 4; } } movieClip 1145 { } movieClip 1146 { } movieClip 1148 { } button 1152 { on (rollOver) { gotoAndStop(2); } on (rollOut) { gotoAndStop(1); } on (release) { _root.jzone = _name; _parent._parent._parent.jump.gotoAndStop(2); _parent._parent._parent.targeter.jump = 1; _root.jumpx = 325; _root.jumpy = 100; _parent._parent._parent.player.cd = 30; _parent._parent._parent.player.jump = 1; _parent._parent.gotoAndStop(1); } } movieClip 1166 { } movieClip 1168 { } movieClip 1170 { } movieClip 1172 { } movieClip 1173 { instance ast of movieClip 1166 { onClipEvent (load) { ast = _parent._parent.ast; } } instance ene of movieClip 1168 { onClipEvent (load) { ene = _parent._parent.ene; } } instance dis of movieClip 1170 { onClipEvent (load) { dis = _parent._parent.dis; } } instance sec of movieClip 1172 { onClipEvent (load) { sec = _parent._parent.sec; } } frame 30 { stop(); } } movieClip 1174 { frame 1 { stop(); } } movieClip 1175 { frame 25 { stop(); } instance jsa1 of movieClip 1174 { onClipEvent (load) { dis = 'Distance 210k'; ene = 'e105'; sec = 'JSA103'; ast = 'Asteroids 3'; _visible = false; xd = _x + 188; } onClipEvent (enterFrame) { if (xd >= 0) { xd -= 7; } else { _visible = true; } } } instance pt1 of movieClip 1174 { onClipEvent (load) { dis = 'Distance 210k'; ene = 'e105'; sec = 'Sec204'; ast = ''; _visible = false; xd = _x + 188; } onClipEvent (enterFrame) { if (xd >= 0) { xd -= 7; } else { _visible = true; } } } instance rt1 of movieClip 1174 { onClipEvent (load) { dis = 'Distance 210k'; ene = 'e105'; sec = 'JSA103'; ast = 'Asteroids 3'; _visible = false; xd = _x + 188; } onClipEvent (enterFrame) { if (xd >= 0) { xd -= 7; } else { _visible = true; } } } } movieClip 1177 { } button 1178 { on (release) { gotoAndStop(1); } } button 1180 { on (release) { gotoAndStop(2); } } button 1181 { on (release) { gotoAndStop(3); } } button 1182 { on (release) { gotoAndStop(4); } } button 1186 { on (release) { _root.gpause = 0; _root.gmenu = 0; _root.bmenu = 0; _root.spower = 'none'; _parent.gotoAndStop(1); } } movieClip 1191 { } movieClip 1194 { } movieClip 1197 { } movieClip 1200 { } movieClip 1203 { } movieClip 1204 { } button 1205 { on (release) { if (_root.pmoney >= rcost) { _root.pmoney -= rcost; _root.pchp = _root.game.overlay.pmhp; } else { if (_root.pmoney > 0) { _root.pchp += Math.round((_root.game.overlay.pmhp - _root.pchp) * (_root.pmoney / rcost)); _root.pmoney = 0; } } } } movieClip 1209 { } movieClip 1226 { } movieClip 1229 { frame 1 { stop(); } frame 11 { stop(); } frame 20 { stop(); } frame 40 { stop(); } } movieClip 1235 { } button 1237 { on (release) { gotoAndStop(5); } } movieClip 1239 { frame 1 { onEnterFrame = function () { if (cd < 0) { cd = 290; step += 1; if (step > 5) { step = 1; } } cd -= 1; if (step == 1) { hullalpha = 80; energyalpha = 10; drivealpha = 10; weaponalpha = 10; jumpalpha = 10; } if (step == 2) { hullalpha = 10; energyalpha = 80; drivealpha = 10; weaponalpha = 10; jumpalpha = 10; } if (step == 3) { hullalpha = 10; energyalpha = 10; drivealpha = 80; weaponalpha = 10; jumpalpha = 10; } if (step == 4) { hullalpha = 10; energyalpha = 10; drivealpha = 10; weaponalpha = 80; jumpalpha = 10; } if (step == 5) { hullalpha = 10; energyalpha = 10; drivealpha = 10; weaponalpha = 10; jumpalpha = 80; } if (hull._alpha > hullalpha) { hull._alpha -= 1; } if (hull._alpha < hullalpha) { hull._alpha += 1; } if (energy._alpha > energyalpha) { energy._alpha -= 1; } if (energy._alpha < energyalpha) { energy._alpha += 1; } if (drive._alpha > drivealpha) { drive._alpha -= 1; } if (drive._alpha < drivealpha) { drive._alpha += 1; } if (weapon._alpha > weaponalpha) { weapon._alpha -= 1; } if (weapon._alpha < weaponalpha) { weapon._alpha += 1; } if (jump._alpha > jumpalpha) { jump._alpha -= 1; } if (jump._alpha < jumpalpha) { jump._alpha += 1; } }; step = 1; cd = 60; stop(); } frame 1 { remove = 1; } frame 1 { _root.spower = 'none'; } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root[_name]); } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root[_name]); } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root[_name]); } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); } } instance m1 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m1); } } instance m2 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m2); } } instance m3 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m3); } } instance m4 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m4); } } instance of movieClip 1209 { onClipEvent (enterFrame) { if (rcost == 0) { _visible = false; _alpha = 0; } else { rcost = Math.round((_root.game.overlay.pmhp - _root.game.overlay.pchp) * 3); _alpha = 100; _visible = true; } rcost = Math.round((_root.game.overlay.pmhp - _root.game.overlay.pchp) * 3); } } instance g1 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws1 >= 1) { dname = 'Primary Weapon Bay 1'; if (_root.g1 == 'laseri') { dwname = 'Laser I'; } if (_root.g1 == 'laserii') { dwname = 'Laser II'; } if (_root.g1 == 'laseriii') { dwname = 'Laser III'; } if (_root.g1 == 'streakeri') { dwname = 'StreakMissile I'; } if (_root.g1 == 'streakerii') { dwname = 'StreakMissile II'; } if (_root.g1 == 'streakeriii') { dwname = 'StreakMissile III'; } if (_root.g1 == 'missilei') { dwname = 'GuidedMissile I'; } if (_root.g1 == 'missileii') { dwname = 'GuidedMissile II'; } if (_root.g1 == 'missileiii') { dwname = 'GuidedMissile III'; } if (_root.g1 == 'pulsari') { dwname = 'PulsarLance I'; } if (_root.g1 == 'pulsarii') { dwname = 'PulsarLance iI'; } if (_root.g1 == 'pulsariii') { dwname = 'PulsarLance III'; } if (_root.g1 == 'bati') { dwname = 'MissileBat I'; } if (_root.g1 == 'batii') { dwname = 'MissileBat II'; } if (_root.g1 == 'batiii') { dwname = 'MissileBat III'; } if (_root.g1 == 'cmi') { dwname = 'CapitalMissile I'; } if (_root.g1 == 'cmii') { dwname = 'CapitalMissile II'; } if (_root.g1 == 'cmiii') { dwname = 'CapitalMissile III'; } } else { dname = 'Buy WeaponSlot 1'; gotoAndStop(3); dwname = _root.pws * 1000; } } } instance g2 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws2 >= 1) { if (_root.g2 == 'laseri') { dwname = 'Laser I'; } if (_root.g2 == 'laserii') { dwname = 'Laser II'; } if (_root.g2 == 'laseriii') { dwname = 'Laser III'; } if (_root.g2 == 'streakeri') { dwname = 'StreakMissile I'; } if (_root.g2 == 'streakerii') { dwname = 'StreakMissile II'; } if (_root.g2 == 'streakeriii') { dwname = 'StreakMissile III'; } if (_root.g2 == 'missilei') { dwname = 'GuidedMissile I'; } if (_root.g2 == 'missileii') { dwname = 'GuidedMissile II'; } if (_root.g2 == 'missileiii') { dwname = 'GuidedMissile III'; } if (_root.g2 == 'pulsari') { dwname = 'PulsarLance I'; } if (_root.g2 == 'pulsarii') { dwname = 'PulsarLance iI'; } if (_root.g2 == 'pulsariii') { dwname = 'PulsarLance III'; } if (_root.g2 == 'bati') { dwname = 'MissileBat I'; } if (_root.g2 == 'batii') { dwname = 'MissileBat II'; } if (_root.g2 == 'batiii') { dwname = 'MissileBat III'; } if (_root.g2 == 'cmi') { dwname = 'CapitalMissile I'; } if (_root.g2 == 'cmii') { dwname = 'CapitalMissile II'; } if (_root.g2 == 'cmiii') { dwname = 'CapitalMissile III'; } dname = 'Primary Weapon Bay 2'; } else { dname = 'Buy WeaponSlot 2'; gotoAndStop(3); dwname = _root.pws * 1000; } } } instance g3 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws3 >= 1) { dname = 'Primary Weapon Bay 3'; if (_root.g3 == 'laseri') { dwname = 'Laser I'; } if (_root.g3 == 'laserii') { dwname = 'Laser II'; } if (_root.g3 == 'laseriii') { dwname = 'Laser III'; } if (_root.g3 == 'streakeri') { dwname = 'StreakMissile I'; } if (_root.g3 == 'streakerii') { dwname = 'StreakMissile II'; } if (_root.g3 == 'streakeriii') { dwname = 'StreakMissile III'; } if (_root.g3 == 'missilei') { dwname = 'GuidedMissile I'; } if (_root.g3 == 'missileii') { dwname = 'GuidedMissile II'; } if (_root.g3 == 'missileiii') { dwname = 'GuidedMissile III'; } if (_root.g3 == 'pulsari') { dwname = 'PulsarLance I'; } if (_root.g3 == 'pulsarii') { dwname = 'PulsarLance iI'; } if (_root.g3 == 'pulsariii') { dwname = 'PulsarLance III'; } if (_root.g3 == 'bati') { dwname = 'MissileBat I'; } if (_root.g3 == 'batii') { dwname = 'MissileBat II'; } if (_root.g3 == 'batiii') { dwname = 'MissileBat III'; } if (_root.g3 == 'cmi') { dwname = 'CapitalMissile I'; } if (_root.g3 == 'cmii') { dwname = 'CapitalMissile II'; } if (_root.g3 == 'cmiii') { dwname = 'CapitalMissile III'; } } else { dname = 'Buy WeaponSlot 3'; gotoAndStop(3); dwname = _root.pws * 1000; } } } instance g4 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws4 >= 1) { dname = 'Primary Weapon Bay 4'; if (_root.g4 == 'laseri') { dwname = 'Laser I'; } if (_root.g4 == 'laserii') { dwname = 'Laser II'; } if (_root.g4 == 'laseriii') { dwname = 'Laser III'; } if (_root.g4 == 'streakeri') { dwname = 'StreakMissile I'; } if (_root.g4 == 'streakerii') { dwname = 'StreakMissile II'; } if (_root.g4 == 'streakeriii') { dwname = 'StreakMissile III'; } if (_root.g4 == 'missilei') { dwname = 'GuidedMissile I'; } if (_root.g4 == 'missileii') { dwname = 'GuidedMissile II'; } if (_root.g4 == 'missileiii') { dwname = 'GuidedMissile III'; } if (_root.g4 == 'pulsari') { dwname = 'PulsarLance I'; } if (_root.g4 == 'pulsarii') { dwname = 'PulsarLance iI'; } if (_root.g4 == 'pulsariii') { dwname = 'PulsarLance III'; } if (_root.g4 == 'bati') { dwname = 'MissileBat I'; } if (_root.g4 == 'batii') { dwname = 'MissileBat II'; } if (_root.g4 == 'batiii') { dwname = 'MissileBat III'; } if (_root.g4 == 'cmi') { dwname = 'CapitalMissile I'; } if (_root.g4 == 'cmii') { dwname = 'CapitalMissile II'; } if (_root.g4 == 'cmiii') { dwname = 'CapitalMissile III'; } } else { dname = 'Buy WeaponSlot 4'; gotoAndStop(3); dwname = _root.pws * 1000; } } } instance weapondis of movieClip 1226 { onClipEvent (load) { this.swapDepths(150); _visible = false; } } instance tut of movieClip 1229 { onClipEvent (enterFrame) { if (_root.c2guiloadouthit == 1) { play(); _root.c2guiloadouthit = 2; } if (_root.c2guiloadouthit == 3) { play(); _root.c2guiloadouthit = 4; } if (_root.c2guiloadouthit == 5) { play(); _root.c2guiloadouthit = 6; } } } frame 2 { remove = 1; } instance m1 of movieClip 1059 { onClipEvent (load) { dname = 'Primary Module Slot 1'; } onClipEvent (enterFrame) { if (_root.m1 == 'm1') { dwname = '+1% \n Damage'; } if (_root.m1 == 'm2') { dwname = '+2% \n Damage'; } if (_root.m1 == 'm3') { dwname = '+3% \n Damage'; } if (_root.m1 == 'm4') { dwname = '+4% \n Damage'; } if (_root.m1 == 'm5') { dwname = '+5% \n Damage'; } if (_root.m1 == 'm6') { dwname = '+6% \n Damage'; } if (_root.m1 == 'm7') { dwname = '+7% \n Damage'; } if (_root.m1 == 'm8') { dwname = '+8% \n Damage'; } if (_root.m1 == 'm9') { dwname = '+9% \n Damage'; } if (_root.m1 == 'm10') { dwname = '+10% \n Damage'; } if (_root.m1 == 'm11') { dwname = '+10% \n Speed'; } if (_root.m1 == 'm12') { dwname = '+20% \n Speed'; } if (_root.m1 == 'm13') { dwname = '+30% \n Speed'; } if (_root.m1 == 'm14') { dwname = '+40% \n Speed'; } if (_root.m1 == 'm15') { dwname = '+50% \n Speed'; } if (_root.m1 == 'm16') { dwname = '+20% \n Handling'; } if (_root.m1 == 'm17') { dwname = '+40% \n Handling'; } if (_root.m1 == 'm18') { dwname = '+60% \n Handling'; } if (_root.m1 == 'm19') { dwname = '+80% \n Handling'; } if (_root.m1 == 'm20') { dwname = '+100% \n Handling'; } if (_root.m1 == 'm21') { dwname = '+20% \n Energy Regen'; } if (_root.m1 == 'm22') { dwname = '+40% \n Energy Regen'; } if (_root.m1 == 'm23') { dwname = '+60% \n Energy Regen'; } if (_root.m1 == 'm24') { dwname = '+80% \n Energy Regen'; } if (_root.m1 == 'm25') { dwname = '+100% \n Energy Regen'; } if (_root.m1 == 'm26') { dwname = '+20% \n Energy Cap'; } if (_root.m1 == 'm27') { dwname = '+40% \n Energy Cap'; } if (_root.m1 == 'm28') { dwname = '+60% \n Energy Cap'; } if (_root.m1 == 'm29') { dwname = '+80% \n Energy Cap'; } if (_root.m1 == 'm30') { dwname = '+100% \n Energy Cap'; } if (_root.m1 == 'm31') { dwname = '+10% \n Hull Armor'; } if (_root.m1 == 'm32') { dwname = '+20% \n Hull Armor'; } if (_root.m1 == 'm33') { dwname = '+30% \n Hull Armor'; } if (_root.m1 == 'm34') { dwname = '+40% \n Hull Armor'; } if (_root.m1 == 'm35') { dwname = '+50% \n Hull Armor'; } if (_root.m1 == 'm36') { dwname = '+60% \n Hull Armor'; } if (_root.m1 == 'm37') { dwname = '+70% \n Hull Armor'; } if (_root.m1 == 'm38') { dwname = '+80% \n Hull Armor'; } if (_root.m1 == 'm39') { dwname = '+90% \n Hull Armor'; } if (_root.m1 == 'm40') { dwname = '+100% \n Hull Armor'; } } } instance m2 of movieClip 1059 { onClipEvent (load) { dname = 'Module Slot 2'; } onClipEvent (enterFrame) { if (_root.m2 == 'm1') { dwname = '+1% \n Damage'; } if (_root.m2 == 'm2') { dwname = '+2% \n Damage'; } if (_root.m2 == 'm3') { dwname = '+3% \n Damage'; } if (_root.m2 == 'm4') { dwname = '+4% \n Damage'; } if (_root.m2 == 'm5') { dwname = '+5% \n Damage'; } if (_root.m2 == 'm6') { dwname = '+6% \n Damage'; } if (_root.m2 == 'm7') { dwname = '+7% \n Damage'; } if (_root.m2 == 'm8') { dwname = '+8% \n Damage'; } if (_root.m2 == 'm9') { dwname = '+9% \n Damage'; } if (_root.m2 == 'm10') { dwname = '+10% \n Damage'; } if (_root.m2 == 'm11') { dwname = '+10% \n Speed'; } if (_root.m2 == 'm12') { dwname = '+20% \n Speed'; } if (_root.m2 == 'm13') { dwname = '+30% \n Speed'; } if (_root.m2 == 'm14') { dwname = '+40% \n Speed'; } if (_root.m2 == 'm15') { dwname = '+50% \n Speed'; } if (_root.m2 == 'm16') { dwname = '+20% \n Handling'; } if (_root.m2 == 'm17') { dwname = '+40% \n Handling'; } if (_root.m2 == 'm18') { dwname = '+60% \n Handling'; } if (_root.m2 == 'm19') { dwname = '+80% \n Handling'; } if (_root.m2 == 'm20') { dwname = '+100% \n Handling'; } if (_root.m2 == 'm21') { dwname = '+20% \n Energy Regen'; } if (_root.m2 == 'm22') { dwname = '+40% \n Energy Regen'; } if (_root.m2 == 'm23') { dwname = '+60% \n Energy Regen'; } if (_root.m2 == 'm24') { dwname = '+80% \n Energy Regen'; } if (_root.m2 == 'm25') { dwname = '+100% \n Energy Regen'; } if (_root.m2 == 'm26') { dwname = '+20% \n Energy Cap'; } if (_root.m2 == 'm27') { dwname = '+40% \n Energy Cap'; } if (_root.m2 == 'm28') { dwname = '+60% \n Energy Cap'; } if (_root.m2 == 'm29') { dwname = '+80% \n Energy Cap'; } if (_root.m2 == 'm30') { dwname = '+100% \n Energy Cap'; } if (_root.m2 == 'm31') { dwname = '+10% \n Hull Armor'; } if (_root.m2 == 'm32') { dwname = '+20% \n Hull Armor'; } if (_root.m2 == 'm33') { dwname = '+30% \n Hull Armor'; } if (_root.m2 == 'm34') { dwname = '+40% \n Hull Armor'; } if (_root.m2 == 'm35') { dwname = '+50% \n Hull Armor'; } if (_root.m2 == 'm36') { dwname = '+60% \n Hull Armor'; } if (_root.m2 == 'm37') { dwname = '+70% \n Hull Armor'; } if (_root.m2 == 'm38') { dwname = '+80% \n Hull Armor'; } if (_root.m2 == 'm39') { dwname = '+90% \n Hull Armor'; } if (_root.m2 == 'm40') { dwname = '+100% \n Hull Armor'; } } } instance m3 of movieClip 1059 { onClipEvent (load) { dname = 'Module Slot 3'; } onClipEvent (enterFrame) { if (_root.m3 == 'm1') { dwname = '+1% \n Damage'; } if (_root.m3 == 'm2') { dwname = '+2% \n Damage'; } if (_root.m3 == 'm3') { dwname = '+3% \n Damage'; } if (_root.m3 == 'm4') { dwname = '+4% \n Damage'; } if (_root.m3 == 'm5') { dwname = '+5% \n Damage'; } if (_root.m3 == 'm6') { dwname = '+6% \n Damage'; } if (_root.m3 == 'm7') { dwname = '+7% \n Damage'; } if (_root.m3 == 'm8') { dwname = '+8% \n Damage'; } if (_root.m3 == 'm9') { dwname = '+9% \n Damage'; } if (_root.m3 == 'm10') { dwname = '+10% \n Damage'; } if (_root.m3 == 'm11') { dwname = '+10% \n Speed'; } if (_root.m3 == 'm12') { dwname = '+20% \n Speed'; } if (_root.m3 == 'm13') { dwname = '+30% \n Speed'; } if (_root.m3 == 'm14') { dwname = '+40% \n Speed'; } if (_root.m3 == 'm15') { dwname = '+50% \n Speed'; } if (_root.m3 == 'm16') { dwname = '+20% \n Handling'; } if (_root.m3 == 'm17') { dwname = '+40% \n Handling'; } if (_root.m3 == 'm18') { dwname = '+60% \n Handling'; } if (_root.m3 == 'm19') { dwname = '+80% \n Handling'; } if (_root.m3 == 'm20') { dwname = '+100% \n Handling'; } if (_root.m3 == 'm21') { dwname = '+20% \n Energy Regen'; } if (_root.m3 == 'm22') { dwname = '+40% \n Energy Regen'; } if (_root.m3 == 'm23') { dwname = '+60% \n Energy Regen'; } if (_root.m3 == 'm24') { dwname = '+80% \n Energy Regen'; } if (_root.m3 == 'm25') { dwname = '+100% \n Energy Regen'; } if (_root.m3 == 'm26') { dwname = '+20% \n Energy Cap'; } if (_root.m3 == 'm27') { dwname = '+40% \n Energy Cap'; } if (_root.m3 == 'm28') { dwname = '+60% \n Energy Cap'; } if (_root.m3 == 'm29') { dwname = '+80% \n Energy Cap'; } if (_root.m3 == 'm30') { dwname = '+100% \n Energy Cap'; } if (_root.m3 == 'm31') { dwname = '+10% \n Hull Armor'; } if (_root.m3 == 'm32') { dwname = '+20% \n Hull Armor'; } if (_root.m3 == 'm33') { dwname = '+30% \n Hull Armor'; } if (_root.m3 == 'm34') { dwname = '+40% \n Hull Armor'; } if (_root.m3 == 'm35') { dwname = '+50% \n Hull Armor'; } if (_root.m3 == 'm36') { dwname = '+60% \n Hull Armor'; } if (_root.m3 == 'm37') { dwname = '+70% \n Hull Armor'; } if (_root.m3 == 'm38') { dwname = '+80% \n Hull Armor'; } if (_root.m3 == 'm39') { dwname = '+90% \n Hull Armor'; } if (_root.m3 == 'm40') { dwname = '+100% \n Hull Armor'; } } } instance m4 of movieClip 1059 { onClipEvent (load) { dname = 'Module Slot 4'; } onClipEvent (enterFrame) { if (_root.m4 == 'm1') { dwname = '+1% \n Damage'; } if (_root.m4 == 'm2') { dwname = '+2% \n Damage'; } if (_root.m4 == 'm3') { dwname = '+3% \n Damage'; } if (_root.m4 == 'm4') { dwname = '+4% \n Damage'; } if (_root.m4 == 'm5') { dwname = '+5% \n Damage'; } if (_root.m4 == 'm6') { dwname = '+6% \n Damage'; } if (_root.m4 == 'm7') { dwname = '+7% \n Damage'; } if (_root.m4 == 'm8') { dwname = '+8% \n Damage'; } if (_root.m4 == 'm9') { dwname = '+9% \n Damage'; } if (_root.m4 == 'm10') { dwname = '+10% \n Damage'; } if (_root.m4 == 'm11') { dwname = '+10% \n Speed'; } if (_root.m4 == 'm12') { dwname = '+20% \n Speed'; } if (_root.m4 == 'm13') { dwname = '+30% \n Speed'; } if (_root.m4 == 'm14') { dwname = '+40% \n Speed'; } if (_root.m4 == 'm15') { dwname = '+50% \n Speed'; } if (_root.m4 == 'm16') { dwname = '+20% \n Handling'; } if (_root.m4 == 'm17') { dwname = '+40% \n Handling'; } if (_root.m4 == 'm18') { dwname = '+60% \n Handling'; } if (_root.m4 == 'm19') { dwname = '+80% \n Handling'; } if (_root.m4 == 'm20') { dwname = '+100% \n Handling'; } if (_root.m4 == 'm21') { dwname = '+20% \n Energy Regen'; } if (_root.m4 == 'm22') { dwname = '+40% \n Energy Regen'; } if (_root.m4 == 'm23') { dwname = '+60% \n Energy Regen'; } if (_root.m4 == 'm24') { dwname = '+80% \n Energy Regen'; } if (_root.m4 == 'm25') { dwname = '+100% \n Energy Regen'; } if (_root.m4 == 'm26') { dwname = '+20% \n Energy Cap'; } if (_root.m4 == 'm27') { dwname = '+40% \n Energy Cap'; } if (_root.m4 == 'm28') { dwname = '+60% \n Energy Cap'; } if (_root.m4 == 'm29') { dwname = '+80% \n Energy Cap'; } if (_root.m4 == 'm30') { dwname = '+100% \n Energy Cap'; } if (_root.m4 == 'm31') { dwname = '+10% \n Hull Armor'; } if (_root.m4 == 'm32') { dwname = '+20% \n Hull Armor'; } if (_root.m4 == 'm33') { dwname = '+30% \n Hull Armor'; } if (_root.m4 == 'm34') { dwname = '+40% \n Hull Armor'; } if (_root.m4 == 'm35') { dwname = '+50% \n Hull Armor'; } if (_root.m4 == 'm36') { dwname = '+60% \n Hull Armor'; } if (_root.m4 == 'm37') { dwname = '+70% \n Hull Armor'; } if (_root.m4 == 'm38') { dwname = '+80% \n Hull Armor'; } if (_root.m4 == 'm39') { dwname = '+90% \n Hull Armor'; } if (_root.m4 == 'm40') { dwname = '+100% \n Hull Armor'; } } } frame 3 { remove = 1; } instance of movieClip 1235 { onClipEvent (enterFrame) { dname = 'Energy Regeneration'; btn.onRelease = function () { if (cost == '') { } else { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.penr += 0.75; } } }; if (_root.penr == 3) { effect = '+25%'; cost = 100; } if (_root.penr == 3.75) { effect = '+50%'; cost = 200; } if (_root.penr == 4.5) { effect = '+75%'; cost = 400; } if (_root.penr == 5.25) { effect = '+100%'; cost = 800; } if (_root.penr == 6) { effect = '+125%'; cost = 1600; } if (_root.penr == 6.75) { effect = '+150%'; cost = 3300; } if (_root.penr == 7.5) { effect = '+175%'; cost = 6000; } if (_root.penr == 8.25) { effect = '+200%'; cost = 10000; } if (_root.penr > 8) { effect = 'Maxed out'; cost = ''; } } } instance of movieClip 1235 { onClipEvent (enterFrame) { dname = 'Energy Capacity'; btn.onRelease = function () { if (cost == '') { } else { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pme += 25; } } }; if (_root.pme == 100) { effect = '+25%'; cost = 100; } if (_root.pme == 125) { effect = '+50%'; cost = 200; } if (_root.pme == 150) { effect = '+75%'; cost = 400; } if (_root.pme == 175) { effect = '+100%'; cost = 800; } if (_root.pme == 200) { effect = '+125%'; cost = 1600; } if (_root.pme == 225) { effect = '+150%'; cost = 3300; } if (_root.pme == 250) { effect = '+175%'; cost = 6000; } if (_root.pme == 275) { effect = '+200%'; cost = 10000; } if (_root.pme == 300) { effect = 'Maxed Out'; cost = ''; } } } instance of movieClip 1235 { onClipEvent (enterFrame) { dname = 'Hull Strength'; btn.onRelease = function () { if (_root.pmoney >= cost) { if (cost == '') { } else { _root.pmoney -= cost; _root.pmhp += 25; _root.pchp += 25; } } }; if (_root.pmhp == 100) { effect = '+25%'; cost = 100; } if (_root.pmhp == 125) { effect = '+50%'; cost = 200; } if (_root.pmhp == 150) { effect = '+75%'; cost = 400; } if (_root.pmhp == 175) { effect = '+100%'; cost = 800; } if (_root.pmhp == 200) { effect = '+125%'; cost = 1600; } if (_root.pmhp == 225) { effect = '+150%'; cost = 3300; } if (_root.pmhp == 250) { effect = '+175%'; cost = 6000; } if (_root.pmhp == 275) { effect = '+200%'; cost = 10000; } if (_root.pmhp == 300) { effect = 'Maxed Out'; cost = ''; } } } instance of movieClip 1235 { onClipEvent (enterFrame) { dname = 'Weapon Damage'; btn.onRelease = function () { if (cost == '') { } else { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.pweapon += 0.05; } } }; if (_root.pweapon == 1) { effect = '+5%'; cost = 100; } if (_root.pweapon >= 1.05) { effect = '+10%'; cost = 300; } if (_root.pweapon >= 1.1) { effect = '+15%'; cost = 900; } if (_root.pweapon >= 1.15) { effect = '+20%'; cost = 2700; } if (_root.pweapon >= 1.2) { effect = '+25%'; cost = 5100; } if (_root.pweapon >= 1.25) { effect = 'Maxed Out'; cost = ''; } } } instance of movieClip 1235 { onClipEvent (enterFrame) { dname = 'Drive Speed'; btn.onRelease = function () { if (_root.pmoney >= cost) { if (cost == '') { } else { _root.pmoney -= cost; _root.pthrust += 0.05; _root.prthrust += 0.05; } } }; if (_root.pthrust == 0.5) { effect = '+10%'; cost = 100; } if (_root.pthrust == 0.55) { effect = '+20%'; cost = 200; } if (_root.pthrust >= 0.6) { effect = '+30%'; cost = 400; } if (_root.pthrust >= 0.65) { effect = '+40%'; cost = 800; } if (_root.pthrust >= 0.7) { effect = '+50%'; cost = 1600; } if (_root.pthrust >= 0.75) { effect = 'Maxed Out'; cost = ''; } } } instance of movieClip 1235 { onClipEvent (enterFrame) { dname = 'Ship Handling'; btn.onRelease = function () { if (cost == '') { } else { if (_root.pmoney >= cost) { _root.pmoney -= cost; _root.phandling += 0.1; } } }; if (_root.phandling == 1) { effect = '+10%'; cost = 100; } if (_root.phandling >= 1.1) { effect = '+20%'; cost = 200; } if (_root.phandling >= 1.2) { effect = '+30%'; cost = 400; } if (_root.phandling >= 1.3) { effect = '+40%'; cost = 900; } if (_root.phandling >= 1.4) { effect = '+50%'; cost = 1700; } if (_root.phandling >= 1.5) { effect = 'Maxed Out'; cost = ''; } } } frame 4 { nrow = 0; ncol = 0; remove = 0; shopupdate = 1; counter = 1; onEnterFrame = function () { if (shopupdate == 1) { if (nrow > 4) { ncol += 1; nrow = 0; } remove = 0; if (_root.lasersiii == 0 && _root.lasersii == 0 && _root.lasersi == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Laser II'; this['item' + counter].dcost.cost = 500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.lasersiii == 0 && _root.lasersii == 1 && _root.lasersi == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Laser III'; this['item' + counter].dcost.cost = 1500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.missileiii == 0 && _root.missileii == 0 && _root.missilei == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'GuidedMissile I'; this['item' + counter].dcost.cost = 1000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.missileiii == 0 && _root.missileii == 0 && _root.missilei == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'GuidedMissile II'; this['item' + counter].dcost.cost = 2000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.missileiii == 0 && _root.missileii == 1 && _root.missilei == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'GuidedMissile III'; this['item' + counter].dcost.cost = 3000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.pulsariii == 0 && _root.pulsarii == 0 && _root.pulsari == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Pulsar Lance I'; this['item' + counter].dcost.cost = 2000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.pulsariii == 0 && _root.pulsarii == 0 && _root.pulsari == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Pulsar Lance II'; this['item' + counter].dcost.cost = 4000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.pulsariii == 0 && _root.pulsarii == 1 && _root.pulsari == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Pulsar Lance III'; this['item' + counter].dcost.cost = 6000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.batiii == 0 && _root.batii == 0 && _root.bati == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Missile Battery I'; this['item' + counter].dcost.cost = 4000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.batiii == 0 && _root.batii == 0 && _root.bati == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Missile Battery II'; this['item' + counter].dcost.cost = 8000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.batiii == 0 && _root.batii == 1 && _root.bati == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Missile Battery III'; this['item' + counter].dcost.cost = 12000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.streakeriii == 0 && _root.streakerii == 0 && _root.streakeri == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'StreakMissile I'; this['item' + counter].dcost.cost = 1000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.streakeriii == 0 && _root.streakerii == 0 && _root.streakeri == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'StreakMissile II'; this['item' + counter].dcost.cost = 2000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.streakeriii == 0 && _root.streakerii == 1 && _root.streakeri == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'StreakMissile III'; this['item' + counter].dcost.cost = 4000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.cmiii == 0 && _root.cmii == 0 && _root.cmi == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'CapitalMissile I'; this['item' + counter].dcost.cost = 2000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.cmiii == 0 && _root.cmii == 0 && _root.cmi == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'CapitalMissile II'; this['item' + counter].dcost.cost = 4000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.cmiii == 0 && _root.cmii == 1 && _root.cmi == 1) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'CapitalMissile III'; this['item' + counter].dcost.cost = 6000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } shopupdate = 0; } }; } instance item1 of movieClip 1080 { onClipEvent (load) { if (_name == 'item1') { _visible = false; } else {} remove = 0; } onClipEvent (enterFrame) { if (citem == undefined) { } else { dcost.cost = cprice; item = citem; citem = undefined; } if (_name == 'item1') { } else { if (_parent.remove == 1 or remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } } } } instance weapondis of movieClip 1226 { onClipEvent (load) { this.swapDepths(150); _visible = false; } } frame 5 { nrow = 0; ncol = 0; remove = 0; shopupdate = 1; counter = 1; onEnterFrame = function () { if (shopupdate == 1) { if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod1 == 0 && _root.mod2 == 0 && _root.mod3 == 0 && _root.mod4 == 0 && _root.mod5 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Weapon Enhance +1% Damage'; this['item' + counter].dcost.cost = 500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod1 == 1 && _root.mod2 == 0 && _root.mod3 == 0 && _root.mod4 == 0 && _root.mod5 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Weapon Enhance +2% Damage'; this['item' + counter].dcost.cost = 1000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod1 == 1 && _root.mod2 == 1 && _root.mod3 == 0 && _root.mod4 == 0 && _root.mod5 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Weapon Enhance +3% Damage'; this['item' + counter].dcost.cost = 3000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod1 == 1 && _root.mod2 == 1 && _root.mod3 == 1 && _root.mod4 == 0 && _root.mod5 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Weapon Enhance +4% Damage'; this['item' + counter].dcost.cost = 6000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod1 == 1 && _root.mod2 == 1 && _root.mod3 == 1 && _root.mod4 == 1 && _root.mod5 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Weapon Enhance +5% Damage'; this['item' + counter].dcost.cost = 12000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod11 == 0 && _root.mod12 == 0 && _root.mod13 == 0 && _root.mod14 == 0 && _root.mod15 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Engine Boost +10% Speed'; this['item' + counter].dcost.cost = 250; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { nrow = 0; ncol += 1; } if (_root.mod11 == 1 && _root.mod12 == 0 && _root.mod13 == 0 && _root.mod14 == 0 && _root.mod15 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Engine Boost +20% Speed'; this['item' + counter].dcost.cost = 500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod11 == 1 && _root.mod12 == 1 && _root.mod13 == 0 && _root.mod14 == 0 && _root.mod15 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Engine Boost +30% Speed'; this['item' + counter].dcost.cost = 1000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod11 == 1 && _root.mod12 == 1 && _root.mod13 == 1 && _root.mod14 == 0 && _root.mod15 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Engine Boost +40% Speed'; this['item' + counter].dcost.cost = 1500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod11 == 1 && _root.mod12 == 1 && _root.mod13 == 1 && _root.mod14 == 1 && _root.mod15 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Engine Boost +50% Speed'; this['item' + counter].dcost.cost = 2500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod16 == 0 && _root.mod17 == 0 && _root.mod18 == 0 && _root.mod19 == 0 && _root.mod20 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Handling +20%'; this['item' + counter].dcost.cost = 250; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod16 == 1 && _root.mod17 == 0 && _root.mod18 == 0 && _root.mod19 == 0 && _root.mod20 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Handling +40%'; this['item' + counter].dcost.cost = 500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod16 == 1 && _root.mod17 == 1 && _root.mod18 == 0 && _root.mod19 == 0 && _root.mod20 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Handling +60%'; this['item' + counter].dcost.cost = 1000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod16 == 1 && _root.mod17 == 1 && _root.mod18 == 1 && _root.mod19 == 0 && _root.mod20 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Handling +80%'; this['item' + counter].dcost.cost = 1500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod16 == 1 && _root.mod17 == 1 && _root.mod18 == 1 && _root.mod19 == 1 && _root.mod20 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Handling +100%'; this['item' + counter].dcost.cost = 2000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod21 == 0 && _root.mod22 == 0 && _root.mod23 == 0 && _root.mod24 == 0 && _root.mod25 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Regeneration +20%'; this['item' + counter].dcost.cost = 500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod21 == 1 && _root.mod22 == 0 && _root.mod23 == 0 && _root.mod24 == 0 && _root.mod25 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Regeneration +40%'; this['item' + counter].dcost.cost = 1000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod21 == 1 && _root.mod22 == 1 && _root.mod23 == 0 && _root.mod24 == 0 && _root.mod25 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Regeneration +60%'; this['item' + counter].dcost.cost = 2000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod21 == 1 && _root.mod22 == 1 && _root.mod23 == 1 && _root.mod24 == 0 && _root.mod25 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Regeneration +80%'; this['item' + counter].dcost.cost = 3000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod21 == 1 && _root.mod22 == 1 && _root.mod23 == 1 && _root.mod24 == 1 && _root.mod25 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Regeneration +100%'; this['item' + counter].dcost.cost = 4000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod26 == 0 && _root.mod27 == 0 && _root.mod28 == 0 && _root.mod29 == 0 && _root.mod30 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Capacity +20%'; this['item' + counter].dcost.cost = 500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod26 == 1 && _root.mod27 == 0 && _root.mod28 == 0 && _root.mod29 == 0 && _root.mod30 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Capacity +40%'; this['item' + counter].dcost.cost = 1000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod26 == 1 && _root.mod27 == 1 && _root.mod28 == 0 && _root.mod29 == 0 && _root.mod30 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Capacity +60%'; this['item' + counter].dcost.cost = 2000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod26 == 1 && _root.mod27 == 1 && _root.mod28 == 1 && _root.mod29 == 0 && _root.mod30 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Capacity +80%'; this['item' + counter].dcost.cost = 3000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod26 == 1 && _root.mod27 == 1 && _root.mod28 == 1 && _root.mod29 == 1 && _root.mod30 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Energy Capacity +100%'; this['item' + counter].dcost.cost = 4000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 0 && _root.mod32 == 0 && _root.mod33 == 0 && _root.mod34 == 0 && _root.mod35 == 0 && _root.mod36 == 0 && _root.mod37 == 0 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +10%'; this['item' + counter].dcost.cost = 250; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 0 && _root.mod33 == 0 && _root.mod34 == 0 && _root.mod35 == 0 && _root.mod36 == 0 && _root.mod37 == 0 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +20%'; this['item' + counter].dcost.cost = 500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 0 && _root.mod34 == 0 && _root.mod35 == 0 && _root.mod36 == 0 && _root.mod37 == 0 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +30%'; this['item' + counter].dcost.cost = 1500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 1 && _root.mod34 == 0 && _root.mod35 == 0 && _root.mod36 == 0 && _root.mod37 == 0 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +40%'; this['item' + counter].dcost.cost = 2500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 1 && _root.mod34 == 1 && _root.mod35 == 0 && _root.mod36 == 0 && _root.mod37 == 0 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +50%'; this['item' + counter].dcost.cost = 4500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 1 && _root.mod34 == 1 && _root.mod35 == 1 && _root.mod36 == 0 && _root.mod37 == 0 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +60%'; this['item' + counter].dcost.cost = 8500; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 1 && _root.mod34 == 1 && _root.mod35 == 1 && _root.mod36 == 1 && _root.mod37 == 0 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +70%'; this['item' + counter].dcost.cost = 12000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 1 && _root.mod34 == 1 && _root.mod35 == 1 && _root.mod36 == 1 && _root.mod37 == 1 && _root.mod38 == 0 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +80%'; this['item' + counter].dcost.cost = 18000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 1 && _root.mod34 == 1 && _root.mod35 == 1 && _root.mod36 == 1 && _root.mod37 == 1 && _root.mod38 == 1 && _root.mod39 == 0 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +90%'; this['item' + counter].dcost.cost = 24000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } if (nrow > 4) { ncol += 1; nrow = 0; } if (_root.mod31 == 1 && _root.mod32 == 1 && _root.mod33 == 1 && _root.mod34 == 1 && _root.mod35 == 1 && _root.mod36 == 1 && _root.mod37 == 1 && _root.mod38 == 1 && _root.mod39 == 1 && _root.mod40 == 0) { nrow += 1; ++counter; item1.duplicateMovieClip('item' + counter, counter); this['item' + counter]._visible = true; this['item' + counter].item = 'Armor Enhance +100%'; this['item' + counter].dcost.cost = 32000; this['item' + counter]._x = -140 + this.ncol * 200; this['item' + counter]._y = -157 + this.nrow * 50; this['item' + counter].onEnterFrame = function () { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } }; } shopupdate = 0; } }; } } button 1241 { on (release) { gotoAndStop(1); } } button 1242 { on (release) { gotoAndStop(2); } } button 1243 { on (release) { gotoAndStop(3); } } button 1244 { on (release) { gotoAndStop(4); } } movieClip 1245 { instance m1 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m1); } } instance m2 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m2); } } instance m3 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m3); } } instance m4 of movieClip 798 { onClipEvent (enterFrame) { gotoAndStop(_root.m4); } } instance g1 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws1 >= 1) { dname = 'Primary Weapon Bay 1'; dwname = _root.g1; } else { dname = 'Buy WeaponSlot 1'; gotoAndStop(3); dwname = _root.pws * 1000; } } } instance g2 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws2 >= 1) { dwname = _root.g2; dname = 'Primary Weapon Bay 2'; } else { dname = 'Buy WeaponSlot 2'; gotoAndStop(3); dwname = _root.pws * 1000; } } } instance g3 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws3 >= 1) { dname = 'Primary Weapon Bay 3'; dwname = _root.g3; } else { dname = 'Buy WeaponSlot 3'; gotoAndStop(3); dwname = _root.pws * 1000; } } } instance g4 of movieClip 1050 { onClipEvent (enterFrame) { if (_root.pws4 >= 1) { dname = 'Primary Weapon Bay 4'; dwname = _root.g4; } else { dname = 'Buy WeaponSlot 4'; gotoAndStop(3); dwname = _root.pws * 1000; } } } frame 60 { _parent.gotoAndStop(8); } } movieClip 1246 { frame 1 { nrow = 0; ncol = 0; } frame 1 { stop(); } instance g4 of movieClip 1050 { onClipEvent (load) { dname = 'Weapon Slot 4'; } } instance g2 of movieClip 1050 { onClipEvent (load) { dname = 'Weapon Slot 2'; } } instance g1 of movieClip 1050 { onClipEvent (load) { dname = 'Weapon Slot 1'; } } instance g3 of movieClip 1050 { onClipEvent (load) { dname = 'Weapon Slot 3'; } } instance item1 of movieClip 1080 { onClipEvent (load) { if (_name == 'item1') { _visible = false; } else {} } onClipEvent (enterFrame) { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } } } instance of movieClip 1094 { onClipEvent (load) { stop(); } } instance of movieClip 1094 { onClipEvent (load) { gotoAndStop(2); stop(); } } instance of movieClip 1094 { onClipEvent (load) { gotoAndStop(3); stop(); } } instance item1 of movieClip 1125 { onClipEvent (load) { if (_name == 'item1') { _visible = false; } else {} } onClipEvent (enterFrame) { if (_parent.remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } } } } movieClip 1250 { frame 1 { stop(); } frame 60 { _parent.gotoAndStop('empty'); } frame 280 { _root.game.mvl = 0; } frame 313 { stop(); _root.briefing.gotoAndStop(2); } frame 313 { stop(); } frame 314 { _root.game.overlay.scaler.xx._y = 160; } frame 315 { _root.game.overlay.scaler.xx._y -= 2; } frame 316 { _root.game.overlay.scaler.xx._y -= 2; } frame 317 { _root.game.overlay.scaler.xx._y -= 2; } frame 318 { _root.game.overlay.scaler.xx._y -= 2; } frame 319 { _root.game.overlay.scaler.xx._y -= 2; } frame 320 { _root.game.overlay.scaler.xx._y -= 2; } frame 321 { _root.game.overlay.scaler.xx._y -= 2; } frame 322 { _root.game.overlay.scaler.xx._y -= 2; } frame 323 { _root.game.overlay.scaler.xx._y -= 2; } frame 324 { _root.game.overlay.scaler.xx._y -= 2; } frame 325 { _root.game.overlay.scaler.xx._y -= 2; } frame 326 { _root.game.overlay.scaler.xx._y -= 2; } frame 327 { _root.game.overlay.scaler.xx._y -= 2; } frame 328 { _root.game.overlay.scaler.xx._y -= 2; } frame 329 { _root.game.overlay.scaler.xx._y -= 2; } frame 330 { _root.game.overlay.scaler.xx._y -= 2; } frame 331 { _root.game.overlay.scaler.xx._y -= 2; } frame 332 { _root.game.overlay.scaler.xx._y -= 2; } frame 333 { _root.game.overlay.scaler.xx._y -= 2; } frame 334 { _root.game.overlay.scaler.xx._y -= 2; } frame 335 { _root.game.overlay.scaler.xx._y -= 2; } frame 336 { _root.game.overlay.scaler.xx._y -= 2; } frame 337 { _root.game.overlay.scaler.xx._y -= 2; } frame 338 { _root.game.overlay.scaler.xx._y -= 2; } frame 339 { _root.game.overlay.scaler.xx._y -= 2; } frame 340 { _root.game.overlay.scaler.xx._y -= 2; } frame 341 { _root.game.overlay.scaler.xx._y -= 2; } frame 342 { _root.game.overlay.scaler.xx._y -= 2; } frame 343 { _root.game.overlay.scaler.xx._y -= 2; } frame 344 { _root.game.overlay.scaler.xx._y -= 4; } } movieClip 1251 { frame 31 { stop(); } } button 1252 { on (release) { gotoAndStop(2); } } button 1253 { on (release) { gotoAndStop(3); } } button 1254 { on (release) { gotoAndStop(4); } } button 1255 { on (release) { gotoAndStop(1); } } movieClip 1265 { } button 1269 { on (release) { _parent.gotoAndStop(1); } } movieClip 1273 { frame 1 { stop(); } } movieClip 1277 { } movieClip 1278 { } button 1283 { on (release) { _root.gpause = 0; _parent.gotoAndStop(1); } } movieClip 1284 { frame 1 { stop(); } } movieClip 1285 { frame 1 { stop(); } } button 1287 { on (keyPress '~') { if (_root.gpause == 0) { _root.gpause = 1; gotoAndStop(2); } } on (keyPress '`') { if (_root.gpause == 0) { _root.gpause = 1; gotoAndStop(2); } } } button 1291 { on (keyPress '<Enter>') { userinput = input.text; if (userinput == 'halp') { dis = '\n ' + userinput; dis = '\nthere is no help here, unless you say please'; } if (userinput == 'please') { dis = '\n ' + userinput; dis = '\nok, now say pl0x!'; } if (userinput == 'pl0x') { dis = '\n ' + userinput; dis = '\nsince you askeed so nicely heres a site with all the commands \nhttp://lonewolfproductions.us/consol/ \nDont worry about safeness, its the developers site :D \nWould I ever lie to you?'; } if (userinput == 'help') { dis = '\n ' + userinput; dis = '\ntype halp not help asshole'; } if (userinput == 'god yes') { dis = '\n ' + userinput; dis = '\ngodmode activated :D'; _root.pchp = 'god'; } if (userinput == 'god no') { dis = '\n ' + userinput; dis = '\ngodmode deactivated :D'; _root.pchp = _root.pmhp; } if (userinput == 'i_need_teh_monies') { dis = '\n ' + userinput; dis = '\nYou need teh monies? You got it! +100,000 credits'; _root.pmoney = 100000; } if (userinput == 'goto_mission 1') { dis = '\n ' + userinput; dis = '\nGoing to Mission 1'; _root.game.gotoAndStop(1); } if (userinput == 'goto_mission 2') { dis = '\n ' + userinput; dis = '\nGoing to Mission 2'; _root.game.gotoAndStop(2); } if (userinput == 'goto_mission 3') { dis = '\n ' + userinput; dis = '\nGoing to Mission 3'; _root.game.gotoAndStop(3); } if (userinput == 'goto_mission 4') { dis = '\n ' + userinput; dis = '\nGoing to Mission 4'; _root.game.gotoAndStop(4); } if (userinput == 'goto_mission 5') { dis = '\n ' + userinput; dis = '\nGoing to Mission 5'; _root.game.gotoAndStop(5); } if (userinput == 'goto_mission 6') { dis = '\n ' + userinput; dis = '\nGoing to Mission 6'; _root.game.gotoAndStop(6); } if (userinput == 'goto_mission 7') { dis = '\n ' + userinput; dis = '\nGoing to Mission 7'; _root.game.gotoAndStop(7); } if (userinput == 'kill') { dis = '\n ' + userinput; dis = '\nSuicide!'; _root.pchp = -1; } if (userinput == 'repair') { dis = '\n ' + userinput; dis = '\nHull Repaired'; _root.pchp = _root.pmhp; } if (userinput == 'trig++') { dis = '\n ' + userinput; dis = '\nTrigger++ Bro'; ++_root.game.uni.trig; } if (userinput == '4chan') { dis = '\n ' + userinput; dis = '\nNo'; _root.pchp = _root.pmhp; } if (userinput == 'cake') { dis = '\n ' + userinput; dis = '\nIt is delicious...'; _root.pchp = _root.pmhp; } if (userinput == 'open hanger') { dis = '\n ' + userinput; dis = '\nOpening Hanger.'; _root.game.buyscreen.gotoAndStop(8); gotoAndStop(1); } if (userinput == 'CHARGIN MAH LAZER') { dis = '\n ' + userinput; dis = '\nCHARGIN YOUR LASER!!!!!'; _root.pwdamage = 100000; } if (userinput == 'bailey_is_cute') { dis = '\n ' + userinput; dis = '\n SHES FUCKING ADORABLE!!!!'; ++_root.objectCounter; _root.game.uni.attachMovie('mostest', 'm' + _root.objectCounter, _root.objectCounter); _root.allyList.push(_root.game.uni['m' + _root.objectCounter]); _root.enemyList.push(_root.game.uni['m' + _root.objectCounter]); } input.text = ''; } on (keyPress '~') { _root.gpause = 0; gotoAndStop(1); } on (keyPress '`') { _root.gpause = 0; gotoAndStop(1); } } movieClip 1292 { frame 1 { stop(); } frame 2 { dis = 'BlackKnife v.8 \nDeveloper Consol \nType halp for commands'; } } movieClip 1301 { frame 1 { gotoAndStop(random(5) + 1); _rotation = random(360); } } movieClip 1303 { } movieClip 1304 { } movieClip 1307 { } movieClip 1308 { } movieClip 1311 { } movieClip 1312 { } movieClip 1315 { } movieClip 1316 { } movieClip 1320 { } movieClip 1321 { } movieClip 1324 { } movieClip 1326 { } movieClip 1327 { frame 1 { stop(); } } movieClip 1330 { } movieClip 1331 { } movieClip 1334 { frame 1 { gotoAndStop(random(3) + 1); _rotation = random(360); } } movieClip 1335 { instance of movieClip 1304 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1308 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1312 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance p4 of movieClip 1316 { onClipEvent (enterFrame) { if (_root.gpause == 0) { this._rotation += rs; } } } instance of movieClip 1321 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance p6 of movieClip 1327 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _y = _y - rs; rs *= 0.98; this._rotation += rs; } } } instance of movieClip 1331 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 198 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } if (_parent.buytime == 1) { if (_root.gpause == 0) { if (this.hitTest(_parent.player.hit)) { _root.game.overlay.missiontext.mission = 'Press E to interact with Merchant Ship'; _root.game.overlay.missiontext.dshow = 1; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _parent._parent.buyscreen.gotoAndStop(8); } } } } } } } movieClip 1336 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance tracer of movieClip 189 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _rotation + 5; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { edamage = _root.difficulty; if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 15; } aitarget.health -= edamage * 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 3; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 5; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance player of movieClip 811 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } else { if (Key.isDown(_root.upK) or Key.isDown(38) or Key.isDown(68) or Key.isDown(39) or Key.isDown(65) or Key.isDown(37) or Key.isDown(83) or Key.isDown(40)) { trail4._yscale = 100; } else { trail4._yscale = 0; } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (load) { jump.swapDepths(1000); jump.removeMovieClip(); burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust; if (trig == 0) { if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance debri of movieClip 1335 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } } movieClip 1340 { } movieClip 1341 { } movieClip 1344 { } movieClip 1345 { } movieClip 1349 { } movieClip 1350 { } movieClip 1353 { } movieClip 1354 { } movieClip 1357 { } movieClip 1358 { } movieClip 1361 { } movieClip 1362 { } movieClip 1363 { instance of movieClip 1341 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -5; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1345 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -5; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1350 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -5; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1354 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -5; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1358 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -5; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1362 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -5; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1334 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(2) * -1; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } } movieClip 1364 { } movieClip 1365 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance of movieClip 1363 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { edamage = _root.difficulty; if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 15; } aitarget.health -= edamage * 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 3; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 5; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'speed') { _root.spowerspeed = 1; } else { _root.spowerspeed = 0; } if (_root.spower == 'cloak') { _root.powerlevel -= 0.2; if (_root.powerlevel <= 0) { _root.spower = 'none'; } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } instance antaris of movieClip 362 antaris { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } } movieClip 1366 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { edamage = _root.difficulty; if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 15; } aitarget.health -= edamage * 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 3; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 5; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'speed') { _root.spowerspeed = 1; } else { _root.spowerspeed = 0; } if (_root.spower == 'cloak') { _root.powerlevel -= 0.1; if (_root.powerlevel <= 0) { _root.spower = 'none'; } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 1367 { instance of movieClip 1321 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1308 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1304 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance of movieClip 1331 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance p4 of movieClip 1316 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } instance p6 of movieClip 1327 { onClipEvent (load) { rs = (1 / (random(150) + 50)) * random(10) * -4; } onClipEvent (enterFrame) { _rotation = _rotation + rs; } } } movieClip 1368 { frame 1 { onEnterFrame = function () { if (_root.gpause == 0) { if (_parent.debriremove == 1) { this.swapDepths(1000); this.removeMovieClip(); } _x = _x - Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; _y = _y - Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; if (_x < 450 / (_parent._xscale / 100) && _x > -450 / (_parent._xscale / 100) && _y < 350 / (_parent._xscale / 100) && _y > -350 / (_parent._xscale / 100)) { mblips -= 1; if (mblips < 0) { ++_root.effectCounter; attachMovie('blip', 'b' + _root.effectCounter, _root.effectCounter); this['b' + _root.effectCounter]._x = random(300) - 150; this['b' + _root.effectCounter]._y = random(300) - 150; this['b' + _root.effectCounter]._alpha = 50; var v4 = new Color(this['b' + _root.effectCounter]); v4.setRGB(6749952); mblips = random(5); } if (_parent.player.ship.hit.hitTest(this)) { _root.game._root.pchp -= 10 / (Math.abs(_x) + 10) + 10 / (Math.abs(_y) + 10) / 2; } if (_parent.itl.ship.hit.hitTest(this)) { _parent.itl.health -= 10 / (Math.abs(_x) + 10) + 10 / (Math.abs(_y) + 10) / 2; } _visible = true; } else { _visible = false; } } }; mblips = 0; blips = 0; } instance p3 of movieClip 1367 { onClipEvent (load) { gotoAndStop(random(6) + 1); _xscale = random(50) + 50; _yscale = _xscale; _rotation = random(360); _x = random(180) - 90; _y = random(180) - 90; } } instance p3 of movieClip 1367 { onClipEvent (load) { gotoAndStop(random(6) + 1); _xscale = random(50) + 50; _yscale = _xscale; _rotation = random(360); _x = random(180) - 90; _y = random(180) - 90; } } instance p3 of movieClip 1367 { onClipEvent (load) { gotoAndStop(random(6) + 1); _xscale = random(50) + 50; _yscale = _xscale; _rotation = random(360); _x = random(180) - 90; _y = random(180) - 90; } } } movieClip 1369 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { edamage = _root.difficulty; if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 15; } aitarget.health -= edamage * 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 3; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 5; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance of movieClip 1094 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; _rotation = _rotation + rs; } } onClipEvent (load) { _xscale = random(100); _yscale = _xscale; rs = (1 / (random(150) + 50)) * random(10) * -5; _rotation = random(360); } } instance podarea of movieClip 21 { onClipEvent (enterFrame) { this._x = _parent.iltr.ship._x; this._y = _parent.iltr.ship._y; } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'speed') { _root.spowerspeed = 1; } else { _root.spowerspeed = 0; } if (_root.spower == 'cloak') { _root.powerlevel -= 0.1; if (_root.powerlevel <= 0) { _root.spower = 'none'; } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 1374 { frame 11 { gotoAndStop(1); } } movieClip 1375 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { rise = this._y - 0; run = this._x - 366; this._x -= run / 15 / (_parent._xscale / 100); this._y -= rise / 15 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'cloak') { _root.powerlevel -= 0.1; if (_root.powerlevel <= 0) { _root.spower = 'none'; } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } yt *= 0.95; Math.round(yt); } } onClipEvent (enterFrame) { xt = 15; if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y - 5; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); _parent['smoke' + _root.trailCounter].gotoAndStop(10); ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y + 5; _parent['smoke' + _root.trailCounter].gotoAndStop(10); _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 1377 { } movieClip 1379 { } movieClip 1380 { } movieClip 1381 { } movieClip 1384 { } movieClip 1385 { } movieClip 1387 { } movieClip 1389 { } movieClip 1391 { frame 15 { stop(); } } movieClip 1392 { frame 16 { stop(); } } movieClip 1393 { frame 1 { stop(); } } movieClip 1395 { } movieClip 1397 { } movieClip 1398 { instance ship of movieClip 1395 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (Math.abs(_parent._parent.player._x + _parent._x) + Math.abs(_parent._parent.player._y + _parent._y) < 250) { if (_root.spower == 'cloak') { _parent._parent.detection += 1; xt = _parent._parent.player._x - _parent._x; yt = _parent._parent.player._y - _parent._y; xDis = xt; yDis = yt; radAngle = Math.atan2(yDis, xDis); _parent.laser._rotation = int(radAngle * 180 / Math.PI + 90); detect = 1; _parent.laser.gotoAndStop(1); } else { _parent._parent.detection += 10; xt = _parent._parent.player._x - _parent._x; yt = _parent._parent.player._y - _parent._y; xDis = xt; yDis = yt; radAngle = Math.atan2(yDis, xDis); _parent.laser._rotation = int(radAngle * 180 / Math.PI + 90); detect = 1; _parent.laser.gotoAndStop(1); } } else { _parent.laser.gotoAndStop(2); detect = 0; } } } } instance of movieClip 1397 { onClipEvent (enterFrame) { _xscale = 100 - _parent._parent.detection; _yscale = 100 - _parent._parent.detection; _rotation = _rotation + _parent._parent.detection / 10; rise = this._y - _parent.ship.yt; run = this._x - _parent.ship.xt; this._x -= run / 5; this._y -= rise / 5; if (_parent.ship.detect == 1) { if (_alpha < 100) { _alpha = _alpha + 5; } } else { if (_alpha > 0) { _alpha = _alpha - 3; } } } onClipEvent (load) { this._x = _parent.ship._x + random(100) - 50; this._y = _parent.ship._y + random(100) - 50; } } } movieClip 1401 { } movieClip 1403 { frame 1 { stop(); prog = 0; if (_name == 't1') { uid = 1; } if (_name == 't2') { uid = 2; } if (_name == 't3') { uid = 3; } if (_name == 't4') { uid = 4; } if (_name == 't5') { uid = 5; } if (_name == 't6') { uid = 6; } if (_name == 't7') { uid = 7; } onEnterFrame = function () { bar.bar._x = prog; if (prog > 100) { key.remove = 1; gotoAndStop(2); } }; ++_root.permCounter; _parent.attachMovie('keys', 'c7k' + uid, _root.permCounter); key = _parent['c7k' + uid]; trace(key); key._x = 20; key._y = 60; key.inst = 'Hold E'; key.letter = 'E'; key.remove = 0; key.kid = this; key.onEnterFrame = function () { if (this.remove == 1) { _parent.player.datalight.gotoAndStop(1); this._alpha *= 0.9; if (this._alpha < 5) { this.removeMovieClip(); } } else { if (_parent.player.hitTest(hit)) { this._visible = true; if (Key.isDown(_root.interactK)) { _parent.player.datalight.gotoAndStop('blue'); this.gotoAndStop(2); prog += 0.5; } else { this.gotoAndStop(1); _parent.player.datalight.gotoAndStop(1); } bar._visible = true; } else { _parent.player.datalight.gotoAndStop(1); this.gotoAndStop(1); this._visible = false; bar._visible = false; } } }; } frame 2 { _parent.trig += 1; } } movieClip 1404 { frame 1 { stop(); } frame 65 { stop(); } } movieClip 1405 { frame 1 { graveYardId = 100; graveYardRevive = 100; } frame 1 { ++_root.permCounter; _parent.attachMovie('dynamicbar', 'detectbar', _root.permCounter); _parent.detectbar._x = 175; _parent.detectbar.dis = 'Detection'; _parent.detectbar._y = 25; _parent.detectbar.onEnterFrame = function () {}; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { edamage = _root.difficulty; if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 15; } aitarget.health -= edamage * 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 3; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 5; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 7; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'speed') { _root.spowerspeed = 1; } else { _root.spowerspeed = 0; } if (_root.spower == 'cloak') { _root.powerlevel -= 0.1; if (_root.powerlevel <= 0) { _root.spower = 'none'; } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1377 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1381 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } if (this.hitTest(_parent.player)) { _root.game.overlay.shake = 1; } else { _root.game.overlay.shake = 0; } } } instance of movieClip 1385 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1387 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1389 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance of movieClip 1398 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t6 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t1 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t2 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t4 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t3 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t7 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t5 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance superexplosion of movieClip 1404 { onClipEvent (load) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } } movieClip 1421 { } movieClip 1422 { frame 15 { stop(); } } movieClip 1423 { frame 15 { stop(); } } button 1425 { on (release) { getURL('http://armorgames.com/#!/?ref=blackknife', '_blank'); } } movieClip 1426 { } button 1428 { on (release) { stopAllSounds(); _root.gotoAndStop('mainmenu'); } } movieClip 1429 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 30 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= _root.ewdamage * 10; } aitarget.health -= _root.ewdamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 1; } aitarget.health -= 1; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 1; } aitarget.health -= 1; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 15; } aitarget.health -= 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 3; } aitarget.health -= 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 5; } aitarget.health -= 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 10; } aitarget.health -= 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'speed') { _root.spowerspeed = 1; } else { _root.spowerspeed = 0; } if (_root.spower == 'cloak') { _root.powerlevel -= 0.1; if (_root.powerlevel <= 0) { _root.spower = 'none'; } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 1426 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } instance t1 of movieClip 1403 { onClipEvent (enterFrame) { if (_x >= 750 / (_parent._xscale / 100) or _x <= -750 / (_parent._xscale / 100) or _y >= 550 / (_parent._xscale / 100) or _y <= -550 / (_parent._xscale / 100)) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } } movieClip 1430 { frame 61 { stop(); } } movieClip 1431 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= _root.ewdamage * 10; } aitarget.health -= _root.ewdamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 1; } aitarget.health -= 1; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 1; } aitarget.health -= 1; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 15; } aitarget.health -= 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 3; } aitarget.health -= 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 5; } aitarget.health -= 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= 10; } aitarget.health -= 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'speed') { _root.spowerspeed = 1; } else { _root.spowerspeed = 0; } if (_root.spower == 'cloak') { _root.powerlevel -= 0.2; if (_root.powerlevel <= 0) { _root.spower = 'none'; } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 1432 { frame 1 { graveYardId = 100; graveYardRevive = 100; } instance playera of movieClip 726 { onClipEvent (enterFrame) { ship._x = 323 - _parent._x; ship._y = 207 - _parent._y; } onClipEvent (load) { real = 1; } } instance smoke1 of movieClip 736 { onClipEvent (enterFrame) { if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (_name == 'smoke1') { _visible = false; } else { _visible = true; if (_alpha >= 0) { _alpha = _alpha - 1; } else { this.swapDepths(1000); this.removeMovieClip(); } } } } onClipEvent (load) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.tracer._x; my = _parent.tracer._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } } instance targeter of movieClip 189 { onClipEvent (enterFrame) { if (_root.gpause == 0) { targeter._visible = false; if (jump == 0) { rise = (this._y - _parent._ymouse) * (_parent._xscale / 100); run = (this._x - _parent._xmouse) * (_parent._xscale / 100); } else { rise = this._y - _root.jumpy; run = this._x - _root.jumpx; } xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= run / 3 / (_parent._xscale / 100); this._y -= rise / 3 / (_parent._xscale / 100); _rotation = _rotation + 5; } } onClipEvent (load) { jump = 0; } } instance shot1 of movieClip 787 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (this._name == 'shot1') { } else { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; } } } onClipEvent (enterFrame) { if (_root.gpause == 0) { wdamage = _root.pwdamage * _parent.player.m1.damage * _parent.player.m2.damage * _parent.player.m3.damage * _parent.player.m4.damage / _root.difficulty / _root.difficulty; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (hit.hit.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 300 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 32) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 34) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 8; this.nextFrame(); this.dead = 1; } } if (movespeed <= 20) { movespeed += 1; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 2) { for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (movespeed <= 12) { movespeed += 3; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 4 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 3; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 6 / _root.enemyList[i].cat; this.nextFrame(); this.dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage; this.nextFrame(); } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 60 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed < 8) { movespeed += 1; } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 2 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 5 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { _root.enemyList[i].health -= wdamage * 15 / _root.enemyList[i].cat; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= wdamage * 40 / _root.enemyList[i].cat; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed += 2; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x - mbx; yDis = _parent.targeter._y - _y - mby; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (_x >= 400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_x <= -400 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y >= 250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } if (_y <= -250 / (_parent._xscale / 100)) { this.swapDepths(1000); this.removeMovieClip(); } } } onClipEvent (load) { rcd = 0; if (cl == 2) { } if (cl == 14) { cd = 120; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { cd = 30; } if (cl == 30) { cd = 60; } if (cl == 38) { cd = 90; } if (_name == 'shot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6 or cl == 32 or cl == 34) { movespeed = 1; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 36) { movespeed = 1; } if (cl == 38) { movespeed = 1; } if (cl == 30) { movespeed = 12; } } remove = 0; dead = 0; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; } } instance eshot1 of movieClip 787 { onClipEvent (enterFrame) { edamage = _root.difficulty; if (_x + _parent._x >= 750 or _x + _parent._x <= -100 or _y + _parent._y >= 500 or _y + _parent._y <= -100) { _visible = false; } else { _visible = true; } if (_root.gpause == 0) { _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; if (cl == 36) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); dead = 1; } } if (movespeed <= 9) { movespeed += 0.2; } rcd -= 1; if (dead == 0) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd > 0) { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; } } } if (cl == 38) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (this.hitTest(_parent.targeter)) { if (dead == 0) { nextFrame(); dead = 1; } } for (i in _root.enemyList) { if (this.hitTest(_root.enemyList[i].ship.hit)) { if (dead == 0) { _root.enemyList[i].health -= pwdamage * 40; nextFrame(); dead = 1; } } } if (movespeed <= 25) { movespeed *= 1.1; } rcd += 1; if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } if (rcd < 5) { radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } } if (cl == 2) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= 1; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 4) { movespeed = 4; if (dead == 0) { cd -= 1; if (cd <= 0) { easeremove = 1; } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage; } aitarget.health -= edamage; nextFrame(); dead = 1; } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 6) { if (movespeed <= 12) { movespeed += 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; nextFrame(); } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; nextFrame(); } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; nextFrame(); } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 8) { _x = _x + xs; _alpha = _alpha - 6; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 10) { _x = _x + xs; _alpha = _alpha - 4; if (_alpha <= 0) { remove = 1; } i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 12) { _x = _x + xs; _alpha = _alpha - 2; if (_alpha <= 0) { remove = 1; } if (this.hitTest(_parent.uni)) { i = 1; while (i <= 10) { if (this.hitTest(_parent.uni['a' + i])) { _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } } if (this.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 14) { cd -= 1; if (cd >= 0) { if (dead == 0) { if (this.hit.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 15; } aitarget.health -= edamage * 20; nextFrame(); dead = 1; } } } } if (dead == 0) { if (cl == 14) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } if (cl == 16) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 3; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 3; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 3; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 3; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 18) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 20) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { if (_parent.uni['jf' + i].ship._x >= _x - _parent.uni._x - _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x -= 6; } if (_parent.uni['jf' + i].ship._x <= _x + _parent.uni._x + _parent.uni['jf' + i]._x) { _parent.uni['jf' + i].ship._x += 6; } if (_parent.uni['jf' + i].ship._y >= _y - _parent.uni._y - _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y -= 6; } if (_parent.uni['jf' + i].ship._y <= _y + _parent.uni._y + _parent.uni['jf' + i]._y) { _parent.uni['jf' + i].ship._y += 6; } if (hit.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 22) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 3; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 24) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage * 4; dead = 1; } } else { if (this.hitTest(aitarget.ship)) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 5; } aitarget.health -= edamage * 5; dead = 1; } } if (dead == 0) { if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x; yDis = _parent._parent.player._y - _y - _parent._y; } else { xDis = aitarget.ship._x - _x; yDis = aitarget.ship._y - _y; if (xDis == 'NaN') { nextFrame(); dead = 1; } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 26) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } _x = _parent.player._x; _y = _parent.player._y; } if (cl == 28) { cd -= 1; if (cd <= 0) { if (dead == 0) { nextFrame(); dead = 1; } } i = 1; while (i <= 10) { if (hit.Test(_parent.uni['a' + i])) { if (_parent.uni['a' + i]._x >= _x) { } _parent.uni['a' + i].health -= _root.pwdamage; } if (this.hitTest(_parent.uni['jf' + i].ship.hit)) { _parent.uni['jf' + i].health -= _root.pwdamage * 3; _parent.uni.alert = 1; _parent.uni['jf' + i].ship.actioncounter -= 5; } ++i; } if (hit.hitTest(_parent.uni['e' + i].ship.hit)) { _parent.uni['e' + i].health -= _root.pwdamage; _parent.uni['e' + i].ship.alert = 1; _parent.uni['e' + i].ship.actioncounter -= 5; if (dead == 0) { nextFrame(); dead = 1; } } if (dead == 0) { _x = _parent.player._x; _y = _parent.player._y; xDis = _parent.targeter._x - _x; yDis = _parent.targeter._y - _y; if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (cl == 30) { cd -= 1; if (cd <= 0) { if (dead == 0) { remove = 1; nextFrame(); dead = 1; } } if (_parent.aitargets == 1) { if (this.hitTest(_parent._parent.player.hit)) { _root.pchp -= edamage; nextFrame(); dead = 1; } } else { if (this.hitTest(aitarget.ship.hit)) { if (dead == 0) { if (aitarget == _level0.game.uni.player) { _root.pchp -= edamage * 10; } aitarget.health -= edamage * 10; nextFrame(); } dead = 1; } } } if (dead == 0) { if (cl == 30) { if (movespeed <= 8) { movespeed += 0.5; } if (mcd >= 0) { mcd -= 1; if (_parent.aitargets == 1) { xDis = _parent._parent.player._x - _x - _parent._x - mbx; yDis = _parent._parent.player._y - _y - _parent._y - mby; } else { xDis = aitarget.ship._x - _x - mbx; yDis = aitarget.ship._y - _y - mby; if (xDis == 'NaN') { nextFrame(); dead = 1; } } } } if (_rotation > 180) { _x = _x - movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y + movespeed * Math.cos(0.0174532925199433 * _rotation); } else { _x = _x + movespeed * Math.sin(0.0174532925199433 * _rotation); _y = _y - movespeed * Math.cos(0.0174532925199433 * _rotation); } radAngle = Math.atan2(yDis, xDis); _rotation = int(radAngle * 180 / Math.PI + 90); } } if (remove == 1) { this.swapDepths(1000); this.removeMovieClip(); } if (easeremove == 1) { _alpha = _alpha * 0.8; if (_alpha <= 10) { this.swapDepths(1000); this.removeMovieClip(); } } if (this._name == 'eshot1') { } else {} } onClipEvent (load) { pdis = Math.abs(_x - _parent.player.ship._x) + Math.abs(_y - _parent.player.ship._y); _visible = false; easeremove = 0; rcd = 0; gotoAndStop(cl + 1); if (cl == 2 or cl == 4) { cd = 30; } if (cl == 2222) { if (pdis <= 400) { cd = 30; ++_parent._parent.soundholder.cd; _parent._parent.soundholder.createEmptyMovieClip('weapon_mc' + _parent._parent.soundholder.cd, _parent._parent.soundholder.cd); var weapon_snd = new Sound(_parent._parent.soundholder['weapon_mc' + _parent._parent.soundholder.cd]); weapon_snd.attachSound('laser'); weapon_snd.start(); if (1000 / pdis < 20) { weapon_snd.setVolume(1000 / pdis); } else { weapon_snd.setVolume(20); } } } if (cl == 14) { cd = 120; mcd = 20; } if (cl == 16) { cd = 120; } if (cl == 18) { cd = 160; } if (cl == 20) { cd = 200; } if (cl == 22) { cd = 10; } if (cl == 24) { cd = 15; } if (cl == 26) { cd = 20; } if (cl == 28) { mcd = 20; cd = 30; } if (cl == 30) { mcd = 10; cd = 60; } if (cl == 36) { rcd = 0; mcd = 0; cd = 60; } if (_name == 'eshot1') { movespeed = 0; stop(); _visible = false; } else { if (cl == 2 or cl == 4 or cl == 6) { movespeed = 12; } if (cl == 8) { movespeed = 4; xs = random(5) - 2.5; } if (cl == 10) { movespeed = 6; xs = random(5) - 2.5; } if (cl == 12) { movespeed = 8; xs = random(5) - 2.5; } if (cl == 14) { movespeed = 1; } if (cl == 30 or cl == 36) { rcd = 2; movespeed = 1; } } remove = 0; dead = 0; remove = 0; xDis = xt - _x; yDis = yt - _y; } } instance player of movieClip 811 { onClipEvent (load) { burst = 0; real = 1; _root.allyList.push(this); bcd = 50; jump = 1; dead = 0; xt = 0; cd = 30; pilot = 0; yt = 0; cloak = -1; oldrot = _rotation; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { if (_root.spower == 'speed') { _root.spowerspeed = 1; } else { _root.spowerspeed = 0; } if (_root.spower == 'cloak') { if (_root.aioff == 1) { } else { if (_parent.g1.g.fire == 1 or _parent.g2.g.fire == 1 or _parent.g3.g.fire == 1 or _parent.g4.g.fire == 1) { _root.spower = 'none'; } _root.powerlevel -= 0.2; if (_root.powerlevel <= 0) { _root.spower = 'none'; } } hit.gotoAndStop(2); ship.hit.gotoAndStop(2); if (_alpha > 20) { _parent.g1._alpha -= 3; _parent.g2._alpha -= 3; _parent.g3._alpha -= 3; _parent.g4._alpha -= 3; _alpha = _alpha - 3; } } else { hit.gotoAndStop(1); ship.hit.gotoAndStop(1); if (_alpha < 100) { _parent.g1._alpha += 3; _parent.g2._alpha += 3; _parent.g3._alpha += 3; _parent.g4._alpha += 3; _alpha = _alpha + 3; } } if (_parent.uni._x >= 2500 + _x or _parent.uni._x <= -2500 + _x or _parent.uni._y <= -2500 + _y or _parent.uni._y >= 2500 + _y) { } else { _parent.overlay.shake = 0; } if (Math.round(Math.abs(xt) + Math.abs(yt))) { } rotchange = _rotation - oldrot; oldrot = _rotation; if (rotchange >= 0) { sideburners.gotoAndStop(2); } if (rotchange <= 0) { sideburners.gotoAndStop(3); } if (rotchange == 0) { sideburners.gotoAndStop(1); } trail1._yscale = (Math.abs(yt) + Math.abs(xt)) * 15; trail3._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._yscale = (Math.abs(yt) + Math.abs(xt)) * 10; trail2._xscale = (Math.abs(yt) + Math.abs(xt)) * 5; trail1._xscale = (Math.abs(yt) + Math.abs(xt)) * 10; _parent.g1._x = Math.cos(this._rotation * 6.283185307179586 / 360) * 5 + this._x; _parent.g1._y = Math.sin(this._rotation * 6.283185307179586 / 360) * 5 + this._y; _parent.g2._x = Math.cos((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._x; _parent.g2._y = Math.sin((this._rotation + 180) * 6.283185307179586 / 360) * 5 + this._y; _parent.g4._x = Math.cos((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._x; _parent.g4._y = Math.sin((this._rotation + 140) * 6.283185307179586 / 360) * 5 + this._y; _parent.g3._x = Math.cos((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._x; _parent.g3._y = Math.sin((this._rotation + 40) * 6.283185307179586 / 360) * 5 + this._y; if (jump == 0) { if (pilot == 0) { lights = 1; player._x += xt; player._y += yt; if (Key.isDown(_root.upK) or Key.isDown(38)) { if (yt >= 0) { yt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt -= pthrust; } } if (Key.isDown(_root.downK) or Key.isDown(40)) { if (yt <= 0) { yt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { yt += pthrust; } } if (Key.isDown(_root.leftK) or Key.isDown(37)) { if (xt >= 0) { xt -= pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt -= pthrust; } } if (Key.isDown(_root.rightK) or Key.isDown(39)) { if (xt <= 0) { xt += pthrust * _root.phandling * m1.handling * m2.handling * m3.handling * m4.handling; } else { xt += pthrust; } } } } } else { if (_root.race == 1) { _parent.racereport.fail = 1; _parent.overlay.racereport.gotoAndStop(2); _parent.uni._x = 0; _parent.uni._y = 0; _parent.gotoAndStop('emptyreturn'); _root.wflash.gotoAndPlay(2); _root.race = 0; dead = 0; _root.pchp = 100; } else { _parent.overlay._alpha = 5; gotoAndStop('dead'); } } if (xt <= 0.1 && xt >= -0.1) { xt = 0; } if (yt <= 0.1 && yt >= -0.1) { yt = 0; } bcd -= 1; if (bcd < 0) { if (Key.isDown(81)) { bcd = 50; burst = 3; } } if (burst > 1) { burst *= 0.7; } else { burst = 1; } mxt = Math.abs(Math.asin(Math.abs(yt) / Math.sqrt(xt * xt + yt * yt + 1))); myt = Math.abs(Math.asin(Math.abs(xt) / Math.sqrt(xt * xt + yt * yt + 1))); xt *= 0.95 - mxt / 15; Math.round(xt); yt *= 0.95 - myt / 15; Math.round(yt); } } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (dead == 0) { _root.thruster_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 15); if (jump == 1) { } pthrust = _root.pthrust + _root.spowerspeed; if (Key.isDown(_root.afterburnerK)) { if (_root.thrust >= 0) { _parent._parent.back.shake = 1; _root.thrust -= 0.5; ++_root.trailCounter; _parent.smoke1.duplicateMovieClip('smoke' + _root.trailCounter, _root.trailCounter); _parent['smoke' + _root.trailCounter]._visible = true; _parent['smoke' + _root.trailCounter]._rotation = this._rotation; _parent['smoke' + _root.trailCounter]._x = this._x; _parent['smoke' + _root.trailCounter]._y = this._y; _parent['smoke' + _root.trailCounter]._yscale = (Math.abs(xt) + Math.abs(yt)) * 10; afterburner_snd.setVolume((Math.abs(xt) + Math.abs(yt)) * 2); if (_root.pthrust <= _root.prthrust * 2) { _root.pthrust *= 1.05; } } else { _root.pthrust = _root.prthrust; _parent._parent.back.shake = 0; } } else { _parent._parent.back.shake = 0; if (_root.thrust <= 60) { _root.thrust += 1; } _root.pthrust = _root.prthrust; } if (pilot == 0) { cx = this._x; cy = this._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); this._rotation = angle * convert + 90; } else { cx = _parent.pilot._x; cy = _parent.pilot._y; convert = 57.29577951308232; mx = _parent.targeter._x; my = _parent.targeter._y; angle = Math.atan2(my - cy, mx - cx); _parent.pilot._rotation = angle * convert + 90; } } } } } instance g1 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g1); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance g2 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g2); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g4 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g4); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale >= -200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = -100; _yscale = _xscale; } } } instance g3 of movieClip 863 { onClipEvent (enterFrame) { gotoAndStop(_root.g3); _rotation = _parent.player._rotation; if (_root.bmenu == 1) { if (_xscale <= 200) { _xscale = _xscale * 1.1; _rotation = 0; } _yscale = _xscale; } else { _xscale = 100; _yscale = _xscale; } } } instance tracer of movieClip 1364 { onClipEvent (enterFrame) { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); this._x -= (run / 5) * (_parent._xscale / 100); this._y -= (rise / 5) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(1); } } instance speedtrace of movieClip 1364 { onClipEvent (enterFrame) { if (_root.spower == 'speed') { rise = this._y - _parent.player._y; run = this._x - _parent.player._x; xdis = Math.abs(_x - _parent.player._x); ydis = Math.abs(_y - _parent.player._y); dis = Math.round((xdis ^ 2) + (ydis ^ 2)); ship._alpha = (Math.abs(rise) + Math.abs(run)) * 10; this._x -= (run / 1.2) * (_parent._xscale / 100); this._y -= (rise / 1.2) * (_parent._xscale / 100); _rotation = _parent.player._rotation; _x = _x - Math.ceil(_parent.player.xt * 100) / 100; _y = _y - Math.ceil(_parent.player.yt * 100) / 100; gotoAndStop(2); } else { gotoAndStop(1); } } } } button 1434 { on (release, keyPress 'z') { gotoAndStop(2); } } button 1438 { on (release, releaseOutside) { _parent.uni.nifi += 1; } } button 1439 { on (release, releaseOutside) { _parent.uni.nifri += 1; } } button 1440 { on (release, releaseOutside) { _parent.uni.nbfi += 1; } } button 1441 { on (release, releaseOutside) { _parent.uni.nbfii += 1; } } button 1442 { on (release, releaseOutside) { _parent.uni.nici += 1; } } button 1443 { on (release, releaseOutside) { _parent.uni.nifrii += 1; } } button 1445 { on (release, releaseOutside) { _parent.uni.nicii += 1; } } button 1446 { on (release, releaseOutside) { _parent.uni.nbfri += 1; } } button 1447 { on (release, releaseOutside) { _parent.uni.nbfrii += 1; } } button 1455 { on (release, releaseOutside) { _parent.uni.nbsg += 1; } } button 1456 { on (release, releaseOutside) { _parent.uni.nncc += 1; } } button 1457 { on (release, releaseOutside) { _parent.uni.nag += 1; } } button 1458 { on (release, releaseOutside) { _parent.uni.nebsg += 1; } } button 1459 { on (release, releaseOutside) { _parent.uni.nencc += 1; } } button 1460 { on (release, releaseOutside) { _parent.uni.neag += 1; } } button 1461 { on (release) { _root.spower = 'cloak'; _root.aioff = 1; } } button 1466 { on (release, releaseOutside) { _parent.uni.nbfiii += 1; } } button 1468 { on (release) { _root.spower = 'none'; _root.aioff = 0; } } button 1472 { on (release) { _parent.buyscreen.gotoAndStop(10); _root.gpause = 1; gotoAndStop(1); } } button 1474 { on (release) { _root.pchp = _root.game.overlay.pmhp; } } button 1477 { on (release, releaseOutside) { _parent.uni.nbci += 1; } } button 1481 { on (release, releaseOutside) { _parent.uni.nbfiv += 1; } } button 1483 { on (release, releaseOutside) { _parent.uni.nifii += 1; } } button 1484 { on (release, releaseOutside) { _parent.uni.nifiii += 1; } } button 1486 { on (release, releaseOutside) { _parent.uni.nifiv += 1; } } button 1488 { on (release, releaseOutside) { _parent.uni.nbcii += 1; } } button 1489 { on (release) { _root.pmoney += 1000; } } button 1492 { on (release, keyPress 'z') { gotoAndStop(1); } } movieClip 1494 { frame 1 { stop(); } } movieClip 1496 { frame 1 { if (_root.sandbox == 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 1497 { frame 1 { dustCounter = 1; ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); ++dustCounter; duplicateMovieClip('d1', 'd' + dustCounter, dustCounter); } instance d1 of movieClip 1496 { onClipEvent (load) { _x = random(650); _y = random(400); _xscale = random(100); _yscale = _xscale; _alpha = random(100); gotoAndStop(2); } onClipEvent (enterFrame) { rise = this._y - 200; run = this._x - 325; this._x -= run / 10; this._y -= rise / 10; } } } movieClip 1503 { frame 20 { stop(); } } button 1514 { on (release) { play(); } } movieClip 1530 { } movieClip 1531 { instance of movieClip 1530 { onClipEvent (enterFrame) { _rotation = _rotation + 3; } } frame 15 { stop(); } } movieClip 1537 { instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 578 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } instance of movieClip 570 { onClipEvent (load) { rs = random(30) / 10 + 0.5; } } frame 140 { stop(); } frame 181 { stop(); } frame 216 { stop(); } frame 271 { stop(); } frame 320 { stop(); } frame 364 { stop(); } frame 396 { stop(); } frame 396 { stop(); } frame 425 { stop(); } frame 545 { stop(); } frame 565 { stop(); _root.briefing.gotoAndStop(6); } } movieClip 1538 { } movieClip 1539 { frame 1 { _root.mission = 1; _root.quicksave = 1; } frame 1 { stop(); changetrack = 1; vl = 100; mvl = 100; } frame 1 { overlay.auxpowers._visible = false; overlay.auxpower._visible = false; } instance back of movieClip 721 { onClipEvent (load) { stop(); } } instance uni of movieClip 864 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); if (nbfri > abfri) { abfri += 1; ++_root.objectCounter; attachMovie('bfri', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfrii > abfrii) { abfrii += 1; ++_root.objectCounter; attachMovie('bfrii', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; } if (nbci > abci) { abci += 1; ++_root.objectCounter; attachMovie('bci', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpulseiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun4', _root.otherCounter); } if (nbcii > abcii) { abcii += 1; ++_root.objectCounter; attachMovie('bcii', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfi > abfi) { abfi += 1; ++_root.objectCounter; attachMovie('bfi', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ++_root.otherCounter; ship.ship._rotation = random(360); ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = ship.ship; this['indi' + _root.permCounter].mod = 2; ship._visible = true; ship.cat = 1; } if (nbfii > abfii) { abfii += 1; ++_root.objectCounter; attachMovie('bfii', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiii > abfiii) { abfiii += 1; ++_root.objectCounter; attachMovie('bfiii', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gliiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiv > abfiv) { abfiv += 1; ++_root.objectCounter; attachMovie('bfiv', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nifi > aifi) { aifi += 1; ++_root.objectCounter; attachMovie('ifi', 'ifi' + aifi, _root.objectCounter); _root.allyList.push(this['ifi' + aifi]); ship = this['ifi' + aifi]; ship.ship._x = jumpx; ship.ship._y = jumpy; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.cat = 1; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); } if (nifii > aifii) { aifii += 1; ++_root.objectCounter; attachMovie('ifii', 'ifii' + aifii, _root.objectCounter); _root.allyList.push(this['ifii' + aifii]); this['ifii' + aifii].ship._x = jumpx; this['ifii' + aifii].ship._y = jumpy; this['ifii' + aifii].ship.ship._xscale = 1; this['ifii' + aifii].ship.ship._yscale = 1; this['ifii' + aifii].cat = 1; ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun2', _root.otherCounter); } if (nifiii > aifiii) { aifiii += 1; ++_root.objectCounter; attachMovie('ifiii', 'ifiii' + aifiii, _root.objectCounter); _root.allyList.push(this['ifiii' + aifiii]); this['ifiii' + aifiii].ship._x = jumpx; this['ifiii' + aifiii].ship._y = jumpy; this['ifiii' + aifiii].ship.ship._xscale = 1; this['ifiii' + aifiii].ship.ship._yscale = 1; this['ifiii' + aifiii].cat = 1; ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gmiai', 'gun2', _root.otherCounter); } if (nifiv > aifiv) { aifiv += 1; ++_root.objectCounter; attachMovie('ifiv', 'ifiv' + aifiv, _root.objectCounter); _root.allyList.push(this['ifiv' + aifiv]); this['ifiv' + aifiv].ship._x = jumpx; this['ifiv' + aifiv].ship._y = jumpy; this['ifiv' + aifiv].ship.ship._xscale = 1; this['ifiv' + aifiv].ship.ship._yscale = 1; this['ifiv' + aifiv].cat = 1; } if (nifri > aifri) { aifri += 1; ++_root.objectCounter; attachMovie('ifri', 'ifri' + aifri, _root.objectCounter); _root.allyList.push(this['ifri' + aifri]); this['ifri' + aifri].ship._x = jumpx; this['ifri' + aifri].ship._y = jumpy; this['ifri' + aifri].ship.ship._xscale = 1; this['ifri' + aifri].ship.ship._yscale = 1; ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifri' + aifri]._visible = true; this['ifri' + aifri].cat = 2; } if (nifrii > aifrii) { aifrii += 1; ++_root.objectCounter; attachMovie('ifrii', 'ifrii' + aifrii, _root.objectCounter); _root.allyList.push(this['ifrii' + aifrii]); this['ifrii' + aifrii].ship._x = jumpx; this['ifrii' + aifrii].ship._y = jumpy; this['ifrii' + aifrii].ship.ship._xscale = 1; this['ifrii' + aifrii].ship.ship._yscale = 1; _root.allyList.push(this['ifrii' + aifrii]); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifrii' + aifrii]._visible = true; this['ifrii' + aifrii].cat = 2; } if (nici > aici) { aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = jumpx; this['ici' + aici].ship._y = jumpy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; ++_root.otherCounter; this['ici' + aici].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; } if (nicii > aicii) { aicii += 1; ++_root.objectCounter; attachMovie('icii', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); this['icii' + aicii].ship._x = jumpx; this['icii' + aicii].ship._y = jumpy; this['icii' + aicii].ship.ship._xscale = 1; this['icii' + aicii].ship.ship._yscale = 1; this['icii' + aicii].pcom = 1; this['icii' + aicii].cat = 3; this['icii' + aicii].health = 1000; ++_root.otherCounter; this['icii' + aicii].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['icii' + aicii].attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['icii' + aicii].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['icii' + aicii].attachMovie('gliai', 'gun4', _root.otherCounter); this['icii' + aicii]._visible = true; } } } onClipEvent (load) { _root.cinemamode = 1; _parent.overlay.sector = 'Dratis Station'; _parent.overlay.navcircle.loc._x = -10; _parent.overlay.navcircle.loc._y = -5; section = 'c1'; _root.enemyList.push(this.tl); _parent.overlay._visible = false; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; npf = 4; apf = 1; njfg = 1; njf = 4; ajf = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; aas = 1; nas = 10; } } instance plights of movieClip 870 { onClipEvent (enterFrame) { _xscale = _parent.uni._xscale; _yscale = _parent.uni._yscale; _x = _parent.uni._x; _y = _parent.uni._y; _rotation = _parent.uni.player._rotation; if (_root.plights == 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance overlay of movieClip 1005 { onClipEvent (enterFrame) { if (pchp < 1) { _parent.uni.g1._visible = false; _parent.uni.g2._visible = false; _parent.uni.g3._visible = false; _parent.uni.g4._visible = false; _parent.removedynamicbars = 1; _parent.uni.player.gotoAndStop(2); } if (_root.spower == 'armor') { _root.powerlevel -= _root.phplock - _root.pchp; _root.pchp = _root.phplock; if (_root.powerlevel < 1) { _root.spower = 'none'; _root.powerlevel = 0; } } else { health.bar._x = (_root.pchp / pmhp) * 100; pchp = Math.round(_root.pchp); pmhp = Math.round(_root.pmhp * _root.game.uni.player.m1.armor * _root.game.uni.player.m2.armor * _root.game.uni.player.m3.armor * _root.game.uni.player.m4.armor); } if (_root.spower == 'speed') { if (_root.powerlevel < 1) { _root.spower = 'none'; _root.powerlevel = 0; } speeddrain = (Math.abs(_root.game.uni.player.xt) + Math.abs(_root.game.uni.player.yt)) / 180; _root.powerlevel -= speeddrain; } if (auxpowers._visible == false) { auxpower_txt.text._visible = false; } else { auxpower_txt.text._visible = true; } pme = _root.opme; pce = Math.round(_root.pce); pmore = _root.pmore; pcore = _root.pcore; pmoney = Math.round(_root.pmoney); energy.bar._x = (_root.pce / _root.opme) * 100; dsx = _parent.uni.absx; dsy = _parent.uni.absy; speed = ' ' + Math.round(Math.abs(_parent.uni.player.xt) + Math.abs(_parent.uni.player.yt)) + 'KPM'; circle._xscale = _parent.uni._xscale; circle._yscale = circle._xscale; circle.speedb.bar._y = Math.abs(Math.abs(_parent.uni.player.xt) * 3 + Math.abs(_parent.uni.player.yt) * 3) - 60; if (_root.gpause == 0) { if (_root.powerlevel < 100) { if (_root.spower == 'none') { _root.powerlevel += 0.1; } } auxpower.powerlevel = Math.round(_root.powerlevel); if (_root.opme > _root.pce) { _root.pce += _root.penr; } if (pchp <= 0) { _parent.player.dead = 1; } if (shake == 1) { if (_parent.uni.tl.dest == 0) { _alpha = _alpha * 0.9; } else { if (_parent.uni.section == 'c2' or _parent.uni.section == 'c1' or _parent.uni.section == 'c5') { } else { rad._visible = true; rad.gotoAndStop(2); _alpha = ran3; } } if (sev >= 1) { sev -= 0.05; } ran1 = 100 - random(10) / sev; _xscale = ran1; ran2 = 100 - random(10) / sev; _yscale = ran2; ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { rad._visible = false; rad.gotoAndStop(1); _xscale = 100; _yscale = 100; _alpha = 100; _rotation = 0; sev = 10; } } } onClipEvent (load) { shake = 0; sev = 10; } } instance of movieClip 1020 { onClipEvent (enterFrame) { if (_parent.overlay.auxpowers._visible == true) { if (Key.isDown(_root.auxpowersK)) { if (_root.gpause == 0) { if (_parent.uni.section == 't1') { if (_parent.uni.trig == 0) { _parent.uni.trig = 1; } } trig = 1; gotoAndStop(2); } } else { if (trig == 1) { _parent.uni.player.spower.gotoAndPlay(_root.spower); trig = 0; } gotoAndStop(1); } } } } instance buyscreen of movieClip 1246 { onClipEvent (enterFrame) { credits = _root.pmoney; ore = _root.pcore; sp = _root.pthrust * 100; ar = _root.pmhp; ws = _root.pws; en = _root.pme; ms = _root.pms; sellore = _root.pcore * orevalue; } onClipEvent (load) { orevalue = random(50) + 50; nrow = 0; ncol = 0; } } frame 2 { _root.mission = 2; _root.quicksave = 1; _root.ssavefile = 1; } frame 2 { overlay.auxpowers._visible = false; overlay.auxpower._visible = false; } instance uni of movieClip 1336 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); abcii += 1; if (nbfri > abfri) { abfri += 1; ++_root.objectCounter; attachMovie('bfri', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfrii > abfrii) { abfrii += 1; ++_root.objectCounter; attachMovie('bfrii', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; } if (nbci > abci) { abci += 1; ++_root.objectCounter; attachMovie('bci', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpulseiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun4', _root.otherCounter); } if (nbcii > abcii) { abcii += 1; ++_root.objectCounter; attachMovie('bcii', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfi > abfi) { ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = jumpx; ship.ship._y = jumpy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ship._visible = true; ship.cat = 1; } if (nbfii > abfii) { abfii += 1; ++_root.objectCounter; attachMovie('bfii', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiii > abfiii) { abfiii += 1; ++_root.objectCounter; attachMovie('bfiii', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gliiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiv > abfiv) { abfiv += 1; ++_root.objectCounter; attachMovie('bfiv', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nifi > aifi) { aifi += 1; ++_root.objectCounter; attachMovie('ifi', 'ifi' + aifi, _root.objectCounter); _root.allyList.push(this['ifi' + aifi]); ship = this['ifi' + aifi]; ship.ship._x = jumpx; ship.ship._y = jumpy; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.cat = 1; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); } if (nifii > aifii) { aifii += 1; ++_root.objectCounter; attachMovie('ifii', 'ifii' + aifii, _root.objectCounter); _root.allyList.push(this['ifii' + aifii]); this['ifii' + aifii].ship._x = jumpx; this['ifii' + aifii].ship._y = jumpy; this['ifii' + aifii].ship.ship._xscale = 1; this['ifii' + aifii].ship.ship._yscale = 1; this['ifii' + aifii].cat = 1; ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun2', _root.otherCounter); } if (nifiii > aifiii) { aifiii += 1; ++_root.objectCounter; attachMovie('ifiii', 'ifiii' + aifiii, _root.objectCounter); _root.allyList.push(this['ifiii' + aifiii]); this['ifiii' + aifiii].ship._x = jumpx; this['ifiii' + aifiii].ship._y = jumpy; this['ifiii' + aifiii].ship.ship._xscale = 1; this['ifiii' + aifiii].ship.ship._yscale = 1; this['ifiii' + aifiii].cat = 1; ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gmiai', 'gun2', _root.otherCounter); } if (nifiv > aifiv) { aifiv += 1; ++_root.objectCounter; attachMovie('ifiv', 'ifiv' + aifiv, _root.objectCounter); _root.allyList.push(this['ifiv' + aifiv]); this['ifiv' + aifiv].ship._x = jumpx; this['ifiv' + aifiv].ship._y = jumpy; this['ifiv' + aifiv].ship.ship._xscale = 1; this['ifiv' + aifiv].ship.ship._yscale = 1; this['ifiv' + aifiv].cat = 1; } if (nifri > aifri) { aifri += 1; ++_root.objectCounter; attachMovie('ifri', 'ifri' + aifri, _root.objectCounter); _root.allyList.push(this['ifri' + aifri]); this['ifri' + aifri].ship._x = jumpx; this['ifri' + aifri].ship._y = jumpy; this['ifri' + aifri].ship.ship._xscale = 1; this['ifri' + aifri].ship.ship._yscale = 1; ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifri' + aifri]._visible = true; this['ifri' + aifri].cat = 2; } if (nifrii > aifrii) { aifrii += 1; ++_root.objectCounter; attachMovie('ifrii', 'ifrii' + aifrii, _root.objectCounter); _root.allyList.push(this['ifrii' + aifrii]); this['ifrii' + aifrii].ship._x = jumpx; this['ifrii' + aifrii].ship._y = jumpy; this['ifrii' + aifrii].ship.ship._xscale = 1; this['ifrii' + aifrii].ship.ship._yscale = 1; _root.allyList.push(this['ifrii' + aifrii]); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifrii' + aifrii]._visible = true; this['ifrii' + aifrii].cat = 2; } if (nici > aici) { aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = jumpx; this['ici' + aici].ship._y = jumpy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; ++_root.otherCounter; this['ici' + aici].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; } if (nicii > aicii) { aicii += 1; ++_root.objectCounter; attachMovie('icii', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); this['icii' + aicii].ship._x = jumpx; this['icii' + aicii].ship._y = jumpy; this['icii' + aicii].ship.ship._xscale = 1; this['icii' + aicii].ship.ship._yscale = 1; this['icii' + aicii].pcom = 1; this['icii' + aicii].cat = 3; this['icii' + aicii].health = 1000; ++_root.otherCounter; this['icii' + aicii].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['icii' + aicii].attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['icii' + aicii].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['icii' + aicii].attachMovie('gliai', 'gun4', _root.otherCounter); this['icii' + aicii]._visible = true; } } if (fenix == 1) { this['ici' + aici].ship.movespeed = 0; aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = -300 + absx; this['ici' + aici].ship._y = -500 + absy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; this['ici' + aici].skins = 'fenix'; ++_root.otherCounter; this['ici' + aici].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; fenix = 0; } if (_root.gpause == 0) { if (trig == 0) { if (mcd == 30) { _root.sounds.gotoAndStop('radionoise'); } _parent.overlay.sev = 10; if (mcd == 40) { _root.sounds.gotoAndStop('creak'); } mcd += 1; if (mcd == 60) { attachMovie('textline', 't1', 2135); t1.nstr = '. . . Ship\'s hull is jammed . . .'; t1.speed = 0.5; t1._x = 0; t1.cd = 60; t1.remove = 0; t1._y = 100; } if (mcd == 150) { this.attachMovie('itl', 'itl', -1); _root.allyList.push(this.itl); itl.ship._x = 250; itl.ship._y = 150; } if (itl.ship.hit.hitTest(tr1)) { attachMovie('textline', 't1', 2135); t1.nstr = 'Enable ship lights to grab rescue ships attention. '; t1.speed = 0.5; t1._x = 0; t1.cd = 60; t1.remove = 0; t1._y = 100; itl.ship.ythrust = -600; itl.ship.thrustcounter = -10; mcd = 0; trig += 1; } } if (trig == 1) { _parent.overlay.sev = 10; if (Key.isDown(70)) { mcd = 0; itl.ship.xtt = itl.ship._x; itl.ship.ytt = itl.ship._y; itl.tlt.xt = 0; itl.tlt.yt = 0; itl.ship.allowmove = 0; itl.ship.myTarget = this.player; trig += 1; } if (itl.ship.hit.hitTest(tr2)) { _root.failure = 1; _root.reason4fail = 'You failed to attract the rescue ships attention and were left behind'; } } if (trig == 2) { _parent.overlay.sev = 10; mcd += 1; if (mcd == 60) { attachMovie('textline', 't1', 2135); t1.nstr = 'Attention vessel, we have spotted you and are rendering assistance, stand by.'; t1.speed = 0.5; t1._x = 0; t1.cd = 30; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; } if (mcd == 320) { itl.ship.l1.play(); itl.ship.l2.play(); _root.sounds.gotoAndStop('poweron'); debri.p6.play(); debri.p6.rs = -0.5; } if (mcd == 340) { _root.sounds.gotoAndStop('enginepush'); player.jump = 0; player.xt = 6; player.trig = 0; } if (mcd == 370) { attachMovie('textline', 't1', 2135); t1.nstr = 'Go to the rescue ship for repairs'; t1.speed = 0.5; t1._x = 0; t1.cd = 60; t1.remove = 0; t1._y = 100; ++_root.permCounter; attachMovie('indi', 'indi', _root.permCounter); indi.tracking = 'object'; indi.obj = itl.ship; indi.mod = 2; indi.dname = 'Rescue Ship'; mcd = 0; trig += 1; } } if (trig == 3) { mcd += 1; if (_root.pchp == 100) { mcd = 0; trig += 1; } if (player.hit.hitTest(itl.ship)) { if (_root.pchp < 50) { _parent.overlay.sev = 10; } else { _parent.overlay.shake = 0; } if (_root.pmhp > _root.pchp) { _root.pchp += 1; } } } if (trig == 4) { mcd += 1; if (mcd == 30) { itl.gun1._visible = false; attachMovie('textline', 't1', 2135); t1.nstr = 'We need to get to the jump point, but we should get you weaponized first.'; t1.speed = 0.5; t1._x = 0; t1.cd = 30; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; } if (mcd == 150) { attachMovie('keys', 'c2k1', 2177); c2k1._x = 20; c2k1._y = 60; c2k1.inst = 'Press E'; c2k1.letter = 'E'; c2k1.remove = 0; } } if (trig == 5) { mcd += 1; if (mcd == 30) { attachMovie('keys', 'c2k2', 2177); c2k2._x = 20; c2k2._y = 60; c2k2.inst = 'Left Mouse Button to fire primary weapon'; c2k2.letter = 'E'; c2k2.remove = 0; c2k2.gotoAndStop(3); c2k2.onMouseDown = function () { this.gotoAndStop(4); this.remove = 1; }; trig += 1; } } if (trig == 6) { if (itl.real == 0) { _root.failure = 1; _root.reason4failure = 'The Rescue Ship was destroyed'; } mcd += 1; if (mcd == 60) { attachMovie('textline', 't1', 2135); t1.nstr = 'This area is full of radiation, lets head to the jump point.'; t1.speed = 0.5; t1._x = 0; t1.cd = 30; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; } if (mcd == 120) { itl.ship.xtt = 9000; itl.ship.allowmove = 1; } if (mcd == 240) { ++_root.permCounter; _parent.attachMovie('dynamicbar', 'itlhp', _root.permCounter); _parent.itlhp._x = 175; _parent.itlhp.dis = 'Rescue Ship HP'; _parent.itlhp._y = 25; _parent.itlhp._alpha = 0; _root.gpause = 1; _root.pausescreen.gotoAndStop(3); _root.pausescreen.mission = '1'; _root.pausescreen.mdis = 'Escort Rescue Ship!'; _root.pausescreen.con = 'Rescue Ship must survive to jump point'; _root.pausescreen.mname = 'Save the Savior'; _root.pausescreen.cd = 120; } if (mcd == 300) { attachMovie('textline', 't1', 2135); t1.nstr = 'I hope you know how to use that weapon.'; t1.speed = 0.5; t1._x = 0; t1.cd = 30; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; } if (mcd == 520) { attachMovie('textline', 't1', 2135); t1.nstr = 'Picking up multiple jump signitures! Hostiles inbound.'; t1.speed = 0.5; t1._x = 0; t1.cd = 30; t1.loud = 1; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; _root.game.changetrack = 2; _root.game.vl = 1; } if (mcd == 570) { nbfi += 1; jumpx = random(70); jumpy = -100; } if (mcd == 690) { nbfi += 1; jumpx = random(70) + 200; jumpy = 20; } if (mcd == 990) { nbfi += 1; jumpx = random(70) + 300; jumpy = random(50) + 100; } if (mcd == 1000) { nbfi += 1; jumpx = random(100) + 300; jumpy = -200 - random(50); } if (mcd == 1150) { nbfi += 1; jumpx = random(100) + 300; jumpy = -100 - random(50); } if (mcd == 1240) { nbfi += 1; jumpx = random(70) + 200; jumpy = random(50) + 100; } if (itl.health < 25) { if (itltalk == 1) { itltalk = 0; attachMovie('textline', 't1', 2135); t1.nstr = 'We cant take much more of this!'; t1.speed = 0.5; t1._x = 0; t1.cd = 20; t1.loud = 1; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; } } if (mcd == 1400) { attachMovie('textline', 't1', 2135); t1.nstr = 'Half way there.'; t1.speed = 0.5; t1._x = 0; t1.cd = 30; t1.loud = 0; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; } if (mcd == 1600) { nbfi += 1; jumpx = random(100) + 300; jumpy = -100 - random(50); } if (mcd == 1700) { nbfi += 1; jumpx = random(70) + 200; jumpy = random(50) + 100; } if (mcd == 2100) { nbfi += 1; jumpx = random(70) + 200; jumpy = random(50) + 100; } if (mcd == 2160) { nbfi += 1; jumpx = random(70) + 200; jumpy = random(50) + 100; } if (mcd == 2220) { nbfi += 1; jumpx = random(70) + 200; jumpy = random(50) + 100; } if (mcd == 2400) { attachMovie('textline', 't1', 2135); t1.nstr = 'We have reached the jump location, spooling up jump drives!'; t1.speed = 0.5; t1._x = 0; t1.cd = 60; t1.loud = 1; t1.radio = 1; t1.dname = 'Rescue Ship'; t1.po = 'pilot1'; t1.remove = 0; t1._y = 100; ++_root.permCounter; _parent.attachMovie('dynamicbar', 'jt', _root.permCounter); _parent.jt._x = 70; _parent.jt.dis = 'Jump Timer'; _parent.jt._y = 115; _parent.jt.cd = 0; _parent.jt._alpha = 0; } if (mcd == 3001) { _root.pmoney += 1000; _root.briefing.gotoAndStop(3); _parent.changetrack = 4; _parent.mvl = 100; itl.ship.allowmove = 0; itl.ship.xtt = itl.ship._x; itl.ship.ytt = itl.ship._y; itl.ship.jump.play(); _parent.itlhp.removeMovieClip(); attachMovie('jump', 'jump', -50); jump._x = player._x; jump._y = player._y; jump.gotoAndPlay(52); _parent.jt.removeMovieClip(); } if (mcd == 2600) { nbfi += 1; jumpx = random(70) + 200; jumpy = random(50) + 100; } if (mcd == 2630) { nbfi += 1; jumpx = random(70) + 200; jumpy = -100 - random(50); } if (mcd == 2660) { nbfi += 1; jumpx = -200 - random(70); jumpy = -100 - random(50); } if (mcd == 2680) { nbfi += 1; jumpx = -200 - random(70); jumpy = 100 + random(50); } } } if (_root.g1 == 'laseri') { if (missionsafe == 0) { missionsafe = 1; _root.c2guiloadouthit = 6; _parent.buyscreen.buyscreen.closebtn._visible = true; } } else { _parent.buyscreen.buyscreen.closebtn._visible = false; } if (_root.c2guiloadouthit == 4) { if (_root.g1 == 'laseri') { _root.c2guiloadouthit = 5; } } if (_root.c2guiloadouthit == 6) { mcd = 0; trig += 1; _root.c2guiloadouthit = 7; } if (_parent.overlay.scaler.xx._y > 102) { _parent.overlay.scaler.xx._y -= _parent.overlay.scaler.xx._y / 100; } } onClipEvent (load) { function createShip(shipNumber, counter, shipType, shipList, guntype1, guntype2, guntype3, guntype4, cat) { trace('lol'); shipNumber += 1; ++_root[counter]; attachMovie([shipType], [shipType] + shipNumber, _root.counter); _root.shipList.push(this[[shipType] + shipNumber]); ship = this[[shipType] + shipNumber]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.otherCounter; ship.attachMovie([guntype1], 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype2], 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype3], 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype4], 'gun4', _root.otherCounter); ship._visible = true; ship.cat = cat; } missionsafe = 0; _parent.overlay.sector = 'Dratis Station'; _parent.overlay.navcircle.loc._x = -10; _parent.overlay.navcircle.loc._y = -5; _parent.overlay.scaler.xx._y = 200; itltalk = 1; _root.pchp = 6; trig = 0; mcd = 0; section = 'c2'; _root.enemyList.push(this.tl); _parent.overlay._visible = true; _parent.overlay.shake = 1; trig = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; npf = 4; apf = 1; njfg = 1; njf = 4; ajf = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; aas = 1; nas = 10; } } frame 3 { _root.mission = 3; _root.quicksave = 1; _root.ssavefile = 1; } frame 3 { overlay.auxpowers._visible = false; overlay.auxpower._visible = false; } instance uni of movieClip 1365 { onClipEvent (load) { function createShip(shipNumber, counter, shipType, shipList, guntype1, guntype2, guntype3, guntype4, cat, jx, jy, range, capital, thrustcounter, movespeed, nomove, Numexp, fe1, fe2, fe3, health, dex, dey, gdis, radartype, dlist, jumpsize) { this[shipNumber] += 1; ++_root[counter]; trace(this[shipNumber]); attachMovie('ship', [shipType] + this[shipNumber], _root[counter]); trace(this[[shipType] + this[shipNumber]]); ship = this[shipType + shipNumber]; trace(ship); if (shipList == 'enemy') { _root.enemyList.push(ship); } if (shipList == 'ally') { _root.allyList.push(this[shipType + shipNumber]); } ship.ship.ships = [shipType]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jx; ship.ship._y = jy; ship.ship.range = range; ship.capital = capital; ship.ship.tc = thrustcounter; ship.ship.movespeed = movespeed; ship.ship.nomove = nomove; ship.ship.Numexp = Numexp; ship.ship.jumpsize = jumpsize; ship.ship.fe1 = fe1; ship.ship.fe2 = fe2; ship.ship.fe3 = fe3; ship.health = health; ship.ship.dey = dey; ship.ship.dex = dex; ship.ship.gdis = gdis; ship.ship.radartype = [radartype]; ship.ship.dlist = [dlist]; ++_root.otherCounter; ship.attachMovie([guntype1], 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype2], 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype3], 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype4], 'gun4', _root.otherCounter); ship._visible = true; ship.cat = cat; } _parent.overlay.sector = 'Antaris Station'; _parent.overlay.navcircle.loc._x = 5; _parent.overlay.navcircle.loc._y = 5; _root.sandbox = 0; _root.allyList.push(antaris); _parent.changetrack = 1; jumpx = 0; jumpy = 0; es1 = 0; es2 = 0; es3 = 0; _root.gpause = 0; _parent.overlay.scaler.xx._y = 200; mcd = 0; section = 'c3'; if (_parent.returntrig != undefined) { antaris.gotoAndStop(120); _parent.overlay.auxpowers._visible = true; _parent.overlay.auxpower._visible = true; trig = _parent.returntrig; _parent.returntrig = undefined; } else { this.attachMovie('itl', 'itl', -1); itl.ship._x = 90; itl.ship._y = 75; itl.ship.xthrust = 0; itl.ship.ythrust = 0; trig = 0; } _root.radarreset = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nships = 0; aships = 0; changetrack = 0; aas = 1; nas = 10; aiti += 1; ++_root.objectCounter; attachMovie('iti', 'iti' + aiti, _root.objectCounter); _root.allyList.push(this['iti' + aiti]); this['iti' + aiti].ship._x = -170; this['iti' + aiti].ship._y = 150; this['iti' + aiti].ship.ship._xscale = 100; this['iti' + aiti].ship.ship._yscale = 100; this['iti' + aiti].nojump = 1; this['iti' + aiti].ship.jumpcomplete = 1; ++_root.otherCounter; this['iti' + aiti].attachMovie('gmsiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['iti' + aiti].attachMovie('gmiai', 'gun2', _root.otherCounter); this['iti' + aiti]._visible = true; this['iti' + aiti].cat = 2; aiti += 1; ++_root.objectCounter; attachMovie('iti', 'iti' + aiti, _root.objectCounter); _root.allyList.push(this['iti' + aiti]); this['iti' + aiti].ship._x = 0; this['iti' + aiti].ship._y = -100; this['iti' + aiti].ship.ship._xscale = 100; this['iti' + aiti].ship.ship._yscale = 100; this['iti' + aiti].nojump = 1; this['iti' + aiti].ship.jumpcomplete = 1; ++_root.otherCounter; this['iti' + aiti].attachMovie('gmsiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['iti' + aiti].attachMovie('gmiai', 'gun2', _root.otherCounter); this['iti' + aiti]._visible = true; this['iti' + aiti].cat = 2; aiti += 1; ++_root.objectCounter; attachMovie('iti', 'iti' + aiti, _root.objectCounter); _root.allyList.push(this['iti' + aiti]); this['iti' + aiti].ship._x = 100; this['iti' + aiti].ship._y = -300; this['iti' + aiti].ship.ship._xscale = 100; this['iti' + aiti].ship.ship._yscale = 100; this['iti' + aiti].nojump = 1; this['iti' + aiti].ship.jumpcomplete = 1; ++_root.otherCounter; this['iti' + aiti].attachMovie('gmsiai', 'gun1', _root.otherCounter); ++_root.otherCounter; d; this['iti' + aiti].attachMovie('gmiai', 'gun2', _root.otherCounter); this['iti' + aiti]._visible = true; this['iti' + aiti].cat = 2; } onClipEvent (enterFrame) { trace(trig); if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); abcii += 1; if (nbfri > abfri) { abfri += 1; ++_root.objectCounter; attachMovie('bfri', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfrii > abfrii) { abfrii += 1; ++_root.objectCounter; attachMovie('bfrii', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; } if (nbci > abci) { abci += 1; ++_root.objectCounter; attachMovie('bci', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpulseiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun4', _root.otherCounter); } if (nbcii > abcii) { abcii += 1; ++_root.objectCounter; attachMovie('ship', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ship.ship.ships = 'bcii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfi > abfi) { ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ship._visible = true; ship.cat = 1; } if (nbfii > abfii) { abfii += 1; ++_root.objectCounter; attachMovie('bfii', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiii > abfiii) { abfiii += 1; ++_root.objectCounter; attachMovie('bfiii', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gliiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiv > abfiv) { abfiv += 1; ++_root.objectCounter; attachMovie('bfiv', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nifi > aifi) { aifi += 1; ++_root.objectCounter; attachMovie('ship', 'ifi' + aifi, _root.objectCounter); _root.allyList.push(this['ifi' + aifi]); ship = this['ifi' + aifi]; ship.ship.ships = 'ifi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.idlezone = ap1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.cat = 1; } if (nifii > aifii) { aifii += 1; ++_root.objectCounter; attachMovie('ifii', 'ifii' + aifii, _root.objectCounter); _root.allyList.push(this['ifii' + aifii]); this['ifii' + aifii].ship._x = jumpx; this['ifii' + aifii].ship._y = jumpy; this['ifii' + aifii].ship.ship._xscale = 1; this['ifii' + aifii].ship.ship._yscale = 1; this['ifii' + aifii].cat = 1; ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun2', _root.otherCounter); } if (nifiii > aifiii) { aifiii += 1; ++_root.objectCounter; attachMovie('ifiii', 'ifiii' + aifiii, _root.objectCounter); _root.allyList.push(this['ifiii' + aifiii]); this['ifiii' + aifiii].ship._x = jumpx; this['ifiii' + aifiii].ship._y = jumpy; this['ifiii' + aifiii].ship.ship._xscale = 1; this['ifiii' + aifiii].ship.ship._yscale = 1; this['ifiii' + aifiii].cat = 1; ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gmiai', 'gun2', _root.otherCounter); } if (nifiv > aifiv) { aifiv += 1; ++_root.objectCounter; attachMovie('ifiv', 'ifiv' + aifiv, _root.objectCounter); _root.allyList.push(this['ifiv' + aifiv]); this['ifiv' + aifiv].ship._x = jumpx; this['ifiv' + aifiv].ship._y = jumpy; this['ifiv' + aifiv].ship.ship._xscale = 1; this['ifiv' + aifiv].ship.ship._yscale = 1; this['ifiv' + aifiv].cat = 1; } if (nifri > aifri) { aifri += 1; ++_root.objectCounter; attachMovie('ifri', 'ifri' + aifri, _root.objectCounter); _root.allyList.push(this['ifri' + aifri]); this['ifri' + aifri].ship._x = jumpx; this['ifri' + aifri].ship._y = jumpy; this['ifri' + aifri].ship.ship._xscale = 1; this['ifri' + aifri].ship.ship._yscale = 1; ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifri' + aifri]._visible = true; this['ifri' + aifri].cat = 2; } if (nifrii > aifrii) { aifrii += 1; ++_root.objectCounter; attachMovie('ifrii', 'ifrii' + aifrii, _root.objectCounter); _root.allyList.push(this['ifrii' + aifrii]); this['ifrii' + aifrii].ship._x = jumpx; this['ifrii' + aifrii].ship._y = jumpy; this['ifrii' + aifrii].ship.ship._xscale = 1; this['ifrii' + aifrii].ship.ship._yscale = 1; _root.allyList.push(this['ifrii' + aifrii]); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifrii' + aifrii]._visible = true; this['ifrii' + aifrii].cat = 2; } if (nici > aici) { aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = jumpx; this['ici' + aici].ship._y = jumpy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; ++_root.otherCounter; this['ici' + aici].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; } if (nicii > aicii) { aicii += 1; ++_root.objectCounter; attachMovie('ship', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); ship = this['icii' + aicii]; ship.ship.ships = 'icii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } } if (fenix == 1) { this['ici' + aici].ship.movespeed = 0; aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = -300 + absx; this['ici' + aici].ship._y = -500 + absy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; this['ici' + aici].skins = 'fenix'; ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; fenix = 0; } if (_root.gpause == 0) { if (trig == 0) { mcd += 1; if (mcd == 60) { attachMovie('textline', 't2', 2135); t2.nstr = 'BREAK BREAK Antaris Actual - send your verification codes, you have 3 seconds to comply '; t2.speed = 0.5; t2._x = 0; t2.cd = 90; t2.radio = 1; t2.loud = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -100; } if (mcd == 200) { itl.datalight.gotoAndStop('blue'); attachMovie('keys', 'c3k1', 2177); c3k1._x = 20; c3k1._y = 60; c3k1.inst = 'Press E'; c3k1.letter = 'E'; c3k1.remove = 0; } if (mcd < 290) { iti1.fire = 0; iti1.ship.myTarget = player; } if (mcd >= 290) { iti1.fire = 1; iti1.ship.myTarget = player; } } if (trig == 1) { mcd += 1; if (mcd == 30) { player.datalight.gotoAndStop(1); itl.ship.datalight.gotoAndStop(1); attachMovie('textline', 't2', 2135); t2.nstr = 'Your codes register as geniune \n Welcome to Antaris Station X1 Delta & RS Aya '; t2.speed = 0.5; t2._x = 0; t2.cd = 90; t2.radio = 1; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -100; } if (mcd == 320) { attachMovie('textline', 't2', 2135); t2.nstr = 'Normally we dont require verification, but as you can see, our lack in protocol has lost many lives this day '; t2.speed = 0.5; t2._x = 0; t2.cd = 90; t2.radio = 1; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -100; } if (mcd == 660) { attachMovie('textline', 't2', 2135); t2.nstr = 'We have lost all of our ships and only have auto defense turrets remaining. We dont know how they are continuing to jump in, this station is broadcasting a large jamming field '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -100; } } if (trig == 2) { attachMovie('textline', 't2', 2135); t2.nstr = 'X1 you are the only combat ready ship present, we need you to find their jump amplifiers & destroy them before they destroy the station '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 4) { attachMovie('textline', 't2', 2135); t2.nstr = 'However you will need bigger weapons, we can provide you with a missile launcher for your secondary weapon bay '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 6) { attachMovie('textline', 't2', 2135); t2.nstr = 'Go to the docking station to acquire new equipment '; t2.speed = 0.5; t2._x = 0; t2.cd = a; t2.radio = 0; t2.loud = 0; t2.remove = 0; t2._y = 100; ++_root.permCounter; attachMovie('indi', 'indi', _root.permCounter); indi.tx = 190 + absx; indi.ty = -20 + absy; indi.mod = 2; indi.dname = 'Dock'; antaris.play(); trig += 1; } if (trig == 7) { if (player.hitTest(indi)) { indi.removeMovieClip(); trig += 1; } } if (trig == 8) { if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } _root.pws3 = 1; _root.streakeri = 1; attachMovie('keys', 'c3k2', 2177); c3k2._x = 20; c3k2._y = 60; c3k2.inst = 'Press E'; c3k2.letter = 'E'; c3k2.remove = 0; trig += 1; } if (trig == 9) { if (player.hitTest(antaris.dockhit)) { this._alpha = 100; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.guides.gotoAndStop(2); _root.game.buyscreen.gotoAndStop(8); _root.game.uni.trig += 1; this.remove = 1; } } } if (trig == 10) { if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } if (_root.g1 == 'streakeri' or _root.g3 == 'streakeri') { attachMovie('textline', 't2', 2135); t2.nstr = 'Before you head out we can bring your ODEQA online. '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; mcd = 0; trig += 1; } } if (trig == 12) { _parent.overlay.hangericon._visible = false; mcd += 1; antaris.gotoAndPlay(91); if (mcd >= 20) { _root.wflash.play(); if (_root.wflash._currentframe == 15) { _parent.gotoAndStop('stutorial'); } _root.radarreset = 1; _rotation = _rotation + 1; _parent.overlay.scaler.xx._y /= 1.15; } } if (trig == 13) { attachMovie('textline', 't2', 2135); t2.nstr = 'Sensors detect another wave of incoming hostiles. We will hold them off as long as we can, but we need you to take care of the Jump Amplifiers \n You can come back to the dock anytime for repairs '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 15) { if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } abja += 1; ++_root.objectCounter; attachMovie('bja', 'bja' + abja, _root.objectCounter); _root.enemyList.push(this['bja' + abja]); this['bja' + abja].ship._x = -4800; this['bja' + abja].ship._y = -350; this['bja' + abja].ship.ship._xscale = 100; this['bja' + abja].ship.ship._yscale = 100; this['bja' + abja].nojump = 1; this['bja' + abja].ship.jumpcomplete = 1; this['bja' + abja]._visible = true; this['bja' + abja].cat = 2; ++_root.permCounter; attachMovie('indi', 'indi1', _root.permCounter); indi1.tracking = 'object'; indi1.obj = this['bja' + abja].ship; indi1.mod = 0; indi1.dname = ''; abja += 1; ++_root.objectCounter; attachMovie('bja', 'bja' + abja, _root.objectCounter); _root.enemyList.push(this['bja' + abja]); this['bja' + abja].ship._x = -5500; this['bja' + abja].ship._y = -5500; this['bja' + abja].ship.ship._xscale = 100; this['bja' + abja].ship.ship._yscale = 100; this['bja' + abja].nojump = 1; this['bja' + abja].ship.jumpcomplete = 1; this['bja' + abja]._visible = true; this['bja' + abja].cat = 2; ++_root.permCounter; attachMovie('indi', 'indi2', _root.permCounter); indi2.tracking = 'object'; indi2.obj = this['bja' + abja].ship; indi2.mod = 0; indi2.dname = ''; abja += 1; ++_root.objectCounter; attachMovie('bja', 'bja' + abja, _root.objectCounter); _root.enemyList.push(this['bja' + abja]); this['bja' + abja].ship._x = 40; this['bja' + abja].ship._y = -5000; this['bja' + abja].ship.ship._xscale = 100; this['bja' + abja].ship.ship._yscale = 100; this['bja' + abja].nojump = 1; this['bja' + abja].ship.jumpcomplete = 1; this['bja' + abja]._visible = true; this['bja' + abja].cat = 2; ++_root.permCounter; attachMovie('indi', 'indi3', _root.permCounter); indi3.tracking = 'object'; indi3.obj = this['bja' + abja].ship; indi3.mod = 0; indi3.dname = ''; ++_root.permCounter; attachMovie('indi', 'indi4', _root.permCounter); indi4.tx = 514 + absx; indi4.ty = 110 + absy; indi4.mod = 6; indi4.dname = 'Antaris'; ++_root.permCounter; attachMovie('indi', 'indi', _root.permCounter); indi.tx = 190 + absx; indi.ty = -20 + absy; indi.mod = 2; indi.dname = 'Dock'; ++_root.permCounter; _parent.attachMovie('dynamicbar', 'antarishp', _root.permCounter); _parent.antarishp._x = 175; _parent.antarishp.dis = 'Antaris Station HP'; _parent.antarishp._y = 25; _parent.antarishp._alpha = 0; mcd = 1; trig += 1; } if (trig == 16) { if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } mcd += 1; if (mcd == 45) { _root.gpause = 1; _root.pausescreen.gotoAndStop(3); _root.pausescreen.mission = '2'; _root.pausescreen.micon = 2; _root.pausescreen.mdis = 'Destroy the 3 enemy Jump Amplifiers'; _root.pausescreen.con = 'Antaris Station must survive'; _root.pausescreen.mname = 'All they got'; _root.pausescreen.cd = 120; } if (mcd == 200) { attachMovie('textline', 't2', 2135); t2.nstr = 'Good luck X1 '; t2.speed = 0.5; t2._x = 0; t2.cd = 60; t2.radio = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; jammerdeath = 0; jammerdeathcount = -1; mcd = 0; trig += 1; } } if (trig == 17) { mcd += 1; if (jammerdeath == 0) { if (jammerdeathcount == -1) { trace('++'); attachMovie('textline', 't2', 2135); t2.nstr = '3 Amplifiers Remaining '; t2.speed = 0.5; t2._x = 0; t2.cd = 60; t2.radio = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; jammerdeathcount += 1; } } if (jammerdeath == 1) { if (jammerdeathcount == 0) { trace('++'); attachMovie('textline', 't2', 2135); t2.nstr = '2 Amplifiers Remaining '; t2.speed = 0.5; t2._x = 0; t2.cd = 60; t2.radio = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; jammerdeathcount += 1; } } if (jammerdeath == 2) { if (jammerdeathcount == 1) { trace('++'); attachMovie('textline', 't2', 2135); t2.nstr = '1 Amplifiers Remaining '; t2.speed = 0.5; t2._x = 0; t2.cd = 60; t2.radio = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; jammerdeathcount += 1; } } if (jammerdeath == 3) { if (jammerdeathcount == 2) { trace('++'); trig += 1; jammerdeathcount += 1; } } if (mcd > 1350) { mcd = 0; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -random(200) - 200 + absx; ship.ship._y = -random(300) - 100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -random(200) - 200 + absx; ship.ship._y = -random(300) - 100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 2000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = -random(200) - 200 + absx; ship.ship._y = -random(300) - 100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.ship.jump.gotoAndStop(51); ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 450; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja2; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (es2 == 0) { if (absy > 4000) { if (changetrack == 0) { changetrack = 1; _parent.changetrack = 3; } es2 += 1; ++abfii; ++_root.objectCounter; attachMovie('ship', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ship.ship.ships = 'bfii'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = 60 + absx; ship.ship._y = -5000 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 60; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ++abfii; ++_root.objectCounter; attachMovie('ship', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ship.ship.ships = 'bfii'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = 60 + absx; ship.ship._y = -5000 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 60; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -10 + absx; ship.ship._y = -5100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } } if (es1 == 0) { if (absx > 3000 && absy > 4000) { es1 += 1; if (changetrack == 0) { changetrack = 1; _parent.changetrack = 3; } ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -5500 + absx; ship.ship._y = -5500 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = -5500 + absx; ship.ship._y = -5500 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.ship.jump.gotoAndStop(51); ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 250; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja2; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.jump.gotoAndStop(51); ship.ship.movespeed = 5; ship.ship._x = -5500 + absx; ship.ship._y = -5500 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } } if (es3 == 0) { if (absx > 3500) { es3 += 1; if (changetrack == 0) { changetrack = 1; _parent.changetrack = 3; } abfrii += 1; ++_root.objectCounter; attachMovie('ship', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ships = 'bfrii'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = -4700 + absx; ship.ship._y = -300 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.ship.jump.gotoAndStop(51); ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } } if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } } if (trig == 18) { if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } _root.prank = 'Staff Sergeant'; _root.pmoney += 2000; attachMovie('textline', 't2', 2135); t2.nstr = 'Thank you for the assist ' + _root.prank + ' ' + _root.pname + ', we have received word that additional reinforcements are underway.'; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 20) { if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } attachMovie('textline', 't2', 2135); t2.nstr = 'We are picking up automated message from an unmanned weapons depot, and we assume that UCF forces have found and are trying to raid our supplies.'; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 22) { attachMovie('textline', 't2', 2135); t2.nstr = 'Your next mission is for you and RS Aya to head to the weapon depot, feel free to grab anything you want, this is now total war. '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 24) { if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } attachMovie('textline', 't2', 2135); t2.nstr = 'Rearm at our hanger bay and Initiate Jump at your convenience '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; mcd = 0; trig += 1; _parent.overlay.jumpicon._visible = true; } if (trig == 26) { mcd += 1; if (mcd == 30) { attachMovie('textline', 't2', 2135); t2.nstr = 'Press J when you are ready to depart '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 0; t2.cd = 120; t2.radio = 0; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 0; t2.remove = 0; t2._y = -100; } if (player.hitTest(antaris.dockhit)) { _parent.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _parent.overlay.hangericon._visible = false; } if (Key.isDown(_root.jumpK)) { trig = 27; } } if (trig == 27) { _parent.antarishp.removeMovieClip(); _root.briefing.gotoAndStop(4); itl.ship.allowmove = 0; itl.ship.xtt = itl.ship._x; itl.ship.ytt = itl.ship._y; itl.ship.jump.play(); attachMovie('jump', 'jump', 40); _root.radarreset = 1; jump._x = player._x; jump._y = player._y; jump.gotoAndPlay(52); _parent.overlay.hangericon._visible = false; _parent.overlay.jumpicon._visible = false; _root.gpause = 1; } } if (trig < 11 or trig > 12) { if (_parent.overlay.scaler.xx._y > 102) { _parent.overlay.scaler.xx._y -= _parent.overlay.scaler.xx._y / 100; } } } } frame 4 { _root.mission = 4; _root.quicksave = 1; _root.ssavefile = 1; } frame 4 { overlay.auxpowers._visible = true; overlay.auxpower._visible = true; _root.radarreset = 0; } instance uni of movieClip 1366 { onClipEvent (load) { function createShip(shipNumber, counter, shipType, shipList, guntype1, guntype2, guntype3, guntype4, cat, jx, jy, range, capital, thrustcounter, movespeed, nomove, Numexp, fe1, fe2, fe3, health, dex, dey, gdis, radartype, dlist, jumpsize) { this[shipNumber] += 1; ++_root[counter]; trace(this[shipNumber]); attachMovie('ship', [shipType] + this[shipNumber], _root[counter]); trace(this[[shipType] + this[shipNumber]]); ship = this[shipType + shipNumber]; trace(ship); if (shipList == 'enemy') { _root.enemyList.push(ship); } if (shipList == 'ally') { _root.allyList.push(this[shipType + shipNumber]); } ship.ship.ships = [shipType]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jx; ship.ship._y = jy; ship.ship.range = range; ship.capital = capital; ship.ship.tc = thrustcounter; ship.ship.movespeed = movespeed; ship.ship.nomove = nomove; ship.ship.Numexp = Numexp; ship.ship.jumpsize = jumpsize; ship.ship.fe1 = fe1; ship.ship.fe2 = fe2; ship.ship.fe3 = fe3; ship.health = health; ship.ship.dey = dey; ship.ship.dex = dex; ship.ship.gdis = gdis; ship.ship.radartype = [radartype]; ship.ship.dlist = [dlist]; ++_root.otherCounter; ship.attachMovie([guntype1], 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype2], 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype3], 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype4], 'gun4', _root.otherCounter); ship._visible = true; ship.cat = cat; } _parent.overlay.sector = 'ISA WeaponCache'; _parent.overlay.navcircle.loc._x = 3; _parent.overlay.navcircle.loc._y = 5; crate1 = 0; crate2 = 0; crate3 = 0; crate4 = 0; crate5 = 0; ++_root.permCounter; depot1.swapDepths(_root.negCounter); player.swapDepths(0); _root.sandbox = 0; _root.allyList.push(antaris); _parent.changetrack = 2; _parent.mvl = 40; jumpx = 0; jumpy = 0; es1 = 0; es2 = 0; es3 = 0; _root.gpause = 0; mcd = 0; section = 'c4'; this.attachMovie('itl', 'itl', -1); itl.ship._x = -90; itl.ship._y = 50; itl.ship.xthrust = 0; itl.ship.ythrust = 0; trig = -1; _root.radarreset = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nships = 0; aships = 0; changetrack = 0; aas = 1; nas = 10; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); abcii += 1; if (nbfri > abfri) { abfri += 1; ++_root.objectCounter; attachMovie('bfri', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfrii > abfrii) { abfrii += 1; ++_root.objectCounter; attachMovie('bfrii', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; } if (nbci > abci) { abci += 1; ++_root.objectCounter; attachMovie('bci', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpulseiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun4', _root.otherCounter); } if (nbcii > abcii) { abcii += 1; ++_root.objectCounter; attachMovie('ship', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ship.ship.ships = 'bcii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfi > abfi) { ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ship._visible = true; ship.cat = 1; } if (nbfii > abfii) { abfii += 1; ++_root.objectCounter; attachMovie('bfii', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiii > abfiii) { abfiii += 1; ++_root.objectCounter; attachMovie('bfiii', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gliiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiv > abfiv) { abfiv += 1; ++_root.objectCounter; attachMovie('bfiv', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nifi > aifi) { aifi += 1; ++_root.objectCounter; attachMovie('ship', 'ifi' + aifi, _root.objectCounter); _root.allyList.push(this['ifi' + aifi]); ship = this['ifi' + aifi]; ship.ship.ships = 'ifi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.idlezone = ap1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.cat = 1; } if (nifii > aifii) { aifii += 1; ++_root.objectCounter; attachMovie('ifii', 'ifii' + aifii, _root.objectCounter); _root.allyList.push(this['ifii' + aifii]); this['ifii' + aifii].ship._x = jumpx; this['ifii' + aifii].ship._y = jumpy; this['ifii' + aifii].ship.ship._xscale = 1; this['ifii' + aifii].ship.ship._yscale = 1; this['ifii' + aifii].cat = 1; ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun2', _root.otherCounter); } if (nifiii > aifiii) { aifiii += 1; ++_root.objectCounter; attachMovie('ifiii', 'ifiii' + aifiii, _root.objectCounter); _root.allyList.push(this['ifiii' + aifiii]); this['ifiii' + aifiii].ship._x = jumpx; this['ifiii' + aifiii].ship._y = jumpy; this['ifiii' + aifiii].ship.ship._xscale = 1; this['ifiii' + aifiii].ship.ship._yscale = 1; this['ifiii' + aifiii].cat = 1; ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gmiai', 'gun2', _root.otherCounter); } if (nifiv > aifiv) { aifiv += 1; ++_root.objectCounter; attachMovie('ifiv', 'ifiv' + aifiv, _root.objectCounter); _root.allyList.push(this['ifiv' + aifiv]); this['ifiv' + aifiv].ship._x = jumpx; this['ifiv' + aifiv].ship._y = jumpy; this['ifiv' + aifiv].ship.ship._xscale = 1; this['ifiv' + aifiv].ship.ship._yscale = 1; this['ifiv' + aifiv].cat = 1; } if (nifri > aifri) { aifri += 1; ++_root.objectCounter; attachMovie('ifri', 'ifri' + aifri, _root.objectCounter); _root.allyList.push(this['ifri' + aifri]); this['ifri' + aifri].ship._x = jumpx; this['ifri' + aifri].ship._y = jumpy; this['ifri' + aifri].ship.ship._xscale = 1; this['ifri' + aifri].ship.ship._yscale = 1; ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifri' + aifri]._visible = true; this['ifri' + aifri].cat = 2; } if (nifrii > aifrii) { aifrii += 1; ++_root.objectCounter; attachMovie('ifrii', 'ifrii' + aifrii, _root.objectCounter); _root.allyList.push(this['ifrii' + aifrii]); this['ifrii' + aifrii].ship._x = jumpx; this['ifrii' + aifrii].ship._y = jumpy; this['ifrii' + aifrii].ship.ship._xscale = 1; this['ifrii' + aifrii].ship.ship._yscale = 1; _root.allyList.push(this['ifrii' + aifrii]); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifrii' + aifrii]._visible = true; this['ifrii' + aifrii].cat = 2; } if (nici > aici) { aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = jumpx; this['ici' + aici].ship._y = jumpy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; ++_root.otherCounter; this['ici' + aici].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; } if (nicii > aicii) { aicii += 1; ++_root.objectCounter; attachMovie('ship', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); ship = this['icii' + aicii]; ship.ship.ships = 'icii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } } if (fenix == 1) { this['ici' + aici].ship.movespeed = 0; aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = -300 + absx; this['ici' + aici].ship._y = -500 + absy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; this['ici' + aici].skins = 'fenix'; ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; fenix = 0; } if (_root.gpause == 0) { if (_root.game.uni.player.hit.hitTest(itl.ship)) { _root.game.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _root.game.overlay.hangericon._visible = false; } if (player.hit.hitTest(indi)) { indi._visible = false; } else { indi._visible = true; } if (trig == -1) { mcd += 1; if (mcd == 90) { attachMovie('textline', 't2', 2135); t2.nstr = 'I am reading the 5 Weapon Cache Signatures! I will feed them into your HUD. Come back if you need repairs or to rearm anytime.'; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 0; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 0) { mcd += 1; if (mcd == 120) { _root.gpause = 1; _root.pausescreen.gotoAndStop(3); _root.pausescreen.mission = '3'; _root.pausescreen.micon = 2; _root.pausescreen.mdis = 'Raid all 5 weapon stashes, return to the Rescue Ship any time for repairs and to rearm'; _root.pausescreen.con = 'You must Survive'; _root.pausescreen.mname = 'Deadly Stash'; _root.pausescreen.cd = 120; } if (mcd == 89) { ++_root.permCounter; attachMovie('indi', 'indi2', _root.permCounter); indi2.mod = 6; indi2.tracking = 'object'; indi2.obj = itl.ship; indi2.dname = 'RS AYA'; ++_root.permCounter; attachMovie('indi', 'indi', _root.permCounter); indi.mod = 2; indi.tracking = 'object'; indi.obj = depot1; indi.dname = 'Depot 1'; } } if (trig == 1) { --_root.negCounter; attachMovie('weaponsdepot', 'depot2', _root.negCounter); depot2._y = -3500 + absy; depot2._x = -500 + absx; indi.mod = 2; indi.tracking = 'object'; indi.obj = depot2; indi.dname = 'Depot 2'; trig += 1; ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = depot2._x + random(100) - 50; ship.ship._y = depot2._y + random(100) - 50; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 100; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = depot2._x + random(100) - 50; ship.ship._y = depot2._y + random(100) - 50; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 100; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = depot2._x + random(100) - 50; ship.ship._y = depot2._y + random(100) - 50; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 100; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; } if (trig == 3) { --_root.negCounter; attachMovie('weaponsdepot', 'depot3', _root.negCounter); depot3._y = -1500 + absy; depot3._x = 3600 + absx; indi.mod = 2; indi.tracking = 'object'; indi.obj = depot3; indi.dname = 'Depot 3'; trig += 1; ++abfiv; ++_root.objectCounter; attachMovie('ship', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ship.ship.ships = 'bfiv'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(10); ship.ship.movespeed = 8; ship.ship._x = depot3._x + random(100) - 50; ship.ship._y = depot3._y + random(100) - 50; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = 150; ship.health = 650; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; } if (trig == 5) { --_root.negCounter; attachMovie('weaponsdepot', 'depot4', _root.negCounter); depot4._y = 4500 + absy; depot4._x = 2000 + absx; indi.mod = 2; indi.tracking = 'object'; indi.obj = depot4; indi.dname = 'Depot 4'; trig += 1; ++abfri; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(20); ship.ship.movespeed = 1; ship.ship._x = depot4._x + random(100) - 50; ship.ship._y = depot4._y + random(100) - 50; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 50; ship.ship.fe1 = 250; ship.ship.fe2 = 125; ship.health = 350; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 10; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 2; } if (trig == 7) { --_root.negCounter; attachMovie('weaponsdepot', 'depot5', _root.negCounter); depot5._y = 3500 + absy; depot5._x = -2600 + absx; indi.mod = 2; indi.tracking = 'object'; indi.obj = depot5; indi.dname = 'Depot 5'; ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = depot5._x + random(100) - 50; ship.ship._y = depot5._y + random(100) - 50; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 500; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 3; mcd = 0; trig += 1; } if (trig == 9) { mcd += 1; if (mcd == 150) { attachMovie('textline', 't2', 2135); t2.nstr = 'X1 Delta we are receiving a Code Red Emergency signal from Zeta Koa Civilian Station. It is our duty to immediately assist civilian assets with code red status. Rearm and suit up for immediate jump. '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 0; t2.remove = 0; t2._y = -100; _root.gpause = 1; _parent.overlay.jumpicon._visible = true; mcd = 0; } } if (trig == 10) { mcd += 1; if (Key.isDown(_root.jumpK)) { _root.briefing.gotoAndStop(5); itl.ship.allowmove = 0; itl.ship.xtt = itl.ship._x; itl.ship.ytt = itl.ship._y; itl.ship.jump.play(); attachMovie('jump', 'jump', 40); jump._x = player._x; jump._y = player._y; jump.gotoAndPlay(52); _parent.changetrack = 1; _parent.overlay.hangericon._visible = false; _parent.overlay.jumpicon._visible = false; _root.gpause = 1; trig += 1; } if (mcd == 30) { attachMovie('textline', 't2', 2135); t2.nstr = 'Press J when you are ready to depart '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 0; t2.cd = 120; t2.radio = 0; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 0; t2.remove = 0; t2._y = -100; } } if (crate1 == 1) { _root.negCounter -= 1; attachMovie('crate', 'afx1', _root.negCounter); afx1._x = depot1._x; afx1._y = depot1._y; afx1.holding = 'money'; afx1.amount = 500; _root.negCounter -= 1; attachMovie('crate', 'afx2', _root.negCounter); afx2._x = depot1._x + 50; afx2._y = depot1._y - 5; afx2.holding = 'money'; afx2.amount = 300; _root.negCounter -= 1; attachMovie('crate', 'afx3', _root.negCounter); afx3._x = depot1._x + 25; afx3._y = depot1._y + 7; afx3.holding = 'weapons'; afx3.weapon = 'missilei'; afx3.amount = 300; crate1 += 1; } if (crate1 == 3) { _root.negCounter -= 1; attachMovie('crate', 'afx4', _root.negCounter); afx4._x = depot2._x; afx4._y = depot2._y; afx4.holding = 'money'; afx4.amount = 500; _root.negCounter -= 1; attachMovie('crate', 'afx5', _root.negCounter); afx5._x = depot2._x + 40; afx5._y = depot2._y - 9; afx5.holding = 'money'; afx5.amount = 300; _root.negCounter -= 1; attachMovie('crate', 'afx6', _root.negCounter); afx6._x = depot2._x + 15; afx6._y = depot2._y + 3; afx6.holding = 'money'; afx6.amount = 800; crate1 += 1; } if (crate1 == 5) { _root.negCounter -= 1; attachMovie('crate', 'afx7', _root.negCounter); afx7._x = depot3._x; afx7._y = depot3._y; afx7.holding = 'weapons'; afx7.weapon = 'pulsari'; _root.negCounter -= 1; attachMovie('crate', 'afx8', _root.negCounter); afx8._x = depot3._x + 40; afx8._y = depot3._y - 9; afx8.holding = 'money'; afx8.amount = 500; _root.negCounter -= 1; crate1 += 1; } if (crate1 == 7) { _root.negCounter -= 1; attachMovie('crate', 'afx9', _root.negCounter); afx9._x = depot4._x; afx9._y = depot4._y; afx9.holding = 'weapons'; afx9.weapon = 'spoon'; _root.negCounter -= 1; attachMovie('crate', 'afx95', _root.negCounter); afx95._x = depot4._x + 45; afx95._y = depot4._y + 9; afx95.holding = 'weapons'; afx95.weapon = 'mod1'; crate1 += 1; } if (crate1 == 9) { _root.negCounter -= 1; attachMovie('crate', 'afx10', _root.negCounter); afx10._x = depot5._x; afx10._y = depot5._y; afx10.holding = 'weapons'; afx10.weapon = 'laserii'; attachMovie('crate', 'afx11', _root.negCounter); afx11._x = depot5._x; afx11._y = depot5._y; afx11.holding = 'weapons'; afx11.weapon = 'streakerii'; _root.negCounter -= 1; attachMovie('crate', 'afx12', _root.negCounter); afx12._x = depot5._x + 40; afx12._y = depot5._y - 9; afx12.holding = 'money'; afx12.amount = 500; _root.negCounter -= 1; attachMovie('crate', 'afx13', _root.negCounter); afx13._x = depot5._x + 40; afx13._y = depot5._y - 9; afx13.holding = 'money'; afx13.amount = 100; crate1 += 1; } } if (trig < 11 or trig > 12) { if (_parent.overlay.scaler.xx._y > 102) { _parent.overlay.scaler.xx._y -= _parent.overlay.scaler.xx._y / 100; } } } } frame 5 { _root.mission = 5; _root.quicksave = 1; stop(); _root.ssavefile = 1; } frame 5 { overlay.auxpowers._visible = true; overlay.auxpower._visible = true; } instance uni of movieClip 1369 { onClipEvent (load) { function createShip(shipNumber, counter, shipType, shipList, guntype1, guntype2, guntype3, guntype4, cat, jx, jy, range, capital, thrustcounter, movespeed, nomove, Numexp, fe1, fe2, fe3, health, dex, dey, gdis, radartype, dlist, jumpsize) { this[shipNumber] += 1; ++_root[counter]; trace(this[shipNumber]); attachMovie('ship', [shipType] + this[shipNumber], _root[counter]); trace(this[[shipType] + this[shipNumber]]); ship = this[shipType + shipNumber]; trace(ship); if (shipList == 'enemy') { _root.enemyList.push(ship); } if (shipList == 'ally') { _root.allyList.push(this[shipType + shipNumber]); } ship.ship.ships = [shipType]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jx; ship.ship._y = jy; ship.ship.range = range; ship.capital = capital; ship.ship.tc = thrustcounter; ship.ship.movespeed = movespeed; ship.ship.nomove = nomove; ship.ship.Numexp = Numexp; ship.ship.jumpsize = jumpsize; ship.ship.fe1 = fe1; ship.ship.fe2 = fe2; ship.ship.fe3 = fe3; ship.health = health; ship.ship.dey = dey; ship.ship.dex = dex; ship.ship.gdis = gdis; ship.ship.radartype = [radartype]; ship.ship.dlist = [dlist]; ++_root.otherCounter; ship.attachMovie([guntype1], 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype2], 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype3], 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype4], 'gun4', _root.otherCounter); ship._visible = true; ship.cat = cat; } _parent.overlay.sector = 'Zeta Koa Station'; _parent.overlay.navcircle.loc._x = 8; _parent.overlay.navcircle.loc._y = 9; player.swapDepths(0); _root.sandbox = 0; _parent.changetrack = 3; _parent.mvl = 20; jumpx = 0; fail = 0; jumpy = 0; es1 = 0; es2 = 0; es3 = 0; mblips = random(10) + 1; blips = 0; prog = 0; section = 'c5'; itltltcd = 0; this.attachMovie('itl', 'itl', -1); itl.ship._x = -90; itl.ship._y = 50; iltr.ship.ship.lsev = 4; itl.ship.xthrust = 0; itl.ship.ythrust = 0; deathCount = 0; _root.allyList.push(this.iltr); mcd = 0; trig = 0; _root.radarreset = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; xcd = 0; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nships = 0; aships = 0; changetrack = 0; aas = 1; nas = 10; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); if (_root.gpause == 0) { if (trig < 6) { blips += 1; if (blips > mblips) { ++_root.effectCounter; attachMovie('blip', 'b' + _root.effectCounter, _root.effectCounter); this['b' + _root.effectCounter]._x = iltr.ship._x / random(10); this['b' + _root.effectCounter]._y = iltr.ship._y / random(10); mblips = random(10) + 1; } } if (_root.game.uni.player.hit.hitTest(itl.ship)) { _root.game.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _root.game.overlay.hangericon._visible = false; } if (trig < 5) { itltltcd -= 1; if (itltltcd < 0) { itltltcd = random(200); itl.tlt.yt = itl.ship._y + random(200) - 100; itl.tlt.xt = itl.ship._x + random(200) - 100; } } else { itl.tlt.yt = iltr.ship._x; itl.tlt.xt = iltr.ship._y; } if (trig == 0) { mcd += 1; if (mcd == 5) { ++_root.permCounter; attachMovie('indi', 'indi2', _root.permCounter); indi2.mod = 2; indi2.tracking = 'object'; indi2.obj = itl.ship; indi2.dname = 'RS AYA'; ++_root.permCounter; _parent.attachMovie('dynamicbar', 'itlhp', _root.permCounter); _parent.itlhp._x = 175; _parent.itlhp.dis = 'Rescue Ship HP'; _parent.itlhp._y = 25; _parent.itlhp._alpha = 0; _parent.itlhp.onEnterFrame = function () { if (this._alpha < 100) { this._alpha += 2; } this.bar.bar._x = (itl.health / 50) * 100; }; } if (mcd == 90) { attachMovie('textline', 't2', 2135); t2.nstr = 'Active Scanning is picking up large amounts of radiation, it looks like the UCF just nuked this entire Civilian Station! I never thought even those corporate bastards would kill innocent people '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 1) { mcd += 1; if (mcd == 20) { attachMovie('textline', 't2', 2135); t2.nstr = 'Hold. . . . . we are receiving a transponder signal from a Disaster Ship! Your advanced active scanners are the best in the fleet, see if you can locate the disaster ship. '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 2) { mcd += 1; if (mcd == 20) { attachMovie('textline', 't2', 2135); t2.nstr = 'We will follow your lead, just keep clear of that wreakage, its pumping high amounts of radiation. Those ships can hold up to 2,000 people so I think it’s worth our time. '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 3) { mcd += 1; if (mcd == 1) { _root.gpause = 1; _root.pausescreen.gotoAndStop(3); _root.pausescreen.mission = '4'; _root.pausescreen.micon = 2; _root.pausescreen.mdis = 'Search for the Disaster Ship & lead RS Aya through the wreakage. '; _root.pausescreen.con = 'RS Aya must survive'; _root.pausescreen.mname = 'Radioactive Needle in a Haystack!'; _root.pausescreen.cd = 120; trig += 1; mcd = 0; } } if (itl.real == 0) { _root.failure = 1; _root.reason4failure = 'The RS Aya was destroyed'; _root.gpause = 1; } if (trig == 4) { itl.ship.xtt = 0; itl.ship.ytt = 0; itl.ship.allowmove = 1; mcd += 1; if (mcd == 30) { attachMovie('textline', 't2', 2135); t2.nstr = 'Follow the blue pings to find the Distaster Ship. . \n Avoid green areas, they are full of deadly radiation. . '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 0; t2.cd = 120; t2.radio = 0; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 1; t2.remove = 0; t2._y = 100; } if (itl.ship.hit.hitTest(podarea)) { mcd = 0; trig += 1; } } if (trig == 5) { debriremove = 1; itl.ship.xtt = iltr.ship._x; itl.ship.ytt = iltr.ship._y; itl.ship.allowmove = 1; mcd += 1; if (mcd == 30) { attachMovie('textline', 't2', 2135); t2.nstr = ' . . This is ZK Station Disaster Ship 12, we have 1923 people on board and are having trouble with our Emergency Jump system. . '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Distaster Pod'; t2.po = 'pilot2'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 6) { itl.ship.xtt = iltr.ship._x; itl.ship.ytt = iltr.ship._y; mcd += 1; if (mcd == 30) { attachMovie('textline', 't2', 2135); t2.nstr = 'This is the Rescue Ship Aya and X1 Delta, we read you and can render aid. Stand by. . . '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 7) { itl.ship.xtt = iltr.ship._x; itl.ship.ytt = iltr.ship._y; itl.ship.nomove = 1; mcd += 1; if (mcd == 20) { itl.ship.l1.gotoAndStop(25); itl.ship.l2.gotoAndStop(25); iltr.ship.l1._visible = true; iltr.ship.ship.lsev = 0; } if (mcd == 90) { _parent.itlhp.removeMovieClip(); ++_root.permCounter; attachMovie('dynamicbarbar', 'iltrhp', _root.permCounter); iltrhp._x = 0; iltrhp._y = 75; iltrhp._alpha = 0; iltrhp._xscale = 70; iltrhp._yscale = 70; ++_root.permCounter; attachMovie('dynamicbarbar', 'itlhp', _root.permCounter); itlhp._x = 150; itlhp._y = 75; itlhp._alpha = 0; itlhp._xscale = 50; itlhp._yscale = 50; ++_root.permCounter; _parent.attachMovie('dynamicbar', 'prog', _root.permCounter); _parent.prog._x = 175; _parent.prog.dis = 'Repair Progress'; _parent.prog._y = 25; _parent.prog._alpha = 0; attachMovie('textline', 't2', 2135); t2.nstr = 'Their Jump system is badly damaged. . this is gonna take awhile.. '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 8) { prog += 0.01; mcd += 1; if (mcd == 210) { attachMovie('textline', 't2', 2135); t2.nstr = 'Picking up multiple jump signatures! '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 0; t2.cd = 90; t2.radio = 1; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 1; t2.remove = 0; t2._y = -100; } if (mcd == 300) { _root.gpause = 1; _root.pausescreen.gotoAndStop(3); _root.pausescreen.mission = '5'; _root.pausescreen.micon = 1; _root.pausescreen.mdis = 'Defend the Disaster Ship until it is repaired. '; _root.pausescreen.con = 'Disaster Ship must survive'; _root.pausescreen.mname = 'Kill him while he is down! '; _root.pausescreen.cd = 120; abfrii += 1; ++_root.objectCounter; attachMovie('ship', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ships = 'bfrii'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 390 + absx; ship.ship._y = -2527 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (mcd == 450) { ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = 450 + absx; ship.ship._y = -2400 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 100; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; } if (mcd == 500) { ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = 370 + absx; ship.ship._y = -2300 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 100; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; } if (mcd == 550) { ++abfiv; ++_root.objectCounter; attachMovie('ship', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ship.ship.ships = 'bfiv'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(10); ship.ship.movespeed = 8; ship.ship._x = 500 + absx; ship.ship._y = -2600 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = 150; ship.health = 150; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; } if (mcd == 750) { ++abfiv; ++_root.objectCounter; attachMovie('ship', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ship.ship.ships = 'bfiv'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(10); ship.ship.movespeed = 8; ship.ship._x = 600 + absx; ship.ship._y = -2500 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = 150; ship.health = 150; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; } if (mcd == 1400) { ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 300 + absx; ship.ship._y = -2400 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 600; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 3; } if (mcd == 1700) { } if (mcd == 2000) { trace('duplicated'); abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 500 + absx; ship.ship._y = -2707 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (mcd == 3600) { abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 500 + absx; ship.ship._y = -2707 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (mcd == 3800) { abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 600 + absx; ship.ship._y = -2807 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (mcd == 4100) { abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 500 + absx; ship.ship._y = -2707 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (mcd == 5000) { ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 300 + absx; ship.ship._y = -2400 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 800; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 3; } if (mcd == 6300) { ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 400 + absx; ship.ship._y = -2700 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 800; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 2; } if (mcd == 6750) { ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 500 + absx; ship.ship._y = -2400 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 600; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 2; } if (mcd == 7500) { ++aicii; ++_root.objectCounter; attachMovie('ship', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); ship = this['icii' + aicii]; ship.ship.ships = 'icii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 5000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 300 + absx; ship.ship._y = -2400 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.dskin = 10; ship.ship.fe2 = 100; ship.health = 100000; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun3', _root.otherCounter); ship.gun3.acd = 10; ship.gun3.cd = 0; ship.cat = 3; } if (mcd == 7600) { attachMovie('textline', 't2', 2135); t2.nstr = 'This is the ISA Redemption, we hear you needed some assistance. . . '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'ISA Redemption'; t2.po = 'pilot2'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } _parent.mvl = 60; } if (trig == 9) { mcd += 1; if (mcd == 90) { ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 300 + absx; ship.ship._y = -2650 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 1000; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.deathCounter = 1; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 2; } if (mcd == 120) { ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 300 + absx; ship.ship._y = -2150 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 1000; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.deathCounter = 1; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 2; } if (mcd == 200) { ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = 600 + absx; ship.ship._y = -2150 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 1000; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.deathCounter = 1; ship.cat = 2; } trace('deathCounter' + deathCount); if (deathCount == 3) { trig += 1; mcd = 0; } } if (trig == 10) { mcd += 1; if (mcd > 90) { attachMovie('textline', 't2', 2135); t2.nstr = 'X1 Delta, we have a Priority Alpha Message for you from Echo Command. . . You are to report to Antaris Station immediately. . . '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'ISA Redemption'; t2.po = 'pilot2'; t2.loud = 1; t2.remove = 0; t2._y = -100; mcd = 0; } } if (trig == 11) { mcd += 1; _parent.prog.removeMovieClip(); if (Key.isDown(_root.jumpK)) { attachMovie('jump', 'jump', 40); jump._x = player._x; jump._y = player._y; jump.gotoAndPlay(52); mcd = 0; _parent.overlay.hangericon._visible = false; _parent.overlay.jumpicon._visible = false; trig += 1; } _parent.overlay.jumpicon._visible = true; if (mcd == 30) { attachMovie('textline', 't2', 2135); t2.nstr = 'Press J when you are ready to depart '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 0; t2.cd = 120; t2.radio = 0; t2.dname = 'RS Aya'; t2.po = 'pilot1'; t2.loud = 0; t2.remove = 0; t2._y = -100; } } if (trig == 12) { mcd += 1; if (mcd == 30) { _parent.changetrack = 4; _parent.gotoAndStop(35); } } } } if (trig < 11 or trig > 12) { if (_parent.overlay.scaler.xx._y > 102) { _parent.overlay.scaler.xx._y -= _parent.overlay.scaler.xx._y / 100; } } } } frame 6 { _root.mission = 6; _root.quicksave = 1; stop(); _root.ssavefile = 1; } frame 6 { overlay.auxpowers._visible = false; overlay.auxpower._visible = false; } instance uni of movieClip 1375 { onClipEvent (load) { function createShip(shipNumber, counter, shipType, shipList, guntype1, guntype2, guntype3, guntype4, cat, jx, jy, range, capital, thrustcounter, movespeed, nomove, Numexp, fe1, fe2, fe3, health, dex, dey, gdis, radartype, dlist, jumpsize) { this[shipNumber] += 1; ++_root[counter]; trace(this[shipNumber]); attachMovie('ship', [shipType] + this[shipNumber], _root[counter]); trace(this[[shipType] + this[shipNumber]]); ship = this[shipType + shipNumber]; trace(ship); if (shipList == 'enemy') { _root.enemyList.push(ship); } if (shipList == 'ally') { _root.allyList.push(this[shipType + shipNumber]); } ship.ship.ships = [shipType]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jx; ship.ship._y = jy; ship.ship.range = range; ship.capital = capital; ship.ship.tc = thrustcounter; ship.ship.movespeed = movespeed; ship.ship.nomove = nomove; ship.ship.Numexp = Numexp; ship.ship.jumpsize = jumpsize; ship.ship.fe1 = fe1; ship.ship.fe2 = fe2; ship.ship.fe3 = fe3; ship.health = health; ship.ship.dey = dey; ship.ship.dex = dex; ship.ship.gdis = gdis; ship.ship.radartype = [radartype]; ship.ship.dlist = [dlist]; ++_root.otherCounter; ship.attachMovie([guntype1], 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype2], 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype3], 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype4], 'gun4', _root.otherCounter); ship._visible = true; ship.cat = cat; } _parent.overlay.sector = 'HyperSpace'; _parent.overlay.navcircle.loc._x = 0; _parent.overlay.navcircle.loc._y = 0; _root.gpause = 1; _parent.guides.gotoAndStop('hyperspace'); _parent.overlay.shake = 1; _parent.overlay.scaler.xx._y = 120; crate1 = 0; crate2 = 0; crate3 = 0; crate4 = 0; crate5 = 0; ds = 0; player.swapDepths(0); _parent.changetrack = 2; _parent.mvl = 40; jumpx = 0; jumpy = 0; cd = 0; dm = 0; dcd = 0; ++_root.permCounter; _parent.attachMovie('dynamicbar', 'eta', _root.permCounter); _parent.eta._x = 175; _parent.eta.dis = 'Remaining Time'; _parent.eta._y = 25; _parent.eta._alpha = 0; mcd = 0; section = 'c5'; trig = 0; _root.radarreset = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nships = 0; aships = 0; changetrack = 0; aas = 1; nas = 10; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); if (_root.gpause == 0) { if (cd == 3) { _root.pchp = _root.game.overlay.pmhp; } trace(cd); cd += 1; if (ds > 0) { ds -= 1; ++_root.otherCounter; attachMovie('jumparea.darkspot', 'ds' + _root.otherCounter, _root.otherCounter); } dcd -= 1; if (dcd < 0) { ++_root.otherCounter; attachMovie('darkmatter', 'dm' + dm, _root.otherCounter); this['dm' + dm]._x = -380; ++dm; dcd = 120 - dm * 2; } _parent.overlay.sev = 10; if (player.hit.hitTest(indi)) { indi._visible = false; } else { indi._visible = true; } if (cd == 3600) { _root.wflash.play(); player.stopSound = 1; _parent.eta.removeMovieClip(); attachMovie('jump', 'jump', 40); jump._x = player._x; jump._y = player._y; jump.gotoAndPlay(52); } if (cd > 3630) { this.dmsound.swapDepths(1); this.dmsound.removeMovieClip(); _parent.gotoAndStop('gotoC7'); } } } } } frame 7 { _root.mission = 7; _root.quicksave = 1; stop(); _root.ssavefile = 1; } frame 7 { overlay.auxpowers._visible = true; overlay.auxpower._visible = true; } instance uni of movieClip 1405 { onClipEvent (load) { _parent.overlay.sector = 'UCF Base'; _parent.overlay.navcircle.loc._x = 0; _parent.overlay.navcircle.loc._y = 0; detection = 0; crate1 = 0; crate2 = 0; crate3 = 0; faildetect = 0; crate4 = 0; crate5 = 0; player.swapDepths(0); _root.sandbox = 0; _root.allyList.push(antaris); _parent.changetrack = 3; _parent.mvl = 20; jumpx = 0; jumpy = 0; es1 = 0; es2 = 0; es3 = 0; mcd = 0; section = 'c7'; trig = 0; _root.radarreset = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nships = 0; aships = 0; changetrack = 1; aas = 1; nas = 10; ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 600; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = 370 + absx; ship.ship._y = 1000 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 100; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; ++abfiv; ++_root.objectCounter; attachMovie('ship', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ship.ship.ships = 'bfiv'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 600; ship.capital = 0; ship.ship.tc = random(10); ship.ship.movespeed = 8; ship.ship._x = 600 + absx; ship.ship._y = 1600 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = 150; ship.health = 150; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; ++abfiv; ++_root.objectCounter; attachMovie('ship', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ship.ship.ships = 'bfiv'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 600; ship.capital = 0; ship.ship.tc = random(10); ship.ship.movespeed = 8; ship.ship._x = 871 + absx; ship.ship._y = 1800 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = 150; ship.health = 150; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ship.cat = 1; ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 600; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = -300 + absx; ship.ship._y = 1200 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 1000; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 3; ++abci; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 600; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = -700 + absx; ship.ship._y = 2100 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 100; ship.ship.fe1 = 400; ship.ship.fe2 = 300; ship.ship.fe2 = 100; ship.health = 1000; ship.ship.dey = 15; ship.ship.dex = 10; ship.ship.gdis = 13; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.gun2.acd = 30; ship.gun2.cd = 0; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun3', _root.otherCounter); ship.gun3.acd = 30; ship.gun3.cd = 0; ship.cat = 3; abcii += 1; ++_root.objectCounter; attachMovie('ship', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ship.ship.ships = 'bcii'; ship.ship.ship._xscale = 1; ship.ship.range = 600; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 1300; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 1200; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; faildetected = 0; xcd = 30; ds = 60; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (detection > 100) { faildetect = 1; } if (ds > 0) { ds -= 1; ++_root.otherCounter; attachMovie('jumparea.darkspot', 'ds' + _root.otherCounter, _root.otherCounter); } if (detection > 0) { detection -= 0.1; } if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); if (faildetect == 1) { xcd -= 1; if (xcd == 0) { _root.failure = 1; _root.reason4failure = 'You were detected by UCF Forces. '; _root.gpause = 1; } } if (trig == 0) { mcd += 1; if (mcd == 60) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. . Manual Jump successful \n . . Ship systems report operational status. . \n Updating target cordinates. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 100; } if (mcd == 200) { ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].mod = 2; this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = t1; this['indi' + _root.permCounter].dname = ''; this['indi' + _root.permCounter].dobjremove = 1; } if (mcd == 210) { ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].mod = 2; this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = t2; this['indi' + _root.permCounter].dname = ''; this['indi' + _root.permCounter].dobjremove = 1; } if (mcd == 220) { ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].mod = 2; this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = t3; this['indi' + _root.permCounter].dname = ''; this['indi' + _root.permCounter].dobjremove = 1; } if (mcd == 230) { ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].mod = 2; this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = t4; this['indi' + _root.permCounter].dname = ''; this['indi' + _root.permCounter].dobjremove = 1; } if (mcd == 240) { ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].mod = 2; this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = t5; this['indi' + _root.permCounter].dname = ''; this['indi' + _root.permCounter].dobjremove = 1; } if (mcd == 250) { ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].mod = 2; this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = t6; this['indi' + _root.permCounter].dname = ''; this['indi' + _root.permCounter].dobjremove = 1; } if (mcd == 260) { ++_root.permCounter; attachMovie('indi', 'indi' + _root.permCounter, _root.permCounter); this['indi' + _root.permCounter].mod = 2; this['indi' + _root.permCounter].tracking = 'object'; this['indi' + _root.permCounter].obj = t7; this['indi' + _root.permCounter].dname = ''; this['indi' + _root.permCounter].dobjremove = 1; } if (mcd == 380) { _root.gpause = 1; _root.pausescreen.gotoAndStop(3); _root.pausescreen.mission = '7'; _root.pausescreen.micon = 2; _root.pausescreen.mdis = 'Remain undetected while planting the 7 tactical nuclear devices on the designated targets. \n Use your cloak to avoid enemy ships and avoid detection outpost '; _root.pausescreen.con = 'You cannot be Detected'; _root.pausescreen.mname = 'Operation BlackKnife'; _root.pausescreen.cd = 120; } } if (trig == 1) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. .6 Targets Remaining. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 300; ++trig; } if (trig == 3) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. .5 Targets Remaining. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 300; ++trig; } if (trig == 5) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. .4 Targets Remaining. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 300; ++trig; } if (trig == 7) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. .3 Targets Remaining. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 300; ++trig; } if (trig == 9) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. .2 Targets Remaining. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 300; ++trig; } if (trig == 11) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. .1 Target Remaining. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 300; ++trig; } if (trig == 13) { _parent.attachMovie('textline', 't1', -1337); _parent.t1.nstr = '. .Retreat to target coordinates. . '; _parent.t1.speed = 0.5; _parent.t1._x = 325; _parent.t1.cd = 90; _parent.t1.remove = 0; _parent.t1._y = 300; ++_root.permCounter; attachMovie('indi', 'indifinal', _root.permCounter); this.indifinal.mod = 2; this.indifinal.tx = +absx; this.indifinal.ty = -400 + absy; this.indifinal.obj = t1; this.indifinal.dname = ''; ++trig; } if (trig == 14) { if (player.hit.hitTest(indifinal)) { trig += 1; } } if (trig == 15) { if (_parent.overlay.scaler.xx._y > 5) { _parent.overlay.scaler.xx._y /= 1.03; } else { trig += 1; } } if (trig == 16) { removeShips = 1; superexplosion.play(); mcd = 0; trig += 1; } if (trig == 17) { mcd += 1; if (mcd >= 90) { _parent.overlay.scaler.xx._y /= 1.03; } if (_xscale < 0.1) { _parent.gotoAndStop(8); } } } } } instance uni of movieClip 1429 { onClipEvent (load) { _parent.overlay.scaler.xx._y = 100; _parent.overlay.sector = 'Credits Screen'; _parent.overlay.navcircle.loc._x = 0; _parent.overlay.navcircle.loc._y = 0; detection = 0; crate1 = 0; crate2 = 0; crate3 = 0; faildetect = 0; crate4 = 0; crate5 = 0; player.swapDepths(0); _root.sandbox = 0; _root.allyList.push(antaris); _parent.changetrack = 4; _parent.mvl = 40; jumpx = 0; jumpy = 0; es1 = 0; es2 = 0; es3 = 0; mcd = 0; section = 'c8'; _root.radarreset = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nships = 0; aships = 0; changetrack = 1; aas = 1; nas = 10; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; } } } frame 28 { _root.statreset = 1; _root.mission = 28; _root.quicksave = 1; } frame 28 { overlay.auxpowers._visible = true; overlay.auxpower._visible = true; } instance uni of movieClip 1431 { onClipEvent (enterFrame) { if (_root.gpause == 0) { if (_root.game.uni.player.hit.hitTest(itl.ship)) { _root.game.overlay.hangericon._visible = true; if (Key.isDown(_root.interactK)) { _root.gpause = 1; _root.game.buyscreen.gotoAndStop(8); } } else { _root.game.overlay.hangericon._visible = false; } if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); if (numEnemies == 0) { merchant(); } if (nbfri > abfri) { abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 250; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nbfrii > abfrii) { abfrii += 1; ++_root.objectCounter; attachMovie('ship', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ships = 'bfrii'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nbci > abci) { abci += 1; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 700; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbcii > abcii) { abcii += 1; ++_root.objectCounter; attachMovie('ship', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ship.ship.ships = 'bcii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 1200; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfi > abfi) { ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ship._visible = true; ship.cat = 1; } if (nbfii > abfii) { ++abfii; ++_root.objectCounter; attachMovie('ship', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ship.ship.ships = 'bfii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 10; ship.ship.movespeed = 5; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 40; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } if (nbfiii > abfiii) { ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 10; ship.ship.movespeed = 5; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 120; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } if (nbfiv > abfiv) { ++abfiv; ++_root.objectCounter; attachMovie('ship', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ship.ship.ships = 'bfiv'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 10; ship.ship.movespeed = 5; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = 100; ship.health = 200; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } if (nifi > aifi) { aifi += 1; ++_root.objectCounter; attachMovie('ship', 'ifi' + aifi, _root.objectCounter); _root.allyList.push(this['ifi' + aifi]); ship = this['ifi' + aifi]; ship.ship.ships = 'ifi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.cat = 1; } if (nifii > aifii) { aifii += 1; ++_root.objectCounter; attachMovie('ship', 'ifii' + aifii, _root.objectCounter); _root.allyList.push(this['ifii' + aifii]); ship = this['ifii' + aifii]; ship.ship.ships = 'ifii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 50; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ship.cat = 1; } if (nifiii > aifiii) { aifiii += 1; ++_root.objectCounter; attachMovie('ship', 'ifiii' + aifiii, _root.objectCounter); _root.allyList.push(this['ifiii' + aifiii]); ship = this['ifiii' + aifiii]; ship.ship.ships = 'ifiii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 90; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.cat = 1; } if (nifiv > aifiv) { aifiv += 1; ++_root.objectCounter; attachMovie('ship', 'ifiv' + aifiv, _root.objectCounter); _root.allyList.push(this['ifiv' + aifiv]); ship = this['ifiv' + aifiv]; ship.ship.ships = 'ifiv'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 150; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun4', _root.otherCounter); ship.cat = 1; } if (nifri > aifri) { aifri += 1; ++_root.objectCounter; attachMovie('ship', 'ifri' + aifri, _root.objectCounter); _root.allyList.push(this['ifri' + aifri]); ship = this['ifri' + aifri]; ship.ship.ships = 'ifri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 250; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nifrii > aifrii) { aifrii += 1; ++_root.objectCounter; attachMovie('ship', 'ifrii' + aifrii, _root.objectCounter); _root.allyList.push(this['ifrii' + aifrii]); ship = this['ifrii' + aifrii]; ship.ship.ships = 'ifrii'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nici > aici) { aici += 1; ++_root.objectCounter; attachMovie('ship', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); ship = this['ici' + aici]; ship.ship.ships = 'ici'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 900; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nicii > aicii) { aicii += 1; ++_root.objectCounter; attachMovie('ship', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); ship = this['icii' + aicii]; ship.ship.ships = 'icii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx + random(100) - 50; ship.ship._y = jumpy + random(100) - 50; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 1400; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } } } onClipEvent (load) { function getNums() { tbfi = 0; tbfii = 0; tbfiii = 0; tbfiv = 0; tbfri = 0; tbfrii = 0; tbci = 0; tbcii = 0; numEnemies = 5 + Math.floor(wave / 10); anumEnemies = numEnemies; anbcii = Math.floor(wave / 20); anbci = Math.floor(wave / 15); anbfrii = Math.floor(wave / 12); anbfri = Math.floor(wave / 10); anbfiv = Math.floor(wave / 7); anbfiii = Math.floor(wave / 5); anbfii = Math.floor(wave / 3); anbfi = Math.floor(wave * 3); if (anumEnemies - anbcii >= 0) { tbcii = anbcii; anumEnemies -= anbcii; } else { tbcii = anumEnemies; anumEnemies -= tbcii; } if (anumEnemies - ambci >= 0) { tbci = anbci; anumEnemies -= anbci; } else { tbci = anumEnemies; anumEnemies -= tbci; } if (anumEnemies - anbfrii >= 0) { tbfrii = anbfrii; anumEnemies -= anbfrii; } else { tbfrii = anumEnemies; anumEnemies -= tbfrii; } if (anumEnemies - anbfri >= 0) { tbfri = anbfri; anumEnemies -= anbfri; } else { tbfri = anumEnemies; anumEnemies -= tbfri; } if (anumEnemies - anbfiv >= 0) { tbfiv = anbfiv; anumEnemies -= anbfiv; } else { tbfiv = anumEnemies; anumEnemies -= tbfiv; } if (anumEnemies - anbfiii >= 0) { tbfiii = anbfiii; anumEnemies -= anbfiii; } else { tbfiii = anumEnemies; anumEnemies -= tbfiii; } if (anumEnemies - anbfii >= 0) { tbfii = anbfii; anumEnemies -= anbfii; } else { tbfii = anumEnemies; anumEnemies -= tbfii; } if (anumEnemies - anbfi >= 0) { tbfi = anbfi; anumEnemies -= anbfi; } else { tbfi = anumEnemies; anumEnemies -= tbfi; } numEnemies = tbfi + tbfii + tbfiii + tbfiv + tbfri + tbfrii + tbci + tbcii; } function summon() { gdx = random(1000) - 500; gdy = random(1000) - 500; onEnterFrame = function () { cd -= 1; gdx -= random(10) - 5; gdy -= random(10) - 5; jumpx = gdx; jumpy = gdy; if (cd == 550) { nbfi += tbfi; } if (cd == 500) { nbfii += tbfii; } if (cd == 450) { nbfiii += tbfiii; } if (cd == 400) { nbfiv += tbfiv; } if (cd == 350) { nbfri += tbfri; } if (cd == 340) { nbfrii += tbfrii; } if (cd == 300) { nbci += tbci; } if (cd == 290) { nbcii += tbcii; return false; } }; } function merchant() { ++_root.otherCounter; attachMovie('acquiredtext', 'acquiredtext' + _root.otherCounter, _root.otherCounter); this['acquiredtext' + _root.otherCounter]._x = 0; this['acquiredtext' + _root.otherCounter]._y = 100; this['acquiredtext' + _root.otherCounter].cd = 90; this['acquiredtext' + _root.otherCounter].dis = ['+' + wave * 100 + ' Credits!']; this['acquiredtext' + _root.otherCounter].gotoAndStop(2); _root.pmoney += wave * 100; getNums(); buytime = 1; jumpx = random(600); jumpy = random(600); this.attachMovie('itl', 'itl', -1); itl.ship._x = +absx; itl.ship._y = +absy; _parent.overlay.missiontext.swipe.play(); _parent.overlay.missiontext.swipe.dtext.dtext = 'Wave ' + (wave - 1) + ' Complete!'; _parent.overlay.missiontext.dshow = 3; _parent.overlay.missiontext.mission = 'Get to the merchant!'; ++_root.permCounter; _parent.attachMovie('dynamicbar', 'detectbar', _root.permCounter); _parent.detectbar._x = 175; _parent.detectbar.dis = 'Time Left'; _parent.detectbar._y = 25; _parent.detectbar._alpha = 0; tl = 450; _parent.detectbar.onEnterFrame = function () {}; } function nextWave() { wave += 1; clearInterval = merchanttime; cd = 600; summon(); buytime = 0; _parent.overlay.missiontext.swipe.play(); _parent.overlay.missiontext.swipe.dtext.dtext = 'Wave ' + (wave - 1); _parent.overlay.missiontext.mission = numEnemies + ' Enemy Ships'; _parent.overlay.missiontext.dshow = 3; } absx = 0; absy = 0; } onClipEvent (load) { function createShip(shipNumber, counter, shipType, shipList, guntype1, guntype2, guntype3, guntype4, cat) { trace('lol'); shipNumber += 1; ++_root[counter]; attachMovie([shipType], [shipType] + shipNumber, _root.counter); _root.shipList.push(this[[shipType] + shipNumber]); ship = this[[shipType] + shipNumber]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.otherCounter; ship.attachMovie([guntype1], 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype2], 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype3], 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie([guntype4], 'gun4', _root.otherCounter); ship._visible = true; ship.cat = cat; } _parent.overlay.sector = 'Wave Mode'; _parent.overlay.navcircle.loc._x = 0; _parent.overlay.navcircle.loc._y = 0; shake = 0; sev = 8; wave = 1; getNums(); nextWave(); ++_root.permCounter; attachMovie('indi', 'indi', _root.permCounter); indi.tx = 0; indi.ty = 0; indi.mod = 2; indi.dname = 'Merchant Jump Location'; trigger1 = -1; aitargets = 2; alert = 1; npf = 4; apf = 1; njfg = 1; njf = 4; ajf = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; alert = 1; aas = 1; nas = 10; } } frame 29 { _root.sandbox = 1; _root.statreset = 1; _root.mission = 29; _root.quicksave = 1; } frame 29 { overlay.auxpowers._visible = true; overlay.auxpower._visible = true; } instance uni of movieClip 1432 { onClipEvent (load) { _parent.overlay.sector = 'Dev Sector'; _parent.overlay.navcircle.loc._x = 0; _parent.overlay.navcircle.loc._y = 0; _root.allyList.push(antaris); _parent.changetrack = 1; jumpx = 0; jumpy = 0; es1 = 0; es2 = 0; es3 = 0; _parent.overlay.scaler.xx._y = 200; _root.pchp = 100; mcd = 0; section = 'c2'; if (_parent.returntrig != undefined) { trig = _parent.returntrig; } else { trig = 16; } _root.radarreset = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; nag = 0; aag = 0; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nncc = 0; ancc = 0; nbsg = 0; absg = 0; neag = 0; aeag = 0; nencc = 0; aencc = 0; nebsg = 0; aebsg = 0; nships = 0; aships = 0; aas = 1; nas = 10; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); if (nbsg > absg) { absg += 1; ++_root.objectCounter; attachMovie('ship', 'galactica' + absg, _root.objectCounter); _root.allyList.push(this['galactica' + absg]); ship = this['galactica' + absg]; ship.ship.ships = 'galactica'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nebsg > aebsg) { aebsg += 1; ++_root.objectCounter; attachMovie('ship', 'egalactica' + nebsg, _root.objectCounter); _root.enemyList.push(this['egalactica' + nebsg]); ship = this['egalactica' + nebsg]; ship.ship.ships = 'galactica'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nncc > ancc) { ancc += 1; ++_root.objectCounter; attachMovie('ship', 'startrek' + ancc, _root.objectCounter); _root.allyList.push(this['startrek' + ancc]); ship = this['startrek' + ancc]; ship.ship.ships = 'startrek'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nencc > aencc) { aencc += 1; ++_root.objectCounter; attachMovie('ship', 'estartrek' + aencc, _root.objectCounter); _root.enemyList.push(this['estartrek' + aencc]); ship = this['estartrek' + aencc]; ship.ship.ships = 'startrek'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfri > abfri) { abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 250; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nbfrii > abfrii) { abfrii += 1; ++_root.objectCounter; attachMovie('ship', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ships = 'bfrii'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nbci > abci) { abci += 1; ++_root.objectCounter; attachMovie('ship', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ships = 'bci'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 700; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbcii > abcii) { abcii += 1; ++_root.objectCounter; attachMovie('ship', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ship.ship.ships = 'bcii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 1200; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfi > abfi) { ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ship._visible = true; ship.cat = 1; } if (nbfii > abfii) { ++abfii; ++_root.objectCounter; attachMovie('ship', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ship.ship.ships = 'bfii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 10; ship.ship.movespeed = 5; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 40; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } if (nbfiii > abfiii) { ++abfiii; ++_root.objectCounter; attachMovie('ship', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ship.ship.ships = 'bfiii'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 10; ship.ship.movespeed = 5; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 120; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } if (nbfiv > abfiv) { ++abfiv; ++_root.objectCounter; attachMovie('ship', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ship.ship.ships = 'bfiv'; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 10; ship.ship.movespeed = 5; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = 100; ship.health = 200; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } if (nifi > aifi) { aifi += 1; ++_root.objectCounter; attachMovie('ship', 'ifi' + aifi, _root.objectCounter); _root.allyList.push(this['ifi' + aifi]); ship = this['ifi' + aifi]; ship.ship.ships = 'ifi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.cat = 1; } if (nifii > aifii) { aifii += 1; ++_root.objectCounter; attachMovie('ship', 'ifii' + aifii, _root.objectCounter); _root.allyList.push(this['ifii' + aifii]); ship = this['ifii' + aifii]; ship.ship.ships = 'ifii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 50; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ship.cat = 1; } if (nifiii > aifiii) { aifiii += 1; ++_root.objectCounter; attachMovie('ship', 'ifiii' + aifiii, _root.objectCounter); _root.allyList.push(this['ifiii' + aifiii]); ship = this['ifiii' + aifiii]; ship.ship.ships = 'ifiii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 90; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.cat = 1; } if (nifiv > aifiv) { aifiv += 1; ++_root.objectCounter; attachMovie('ship', 'ifiv' + aifiv, _root.objectCounter); _root.allyList.push(this['ifiv' + aifiv]); ship = this['ifiv' + aifiv]; ship.ship.ships = 'ifiv'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 30; ship.ship.fe1 = -1000; ship.health = 150; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun4', _root.otherCounter); ship.cat = 1; } if (nifri > aifri) { aifri += 1; ++_root.objectCounter; attachMovie('ship', 'ifri' + aifri, _root.objectCounter); _root.allyList.push(this['ifri' + aifri]); ship = this['ifri' + aifri]; ship.ship.ships = 'ifri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 250; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nifrii > aifrii) { aifrii += 1; ++_root.objectCounter; attachMovie('ship', 'ifrii' + aifrii, _root.objectCounter); _root.allyList.push(this['ifrii' + aifrii]); ship = this['ifrii' + aifrii]; ship.ship.ships = 'ifrii'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.nojump = 0; ship.ship.jumpcomplete = 0; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 350; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja3; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (nici > aici) { aici += 1; ++_root.objectCounter; attachMovie('ship', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); ship = this['ici' + aici]; ship.ship.ships = 'ici'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 900; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nicii > aicii) { aicii += 1; ++_root.objectCounter; attachMovie('ship', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); ship = this['icii' + aicii]; ship.ship.ships = 'icii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 1400; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nag > aag) { aag += 1; ++_root.objectCounter; attachMovie('ship', 'armorgames' + aag, _root.objectCounter); _root.allyList.push(this['armorgames' + aag]); ship = this['armorgames' + aag]; ship.ship.ships = 'armorgames'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 3400; ship.ship.dey = 80; ship.ship.dex = 20; ship.ship.gdis = 60; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (neag > aeag) { aeag += 1; ++_root.objectCounter; attachMovie('ship', 'earmorgames' + aeag, _root.objectCounter); _root.enemyList.push(this['earmorgames' + aeag]); ship = this['earmorgames' + aeag]; ship.ship.ships = 'armorgames'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = targeter._x; ship.ship._y = targeter._y; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 3400; ship.ship.dey = 80; ship.ship.dex = 20; ship.ship.gdis = 60; ship.ship.radartype = 'fc'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpiiai', 'gun4', _root.otherCounter); ship._visible = true; ship.cat = 3; } } if (fenix == 1) { this['ici' + aici].ship.movespeed = 0; aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = -300 + absx; this['ici' + aici].ship._y = -500 + absy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; this['ici' + aici].skins = 'fenix'; ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; fenix = 0; } if (_root.gpause == 0) { if (trig == 0) { mcd += 1; if (mcd == 60) { attachMovie('textline', 't2', 2135); t2.nstr = 'Welcome to the SandBox '; t2.speed = 0.5; t2._x = 0; t2.cd = 90; t2.radio = 0; t2.loud = 0; t2.remove = 0; t2._y = -100; } } } if (trig < 11 or trig > 12) { if (_parent.overlay.scaler.xx._y > 102) { _parent.overlay.scaler.xx._y -= _parent.overlay.scaler.xx._y / 100; } } } } frame 30 { overlay.auxpowers._visible = true; overlay.auxpower._visible = true; } instance sdust of movieClip 724 { onClipEvent (load) { stop(); } } instance uni of movieClip 1432 { onClipEvent (load) { _root.sandbox = 1; _parent.back.gotoAndStop(2); _root.allyList.push(antaris); _parent.changetrack = 1; jumpx = 0; jumpy = 0; es1 = 0; es2 = 0; es3 = 0; _parent.overlay.scaler.xx._y = 300; mcd = 0; section = 't1'; trig = 0; absx = 0; absy = 0; gdx -= random(10) - 5; gdy -= random(10) - 5; shake = 0; sev = 8; wave = 1; trigger1 = -1; aitargets = 2; alert = 1; aifi = 0; nifi = 0; aifii = 0; nifii = 0; aifiii = 0; nifiii = 0; aifiv = 0; nifiv = 0; aifri = 0; nifri = 0; aifrii = 0; nifrii = 0; aici = 0; nici = 0; aicii = 0; nicii = 0; aiti = 0; niti = 0; abfi = 0; nbfi = 0; abfii = 0; nbfii = 0; abfiii = 0; nbfiii = 0; abfiv = 0; nbfiv = 0; abfri = 0; nbfri = 0; abfrii = 0; nbfrii = 0; abci = 0; nbci = 0; abcii = 0; nbcii = 0; nbja = 0; abja = 0; nships = 0; aships = 0; aas = 1; nas = 10; } onClipEvent (enterFrame) { if (_root.gpause == 0) { if (shake == 1) { if (sev >= 6) { sev -= 0.05; } ran3 = random(50) + 50; ran4 = 360 + (random(10) - 5) / sev; _rotation = ran4; } else { _rotation = 0; sev = 8; } absx -= Math.ceil(Math.round(_root.game.uni.player.xt * 100)) / 100; absy -= Math.ceil(Math.round(_root.game.uni.player.yt * 100)) / 100; _x = _x - (Math.ceil(Math.round(_parent.player.xt * 100)) / 100) * (_xscale / 100); _y = _y - (Math.ceil(Math.round(_parent.player.yt * 100)) / 100) * (_xscale / 100); abcii += 1; if (nbfri > abfri) { abfri += 1; ++_root.objectCounter; attachMovie('bfri', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfrii > abfrii) { abfrii += 1; ++_root.objectCounter; attachMovie('bfrii', 'bfrii' + abfrii, _root.objectCounter); _root.enemyList.push(this['bfrii' + abfrii]); ship = this['bfrii' + abfrii]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ++_root.otherCounter; ship.attachMovie('gpiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; } if (nbci > abci) { abci += 1; ++_root.objectCounter; attachMovie('bci', 'bci' + abci, _root.objectCounter); _root.enemyList.push(this['bci' + abci]); ship = this['bci' + abci]; ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 3; ++_root.otherCounter; ship.attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gbiai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gpulseiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun4', _root.otherCounter); } if (nbcii > abcii) { abcii += 1; ++_root.objectCounter; attachMovie('ship', 'bcii' + abcii, _root.objectCounter); _root.enemyList.push(this['bcii' + abcii]); ship = this['bcii' + abcii]; ship.ship.ships = 'bcii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } if (nbfi > abfi) { ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ship._visible = true; ship.cat = 1; } if (nbfii > abfii) { abfii += 1; ++_root.objectCounter; attachMovie('bfii', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.attachMovie('gmiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiii > abfiii) { abfiii += 1; ++_root.objectCounter; attachMovie('bfiii', 'bfiii' + abfiii, _root.objectCounter); _root.enemyList.push(this['bfiii' + abfiii]); ship = this['bfiii' + abfiii]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gliiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nbfiv > abfiv) { abfiv += 1; ++_root.objectCounter; attachMovie('bfiv', 'bfiv' + abfiv, _root.objectCounter); _root.enemyList.push(this['bfiv' + abfiv]); ship = this['bfiv' + abfiv]; ++_root.otherCounter; ship.attachMovie('gmiai', 'gun1', _root.otherCounter); ship.attachMovie('gpiai', 'gun2', _root.otherCounter); ship.ship.ship._xscale = 1; ship.ship.ship._yscale = 1; ship.ship._x = jumpx; ship.ship._y = jumpy; ship._visible = true; ship.cat = 1; } if (nifi > aifi) { aifi += 1; ++_root.objectCounter; attachMovie('ship', 'ifi' + aifi, _root.objectCounter); _root.allyList.push(this['ifi' + aifi]); ship = this['ifi' + aifi]; ship.ship.ships = 'ifi'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.idlezone = ap1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ff'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.cat = 1; } if (nifii > aifii) { aifii += 1; ++_root.objectCounter; attachMovie('ifii', 'ifii' + aifii, _root.objectCounter); _root.allyList.push(this['ifii' + aifii]); this['ifii' + aifii].ship._x = jumpx; this['ifii' + aifii].ship._y = jumpy; this['ifii' + aifii].ship.ship._xscale = 1; this['ifii' + aifii].ship.ship._yscale = 1; this['ifii' + aifii].cat = 1; ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifii' + aifii].attachMovie('gliai', 'gun2', _root.otherCounter); } if (nifiii > aifiii) { aifiii += 1; ++_root.objectCounter; attachMovie('ifiii', 'ifiii' + aifiii, _root.objectCounter); _root.allyList.push(this['ifiii' + aifiii]); this['ifiii' + aifiii].ship._x = jumpx; this['ifiii' + aifiii].ship._y = jumpy; this['ifiii' + aifiii].ship.ship._xscale = 1; this['ifiii' + aifiii].ship.ship._yscale = 1; this['ifiii' + aifiii].cat = 1; ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifiii' + aifii].attachMovie('gmiai', 'gun2', _root.otherCounter); } if (nifiv > aifiv) { aifiv += 1; ++_root.objectCounter; attachMovie('ifiv', 'ifiv' + aifiv, _root.objectCounter); _root.allyList.push(this['ifiv' + aifiv]); this['ifiv' + aifiv].ship._x = jumpx; this['ifiv' + aifiv].ship._y = jumpy; this['ifiv' + aifiv].ship.ship._xscale = 1; this['ifiv' + aifiv].ship.ship._yscale = 1; this['ifiv' + aifiv].cat = 1; } if (nifri > aifri) { aifri += 1; ++_root.objectCounter; attachMovie('ifri', 'ifri' + aifri, _root.objectCounter); _root.allyList.push(this['ifri' + aifri]); this['ifri' + aifri].ship._x = jumpx; this['ifri' + aifri].ship._y = jumpy; this['ifri' + aifri].ship.ship._xscale = 1; this['ifri' + aifri].ship.ship._yscale = 1; ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifri' + aifri].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifri' + aifri]._visible = true; this['ifri' + aifri].cat = 2; } if (nifrii > aifrii) { aifrii += 1; ++_root.objectCounter; attachMovie('ifrii', 'ifrii' + aifrii, _root.objectCounter); _root.allyList.push(this['ifrii' + aifrii]); this['ifrii' + aifrii].ship._x = jumpx; this['ifrii' + aifrii].ship._y = jumpy; this['ifrii' + aifrii].ship.ship._xscale = 1; this['ifrii' + aifrii].ship.ship._yscale = 1; _root.allyList.push(this['ifrii' + aifrii]); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ifrii' + aifrii].attachMovie('gliai', 'gun2', _root.otherCounter); this['ifrii' + aifrii]._visible = true; this['ifrii' + aifrii].cat = 2; } if (nici > aici) { aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = jumpx; this['ici' + aici].ship._y = jumpy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; ++_root.otherCounter; this['ici' + aici].attachMovie('gbiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gpiiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; } if (nicii > aicii) { aicii += 1; ++_root.objectCounter; attachMovie('ship', 'icii' + aicii, _root.objectCounter); _root.allyList.push(this['icii' + aicii]); ship = this['icii' + aicii]; ship.ship.ships = 'icii'; ship.ship.ship._xscale = 1; ship.ship.range = 3000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship.ship._yscale = 1; ship.ship._x = 0; ship.ship._y = 0; ship.ship.nomove = 0; ship.ship.Numexp = 3; ship.ship.jumpsize = 100; ship.ship.fe1 = 600; ship.ship.fe2 = 300; ship.ship.fe3 = 100; ship.health = 800; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.radartype = 'fc'; ship.ship.dlist = 'enemyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 3; } } if (fenix == 1) { this['ici' + aici].ship.movespeed = 0; aici += 1; ++_root.objectCounter; attachMovie('ici', 'ici' + aici, _root.objectCounter); _root.allyList.push(this['ici' + aici]); this['ici' + aici].ship._x = -300 + absx; this['ici' + aici].ship._y = -500 + absy; this['ici' + aici].ship.ship._xscale = 1; this['ici' + aici].ship.ship._yscale = 1; this['ici' + aici].pcom = 1; this['ici' + aici].cat = 3; this['ici' + aici].health = 1000; this['ici' + aici].skins = 'fenix'; ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun1', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gsmiai', 'gun3', _root.otherCounter); ++_root.otherCounter; this['ici' + aici].attachMovie('gliai', 'gun4', _root.otherCounter); this['ici' + aici]._visible = true; fenix = 0; } if (_root.gpause == 0) { if (trig == 0) { mcd += 1; if (mcd == 60) { attachMovie('textline', 't2', 2135); t2.nstr = 'SANDBOX MODE UNLOCKED. . . \n WAVE MODE UNLOCKED. . . \n This is the SandBox Area, however we will use it to teach you how to use your ODEQA Drive \n PRESS C to continue . . '; t2.speed = 0.5; t2._x = 0; t2.cd = a; t2.radio = 0; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -100; } } if (trig == 1) { attachMovie('textline', 't2', 2135); t2.nstr = 'HOLDING C will bring up your Auxiliary Powers Menu \n From here you can use your mouse to select the power you want to use \n Select Cloak to continue. . '; t2.speed = 0.5; t2._x = 0; t2.cd = a; t2.radio = 0; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -160; trig += 1; mcd = 0; } if (trig == 2) { if (_root.spower == 'cloak') { trig += 1; } } if (trig == 3) { attachMovie('textline', 't2', 2135); t2.nstr = 'While Cloaked, ships that have not already detected you will not be able to see you \n You can only stay cloaked as long as your auxiliary power is above zero \n Being cloaked will continually drain your auxiliary power \n Select Speed to continue. . '; t2.speed = 0.5; t2._x = 0; t2.cd = a; t2.radio = 0; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -160; trig += 1; mcd = 0; } if (trig == 4) { if (_root.spower == 'speed') { trig += 1; } } if (trig == 5) { attachMovie('textline', 't2', 2135); t2.nstr = 'Enabling Auxiliary Speed makes your ship much faster & more maneuverable than normal \n Speed will only drain your power when you move \n Select Armor to continue. . '; t2.speed = 0.5; t2._x = 0; t2.cd = a; t2.radio = 0; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -160; trig += 1; mcd = 0; } if (trig == 6) { if (_root.spower == 'armor') { trig += 1; } } if (trig == 7) { attachMovie('textline', 't2', 2135); t2.nstr = 'Enabling Auxiliary Armor will allow your ship to absorb more damage \n Damage to your ships hull will instead damage & lower your Auxiliary Power \n Select Standard to continue. . '; t2.speed = 0.5; t2._x = 0; t2.cd = a; t2.radio = 0; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -160; trig += 1; mcd = 0; } if (trig == 8) { if (_root.spower == 'none') { trig += 1; } } if (trig == 9) { _root.radarreset = 0; attachMovie('textline', 't2', 2135); t2.nstr = 'Having no Auxliliary Power selected will allow your power to regenerate \n It is important to learn to manage your Auxiliary Powers. . \n They will be critical to your success in the game \n You can now access the SandBox & Wave Mode in the Main Menu \n PRESS E when you want to return to ANTARIS STATION. .'; t2.speed = 0.5; t2._x = 0; t2.cd = a; t2.radio = 0; t2.loud = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.remove = 0; t2._y = -160; attachMovie('keys', 't1k1', 2177); t1k1._x = 20; t1k1._y = 40; t1k1._alpha = 50; t1k1.inst = 'Press E'; t1k1.letter = 'E'; t1k1.remove = 0; t1k1.onEnterFrame = function () {}; trig += 1; mcd = 0; } if (trig == 12) { mcd += 1; antaris.gotoAndPlay(91); if (mcd >= 20) { _root.wflash.play(); if (_root.wflash._currentframe == 15) { _parent.gotoAndStop('stutorial'); } _rotation = _rotation + 1; _parent.overlay.scaler.xx._y /= 1.15; } } if (trig == 13) { attachMovie('textline', 't2', 2135); t2.nstr = 'Sensors detect another wave of incoming hostiles. We will hold them off as long as we can, but we need you to take care of the Jump Amplifiers '; t2.speed = 0.5; t2._x = 0; t2.dprompt = 1; t2.cd = a; t2.radio = 1; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; trig += 1; } if (trig == 14) { abja += 1; ++_root.objectCounter; attachMovie('bja', 'bja' + abja, _root.objectCounter); _root.enemyList.push(this['bja' + abja]); this['bja' + abja].ship._x = -4800; this['bja' + abja].ship._y = -350; this['bja' + abja].ship.ship._xscale = 100; this['bja' + abja].ship.ship._yscale = 100; this['bja' + abja].nojump = 1; this['bja' + abja].ship.jumpcomplete = 1; this['bja' + abja]._visible = true; this['bja' + abja].cat = 2; ++_root.permCounter; attachMovie('indi', 'indi1', _root.permCounter); indi1.tracking = 'object'; indi1.obj = this['bja' + abja].ship; indi1.mod = 0; indi1.dname = ''; abja += 1; ++_root.objectCounter; attachMovie('bja', 'bja' + abja, _root.objectCounter); _root.enemyList.push(this['bja' + abja]); this['bja' + abja].ship._x = -5500; this['bja' + abja].ship._y = -5500; this['bja' + abja].ship.ship._xscale = 100; this['bja' + abja].ship.ship._yscale = 100; this['bja' + abja].nojump = 1; this['bja' + abja].ship.jumpcomplete = 1; this['bja' + abja]._visible = true; this['bja' + abja].cat = 2; ++_root.permCounter; attachMovie('indi', 'indi2', _root.permCounter); indi2.tracking = 'object'; indi2.obj = this['bja' + abja].ship; indi2.mod = 0; indi2.dname = ''; abja += 1; ++_root.objectCounter; attachMovie('bja', 'bja' + abja, _root.objectCounter); _root.enemyList.push(this['bja' + abja]); this['bja' + abja].ship._x = 40; this['bja' + abja].ship._y = -5000; this['bja' + abja].ship.ship._xscale = 100; this['bja' + abja].ship.ship._yscale = 100; this['bja' + abja].nojump = 1; this['bja' + abja].ship.jumpcomplete = 1; this['bja' + abja]._visible = true; this['bja' + abja].cat = 2; ++_root.permCounter; attachMovie('indi', 'indi3', _root.permCounter); indi3.tracking = 'object'; indi3.obj = this['bja' + abja].ship; indi3.mod = 0; indi3.dname = ''; ++_root.permCounter; _parent.attachMovie('dynamicbar', 'antarishp', _root.permCounter); _parent.antarishp._x = 175; _parent.antarishp.dis = 'Antaris Station HP'; _parent.antarishp._y = 25; _parent.antarishp._alpha = 0; _parent.antarishp.onEnterFrame = function () { if (this._alpha < 100) { this._alpha += 2; } this.bar.bar._x = (antaris.health / 400) * 100; }; mcd = 1; trig += 1; } if (trig == 15) { mcd += 1; if (mcd == 45) { _root.gpause = 1; _root.pausescreen.gotoAndStop(3); _root.pausescreen.mission = '2'; _root.pausescreen.micon = 2; _root.pausescreen.mdis = 'Destroy the 3 enemy Jump Amplifiers'; _root.pausescreen.con = 'Antaris Station must survive'; _root.pausescreen.mname = 'All they got'; _root.pausescreen.cd = 120; } if (mcd == 200) { attachMovie('textline', 't2', 2135); t2.nstr = 'Good luck X1 '; t2.speed = 0.5; t2._x = 0; t2.cd = 60; t2.radio = 0; t2.dname = 'Antaris Station'; t2.po = 'antaris'; t2.loud = 0; t2.remove = 0; t2._y = -100; trig += 1; } } if (trig == 16) { mcd += 1; if (mcd > 1350) { mcd = 0; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -random(200) - 200 + absx; ship.ship._y = -random(300) - 100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -random(200) - 200 + absx; ship.ship._y = -random(300) - 100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 2000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = -random(200) - 200 + absx; ship.ship._y = -random(300) - 100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.ship.jump.gotoAndStop(51); ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 250; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja2; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; } if (es2 == 0) { if (absy > 4000) { es2 += 1; ++abfii; ++_root.objectCounter; attachMovie('ship', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ship.ship.ships = 'bfii'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = 60 + absx; ship.ship._y = -5000 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 60; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ++abfii; ++_root.objectCounter; attachMovie('ship', 'bfii' + abfii, _root.objectCounter); _root.enemyList.push(this['bfii' + abfii]); ship = this['bfii' + abfii]; ship.ship.ships = 'bfii'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = 60 + absx; ship.ship._y = -5000 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 60; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -10 + absx; ship.ship._y = -5100 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gmsiai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } } if (es1 == 0) { if (absx > 3000 && absy > 4000) { es1 += 1; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.movespeed = 5; ship.ship._x = -5500 + absx; ship.ship._y = -5500 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; abfri += 1; ++_root.objectCounter; attachMovie('ship', 'bfri' + abfri, _root.objectCounter); _root.enemyList.push(this['bfri' + abfri]); ship = this['bfri' + abfri]; ship.ship.ships = 'bfri'; ship.ship.range = 1000; ship.capital = 1; ship.ship.tc = random(90) + 30; ship.ship.movespeed = 1; ship.ship._x = -5500 + absx; ship.ship._y = -5500 + absy; ship.ship.nomove = 0; ship.ship.Numexp = 2; ship.ship.jumpsize = 50; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.ship.jump.gotoAndStop(51); ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.fe1 = 150; ship.ship.fe2 = 50; ship.health = 250; ship.ship.dey = 40; ship.ship.dex = 10; ship.ship.gdis = 40; ship.ship.idlezone = bja2; ship.ship.radartype = 'ec'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gliai', 'gun2', _root.otherCounter); ++_root.otherCounter; ship.attachMovie('gmiai', 'gun3', _root.otherCounter); ship._visible = true; ship.cat = 2; ++abfi; ++_root.objectCounter; attachMovie('ship', 'bfi' + abfi, _root.objectCounter); _root.enemyList.push(this['bfi' + abfi]); ship = this['bfi' + abfi]; ship.ship.ships = 'bfi'; ship.ship.ship._xscale = 100; ship.ship.ship._yscale = 100; ship.nojump = 1; ship.ship.jumpcomplete = 1; ship.ship.range = 1000; ship.capital = 0; ship.ship.tc = random(20) + 30; ship.ship.jump.gotoAndStop(51); ship.ship.movespeed = 5; ship.ship._x = -5500 + absx; ship.ship._y = -5500 + absy; ship.ship.nomove = 1; ship.ship.Numexp = 1; ship.ship.jumpsize = 20; ship.ship.fe1 = -1000; ship.health = 20; ship.ship.dey = 5; ship.ship.dex = 5; ship.ship.gdis = 0; ship.ship.radartype = 'ef'; ship.ship.dlist = 'allyList'; ++_root.otherCounter; ship.attachMovie('gliai', 'gun1', _root.otherCounter); ship.gun1.acd = 60; ship.gun1.cd = 8; ship.cat = 1; } } } } if (trig < 11) { if (_parent.overlay.scaler.xx._y > 102) { _parent.overlay.scaler.xx._y -= _parent.overlay.scaler.xx._y / 100; } } } } frame 33 { mvl = 100; vl = 100; removedynamicbars = 1; } instance of movieClip 79 dynamicbarbar { onClipEvent (load) { bar._x = 0; _parent.vl = 30; _parent.mvl = 0; } onClipEvent (enterFrame) { bar._x += 1; if (bar._x >= 100) { trace(_root.mission); _parent.gotoAndStop(_root.mission); } } } frame 36 { gotoAndStop('c7'); } } instance game of movieClip 1539 { onClipEvent (load) { if (_root.playwave == 1) { _root.playwave = 0; gotoAndStop('wavemode'); } else { if (_root.playsand == 1) { _root.playsand = 0; gotoAndStop('sandbox'); } else { gotoAndStop(_root.mission); } } } onClipEvent (enterFrame) { if (changetrack > 0) { if (changetrack == 1) { trace('track1'); stopAllSounds(); _root.soundreset = 1; _root.createEmptyMovieClip('music_mc', 10.1); var music_snd = new Sound(_root.music_mc); music_snd.stop(); var music_snd = new Sound(_root.music_mc); music_snd.attachSound('ambient'); music_snd.start(0, 999); changetrack = 0; } if (changetrack == 2) { trace('track2'); stopAllSounds(); _root.soundreset = 1; _root.createEmptyMovieClip('music_mc', 10.1); var music_snd = new Sound(_root.music_mc); music_snd.stop(); var music_snd = new Sound(_root.music_mc); music_snd.attachSound('war1'); music_snd.start(0, 999); changetrack = 0; } if (changetrack == 3) { trace('track3'); stopAllSounds(); _root.soundreset = 1; _root.createEmptyMovieClip('music_mc', 10.1); var music_snd = new Sound(_root.music_mc); music_snd.stop(); var music_snd = new Sound(_root.music_mc); music_snd.attachSound('war2'); music_snd.start(0, 999); changetrack = 0; } if (changetrack == 4) { trace('track4'); stopAllSounds(); _root.soundreset = 1; _root.createEmptyMovieClip('music_mc', 10.1); var music_snd = new Sound(_root.music_mc); music_snd.stop(); var music_snd = new Sound(_root.music_mc); music_snd.attachSound('ambient2'); music_snd.start(0, 999); changetrack = 0; } } if (vl > mvl) { var music_snd = new Sound(_root.music_mc); vl -= 2; music_snd.setVolume(vl); } if (vl < mvl) { var music_snd = new Sound(_root.music_mc); vl += 1; music_snd.setVolume(vl); } if (c1k1 == 1) { uni.attachMovie('keys', 'c1k1', 2177); uni.c1k1._x = 30; uni.c1k1._y = 30; uni.c1k1.inst = 'Press F'; uni.c1k1.letter = 'F'; c1k1 = 0; } if (c1k2 == 1) { uni.attachMovie('keys', 'c1k2', 2177); uni.c1k2._x = 30; uni.c1k2._y = 30; uni.c1k2.inst = 'Quikly Tap E'; uni.c1k2.letter = 'E'; uni.c1k2.key1 = 0; c1k2 = 0; } } } // unknown tag 88 length 122 movieClip 1543 { } movieClip 1544 { } movieClip 1546 { frame 1 { stop(); onEnterFrame = function () { if (_root.stolen == 1) { play(); } }; } instance of movieClip 1544 { onClipEvent (load) { numStars = 1600; Stars = 0; } onClipEvent (enterFrame) { if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } if (numStars > Stars) { Stars += 0.01; star1.duplicateMovieClip('star' + Stars, Stars++); this['star' + Stars]._x = random(650); this['star' + Stars]._y = random(400); rand = random(100) + 50; this['star' + Stars]._xscale = rand / 3; this['star' + Stars]._yscale = rand / 3; this['star' + Stars]._alpha = rand; this['star' + Stars]._rotation = random(360); } } } frame 4 { gotoAndPlay(2); } } movieClip 1550 { frame 1 { stop(); } } movieClip 1552 { frame 1 { stop(); } } movieClip 1553 { frame 299 { gotoAndPlay(1); } frame 609 { gotoAndPlay(300); } } movieClip 1562 { frame 1 { stop(); } instance radio of movieClip 1553 { onClipEvent (load) { stop(); } } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } frame 6 { gotoAndStop(1); } frame 7 { gotoAndStop(1); } frame 8 { gotoAndStop(1); } frame 9 { gotoAndStop(1); } frame 10 { gotoAndStop(1); } frame 11 { gotoAndStop(1); } frame 12 { gotoAndStop(1); } frame 13 { gotoAndStop(1); } frame 14 { gotoAndStop(1); } frame 15 { gotoAndStop(1); } frame 16 { gotoAndStop(1); } frame 17 { gotoAndStop(1); } frame 18 { gotoAndStop(1); } frame 19 { gotoAndStop(1); } } movieClip 1567 { frame 1 { stop(); } frame 2 { i = 1; ++i; dis = 0; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = -150; this['l' + i]._y = 40; this['l' + i].dname = 'Kepler 4'; this['l' + i].dis = 55; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = -130; this['l' + i]._y = -10; this['l' + i].dname = 'WASP 21'; this['l' + i].dis = 55; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i].dname = 'Sol'; this['l' + i].dis = 70; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = -100; this['l' + i]._y = -100; this['l' + i].dname = 'Dratis Station'; this['l' + i].dis = 50; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = -50; this['l' + i]._y = -60; this['l' + i].dname = 'Antaris Station'; this['l' + i].dis = 30; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = 10; this['l' + i]._y = 20; this['l' + i].dname = 'Vikram Station'; this['l' + i].dis = 60; ++i; attachMovie('mapnavpoint', 'l' + i, i); this['l' + i]._alpha = 1; this['l' + i]._x = 10; this['l' + i]._y = 20; this['l' + i].dname = 'Vikram Station'; this['l' + i].dis = 60; } } movieClip 1568 { } movieClip 1571 { } movieClip 1572 { frame 15 { stop(); } instance of movieClip 1571 { onClipEvent (enterFrame) { _rotation = _rotation + 3; if (_alpha < 100) { _alpha = _alpha + 5; } } onClipEvent (load) { } } } movieClip 1573 { frame 1 { _root.game.changetrack = 1; _root.game.mvl = 100; } frame 271 { attachMovie('textline', 't1', 2135); t1.nstr = 'LEVEL 5 SUBSPACE DISTURBANCE . . \n SENDING RESCUE TEAM . . '; t1.speed = 0.5; t1._x = -100; t1.cd = a; t1.remove = 0; t1._y = -100; stop(); } frame 272 { t1.cd = 0; _root.game.gotoAndStop('c2'); } frame 330 { _parent.gotoAndStop(1); } } button 1576 { on (release) { stopAllSounds(); play(); } } movieClip 1577 { frame 30 { _root.game.changetrack = 1; _root.game.mvl = 100; _root.game.gotoAndStop('empty'); } frame 268 { attachMovie('textline', 't1', 2135); t1.nstr = '. . REGROUPING WITH MAIN FLEET \n IN TRANSIT TO ANTARIS STATION. . '; t1.speed = 0.5; t1._x = -100; t1.cd = a; t1.remove = 0; t1._y = -100; } frame 299 { stop(); } frame 300 { t1.cd = 0; _root.game.gotoAndStop('c3'); } frame 358 { _parent.gotoAndStop(1); } } movieClip 1580 { frame 229 { attachMovie('textline', 't1', 2135); t1.nstr = '. . In transit to Fleet Weapon Stash Bravo 10. . \n . .Hostile resisistance estimated to be light. . '; t1.speed = 0.5; t1._x = -100; t1.cd = a; t1.remove = 0; t1._y = -100; } frame 260 { stop(); } frame 261 { t1.cd = 0; _root.game.gotoAndStop('c4'); } frame 319 { _parent.gotoAndStop(1); } } movieClip 1583 { frame 70 { stop(); } } movieClip 1584 { frame 229 { attachMovie('textline', 't1', 2135); t1.nstr = '. . Level 9 Subspace Disturbance Detected. . \n In transit to Civilian Station Zeta Koa . . \n . .Hostile resisistance is unknown. . '; t1.speed = 0.5; t1._x = -100; t1.cd = a; t1.remove = 0; t1._y = -100; } frame 260 { stop(); } frame 261 { t1.cd = 0; _root.game.gotoAndStop('c5'); _root.gpause = 0; } frame 319 { _parent.gotoAndStop(1); } } movieClip 1594 { frame 10 { stop(); } } button 1596 { on (release) { stopAllSounds(); _root.wflash.play(); _root.game.gotoAndStop('c6'); _root.gpause = 0; _parent.gotoAndStop(1); } } movieClip 1597 { frame 389 { _root.game.changetrack = 2; _root.game.vl = 100; _root.game.mvl = 100; } frame 469 { stop(); } } movieClip 1598 { frame 1 { stop(); } frame 2 { _root.game.changetrack = 4; _root.game.mvl = 100; } frame 2 { stop(); } frame 3 { _root.game.changetrack = 4; _root.game.mvl = 100; } frame 3 { stop(); } frame 4 { _root.game.changetrack = 4; _root.game.mvl = 100; } frame 4 { stop(); } frame 5 { _root.game.changetrack = 4; _root.game.mvl = 100; } frame 5 { stop(); } frame 6 { _root.game.changetrack = 4; _root.game.mvl = 100; } frame 6 { stop(); } } button 1603 { on (release) { _root.gqload = 1; gotoAndStop(1); } } button 1604 { on (release) { getURL('http://armorgames.com/#!/?ref=blackknife', '_blank'); } } movieClip 1609 { } button 1614 { on (release) { getURL('http://armorgames.com/guide/operation-black-knife-guide', '_blank'); } } movieClip 1616 { frame 1 { stop(); } frame 2 { _root.gpause = 1; } instance of movieClip 1609 { onClipEvent (load) { h1 = 'Try to ambush enemies when they are jumping in. During those few seconds they are unable to defend themselves.'; h2 = 'Capital Ships are resistant to damage. Only Capital Missiles and Pulsar Lances are effective against their powerful hulls.'; h3 = 'Make sure to use your Armor boost to absorb unavoidable damage and your Speed boost to quickly dodge enemy fire.'; h4 = 'Try to destroy enemy Fighters and Frigates before focusing on capital ships.'; h5 = 'When facing multiple enemies, focus on destroying one at a timeto minimize the amount of fire coming your way.'; h6 = 'Invest your credits wisely, you will only get so much during the campaign.'; h7 = 'You are the fastest ship in the known universe, and its no shame to use that speed to run away.'; h8 = 'Make sure all your module slots are in use! And make sure to invest in powerful modules.'; h9 = 'Make sure you are remembering to upgrade your ship.'; h10 = 'Experiment with different arrays of weapons and modules to best fit your combat style.'; h11 = 'Pulsar Lances seem harmless from a distance, but can be extremely deadly at close range.'; h12 = 'If you are experiencing lag, you might want to try toning down the graphical settings in the main menu.'; h13 = 'Make sure to keep a small reserve of credits to pay for emergency repairs!'; h14 = 'Avoid getting too close to enemy Capital ships, they have Pulsar Lances that can kill you in one hit.'; h = random(14) + 1; if (h == 1) { hi = h1; } if (h == 2) { hi = h2; } if (h == 3) { hi = h3; } if (h == 4) { hi = h4; } if (h == 5) { hi = h5; } if (h == 6) { hi = h6; } if (h == 7) { hi = h7; } if (h == 8) { hi = h8; } if (h == 9) { hi = h9; } if (h == 10) { hi = h10; } if (h == 11) { hi = h11; } if (h == 12) { hi = h12; } if (h == 13) { hi = h13; } if (h == 14) { hi = h14; } trace(hi); } } frame 15 { stop(); } } instance of movieClip 1616 { onClipEvent (enterFrame) { if (_root.failure == 1) { reason = _root.reason4failure; this.play(); _root.failure = 0; } } } movieClip 1618 { frame 15 { stop(); } } button 1623 { on (release) { gotoAndStop(1); _root.gpause = 0; } } button 1624 { on (release) { stopAllSounds(); _root.gotoAndStop('mainmenu'); } } button 1625 { on (release) { getURL('http://armorgames.com/#!/?ref=blackknife', '_blank'); } } // unknown tag 88 length 64 movieClip 1634 { } movieClip 1636 { } movieClip 1638 { } movieClip 1640 { } movieClip 1642 { frame 150 { gotoAndPlay(30); } } movieClip 1647 { frame 150 { gotoAndPlay(31); } } movieClip 1650 { frame 150 { gotoAndPlay(31); } } movieClip 1651 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1661 { frame 20 { mico.gotoAndStop(micon); } instance of movieClip 1634 { onClipEvent (load) { con = _parent._parent.con; mission = _parent._parent.mission; mdis = _parent._parent.mdis; mname = _parent._parent.mname; } } instance mico of movieClip 1651 { onClipEvent (enterFrame) { gotoAndStop(_parent._parent.micon); } } frame 45 { stop(); } frame 56 { _root.gpause = 0; _parent.gotoAndStop(1); } } movieClip 1662 { frame 1 { stop(); } instance of movieClip 1661 { onClipEvent (enterFrame) { cd -= 1; dis = _parent.dis; if (cd == 0) { } } onClipEvent (load) { cd = _parent.cd; } } } instance pausescreen of movieClip 1662 { onClipEvent (enterFrame) { if (Key.isDown(80)) { if (_root.gpause == 0) { gotoAndStop(2); _root.gpause = 1; act = 1; } } } } frame 8 { mochi.as2.MochiServices.connect('19fda783c90905d4'); }




http://swfchan.com/19/90192/info.shtml
Created: 28/3 -2019 14:26:10 Last modified: 28/3 -2019 14:26:10 Server time: 29/04 -2024 15:06:44