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

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

Bobbys Adventure - kill enemies and get home safely in fun game.swf

This is the info page for
Flash #132482

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


ActionScript [AS1/AS2]
Combined Code
button 6 { on (release) { com.newgrounds.API.loadNewgrounds(); } } movieClip 12 { frame 1 { onEnterFrame = function () { if (_visible) { _rotation = _rotation + 30; } else { delete onEnterFrame; } }; } } movieClip 13 { frame 11 { gotoAndPlay(1); } } movieClip 14 Flash Ad (NewgroundsAPI) { #initclip Object.registerClass('Flash Ad (NewgroundsAPI)', com.newgrounds.components.FlashAd); #endinitclip } // unknown tag 88 length 68 // unknown tag 88 length 68 movieClip 44 { frame 10 { stop(); } } // unknown tag 88 length 68 movieClip 46 { frame 37 { _parent.setGotoFrame('done'); stop(); } } movieClip 48 { } movieClip 50 NewgroundsAPIAsset_Medal_Icon_Placeholder { } // unknown tag 88 length 68 // unknown tag 88 length 69 // unknown tag 88 length 68 movieClip 58 NewgroundsAPIAsset_Medal_Popup { frame 1 { function endDelay() { clearInterval(pop_delay); gotoAndPlay('closeme'); } _visible = true; icon._visible = false; pop_delay = setInterval(endDelay, 3000); } frame 2 { medal.attachIcon(icon); } frame 10 { icon._visible = true; medal_name = medal.getName(); medal_value = medal.getValue() + 'pts'; stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } // unknown tag 88 length 68 // unknown tag 88 length 68 movieClip 64 NewgroundsAPIAsset_Login_Warning { frame 1 { function endDelay() { clearInterval(pop_delay); gotoAndPlay('closeme'); } _x = 0; _y = 0; _visible = true; pop_delay = setInterval(endDelay, 6000); } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } // unknown tag 88 length 68 // unknown tag 88 length 69 movieClip 67 NewgroundsAPIAsset_Connection_Error { frame 1 { function endDelay() { clearInterval(pop_delay); gotoAndPlay('closeme'); } _x = 0; _y = 0; _visible = true; pop_delay = setInterval(endDelay, 6000); } frame 10 { stop(); } frame 21 { this.removeMovieClip(); _visible = false; stop(); } } movieClip 69 { } movieClip 71 { } movieClip 73 { } movieClip 75 { } movieClip 77 { } movieClip 79 { } movieClip 81 { } movieClip 83 { } movieClip 85 { } movieClip 87 { } movieClip 88 NewgroundsAPIAsset_big_popup_background { frame 1 { var w = Math.round(this._width); var h = Math.round(this._height); if (w < 80) { w = 80; } if (h < 80) { h = 80; } this._width = 350; this._height = 120; t._width = w - 2; t._x = 1; b._width = w - 2; b._x = 1; c._width = w - 2; c._x = 1; c._height = h - 2; c._y = 1; l._height = h - 2; l._y = 1; r._height = h - 2; r._y = 1; tr._x = w - 7; r._x = w - 7; br._x = w - 7; b._y = h - 7; bl._y = h - 7; br._y = h - 7; shadow._width = w + 10; shadow._height = h + 10; } } button 92 { on (release) { this._visible = false; this.removeMovieClip(); } } // unknown tag 88 length 68 // unknown tag 88 length 68 button 98 { on (release) { getURL(official_version_url, '_blank'); } } // unknown tag 88 length 69 movieClip 100 NewgroundsAsset_New_Version_Available { frame 1 { _x = Stage.width / 2; _y = Stage.height / 2; background._width = Stage.width + 200; background._height = Stage.height + 200; background._x = -(_x + 100); background._y = -(_y + 100); } } button 101 { on (release) { getURL(official_version_url, '_blank'); } } // unknown tag 88 length 68 // unknown tag 88 length 68 // unknown tag 88 length 69 movieClip 105 NewgroundsAsset_Illegal_Host { frame 1 { _x = Stage.width / 2; _y = Stage.height / 2; background._width = Stage.width + 200; background._height = Stage.height + 200; background._x = -(_x + 100); background._y = -(_y + 100); } } movieClip 106 API Connector (NewgroundsAPI) { #initclip Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector); #endinitclip frame 20 { _visible = false; } } frame 1 { _root.gameplaying = false; _root.remover = true; _root.multiplayergame = false; Stage.showMenu = false; var domain = _url; var domainparts = domain.split('://'); var domain2 = _root.domainparts[1]; realdomain = domainparts[1].split('/'); var domain3 = realdomain[0]; var domainparts2 = domain3.split('.'); var domain4 = _root.domainparts2[1]; var domain5 = _root.domainparts2[0]; stop(); } movieClip 113 { } movieClip 117 { } // unknown tag 88 length 73 button 129 { on (release) { getURL('http://www.funny-games.biz/main.html', '_blank'); } } button 137 { on (release) { _root.gotoAndPlay('fglogo'); } } movieClip 138 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop('loaded'); } } frame 2 { gotoAndPlay(1); } } movieClip 140 { } instance of movieClip 140 { onClipEvent (enterFrame) { if (_root.domain3 == 'funny-games.biz' or _root.domain3 == 'funny-base.com' or _root.domain3 == 'www.funny-games.biz' or _root.domain3 == 'www.funny-base.com' or _root.domain3 == 'content.funny-games.biz' or _root.domain3 == 'content.funny-base.com' or _root.domain4 == 'funny-base' or _root.domain4 == 'funny-games' or _root.domain5 == 'funny-base' or _root.domain5 == 'funny-games') { _root.textbox = 'Yup its on newgrounds'; } else { _root._alpha = 0; } } } movieClip 16 __Packages.com.newgrounds.API { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.API) { var v1 = function () {}; com.newgrounds.API = v1; var v2 = v1.prototype; v1.setVersion = function (v) { com.newgrounds.API.version = v; }; v1.setUserEmail = function (e) { com.newgrounds.API.user_email = e; }; v1.setFakeSession = function (fake) { com.newgrounds.API.fake_session = fake; }; v1.setPreload = function (p) { com.newgrounds.API.preload = p; }; v1.getPercentLoaded = function () { var v2; if (com.newgrounds.API.preload && com.newgrounds.API.preload_items > 0) { v2 = 80; var v4 = Math.round((com.newgrounds.API.preload_items_loaded / com.newgrounds.API.preload_items) * 20); var v3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * v2) + v4; return v3; } v2 = 100; v3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * v2); return v3; }; v1.reportNewAsset = function () { if (com.newgrounds.API.preload) { ++com.newgrounds.API.preload_items; } }; v1.reportAssetLoaded = function () { if (com.newgrounds.API.preload) { ++com.newgrounds.API.preload_items_loaded; } }; v1.populateMedals = function (medal_list) { if (com.newgrounds.API.medals === null) { com.newgrounds.API.medals = new Array(); var v2 = 0; while (v2 < medal_list.length) { var v1 = medal_list[v2]; com.newgrounds.API.medals.push(new com.newgrounds.Medal(v1.medal_id, v1.medal_name, v1.medal_value, v1.medal_difficulty, v1.medal_unlocked, v1.medal_icon)); ++v2; } } }; v1.populateSaveGroups = function (save_group_list, file_path, image_path) { com.newgrounds.SaveFile.setFilePath(file_path); com.newgrounds.SaveFile.setImagePath(image_path); com.newgrounds.API.save_groups = new Array(); var v6 = 0; while (v6 < save_group_list.length) { var v2 = save_group_list[v6]; var v5 = new com.newgrounds.SaveGroup(v2.group_id, v2.group_name, v2.group_type); var v4 = 0; while (v4 < v2.keys.length) { var v3 = v2.keys[v4]; v5.addKey(v3.id, v3.name, v3.type); ++v4; } v4 = 0; while (v4 < v2.ratings.length) { var v1 = v2.ratings[v4]; v5.addRating(v1.id, v1.name, v1.min, v1.max, v1.float); ++v4; } com.newgrounds.API.save_groups.push(v5); ++v6; } }; v1.populateScoreBoards = function (score_boards) { com.newgrounds.API.scoreboards = new Array(); var v1 = 0; while (v1 < score_boards.length) { com.newgrounds.API.scoreboards.push(new com.newgrounds.ScoreBoard(score_boards[v1].id, score_boards[v1].name)); ++v1; } }; v1.getOfficialURL = function () { var v1 = com.newgrounds.API.GATEWAY_URL + '?tracker_id=' + com.newgrounds.API.movie_id + '&command_id=loadOfficalVersion&seed=' + Math.random(); if (com.newgrounds.API.debug) { v1 += '&debug=1'; } return v1; }; v1.loadOfficialURL = function () { getURL(com.newgrounds.API.getOfficialURL(), '_blank'); }; v1.hasUserSession = function () { if (com.newgrounds.API.session_id && com.newgrounds.API.publisher_id) { return true; return false; } if (_root.NewgroundsAPI_PublisherID && _root.NewgroundsAPI_SessionID) { return true; } return false; }; v1.hostIsCompatible = function () { return _root.NewgroundsAPI_PublisherID !== undefined; }; v1.isNewgrounds = function () { return com.newgrounds.API.publisher_id == 1 || _root.NewgroundsAPI_PublisherID == 1 || ((com.newgrounds.API.getHost()).toLowerCase()).indexOf('ungrounded.net') > -1 || ((com.newgrounds.API.getHost()).toLowerCase()).indexOf('newgrounds.com') > -1; }; v1.hasPublisher = function () { return com.newgrounds.API.publisher_id || _root.NewgroundsAPI_PublisherID; }; v1.hasUserEmail = function () { if (com.newgrounds.API.user_email) { return true; } return false; }; v1.isConnected = function () { return com.newgrounds.API.connected; }; v1.getID = function () { return com.newgrounds.API.getTrackerID(); }; v1.getTrackerID = function () { return com.newgrounds.API.tracker_id; }; v1.getUserID = function () { return com.newgrounds.API.user_id; }; v1.getUserName = function () { return com.newgrounds.API.user_name; }; v1.connectionTimeOut = function () { com.newgrounds.API.reportAssetLoaded(); clearInterval(com.newgrounds.API.timeout); com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, false, new com.newgrounds.APIError('CONNECTION_FAILED', 'Connection to API gateway timed out.')); }; v1.connect = function (m_id, encrypt_key, debug_mode) { if (com.newgrounds.API.connected) { return undefined; } com.newgrounds.API.sendMessage('Connecting to the Newgrounds API Gateway...'); var v2 = function () { com.newgrounds.API.connectionTimeOut(); }; com.newgrounds.API.timeout = setInterval(v2, 10000, null); if (!m_id) { com.newgrounds.API.fatalError('API.connect() - missing required movie_id parameter', 'connect'); } com.newgrounds.API.movie_id = String(m_id); com.newgrounds.API.tracker_id = Number(com.newgrounds.API.movie_id.substring(0, com.newgrounds.API.movie_id.indexOf(':'))); com.newgrounds.API.encryption_key = encrypt_key; com.newgrounds.API.debug = debug_mode; com.newgrounds.API.user_id = 0; com.newgrounds.API.user_name = 'Guest'; if (_root.NewgroundsAPI_PublisherID) { com.newgrounds.API.publisher_id = _root.NewgroundsAPI_PublisherID; if (_root.NewgroundsAPI_SessionID) { com.newgrounds.API.session_id = _root.NewgroundsAPI_SessionID; } } else { if (com.newgrounds.API.fake_session) { com.newgrounds.API.publisher_id = 1; com.newgrounds.API.session_id = 'D3bu64p1U53R'; com.newgrounds.API.user_id = 10; com.newgrounds.API.user_name = 'API-Debugger'; } else { if (com.newgrounds.API.debug) { com.newgrounds.API.publisher_id = 1; } com.newgrounds.API.session_id = null; } } if (_root.NewgroundsAPI_UserName) { com.newgrounds.API.user_name = _root.NewgroundsAPI_UserName; } if (_root.NewgroundsAPI_UserID) { com.newgrounds.API.user_id = _root.NewgroundsAPI_UserID; } if (_root.NewgroundsAPI_UserpageFormat) { com.newgrounds.API.userpage_format = _root.NewgroundsAPI_UserpageFormat; } com.newgrounds.API.reportNewAsset(); com.newgrounds.API.connected = true; com.newgrounds.API.sendCommand('connectMovie', {'host': com.newgrounds.API.getHost(), 'movie_version': com.newgrounds.API.version}); }; v1.getHost = function () { if (!com.newgrounds.API.host) { var v1 = _url; if ((v1.toLowerCase()).indexOf('http://') > -1 or (v1.toLowerCase()).indexOf('https://') > -1) { if ((v1.toLowerCase()).indexOf(com.newgrounds.API.NEWGROUNDS_PREVIEW) > -1) { com.newgrounds.API.host = com.newgrounds.API.NEWGROUNDS_PREVIEW; } else { com.newgrounds.API.host = (v1.split('/'))[2].toLowerCase(); } return com.newgrounds.API.host; } com.newgrounds.API.host = com.newgrounds.API.LOCAL_HOST; } return com.newgrounds.API.host; }; v1.isPublishedHost = function () { for (var v1 in com.newgrounds.API.PREVIEW_HOSTS) { if (com.newgrounds.API.getHost() == com.newgrounds.API.PREVIEW_HOSTS[v1]) { return false; } } return true; }; v1.loadUserPage = function (u_id, u_name) { if (u_id == undefined && u_name == undefined) { if (com.newgrounds.API.hasUserSession()) { u_id = com.newgrounds.API.user_id; u_name = com.newgrounds.API.user_name; } else { return false; } } if (com.newgrounds.API.publisher_id == 1) { var v1 = 'http://' + com.newgrounds.API.user_name.toLowerCase() + '.newgrounds.com'; getURL(v1, '_blank'); return true; return false; } if (com.newgrounds.API.userpage_format) { v1 = com.newgrounds.API.userpage_format; v1 = (v1.split(':user_id:')).join(u_id.toString()); v1 = (v1.split(':user_name:')).join(escape(u_name)); getURL(v1, '_blank'); return true; } return false; }; v1.loadNewgrounds = function () { com.newgrounds.API.sendCommand('loadNewgrounds', {'host': com.newgrounds.API.getHost()}, true); }; v1.loadMySite = function () { com.newgrounds.API.sendCommand('loadMySite', {'host': com.newgrounds.API.getHost()}, true); }; v1.loadCustomLink = function (link) { com.newgrounds.API.sendCommand('loadCustomLink', {'host': com.newgrounds.API.getHost(), 'link': link}, true); }; v1.logCustomEvent = function (event) { com.newgrounds.API.sendCommand('logCustomEvent', {'host': com.newgrounds.API.getHost(), 'event': event}); }; v1.getScoreBoard = function (board) { if (!com.newgrounds.API.scoreboards || com.newgrounds.API.scoreboards.length < 1) { com.newgrounds.API.sendWarning('You do not have any scoreboards configured in your API setup.'); return null; } for (var v2 in com.newgrounds.API.scoreboards) { if (typeof board == 'string' && com.newgrounds.API.scoreboards[v2].name == board) { return com.newgrounds.API.scoreboards[v2]; } else { if (typeof board == 'number' && com.newgrounds.API.scoreboards[v2].id == board) { return com.newgrounds.API.scoreboards[v2]; } } } com.newgrounds.API.sendWarning('Could not find any scoreboards named \'' + board + '\'.'); return null; }; v1.postScore = function (board_name, value, tag) { var v3 = com.newgrounds.API.getScoreBoard(board_name); if (tag === undefined) { tag = ''; } if (!v3) { com.newgrounds.API.sendError({'command_id': 'postScore'}, new com.newgrounds.APIError('INVALID_SCOREBOARD', 'Failed to post score. Check the spelling of your board name.')); return undefined; } if (value == undefined) { com.newgrounds.API.sendError({'command_id': 'postScore'}, new com.newgrounds.APIError('MISSING_PARAM', 'Missing score value')); return undefined; } com.newgrounds.API.sendSecureCommand('postScore', {'user_name': com.newgrounds.API.user_name, 'board': v3.id, 'value': value, 'tag': tag, 'publisher_id': com.newgrounds.API.publisher_id}); }; v1.loadScores = function (board_name, period, tag) { var v3 = 'loadScores'; var v2 = com.newgrounds.API.getScoreBoard(board_name); if (!v2) { com.newgrounds.API.sendError({'command_id': v3}, new com.newgrounds.APIError('INVALID_SCOREBOARD', 'Failed to load scores. Check the spelling of your board name.')); return undefined; } var v1 = {}; v1.publisher_id = com.newgrounds.API.publisher_id; v1.board = v2.id; v1.num_results = v2.num_results; v1.page = v2.page; if (period === undefined) { v1.period = v2.period; } else { v1.period = period; } if (tag === undefined) { v1.tag = v2.tag; } else { v1.tag = tag; } com.newgrounds.API.sendCommand(v3, v1); }; v1.unlockMedal = function (medal, x, y) { if (!medal) { com.newgrounds.API.sendError({'command_id': 'unlockMedal'}, new com.newgrounds.APIError('MISSING_PARAM', 'missing required medal name')); return undefined; } if (typeof medal != 'object') { medal = com.newgrounds.API.getMedal(medal); } if (!medal) { com.newgrounds.API.sendError({'command_id': 'unlockMedal'}, new com.newgrounds.APIError('INVALID_MEDAL', 'medal unlock failed, check your medal name for correct spelling.')); return undefined; } com.newgrounds.API.callListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, true, {'medal': medal, 'x': x, 'y': y}); if (com.newgrounds.API.hasUserSession() or com.newgrounds.API.debug) { com.newgrounds.API.sendMessage('Attempting to unlock \'' + medal.getName() + '\''); var v3 = new Object(); v3.medal_id = medal.getID(); com.newgrounds.API.sendSecureCommand('unlockMedal', v3); } else { com.newgrounds.API.sendMessage('Unlocking \'' + medal.getName() + '\''); medal.setUnlocked(true); var v2 = com.newgrounds.API.loadLocal('medals_unlocked'); if (!v2) { v2 = new Object(); } v2[medal.getID()] = true; com.newgrounds.API.saveLocal('medals_unlocked', v2); } }; v1.loadMedals = function () { if (com.newgrounds.API.medals) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDALS_LOADED, true, {'medals': com.newgrounds.API.medals}); return undefined; } var v1 = new Object(); if (com.newgrounds.API.hasUserSession()) { v1.publisher_id = com.newgrounds.API.publisher_id; v1.user_id = com.newgrounds.API.user_id; } com.newgrounds.API.sendCommand('getMedals', v1); }; v1.getMedals = function () { return com.newgrounds.API.medals; }; v1.getMedal = function (identifier) { if (!com.newgrounds.API.medals || com.newgrounds.API.medals.length < 1) { com.newgrounds.API.sendWarning('You do not have any medals configured on your API setup!'); return false; } for (var v3 in com.newgrounds.API.medals) { var v1 = com.newgrounds.API.medals[v3]; if (typeof identifier == 'string' && v1.getName() == identifier) { return v1; } else { if (v1.getID() == identifier) { return v1; } } } com.newgrounds.API.sendWarning('Could not find any medals named \'' + identifier + '\'.'); return false; }; v1.saveLocal = function (save_id, save_data, size_allocation) { if (!com.newgrounds.API.sharedObjects[save_id]) { com.newgrounds.API.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.newgrounds.API.movie_id + '_' + save_id); } com.newgrounds.API.sharedObjects[save_id].data[save_id] = com.newgrounds.API.encodeData(save_data); com.newgrounds.API.sharedObjects[save_id].flush(); }; v1.loadLocal = function (save_id) { if (!com.newgrounds.API.sharedObjects[save_id]) { com.newgrounds.API.sharedObjects[save_id] = SharedObject.getLocal('ng_ap_secure_' + com.newgrounds.API.movie_id + '_' + save_id); } com.newgrounds.API.sharedObjects[save_id].flush(); com.newgrounds.API.echo('sharedobject ' + save_id + ' is: ' + com.newgrounds.API.sharedObjects[save_id].data[save_id]); if (com.newgrounds.API.sharedObjects[save_id].data[save_id]) { com.newgrounds.API.echo('decoded: ' + com.newgrounds.API.decodeData(com.newgrounds.API.sharedObjects[save_id].data[save_id])); return com.newgrounds.API.decodeData(com.newgrounds.API.sharedObjects[save_id].data[save_id]); } else { return null; } }; v1.encodeData = function (data) { return com.newgrounds.API.compressHex(com.newgrounds.encoders.RC4.encrypt(com.newgrounds.encoders.JSON.encode(data), com.newgrounds.API.encryption_key)); }; v1.decodeData = function (base) { return com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(com.newgrounds.API.uncompressHex(base), com.newgrounds.API.encryption_key)); }; v1.compressHex = function (hex_value) { var v6 = hex_value.length % 6; var v4 = ''; var v5 = new com.newgrounds.encoders.BaseN(com.newgrounds.API.compression_radix); var v1 = 0; while (v1 < hex_value.length) { var v2 = Number('0x' + hex_value.substr(v1, 6)); v4 += v5.encode(v2, 4); v1 += 6; } return v6 + v4; }; v1.uncompressHex = function (base_value) { var v9 = Number(base_value.charAt(0)); var v7 = ''; var v3; var v8 = new com.newgrounds.encoders.BaseN(com.newgrounds.API.compression_radix); var v2 = 1; while (v2 < base_value.length) { var v6 = base_value.substr(v2, 4); var v5 = v8.decode(v6); var v1 = com.newgrounds.API.dec2hex(v5); if (v2 + 4 < base_value.length) { v3 = 6; } else { v3 = v9; } while (v1.length < v3) { v1 = '0' + v1; } v7 += v1; v2 += 4; } return v7; }; v1.dec2hex = function (dec) { var v4 = '0123456789ABCDEF'; var v3 = ''; while (dec > 0) { var v2 = dec % 16; v3 = v4.charAt(v2) + v3; dec = (dec - v2) / 16; } return v3; }; v1.getSaveGroup = function (group) { if (com.newgrounds.API.save_groups == null || com.newgrounds.API.save_groups.length < 1) { com.newgrounds.API.sendWarning('You do not have any save groups configured in your API setup!'); return null; } var v1 = 0; while (v1 <= com.newgrounds.API.save_groups.length) { if (typeof group == 'number' or (Number(group)).toString() == String(group)) { if (com.newgrounds.API.save_groups[v1].getID() == Number(group)) { return com.newgrounds.API.save_groups[v1]; } } else { if (typeof group == 'string') { if ((com.newgrounds.API.save_groups[v1].getName()).toLowerCase() == group.toLowerCase()) { return com.newgrounds.API.save_groups[v1]; } } } ++v1; } com.newgrounds.API.sendWarning('Could not find any save groups named \'' + group + '\'.'); return null; }; v1.getCurrentSaveFile = function () { return com.newgrounds.API.save_file; }; v1.setCurrentSaveFile = function (current) { com.newgrounds.API.save_file = current; }; v1.loadSaveFile = function (save_id, get_contents) { if (get_contents === undefined) { get_contents = true; } var v1 = 'loadSaveFile'; var v2 = {'publisher_id': com.newgrounds.API.publisher_id, 'save_id': save_id, 'get_contents': get_contents}; com.newgrounds.API.save_file = null; com.newgrounds.API.sendCommand(v1, v2); }; v1.loadFilesByDate = function (group_name, sort_descending, key_name, key_value) { if (sort_descending === undefined) { sort_descending = true; } var v2 = com.newgrounds.API.getSaveGroup(group_name); if (!v2) { var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.'); com.newgrounds.API.sendError({'command_id': 'loadFilesByDate'}, v3); return undefined; } var v1 = new com.newgrounds.SaveGroupQuery(v2); if (key_name) { v1.addKeyCondition(key_name, '=', key_value); } v1.sortOn('CREATED_ON', sort_descending ? 'DESC' : 'ASC'); v1.execute(); }; v1.loadFilesByViews = function (group_name, sort_descending, key_name, key_value) { if (sort_descending === undefined) { sort_descending = true; } var v2 = com.newgrounds.API.getSaveGroup(group_name); if (!v2) { var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.'); com.newgrounds.API.sendError({'command_id': 'loadFilesByViews'}, v3); return undefined; } var v1 = new com.newgrounds.SaveGroupQuery(v2); if (key_name) { v1.addKeyCondition(key_name, '=', key_value); } v1.sortOn('TOTAL_VIEWS', sort_descending ? 'DESC' : 'ASC'); v1.execute(); }; v1.loadFilesByRating = function (group_name, rating_name, sort_descending, key_name, key_value) { if (sort_descending === undefined) { sort_descending = true; } var v2 = com.newgrounds.API.getSaveGroup(group_name); if (!v2) { var v3 = new com.newgrounds.APIError('QUERY_INCOMPLETE', 'The query could not be preformed, check the spelling of your save group name.'); com.newgrounds.API.sendError({'command_id': 'loadFilesByRating'}, v3); return undefined; } var v1 = new com.newgrounds.SaveGroupQuery(v2); if (key_name) { v1.addKeyCondition(key_name, '=', key_value); } v1.sortOnRating(rating_name, sort_descending ? 'DESC' : 'ASC', 'score'); v1.execute(); }; v1.lookupSaveFiles = function (save_group) { var v1 = 'lookupSaveFiles'; var v2 = {'publisher_id': com.newgrounds.API.publisher_id, 'group_id': save_group.getID(), 'query': com.newgrounds.encoders.JSON.encode(save_group.getQuery(true))}; com.newgrounds.API.sendCommand(v1, v2); }; v1.newSaveFile = function (group) { var v1 = com.newgrounds.API.getSaveGroup(group); if (v1) { return v1.newFile(); } else { var v2 = new com.newgrounds.APIError('INVALID_SAVE_GROUP', 'You can not create new files in invalid groups.'); com.newgrounds.API.sendError({'command_id': 'newSaveFile'}, v2); } }; v1.newSaveQuery = function (group) { var v1 = com.newgrounds.API.getSaveGroup(group); if (v1) { return v1.newQuery(); } else { var v2 = new com.newgrounds.APIError('INVALID_SAVE_GROUP', '\'' + group + '\' is not a valid save group.'); com.newgrounds.API.sendError({'command_id': 'newSaveQuery'}, v2); } }; v1.checkFilePrivs = function (file) { if (com.newgrounds.API.user_id) { var v1 = com.newgrounds.API.user_id; } else { var v1 = 0; } var v2 = {'group': (file.getGroup()).getID(), 'filename': file.getName(), 'user_id': v1, 'publisher_id': com.newgrounds.API.publisher_id}; com.newgrounds.API.sendCommand('checkFilePrivs', v2); }; v1.saveFile = function (file, overwrite) { var v1; v1 = {'group': (file.getGroup()).getID(), 'filename': file.getName(), 'description': file.getDescription(), 'draft': file.__get__draft(), 'user_name': com.newgrounds.API.user_name}; if (overwrite) { v1.overwrite = overwrite; } if (file.getDuplicateID()) { v1.save_id = file.getDuplicateID(); } if ((file.getKeys()).length > 0) { v1.keys = file.getKeys(); } var v3; v3 = {'file': file.getRawContents()}; if (file.getThumbnailImageScan()) { v3.thumbnail = file.getThumbnailImageScan(); } com.newgrounds.API.save_file = file; com.newgrounds.API.sendSecureCommand('saveFile', v1, null, v3); }; v1.rateSaveFile = function (file, rating, vote) { var v1 = {'group': (file.getGroup()).getID(), 'save_id': file.getID(), 'rating_id': rating.rating_id, 'vote': vote, 'user_id': com.newgrounds.API.user_id}; com.newgrounds.API.sendSecureCommand('rateSaveFile', v1); }; v1.getConfirmation = function (command_name, event, msg, target, confirm, cancel) { var v1 = new com.newgrounds.APIError('CONFIRM_REQUEST', msg); v1.confirm = function () { target[confirm](); }; v1.cancel = function () { target[cancel](); }; v1.command = command_name; com.newgrounds.API.callListener(event, false, v1); }; v1.onRemoteAuthentication = function (auth_result) { var v1 = com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(auth_result, com.newgrounds.API.encryption_key)); delete com.newgrounds.API.remote_auth; com.newgrounds.API.user_id = v1.NewgroundsAPI_UserID; com.newgrounds.API.user_name = v1.NewgroundsAPI_UserName; com.newgrounds.API.session_id = v1.NewgroundsAPI_SessionID; com.newgrounds.API.publisher_id = v1.NewgroundsAPI_PublisherID; }; v1.doEvent = function (e) { switch (e.command_id) { case 'connectMovie': clearInterval(com.newgrounds.API.timeout); com.newgrounds.API.sendMessage('You have successfully connected to the Newgrounds API Gateway'); com.newgrounds.API.sendMessage('Movie identified as "' + e.movie_name + '"'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, e.success, {'title': e.movie_name}); var v7 = false; if (e.ad_status === -1) { var v11 = 'This movie was not approved to run Flash Ads.'; com.newgrounds.API.sendWarning(v11); com.newgrounds.API.sendWarning('visit ' + com.newgrounds.API.AD_TERMS_URL + ' to view our approval guidelines'); if (!e.ad_url) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', v11)); } else { v7 = true; } } else { if (e.ad_status === 0) { var v11 = 'Flash Ads are currently awaiting approval.'; com.newgrounds.API.sendNotice(v11); if (!e.ad_url) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', v11)); } else { v7 = true; } } } if (e.ad_url) { com.newgrounds.API.ad_url = unescape(e.ad_url); if (!v7) { com.newgrounds.API.sendMessage('This movie has been approved to run Flash Ads!'); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.ADS_APPROVED, true); } if (e.deny_host) { v11 = com.newgrounds.API.getHost() + ' does not have permission to run this movie!'; com.newgrounds.API.sendWarning(v11); com.newgrounds.API.sendWarning('\tUpdate your API configuration to unblock ' + com.newgrounds.API.getHost()); com.newgrounds.API.callListener(com.newgrounds.APIEvent.HOST_BLOCKED, true, {'real_url': unescape(e.movie_url), 'url': com.newgrounds.API.getOfficialURL()}); } else { if (e.movie_version) { com.newgrounds.API.sendWarning('According to your API Configuration, this version is out of date.'); if (com.newgrounds.API.version) { com.newgrounds.API.sendWarning('\tThe this movie is version ' + com.newgrounds.API.version); } com.newgrounds.API.sendWarning('\tThe most current version is ' + e.movie_version); com.newgrounds.API.callListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, true, {'version': e.movie_version, 'real_url': unescape(e.movie_url), 'url': com.newgrounds.API.getOfficialURL()}); } } if (e.request_portal_url) { com.newgrounds.API.sendCommand('setPortalID', {'portal_url': _url}); } if (com.newgrounds.API.preload) { com.newgrounds.API.reportNewAsset(); var v8 = {}; if (com.newgrounds.API.hasUserSession()) { v8.publisher_id = com.newgrounds.API.publisher_id; v8.user_id = com.newgrounds.API.user_id; } com.newgrounds.API.sendCommand('preloadSettings', v8); } com.newgrounds.API.reportAssetLoaded(); break; case 'preloadSettings': if (e.medals) { com.newgrounds.API.populateMedals(e.medals); if (!com.newgrounds.API.hasUserSession() and !com.newgrounds.API.debug) { com.newgrounds.API.echo('checking for sharedobject medals...'); var v4 = com.newgrounds.API.loadLocal('medals_unlocked'); if (v4) { for (var v32 in v4) { v32 = Number(v32); if (v4[v32]) { var v3 = com.newgrounds.API.getMedal(v32); com.newgrounds.API.echo('now unlocking ' + v3.getName()); v3.setUnlocked(true); } } } } } if (e.save_groups) { com.newgrounds.API.populateSaveGroups(e.save_groups, e.save_file_path); } if (e.score_boards) { com.newgrounds.API.populateScoreBoards(e.score_boards); } if (_root.NewgroundsAPI_SaveFileID && _root.NewgroundsAPI_SaveGroupID) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_REQUESTED, true, {'save_id': _root.NewgroundsAPI_SaveFileID, 'group': com.newgrounds.API.getSaveGroup(_root.NewgroundsAPI_SaveGroupID)}); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.METADATA_LOADED, true); com.newgrounds.API.reportAssetLoaded(); break; case 'logCustomEvent': if (e.success) { com.newgrounds.API.sendMessage('Event \'' + e.event + '\' was logged.'); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.EVENT_LOGGED, e.success, {'event': e.event}); break; case 'postScore': var v9; if (e.success) { var v5 = 'User'; if (com.newgrounds.API.user_email) { v5 = com.newgrounds.API.user_email; } else { if (com.newgrounds.API.user_name) { v5 = com.newgrounds.API.user_name; } } var v19 = com.newgrounds.API.getScoreBoard(e.board); com.newgrounds.API.sendMessage(v5 + ' posted ' + e.value + ' to \'' + v19.name + '\''); v9 = {'board': v19, 'value': e.value, 'username': v5}; } com.newgrounds.API.callListener(com.newgrounds.APIEvent.SCORE_POSTED, e.success, v9); break; case 'loadScores': var v9 = new Object(); var v19 = com.newgrounds.API.getScoreBoard(e.board); if (v19.exists()) { v19.setScores(e.scores, e.period, e.page, e.num_results); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.SCORES_LOADED, e.success, {'board': v19}); break; case 'unlockMedal': var v24 = com.newgrounds.API.getMedal(e.medal_name); v24.setUnlocked(true); com.newgrounds.API.sendMessage('Successfuly unlocked \'' + v24.getName() + '\''); com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, e.success, {'medal_id': v24.id, 'medal': v24}); break; case 'getMedals': com.newgrounds.API.populateMedals(e.medals); com.newgrounds.API.callListener(com.newgrounds.APIEvent.MEDALS_LOADED, e.success, {'medals': com.newgrounds.API.medals}); break; case 'loadSaveFile': var v16 = com.newgrounds.API.getSaveGroup(e.group_id); var v14 = new com.newgrounds.SaveFile(v16); v14.id = e.file.save_id; v14.name = e.file.filename; v14.fileUrl = e.file.file; v14.thumbnailUrl = e.file.thumb; v14.authorName = e.file.user_name; v14.authorId = e.file.user_id; v14.description = e.file.description; v14.setPermissions(e.file.status, e.file.locked); for (var v6 in e.file.keys) { v14.setKey(e.file.keys[v6].id, e.file.keys[v6].value); } for (v6 in e.file.ratings) { v14.setRating(e.file.ratings[v6].id, e.file.ratings[v6].votes, e.file.ratings[v6].score); } if (e.get_contents) { v14.loadContents(); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_INITIALIZED, e.success, {'save_id': v14.id, 'file': v14}); com.newgrounds.API.save_file = v14; break; case 'lookupSaveFiles': var v12 = (com.newgrounds.API.getSaveGroup(e.group_id)).getQuery(); v12.onExecuted(e.files); break; case 'rateSaveFile': var v16 = com.newgrounds.API.getSaveGroup(e.group_id); var v14 = v16.getFile(e.save_id); if (e.already_voted) { var v27 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You have already voted on this item today'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {'error': v27, 'file': v14, 'save_id': v14.id}); return undefined; } else { if (e.success) { var v10 = v14.onVoted(e); com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {'rating': v10, 'file': v14, 'save_id': v14.id}); } else { com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {'file': v14, 'save_id': v14.id}); com.newgrounds.API.sendError('Your vote was not accepted.'); } } break; case 'saveFile': if (com.newgrounds.API.save_file) { if (!com.newgrounds.API.save_file.exists()) { com.newgrounds.API.save_file.setID(e.save_id, true); } com.newgrounds.API.save_file.onSaved(e); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_SAVED, e.success, {'save_id': com.newgrounds.API.save_file.__get__id(), 'file': com.newgrounds.API.save_file}); if (e.success) { com.newgrounds.API.sendMessage('You just saved a new file (id #' + e.save_id + ') to the \'' + (com.newgrounds.API.save_file.__get__group()).__get__name() + '\' save group.'); } } com.newgrounds.API.save_file = null; break; case 'checkFilePrivs': var v9 = {'file': com.newgrounds.API.save_file, 'filename': e.filename, 'group': e.group, 'exists': e.exists, 'can_write': e.can_write}; if (e.duplicate_id) { v9.duplicate_id = e.duplicate_id; } if (!e.success) { com.newgrounds.API.sendWarning('You do not have permission to save this file!'); } com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, e.success, v9); } }; v1.getDispatcher = function () { if (!com.newgrounds.API.eventDispatcher) { com.newgrounds.API.eventDispatcher = new com.newgrounds.APIEventDispatcher(); } return com.newgrounds.API.eventDispatcher; }; v1.hasEventListener = function (event) { return (com.newgrounds.API.getDispatcher()).hasEventListener(event); }; v1.addEventListener = function (event, listener, target) { com.newgrounds.API.echo('Adding a listener for \'' + event + '\''); (com.newgrounds.API.getDispatcher()).addEventListener(event, listener, target); }; v1.removeEventListener = function (event, target) { (com.newgrounds.API.getDispatcher()).removeEventListener(event, target); }; v1.callListener = function (event, success, data, target) { com.newgrounds.API.echo('Fired Event: ' + event); var v2 = new com.newgrounds.APIEvent(event, success, data); (com.newgrounds.API.getDispatcher()).dispatchEvent(v2); if (event == com.newgrounds.APIEvent.API_CONNECTED && !success) { com.newgrounds.API.connected = false; } com.newgrounds.API.bridge.sendEvent(event, {'success': success, 'data': data}); }; v1.sendError = function (c, e) { switch (c.command_id) { case 'connectMovie': clearInterval(com.newgrounds.API.timeout); com.newgrounds.API.callListener(com.newgrounds.APIEvent.API_CONNECTED, false, {'error': e, 'response': c}); break; case 'saveFile': com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_SAVED, false, {'error': e, 'file': com.newgrounds.API.save_file, 'response': c}); com.newgrounds.API.save_file = null; } var v3 = '[Newgrounds API ERROR] :: ' + c.command_id + '() - ' + e.name + ':' + '\n' + '\t\t\t\t' + e.message; trace(v3); com.newgrounds.API.bridge.sendEvent('trace', {'data': v3}); }; v1.sendWarning = function (m, c) { if (c) { m += '\r[Newgrounds API WARNING] :: \tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } var v1 = '[Newgrounds API WARNING] :: ' + m; trace(v1); com.newgrounds.API.bridge.sendEvent('trace', {'data': v1}); }; v1.sendNotice = function (m, c) { if (c) { m += '\r[Newgrounds API NOTICE] :: \tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } trace('[Newgrounds API NOTICE] :: ' + m); }; v1.fatalError = function (m, c) { if (c) { m += '\r\tSee ' + com.newgrounds.API.COMMANDS_WIKI_URL + c.toLowerCase() + ' for additional information.'; } throw '***ERROR*** frame=' + _root._currentframe + ', class=API' + '\n' + '\n' + m; }; v1.openLoginPage = function () { if (com.newgrounds.API.hasUserSession()) { return undefined; } if (!com.newgrounds.API.remote_auth) { var v1 = com.newgrounds.encoders.MD5.calculate(Math.random() + 'a' + com.newgrounds.API.movie_id); v1 = 'POOPYPANTS'; com.newgrounds.API.remote_auth = new com.newgrounds.RemoteAuth(v1); } var v2 = com.newgrounds.encoders.RC4.encrypt(com.newgrounds.API.remote_auth.__get__token(), com.newgrounds.API.encryption_key); trace(v2); getURL(com.newgrounds.API.LOGIN_URL + '?api_auth_id=' + com.newgrounds.API.movie_id + '&api_auth_key=' + v2, '_blank'); }; v1.sendSecureCommand = function (command, secure_params, unsecure_params, files) { if (!com.newgrounds.API.debug && !com.newgrounds.API.hasUserSession() && !com.newgrounds.API.hasUserEmail()) { com.newgrounds.API.sendError({'command_id': command}, new com.newgrounds.APIError('IDENTIFICATION_REQUIRED', 'You must be logged in, or provide an e-mail address using \'API.setUserEmail("name@domain.com");\' to use ' + command + '().')); return undefined; } if (!command) { com.newgrounds.API.fatalError('Missing command', 'sendSecureCommand'); } if (!secure_params) { com.newgrounds.API.fatalError('Missing secure_params', 'sendSecureCommand'); } if (!unsecure_params) { unsecure_params = new Object(); } var v2 = ''; var v1 = 0; while (v1 < 16) { v2 += com.newgrounds.API.compression_radix.charAt(Math.floor(Math.random() * com.newgrounds.API.compression_radix.length)); ++v1; } if (com.newgrounds.API.debug && !com.newgrounds.API.fake_session && !com.newgrounds.API.session_id) { secure_params.session_id = ''; } else { secure_params.session_id = com.newgrounds.API.session_id; } secure_params.as_version = 2; secure_params.user_email = com.newgrounds.API.user_email; secure_params.publisher_id = com.newgrounds.API.publisher_id; secure_params.seed = v2; secure_params.command_id = command; var v6 = com.newgrounds.encoders.JSON.encode(secure_params); trace('JSON: ' + v6 + '\n'); var v9 = com.newgrounds.encoders.MD5.calculate(v2); var v7 = com.newgrounds.encoders.RC4.encrypt(v6, com.newgrounds.API.encryption_key); var v8 = v9 + v7; unsecure_params.secure = com.newgrounds.API.compressHex(v8); com.newgrounds.API.sendCommand('securePacket', unsecure_params, false, files); }; v1.sendCommand = function (command, params, open_browser, files) { if (!com.newgrounds.API.connected and command != 'connectMovie') { var v12 = 'API.' + command + '() - API.connect() must be called before this command can be called' + '\n'; com.newgrounds.API.fatalError(v12, 'connect'); } if (open_browser) { var v2 = new Object(); } else { var v2 = new LoadVars(); } v2.command_id = command; v2.tracker_id = com.newgrounds.API.movie_id; if (com.newgrounds.API.debug) { v2.debug = com.newgrounds.API.debug; } if (params) { for (var v9 in params) { v2[v9] = params[v9]; } } if (files) { for (v9 in files) { v2[v9] = files[v9]; } } if (open_browser) { var v6 = com.newgrounds.API.GATEWAY_URL + '?seed=' + Math.random(); for (v9 in v2) { v6 += '&' + escape(v9) + '=' + escape(v2[v9]); } trace('OPENING ' + v6); getURL(v6, '_blank'); v2.removeMovieClip(); } else { var v10 = new LoadVars(); v10.remember_command_id = v2.command_id; v10.onData = function (data) { com.newgrounds.API.echo('INPUT: \r' + data + '\n'); if (data) { var v2 = com.newgrounds.encoders.JSON.decode(data); } else { var v2 = {'success': false}; } if (!v2.success) { if (!v2.error_code && !v2.error_msg) { v2.error_code = 'CONNECTION_FAILED'; v2.error_msg = 'Could not contact the API Gateway'; v2.command_id = this.remember_command_id; } var v4 = new com.newgrounds.APIError(v2.error_code, v2.error_msg); com.newgrounds.API.sendError(v2, v4); } else { com.newgrounds.API.doEvent(v2); } }; var v7 = new Array(); for (var v8 in v2) { v7.push(v8 + '=' + escape(v2[v8])); } com.newgrounds.API.echo('POST ' + com.newgrounds.API.GATEWAY_URL + '?' + v7.join('&')); v2.sendAndLoad(com.newgrounds.API.GATEWAY_URL + '?seed=' + Math.random(), v10, 'POST'); com.newgrounds.API.last_command = v2.command_id; } }; v1.renderAd = function (target) { if (com.newgrounds.API.ad_swf_url) { target.background = target.createEmptyMovieClip('background', 100); target.background.beginFill(0); target.background.moveTo(0, 0); target.background.lineTo(300, 0); target.background.lineTo(300, 250); target.background.lineTo(0, 250); target.background.lineTo(0, 0); target.background.endFill(); target.mask = target.createEmptyMovieClip('mask', 101); target.mask.beginFill(0); target.mask.moveTo(0, 0); target.mask.lineTo(300, 0); target.mask.lineTo(300, 250); target.mask.lineTo(0, 250); target.mask.lineTo(0, 0); target.mask.endFill(); target.clip = target.createEmptyMovieClip('clip', 102); target.clip.ad = target.clip.createEmptyMovieClip('ad', 100); target.clip.setMask(target.mask); target.clip.ad._lockroot = true; loadMovie(com.newgrounds.API.ad_swf_url, target.clip.ad); com.newgrounds.API.callListener(com.newgrounds.APIEvent.AD_ATTACHED, true, {'target': target}); } else { com.newgrounds.API.callListener(com.newgrounds.APIEvent.AD_ATTACHED, false, new com.newgrounds.APIError('FLASH_ADS_NOT_APPROVED', 'Unable to render ad')); } }; v1.attachFlashAd = function (target) { if (com.newgrounds.API.checkAdFlood()) { com.newgrounds.API.ad_swf_url = null; } else { if (com.newgrounds.API.checkAdCache()) { com.newgrounds.API.reportNewAsset(); var v1 = new LoadVars(); v1.onData = function (data) { if (data) { com.newgrounds.API.ad_swf_url = data; } else { com.newgrounds.API.ad_swf_url = null; } com.newgrounds.API.reportAssetLoaded(); com.newgrounds.API.renderAd(target); }; if (com.newgrounds.API.ad_url.indexOf('?') > -1) { v1.load(com.newgrounds.API.ad_url + '&random=' + Math.random()); } else { v1.load(com.newgrounds.API.ad_url + '?random=' + Math.random()); } if (!com.newgrounds.API.ad_warning) { com.newgrounds.API.ad_warning = true; com.newgrounds.API.sendMessage('You may get a security sandbox violation from this ad. This is nothing to worry about!'); } } else { if (com.newgrounds.API.ad_swf_url) { com.newgrounds.API.renderAd(target); } } } }; v1.checkAdFlood = function () { if (!com.newgrounds.API.ad_url) { return false; } var v2 = new Date(); var v1 = v2.getTime(); if (v1 >= com.newgrounds.API.ad_flood) { if (v1 - com.newgrounds.API.ad_flood > 1000) { com.newgrounds.API.ad_flood = v1 + 1000; return false; } com.newgrounds.API.ad_flood = v1; com.newgrounds.API.sendWarning('This movie is attempting to load multiple ads at too high of a frequency; you may have a bad preloader loop.'); return true; } return false; }; v1.checkAdCache = function () { if (!com.newgrounds.API.ad_url) { return false; } var v2 = new Date(); var v1 = v2.getTime(); if (v1 >= com.newgrounds.API.ad_url_cache) { com.newgrounds.API.ad_url_cache = v1 + 300000; return true; } return false; }; v1.sendMessage = function (m, r) { var v1 = '[Newgrounds API] :: ' + m; if (r) { return v1; } else { trace(v1); com.newgrounds.API.bridge.sendEvent('trace', {'data': v1}); } }; v1.echo = function (m) { if (com.newgrounds.API.do_echo) { trace(m); } }; v1.LOGIN_URL = 'http://ng-local.newgrounds.com/apilogin/'; v1.do_echo = true; v1.GATEWAY_URL = 'http://www.ngads.com/gateway_v2.php'; v1.NEWGROUNDS_PREVIEW = 'uploads.ungrounded.net/previews'; v1.AD_TERMS_URL = 'http://www.newgrounds.com/wiki/using-the-site/terms-of-use/flash-ads/'; v1.COMMANDS_WIKI_URL = 'http://www.newgrounds.com/wiki/developer-resources/flash-api/commands/'; v1.LOCAL_HOST = 'localhost'; v1.NEWGROUNDS_WWW = 'www.newgrounds.com'; v1.PREVIEW_HOSTS = new Array(com.newgrounds.API.LOCAL_HOST, com.newgrounds.API.NEWGROUNDS_PREVIEW); v1.ad_url_cache = 0; v1.ad_flood = 0; v1.ad_warning = false; v1.save_file = null; v1.publisher_id = 1; v1.fake_session = false; v1.medals = null; v1.userpage_format = null; v1.scoreboards = new Array(); v1.save_groups = null; v1.compression_radix = '/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X'; v1.errors = com.newgrounds.APIError.init_codes(); v1.sharedObjects = new Object(); v1.bridge = new com.newgrounds.Bridge(_root.NewgroundsAPI_SandboxID); v1.preload = true; v1.preload_items = 0; v1.preload_items_loaded = 0; ASSetPropFlags(com.newgrounds.API.prototype, null, 1); } #endinitclip } movieClip 17 __Packages.com.newgrounds.Bridge { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Bridge) { var v1 = function (id) { this.widget_id = id; this.receiver = new LocalConnection(); this.transmitter = new LocalConnection(); this.receiver.receiveEvent = function (event, params) { com.newgrounds.API.callListener(event, params.success, params.data); }; try { this.receiver.connect('rec_' + this.widget_id); } catch (v0) { if (Error(v0) != null) { var error = Error(v0); } else { throw v0; } } }; com.newgrounds.Bridge = v1; var v2 = v1.prototype; v2.sendEvent = function (event, params) { if (this.widget_id) { this.transmitter.send(this.widget_id, 'sendEvent', event, this.validateParams(params)); } }; v2.sendCommand = function (command, params) { if (this.widget_id) { this.transmitter.send(this.widget_id, 'sendCommand', command, this.validateParams(params)); } }; v2.validateParams = function (params) { var v2 = {}; for (var v3 in params) { if (typeof params[v3] == 'string' || typeof params[v3] == 'number') { v2[v3] = params[v3]; } } return v2; }; ASSetPropFlags(com.newgrounds.Bridge.prototype, null, 1); } #endinitclip } movieClip 18 __Packages.com.newgrounds.SaveFile { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveFile) { var v1 = function (_group) { this._group = _group; this._filename = null; this._file_id = null; this._contents = null; this._thumbnail = null; this._thumbnail_url = null; this.raw = null; this.img = null; this._draft = false; this._keys = new Array(); this._ratings = new Array(); this._file_url = null; com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, this.checkPrivs, this); }; com.newgrounds.SaveFile = v1; var v2 = v1.prototype; v1.setFilePath = function (path) { com.newgrounds.SaveFile.file_path = path + '/'; }; v1.setImagePath = function (path) { com.newgrounds.SaveFile.image_path = path + '/'; }; v2.__get__name = function () { return this._filename; }; v2.__set__name = function (s) { this._filename = s; return this.__get__name(); }; v2.__get__id = function () { return this._file_id; }; v2.__get__description = function () { return this._description; }; v2.__set__description = function (s) { this._description = s; return this.__get__description(); }; v2.__get__contents = function () { return this._contents; }; v2.__set__contents = function (o) { this._contents = o; return this.__get__contents(); }; v2.__get__thumbnailUrl = function () { return com.newgrounds.SaveFile.image_path + this._thumbnail_url; }; v2.__set__thumbnailUrl = function (s) { this._thumbnail_url = s; return this.__get__thumbnailUrl(); }; v2.__get__fileUrl = function () { return com.newgrounds.SaveFile.file_path + this._file_url; }; v2.__set__fileUrl = function (s) { this._file_url = s; return this.__get__fileUrl(); }; v2.__get__authorID = function () { return this._author_id; }; v2.__set__authorID = function (i) { this._author_id = i; return this.__get__authorID(); }; v2.__get__authorName = function () { return this._author_name; }; v2.__set__authorName = function (n) { this._author_name = n; return this.__get__authorName(); }; v2.__get__views = function () { return this._views; }; v2.__get__draft = function () { return this._draft; }; v2.__set__draft = function (d) { this._draft = d; return this.__get__draft(); }; v2.__get__group = function () { return this._group; }; v2.__get__groupId = function () { return this._group.getID(); }; v2.__get__groupName = function () { return this._group.getName(); }; v2.__get__groupType = function () { return this._group.getType(); }; v2.__get__locked = function () { return this._locked; }; v2.__get__shared = function () { return this._isShared(); }; v2.__get__isPrivate = function () { return this._isPrivate(); }; v2.__get__isPublic = function () { return this._isPublic(); }; v2.__get__approved = function () { return this._isApproved(); }; v2.__get__keys = function () { return this._keys; }; v2.__get__ratings = function () { return this._ratings; }; v2.loadAuthorPage = function () { com.newgrounds.API.loadUserPage(this._author_id, this._author_name); }; v2.getID = function () { return this._file_id; }; v2.exists = function () { return this._file_id !== null; }; v2.getGroup = function () { return this._group; }; v2.getName = function () { return this._filename; }; v2._isPrivate = function () { return this.status == com.newgrounds.SaveFile.STATUS.PRIVATE; }; v2._isShared = function () { return this.status > com.newgrounds.SaveFile.STATUS.PRIVATE; }; v2._isApproved = function () { return this.status > com.newgrounds.SaveFile.STATUS.UNAPPROVED; }; v2._isPublic = function () { if (this._isPrivate()) { return false; return false; } if (this._group.isType('SYSTEM') or this._group.isType('PRIVATE')) { return false; return false; } if (this._group.isType('PUBLIC')) { return true; return false; } if (this._isApproved()) { return true; } return false; }; v2.isLocked = function () { return this._locked; }; v2.getDescription = function () { return this._description; }; v2.getShared = function () { return this._draft; }; v2.getThumbnailImageScan = function () { return this.img; }; v2.getRawContents = function () { return this.raw; }; v2.getDuplicateID = function () { return this.duplicate_id; }; v2.getKeys = function () { return this._keys; }; v2.getKey = function (key) { var v3 = (this.getGroup()).getKey(key); var v2 = 0; while (v2 < this._keys.length) { if (this._keys[v2].id == v3.key_id) { return this._keys[v2].value; } ++v2; } }; v2.getRating = function (rating) { var v2 = (this.getGroup()).getRating(rating); if (this._ratings[v2.rating_id]) { return this._ratings[v2.rating_id]; } else { return null; } }; v2.overwriteAllowed = function () { return this.overwrite; }; v2.getFileURL = function () { return com.newgrounds.SaveFile.file_path + this._file_url; }; v2.getThumbnailURL = function () { return com.newgrounds.SaveFile.image_path + this._thumbnail_url; }; v2.overwriteExisting = function () { this.overwrite = true; }; v2.setID = function (id, add_to_group) { this._file_id = id; if (add_to_group) { (this.getGroup()).addFile(this); } }; v2.setName = function (filename, locked) { this._filename = filename; this._locked = locked; }; v2.setDescription = function (description) { this._description = description; }; v2.setDraft = function (draft) { this._draft = draft; }; v2.setContents = function (_contents) { this._contents = _contents; }; v2.setThumbnail = function (thumb) { if (thumb) { this._thumbnail = thumb; } else { this._thumbnail = null; } }; v2.setThumbnailURL = function (url) { this._thumbnail_url = url; }; v2.setFileURL = function (url) { this._file_url = url; }; v2.setPermissions = function (status, _locked) { this._locked = _locked; this.status = status; }; v2.setKey = function (key, val) { var v4 = (this.getGroup()).getKeyID(key); var v2; if (!v4) { this.onError('\'' + key + '\' is not a valid key for the \'' + this._group.__get__name() + '\' save group', 'setKey', 'INVALID_VALUE', true); return undefined; } if (!this._group.keyValueIsValid(key, val) && val !== null) { this.onError('\'' + val + '\' is not a valid ' + this._group.getKeyType(key, true), 'setKey', 'INVALID_VALUE', true); return undefined; } switch (this._group.getKeyType(key, true)) { case 'string': if (val) { val = String(val); } else { val = undefined; } break; default: val = Number(val); } var v5 = {'id': v4, 'value': val}; for (var v6 in this._keys) { v2 = this._keys[v6]; if (v2.id == v4) { this._keys[v6] = v5; return undefined; } } this._keys.push(v5); }; v2.setRating = function (rating, votes, score) { var v2 = (this.getGroup()).getRating(rating); if (!votes) { votes = 0; } if (!score) { score = 0; } if (!v2.is_float) { score = Math.round(Number(score)); } this._ratings[v2.rating_id] = {'id': Number(v2.rating_id), 'name': v2.rating_name, 'votes': Number(votes), 'score': Number(score)}; return this._ratings[v2.rating_id]; }; v2.clearBuffer = function () { this._contents = null; this.raw = null; this.img = null; this.scanner = null; this.overwrite = false; this.duplicate_id = null; }; v2.onError = function (msg, funct, code) { com.newgrounds.SaveFile.busy = false; if (!code) { code = 'SAVE_FILE_ERROR'; } if (!funct) { funct = 'unknown_function'; } var v3 = 'getSaveGroup(\'' + this._group.getName() + '\')'; if (this.exists()) { funct = v3 + '.getFile(\'' + this.getName() + '\').' + funct; } else { funct = v3 + '.getNewFile().' + funct; } var v5 = new com.newgrounds.APIError(code, msg); com.newgrounds.API.sendError({'command_id': funct}, v5); }; v2.onSaved = function (p) { com.newgrounds.SaveFile.busy = false; if (!this.exists()) { this.setID(p.save_id, true); } this.setName(p.filename); this.setFileURL(p.file_url); if (p.thumbnail) { this._thumbnail_url = p.thumbnail; } }; v2.onVoted = function (p) { trace('ONVOTED WAS CALLED'); return this.setRating(p.rating_id, p.votes, p.score); }; v2.sendRating = function (rating, vote) { var v6 = null; if (!com.newgrounds.API.hasUserSession()) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You must be logged in to vote on save files'); } var v2 = this._group.getRating(rating); if (!v2) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', '\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' save group'); } if (this.voted === true) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', 'You have already voted on this item today'); } if (vote < v2.min_value or vote > v2.max_value) { v6 = new com.newgrounds.APIError('PERMISSION_DENIED', '\'' + rating + '\' votes must be between ' + v2.min_value + ' and ' + v2.max_value); } if (v6) { com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {'error': v6, 'file': this}); return undefined; } this.voted = true; com.newgrounds.API.rateSaveFile(this, v2, vote); }; v2.replace = function () { if (com.newgrounds.SaveFile.busy) { this.onError('Another file is currently being saved, please try again later', 'replace'); return undefined; } this.overwriteExisting(); this.save(); }; v2.save = function () { if (com.newgrounds.API.hasUserSession() && !this._author_id && !this._author_name) { this._author_id = com.newgrounds.API.getUserID(); this._author_name = com.newgrounds.API.getUserName(); } if (com.newgrounds.SaveFile.busy) { this.onError('Another file is currently being saved, please try again later', 'save', 'UPLOAD_IN_PROGRESS'); return undefined; } com.newgrounds.SaveFile.busy = true; if (this.isLocked()) { this.onError('This file is _locked and cannot be overwritten.', 'save', 'PERMISSION_DENIED'); return undefined; } if (!this._filename) { this.onError('Please provide a name for your file.', 'save', 'MISSING_PARAM'); return undefined; } else { if (!this._contents) { this.onError('The file is empty.', 'save', 'MISSING_PARAM'); return undefined; } } this.img = null; com.newgrounds.API.checkFilePrivs(this); }; v2.checkPrivs = function (e) { if (e.data.file.id != this.__get__id()) { return undefined; } if (e.success) { if (e.data.can_write) { this.can_write = e.data.can_write; if (e.data.duplicate_id) { this.duplicate_id = e.data.duplicate_id; } if (e.data.exists && !this.overwriteAllowed()) { this.onError('You already have a file named \'' + this.getName() + '\'', 'save', 'CONFIRM_REQUEST'); } else { this.startFile(); } } else { this.onError('This file is _locked and cannot be overwritten', 'save', 'PERMISSION_DENIED'); } } else { this.onError('There was a problem looking up your file\'s details. The server may be down.', 'save', 'UNKNOWN_ERROR'); } }; v2.startFile = function () { if (this.can_write) { if (this._thumbnail) { this.scanner = new com.newgrounds.encoders.ImageScanner(this._thumbnail); this.scanner.setCallback(this, 'encodeFile'); this.scanner.startScan(100, 100, true); } else { this.encodeFile(); } } else { this.onError('You do not have permission to save this file.', 'save', 'PERMISSION_DENIED'); } }; v2.encodeFile = function (img) { this.img = img; this.raw = (com.newgrounds.encoders.SerialXML.encode(this._contents)).toString(); this.compressFile(); }; v2.compressFile = function () { com.newgrounds.encoders.LZW2.compress(this.raw, function (s, p) { p.file.onCompressed(s); }, {'file': this}); }; v2.onCompressed = function (compressed) { this.raw = escape(compressed); this.writeFile(); }; v2.getProgress = function () {}; v2.writeFile = function () { ((this.getGroup()).getQuery()).clearCache(); com.newgrounds.API.saveFile(this); this.clearBuffer(); }; v2.loadContents = function () { if (this._contents) { com.newgrounds.API.setCurrentSaveFile(this); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {'file': this}); return undefined; } if (!this.getFileURL()) { var v4 = new com.newgrounds.APIError('FILE_NOT_FOUND', 'Attempted to load contents of an unsaved file.'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {'file': this, 'error': v4}); return undefined; } var v2 = new LoadVars(); v2.target = this; var target = this; v2.onData = function (encoded) { target.onLoaded(encoded); }; v2.load(this.getFileURL()); }; v2.onLoaded = function (encoded) { if (encoded == undefined) { var v3 = new com.newgrounds.APIError('FILE_NOT_FOUND', 'We could not find the contents for this file. It may have been deleted.'); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {'file': this, 'error': v3}); return undefined; } com.newgrounds.encoders.LZW.setXMLSafe(true); this._contents = com.newgrounds.encoders.SerialXML.decode(com.newgrounds.encoders.LZW.decompress(encoded)); com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {'file': this}); }; v2.setViews = function (n) { this._views = n; }; v1.busy = false; v2.can_write = false; v2._draft = false; v2.status = 0; v2.voted = false; v2._views = 0; v2._locked = false; v2.overwrite = false; v2.duplicate_id = null; v2._keys = null; v2._ratings = null; v2._author_id = null; v2._author_name = null; v1.STATUS = {'PRIVATE': 1, 'PUBLIC': 2, 'UNAPPROVED': 3, 'APPROVED': 4}; v2.addProperty('approved', v2.__get__approved, function () {}); v2.addProperty('authorID', v2.__get__authorID, v2.__set__authorID); v2.addProperty('authorName', v2.__get__authorName, v2.__set__authorName); v2.addProperty('contents', v2.__get__contents, v2.__set__contents); v2.addProperty('description', v2.__get__description, v2.__set__description); v2.addProperty('draft', v2.__get__draft, v2.__set__draft); v2.addProperty('fileUrl', v2.__get__fileUrl, v2.__set__fileUrl); v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('groupId', v2.__get__groupId, function () {}); v2.addProperty('groupName', v2.__get__groupName, function () {}); v2.addProperty('groupType', v2.__get__groupType, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('isPrivate', v2.__get__isPrivate, function () {}); v2.addProperty('isPublic', v2.__get__isPublic, function () {}); v2.addProperty('keys', v2.__get__keys, function () {}); v2.addProperty('locked', v2.__get__locked, function () {}); v2.addProperty('name', v2.__get__name, v2.__set__name); v2.addProperty('ratings', v2.__get__ratings, function () {}); v2.addProperty('shared', v2.__get__shared, function () {}); v2.addProperty('thumbnailUrl', v2.__get__thumbnailUrl, v2.__set__thumbnailUrl); v2.addProperty('views', v2.__get__views, function () {}); ASSetPropFlags(com.newgrounds.SaveFile.prototype, null, 1); } #endinitclip } movieClip 19 __Packages.com.newgrounds.SaveGroup { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveGroup) { var v1 = function (group_id, group_name, group_type) { this.group_name = group_name; this.group_id = group_id; this.group_type = group_type; this.query = new com.newgrounds.SaveGroupQuery(this); this.ratings = new Array(); this.keys = new Array(); this.files = new Array(); }; com.newgrounds.SaveGroup = v1; var v2 = v1.prototype; v2.__get__id = function () { return this.group_id; }; v2.__get__name = function () { return this.group_name; }; v2.__get__type = function () { return this.group_type; }; v2.addFile = function (file) { var v2 = 0; while (v2 < this.files.length) { if (this.files[v2].getID() == file.getID()) { this.files[v2] = file; return undefined; } ++v2; } this.files.push(file); }; v2.getFile = function (file_id) { trace('getting the file ' + file_id); var v2 = 0; while (v2 < this.files.length) { trace('Looking up ' + file_id + ' :: ' + this.files[v2].getID() + ' || ' + this.files[v2].getName()); if (com.newgrounds.SaveGroup.isNumeric(file_id) and this.files[v2].getID() == Number(file_id)) { return this.files[v2]; } else { if (this.files[v2].getName() == file_id) { return this.files[v2]; } } ++v2; } return null; }; v2.addRating = function (rating_id, rating_name, min_value, max_value, is_float) { var v3 = {'rating_id': rating_id, 'rating_name': rating_name, 'min_value': min_value, 'max_value': max_value, 'is_float': is_float}; if (!this.getRatingID(rating_name)) { this.ratings.push(v3); } }; v2.getRating = function (rating_id) { var v2 = 0; while (v2 < this.ratings.length) { if (com.newgrounds.SaveGroup.isNumeric(rating_id) and this.ratings[v2].rating_id == rating_id) { return this.ratings[v2]; } else { if (this.ratings[v2].rating_name == rating_id) { return this.ratings[v2]; } } ++v2; } return null; }; v2.getRatingID = function (rating_id) { var v2 = this.getRating(rating_id); if (v2) { return v2.rating_id; } return null; }; v2.getRatingName = function (rating_id) { var v2 = this.getRating(rating_id); if (v2) { return v2.rating_name; } return null; }; v2.addKey = function (key_id, key_name, key_type) { trace('>>>>>>>>>>> ADDING KEY ' + key_id + ' ' + key_name + ' ' + key_type); var v2 = {'key_id': key_id, 'key_name': key_name, 'key_type': key_type}; if (!this.getKey(key_name)) { this.keys.push(v2); } }; v2.getKey = function (key_id) { var v2 = 0; while (v2 < this.keys.length) { if (com.newgrounds.SaveGroup.isNumeric(key_id) and this.keys[v2].key_id == key_id) { return this.keys[v2]; } else { if (this.keys[v2].key_name == key_id) { return this.keys[v2]; } } ++v2; } return null; }; v2.getKeyType = function (key_name, as_string) { var v2 = this.getKey(key_name); if (v2) { return as_string ? com.newgrounds.SaveGroup.KEY_TYPES[v2.key_type] : v2.key_type; } return null; }; v2.getKeyID = function (key_id) { var v2 = this.getKey(key_id); if (v2) { return v2.key_id; } return null; }; v2.getKeyName = function (key_id) { var v2 = this.getKey(key_id); if (v2) { return v2.key_name; } return null; }; v2.keyValueIsValid = function (key, value) { var v4; var v7; if (typeof value == 'number' or (Number(value)).toString() == String(value)) { value = Number(value); v4 = (Math.round(value) === value) ? 'integer' : 'float'; } else { v4 = typeof value; if (v4 == 'string') { var v6 = '01234567890.-'; var v5 = true; var v2 = 0; while (v2 < value.length) { if (v6.indexOf(value.charAt(v2)) < 0) { v5 = false; break; } ++v2; } if (v5) { value = Number(value); v4 = 'float'; } } } switch (this.getKeyType(key, true)) { case 'integer': v7 = v4 == 'integer' or v4 == 'boolean'; return v7; case 'float': v7 = v4 == 'float' or v4 == 'integer' or v4 == 'boolean'; return v7; case 'string': v7 = v4 == 'string' or v4 == 'float' or v4 == 'integer' or v4 == 'boolean'; return v7; case 'boolean': v7 = v4 == 'boolean' or value == 1 or value == 0 or value == ''; return v7; } v7 = false; return v7; }; v2.isType = function (type) { return this.group_type == com.newgrounds.SaveGroup.TYPES[type.toUpperCase()]; }; v2.getID = function () { return this.group_id; }; v2.getName = function () { return this.group_name; }; v2.getType = function () { return this.group_type; }; v2.isSystem = function () { return undefined; }; v2.getQuery = function (as_object) { if (as_object) { return this.query.toObject(); } return this.query; }; v2.newQuery = function () { this.query.reset(); return this.query; }; v2.clearQuery = function () { this.query.reset(); }; v2.newFile = function () { var v2 = new com.newgrounds.SaveFile(this); return v2; }; v1.isNumeric = function (value) { return typeof value == 'number' or (Number(value)).toString() == String(value); }; v1.KEY_TYPES = [null, 'float', 'integer', 'string', 'boolean']; v1.TYPES = {'SYSTEM': 0, 'PRIVATE': 1, 'PUBLIC': 2, 'MODERATED': 3}; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.SaveGroup.prototype, null, 1); } #endinitclip } movieClip 22 __Packages.com.newgrounds.SaveGroupQuery { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.SaveGroupQuery) { var v1 = function (_group) { this._group = _group; this.reset(); }; com.newgrounds.SaveGroupQuery = v1; var v2 = v1.prototype; v2.__get__group = function () { return this._group; }; v2.__get__groupId = function () { return this._group.getID(); }; v2.__get__resultsPerPage = function () { return this._num_results; }; v2.__set__resultsPerPage = function (n) { this._num_results = n; return this.__get__resultsPerPage(); }; v2.__get__pages = function () { return this._pages; }; v2.__get__page = function () { return this._page; }; v2.__set__page = function (n) { this._page = n; return this.__get__page(); }; v2.__get__randomize = function () { return this._randomize_results; }; v2.__set__randomize = function (b) { this._randomize_results = b; return this.__get__randomize(); }; v2.__get__results = function () { return this._results; }; v2.clearCache = function () { this._results = []; }; v2.reset = function () { this.file_conditions = new Array(); this.key_conditions = new Array(); this.rating_conditions = new Array(); this.sort_conditions = new Array(); this.lookup_keys = new Object(); this.lookup_ratings = new Object(); this._num_results = 20; this._page = 1; this._randomize_results = false; this._group_by = new Array(); this.clearCache(); }; v2.getGroup = function () { return this._group; }; v2.getGroupID = function () { return this._group.getID(); }; v2.isRandomized = function () { return this._randomize_results; }; v2.toObject = function () { var v2; var v11 = {'page': this._page, 'num_results': this._num_results}; if (this._randomize_results) { v11.randomize = 1; } if (!com.newgrounds.ValidationTools.isEmpty(this.file_conditions)) { var v12 = []; v2 = 0; while (v2 < this.file_conditions.length) { var v6 = this.file_conditions[v2]; v12.push({'field': com.newgrounds.SaveGroupQuery.file_fields[v6.field.toUpperCase()].id, 'operator': v6.operator, 'value': v6.value}); ++v2; } v11.file_conditions = v12; } if (!com.newgrounds.ValidationTools.isEmpty(this.key_conditions)) { v11.key_conditions = this.key_conditions; } if (!com.newgrounds.ValidationTools.isEmpty(this.rating_conditions)) { v11.rating_conditions = this.rating_conditions; } if (!com.newgrounds.ValidationTools.isEmpty(this.sort_conditions)) { var v14 = []; v2 = 0; while (v2 < this.sort_conditions.length) { var v3 = this.sort_conditions[v2]; if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_FILES) { var v8 = com.newgrounds.SaveGroupQuery.file_fields[v3.field.toUpperCase()].id; } else { var v8 = v3.field; } var v5 = {'field': v8, 'table': v3.table}; if (v3.desc) { v5.desc = 1; } if (v3.extra) { v5.extra = v3.extra; } v14.push(v5); ++v2; } v11.sort_conditions = v14; } if (!com.newgrounds.ValidationTools.isEmpty(this.lookup_keys)) { var v15 = []; for (v2 in this.lookup_keys) { v15.push(v2); } v11.lookup_keys = v15; } if (!com.newgrounds.ValidationTools.isEmpty(this.lookup_ratings)) { var v13 = []; for (v2 in this.lookup_ratings) { v13.push(v2); } v11.lookup_ratings = v13; } if (!com.newgrounds.ValidationTools.isEmpty(this._group_by)) { var v16 = []; v2 = 0; while (v2 < this._group_by.length) { var v4 = this._group_by[v2]; if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_FILES) { v8 = com.newgrounds.SaveGroupQuery.file_fields[v4.field.toUpperCase()].id; } else { v8 = v4.field; } v16.push({'field': v8, 'table': v4.table}); ++v2; } v11.group_by = v16; } return v11; }; v2.toString = function () { var v9; var v2; var v11 = []; v9 = 'Lookup:\r'; var v14 = []; for (var v6 in com.newgrounds.SaveGroupQuery.file_fields) { v14.push(' ' + v6); v2 = true; } v9 += v14.join('\n'); v11.push(v9); v9 = ''; v2 = false; var v16 = []; for (v6 in this.lookup_keys) { v16.push(' KEY \'' + this._group.getKeyName(v6) + '\''); v2 = true; } if (v2) { v9 += v16.join('\n'); v11.push(v9); } v9 = ''; v2 = false; var v15 = []; for (v6 in this.lookup_ratings) { v15.push(' RATING \'' + this._group.getRatingName(v6) + '\''); v2 = true; } if (v2) { v9 += v15.join('\n'); v11.push(v9); } v9 = 'Where:\r'; v2 = false; var v8 = []; v6 = 0; while (v6 < this.file_conditions.length) { var v7 = this.file_conditions[v6]; var v10 = ' ' + v7.field + ' ' + v7.operator + ' ' + v7.value; v8.push(v10); v2 = true; ++v6; } v6 = 0; while (v6 < this.key_conditions.length) { v7 = this.key_conditions[v6]; v10 = ' KEY \'' + this._group.getKeyName(v7.key_id) + '\' ' + v7.operator + ' ' + v7.value; v8.push(v10); v2 = true; ++v6; } v6 = 0; while (v6 < this.rating_conditions.length) { v7 = this.rating_conditions[v6]; v10 = ' RATING \'' + this._group.getRatingName(v7.rating_id) + '\' ' + v7.operator + ' ' + v7.value; v8.push(v10); v2 = true; ++v6; } if (v2) { v9 += v8.join('\n'); v11.push(v9); } v9 = 'Group By:\r'; v2 = false; var v13 = []; v6 = 0; while (v6 < this._group_by.length) { var v4 = this._group_by[v6]; var v5; if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_KEYS) { v5 = ' KEY \'' + this._group.getKeyName(v4.field) + '\''; } else { if (v4.table == com.newgrounds.SaveGroupQuery.TABLE_RATINGS) { v5 = ' RATING \'' + this._group.getRatingName(v4.field) + '\''; } else { v5 = ' ' + v4.field; } } v13.push(v5); v2 = true; ++v6; } if (v2) { v9 += v13.join('\n'); v11.push(v9); } v9 = 'Order By:\r'; v2 = false; var v12 = []; if (this.isRandomized()) { v12.push(' RANDOM'); v2 = true; } v6 = 0; while (v6 < this.sort_conditions.length) { var v3 = this.sort_conditions[v6]; if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_KEYS) { v5 = ' KEY \'' + this._group.getKeyName(v3.field) + '\''; } else { if (v3.table == com.newgrounds.SaveGroupQuery.TABLE_RATINGS) { v5 = ' RATING \'' + this._group.getRatingName(v3.field) + '\' ' + ((v3.extra == 'votes') ? 'VOTES' : 'SCORE'); } else { v5 = ' ' + v3.field; } } v5 += v3.desc ? ' (DESCENDING)' : ''; v12.push(v5); v2 = true; ++v6; } if (v2) { v9 += v12.join('\n'); v11.push(v9); } v11.push('Page:\r ' + this._page); v11.push('Results Per Page:\r ' + this._num_results); return v11.join('\n'); }; v2.setResultsPerPage = function (r) { this._num_results = r; this.clearCache(); }; v2.setPage = function (p) { this._page = p; this.clearCache(); }; v2.setRandomize = function (bool) { this._randomize_results = (bool === false) ? false : true; }; v2.includeKey = function (key) { if (!this._group.getKeyID(key)) { trace('[SaveGroupQuery Error] :: \'' + key + '\' is not a valid key for the \'' + this._group.__get__name() + '\' group.'); return undefined; } this.lookup_keys[this._group.getKeyID(key)] = 1; this.clearCache(); }; v2.includeRating = function (rating) { if (!this._group.getRatingID(rating)) { trace('[SaveGroupQuery Error] :: \'' + rating + '\' is not a valid rating for the \'' + this._group.__get__name() + '\' group.'); return undefined; } this.lookup_ratings[this._group.getRatingID(rating)] = 1; this.clearCache(); }; v2.groupBy = function (field) { this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_FILES, field); }; v2.groupByKey = function (key) { if (!this._group.getKeyID(key)) { this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' _group'); return undefined; } this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_KEYS, this._group.getKeyID(key)); }; v2.groupByRating = function (rating) { if (!this._group.getRatingID(rating)) { this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' _group'); return undefined; } this.addGroupItem(com.newgrounds.SaveGroupQuery.TABLE_RATINGS, this._group.getRatingID(rating)); }; v2.addGroupItem = function (table, field) { this._group_by.push({'table': table, 'field': field}); this.clearCache(); }; v2.excludeKey = function (key) { delete this.lookup_keys[this._group.getKeyID(key)]; this.clearCache(); }; v2.excludeRating = function (rating) { delete this.lookup_ratings[this._group.getRatingID(rating)]; this.clearCache(); }; v2.addCondition = function (field, operator, value) { if (field == 'FILE_STATUS' && typeof value == 'string' && com.newgrounds.SaveFile.STATUS[value.toUpperCase()] !== undefined) { value = com.newgrounds.SaveFile.STATUS[value.toUpperCase()]; } if (operator == '==') { operator = '='; } if (!this.validateOperator(operator) or !this.validateValue(field, value)) { return undefined; } this.file_conditions.push({'field': field, 'operator': operator, 'value': value}); this.clearCache(); }; v2.addKeyCondition = function (key, operator, value) { if (!this._group.getKeyID(key)) { this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' save _group'); } else { if (!this.validateOperator(operator) or !this.validateKeyValue(key, value)) { return undefined; } } this.key_conditions.push({'key_id': this._group.getKeyID(key), 'operator': operator, 'value': value}); this.clearCache(); }; v2.addRatingCondition = function (rating, operator, value, column) { if (!column) { column = 'SCORE'; } if (!this._group.getRatingID(rating)) { this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' save _group'); } else { if (!this.validateOperator(operator)) { return undefined; } else { if (!com.newgrounds.ValidationTools.isNumber(value)) { this.error('Expected numeric value for rating \'' + rating + '\''); return undefined; } } } if (!com.newgrounds.SaveGroupQuery.rating_columns[column]) { var v2 = []; for (var v3 in com.newgrounds.SaveGroupQuery.rating_columns) { v2.push(v3); } this.error('Invalid rating column \'' + column + '\'. Valid columns are ' + v2.join(', ')); return undefined; } this.rating_conditions.push({'rating_id': this._group.getRatingID(rating), 'operator': operator, 'value': value, 'column': com.newgrounds.SaveGroupQuery.rating_columns[column]}); this.clearCache(); }; v2.sortOn = function (field, order) { if (!com.newgrounds.SaveGroupQuery.file_fields[field]) { var v2 = []; for (var v3 in com.newgrounds.SaveGroupQuery.file_fields) { v2.push(v3); } this.error('\'' + field + '\' is not a valid sort field. Valid fields are: ' + v2.join(', ')); return undefined; } this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_FILES, field, order); }; v2.sortOnKey = function (key, order) { if (!this._group.getKeyID(key)) { this.error('\'' + key + '\' is not a valid key for the \'' + this._group.getName() + '\' _group'); return undefined; } this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_KEYS, this._group.getKeyID(key), order); }; v2.sortOnRating = function (rating, order, column) { if (!this._group.getRatingID(rating)) { this.error('\'' + rating + '\' is not a valid rating for the \'' + this._group.getName() + '\' _group'); return undefined; } if (!column) { column = 'score'; } this.addSortCondition(com.newgrounds.SaveGroupQuery.TABLE_RATINGS, this._group.getRatingID(rating), order, column); }; v2.sortOnRatingScore = function (rating, order) { this.sortOnRating(rating, order, 'score'); }; v2.sortOnRatingVotes = function (rating, order) { this.sortOnRating(rating, order, 'votes'); }; v2.addSortCondition = function (table, field, order, extra) { var v7; if (!order or order == '' or order.toUpperCase() == 'ASC') { v7 = false; } else { if (order.toUpperCase() == 'DESC') { v7 = true; } else { this.error('\'' + order + '\' is not a valid sort order!'); return undefined; } } var v3 = {'table': table, 'field': field, 'desc': v7}; if (extra) { v3.extra = extra; } this.sort_conditions.push(v3); this.clearCache(); }; v2.onExecuted = function (results) { this._results = []; var v6 = 0; while (v6 < results.length) { var v2 = results[v6]; var v3 = new com.newgrounds.SaveFile(this._group); v3.setName(v2.filename); v3.setID(v2.save_id); v3.setDescription(v2.description); v3.setThumbnailURL(v2.thumb); v3.setFileURL(v2.file); if (v2.views) { v3.setViews(v2.views); } v3.setPermissions(v2.status, v2.locked); v3.authorName = v2.user_name; v3.authorID = v2.user_id; var v5 = 0; while (v5 < v2.keys.length) { v3.setKey(v2.keys[v5].id, v2.keys[v5].value); ++v5; } var v4 = 0; while (v4 < v2.ratings.length) { v3.setRating(v2.ratings[v4].id, v2.ratings[v4].votes, v2.ratings[v4].score); ++v4; } (this.getGroup()).addFile(v3); this._results.push(v3); ++v6; } this.callEventDispatcher(); }; v2.hasResults = function () { return this._results && this._results.length > 0; }; v2.callEventDispatcher = function () { com.newgrounds.API.callListener(com.newgrounds.APIEvent.QUERY_COMPLETE, true, {'query': this}); }; v2.execute = function () { if (this.hasResults() && !this.isRandomized()) { this.callEventDispatcher(); return undefined; } this._group.query = this; com.newgrounds.API.lookupSaveFiles(this._group); }; v2.processResults = function (files) { return null; }; v2.validateKeyValue = function (key, value) { var v3 = this._group.getKeyType(key); if (v3) { var v2 = com.newgrounds.SaveGroup.KEY_TYPES[v3]; if (v2 == 'float' and com.newgrounds.ValidationTools.isFloat(value)) { return true; } else { if (v2 == 'integer' and com.newgrounds.ValidationTools.isInteger(value)) { return true; } else { if (v2 == 'string' and com.newgrounds.ValidationTools.isString(value)) { return true; } } } this.error('Expected type ' + v2 + ' for key \'' + key + '\''); } return false; }; v2.validateValue = function (field, value) { if (com.newgrounds.SaveGroupQuery.file_fields[field]) { if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'integer' and com.newgrounds.ValidationTools.isInteger(value)) { return true; } else { if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'float' and com.newgrounds.ValidationTools.isFloat(value)) { return true; } else { if (com.newgrounds.SaveGroupQuery.file_fields[field].type == 'string' and com.newgrounds.ValidationTools.isString(value)) { return true; } else { this.error('Expecting ' + com.newgrounds.SaveGroupQuery.file_fields[field].type + ' value on \'' + field + '\' condition'); } } } return false; } var v2 = []; for (var v4 in com.newgrounds.SaveGroupQuery.file_fields) { v2.push(v4); } this.error('\'' + field + '\' is not a searchable field. Valid fields are: ' + v2.join(', ')); return false; }; v2.validateOperator = function (operator) { var v2 = 0; while (v2 < com.newgrounds.SaveGroupQuery.valid_operators.length) { if (operator == com.newgrounds.SaveGroupQuery.valid_operators[v2]) { return true; } ++v2; } this.error('\'' + operator + '\' is not a valid lookup operation. Valid operations are: ' + com.newgrounds.SaveGroupQuery.valid_operators.join(', ')); return false; }; v2.error = function (msg) { trace('[QUERY ERROR] :: ' + msg); }; v1.TABLE_FILES = 1; v1.TABLE_KEYS = 2; v1.TABLE_RATINGS = 3; v2._results = []; v1.file_fields = {'FILE_ID': {'id': 0, 'field': 'file_id', 'type': 'integer'}, 'AUTHOR_ID': {'id': 1, 'field': 'user_id', 'type': 'integer'}, 'AUTHOR_NAME': {'id': 2, 'field': 'user_name', 'type': 'string'}, 'FILE_NAME': {'id': 3, 'field': 'file_name', 'type': 'string'}, 'CREATED_ON': {'id': 4, 'field': 'created', 'type': 'string'}, 'UPDATED_ON': {'id': 5, 'field': 'last_update', 'type': 'string'}, 'TOTAL_VIEWS': {'id': 6, 'field': 'views', 'type': 'integer'}, 'FILE_STATUS': {'id': 7, 'field': 'status', 'type': 'integer'}}; v1.rating_columns = {'TOTAL_VOTES': 'votes', 'SCORE': 'score'}; v1.valid_operators = ['=', '<', '>', '!=', '<>', '<=', '>=', '*', '!*', '!*=', '!=*', '*=', '=*']; v2.addProperty('group', v2.__get__group, function () {}); v2.addProperty('groupId', v2.__get__groupId, function () {}); v2.addProperty('page', v2.__get__page, v2.__set__page); v2.addProperty('pages', v2.__get__pages, function () {}); v2.addProperty('randomize', v2.__get__randomize, v2.__set__randomize); v2.addProperty('results', v2.__get__results, function () {}); v2.addProperty('resultsPerPage', v2.__get__resultsPerPage, v2.__set__resultsPerPage); ASSetPropFlags(com.newgrounds.SaveGroupQuery.prototype, null, 1); } #endinitclip } movieClip 24 __Packages.com.newgrounds.encoders.ImageScanner { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.ImageScanner) { var v1 = function (the_source) { if (the_source) { this.image_source = the_source; } else { this.image_source = _root; } this.reset(); if (typeof this.image_source == 'movieclip') { if (this.image_source == _root) { this.source_width = Stage.width; this.source_height = Stage.height; } else { this.source_width = Math.floor(this.image_source._width); this.source_height = Math.floor(this.image_source._height); } this.sourceBitmap = new flash.display.BitmapData(this.source_width, this.source_height, false, 4294967295.0); this.sourceBitmap.draw(_root); } else { if (this.image_source.width) { this.source_width = this.image_source.width; this.source_height = this.image_source.height; this.sourceBitmap = this.image_source; } else { this.error('You can only use BitMaptData and MovieClip objects to create images'); } } }; com.newgrounds.encoders.ImageScanner = v1; var v2 = v1.prototype; v2.setCallback = function (target, funct) { if (target && funct) { this.callback_target = target; this.callback_function = funct; } }; v2.reset = function () { this.callback_target = null; this.callback_function = null; this.debug.bad_pixels = 0; this.hash = '0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&'; var v3 = Math.pow(this.hash.length, 2); trace('MAX COLORS: ' + v3); var v2 = Math.floor(Math.pow(v3, 0.3333333333333333)) - 1; var v4 = Math.pow(v2, 3); this.cube = v2; this.basen = new com.newgrounds.encoders.BaseN(this.hash); this.xpos = 0; this.ypos = 0; this.pixels = 0; this.busy = false; }; v2.startScan = function (w, h, s) { if (w) { this.image_width = w; } if (h) { this.image_height = h; } if (s != undefined) { this.crop = s; } var v7 = _root.getNextHighestDepth(); var v6 = _root.createEmptyMovieClip('API_image_container_' + v7, v7); var v5 = v6.createEmptyMovieClip('canvas', 100); v5.attachBitmap(this.sourceBitmap, 100); if (this.crop) { if (this.image_width / this.source_width > this.image_height / this.source_height) { this.canvas_width = this.image_width; this.canvas_height = Math.ceil(this.source_height * (this.image_width / this.source_width)); } else { this.canvas_height = this.image_height; this.canvas_width = Math.ceil(this.source_width * (this.image_height / this.source_height)); } } else { this.canvas_width = this.image_width; this.canvas_height = this.image_height; } v5._x = Math.round((this.image_width - this.canvas_width) / 2); v5._width = this.canvas_width; v5._height = this.canvas_height; this.resizedBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0); this.resizedBitmap.draw(v6); v6.removeMovieClip(); this.copyBitmap = new flash.display.BitmapData(this.image_width, this.image_height, false, 4294967295.0); var v3 = '' + this.image_width; while (v3.length < 3) { v3 = '0' + v3; } var v4 = '' + this.image_height; while (v4.length < 3) { v4 = '0' + v4; } this.output = v3 + v4; this.draw_interval = setInterval(this, 'drawChunk', 10); this.busy = false; return this.resizedBitmap; }; v2.getBitmapData = function () { return this.copyBitmap; }; v2.getBytesTotal = function () { return this.image_width * this.image_height * 2; }; v2.getBytesScanned = function () { return this.pixels * 2; }; v2.getProgress = function () { return Math.round((this.getBytesScanned() / this.getBytesTotal()) * 100); }; v2.drawChunk = function () { if (!this.busy) { this.busy = true; var v2 = 0; while (v2 < this.pixels_per_chunk) { if (!this.nextPixel()) { clearInterval(this.draw_interval); this.callback_interval = setInterval(this, 'doCallback', 25); this.busy = true; break; } ++v2; } this.busy = false; } }; v2.doCallback = function () { this.busy = false; clearInterval(this.callback_interval); if (this.callback_target and this.callback_function) { this.callback_target[this.callback_function](this.output); } else { this.onScanComplete(this.output); } }; v2.onScanComplete = function (packet) { this.sendMessage('packet size: ' + this.output.length + ' bytes', 'onScanComplete'); }; v2.nextPixel = function () { var v15 = this.xpos; var v14 = this.ypos; var v7 = this.resizedBitmap.getPixel(v15, v14); var v17 = v7 >> 16 & 255; var v20 = v7 >> 8 & 255; var v16 = v7 >> 0 & 255; var v11 = Math.round(((v17 + 1) / 256) * this.cube); var v10 = Math.round(((v20 + 1) / 256) * this.cube); var v13 = Math.round(((v16 + 1) / 256) * this.cube); var v12 = v11 * (this.cube + 1) * (this.cube + 1) + v10 * (this.cube + 1) + v13; var v6 = this.basen.encode(v12, 2); this.output += v6; if (v6.length != 2) { trace('bad pixel ' + v6); } var v5 = this.basen.decode(v6); var v18 = v5; var v8 = v5 % (this.cube + 1); v5 = (v5 - v8) / (this.cube + 1); var v9 = v5 % (this.cube + 1); var v19 = (v5 - v9) / (this.cube + 1); if (v13 != v8 and v10 != v9 and v11 != v10) { ++this.debug.bad_pixels; trace('BAD PIXEL ' + this.debug.bad_pixels + ') ' + v12 + ' != ' + v18 + ' ' + v6); trace(this.basen.debug.lastencode); } var v2 = (Math.round((v19 / this.cube) * 255)).toString(16); var v4 = (Math.round((v9 / this.cube) * 255)).toString(16); var v3 = (Math.round((v8 / this.cube) * 255)).toString(16); while (v2.length < 2) { v2 = '0' + v2; } while (v4.length < 2) { v4 = '0' + v4; } while (v3.length < 2) { v3 = '0' + v3; } this.copyBitmap.setPixel(v15, v14, Number('0x' + v2 + v4 + v3)); ++this.pixels; if (this.pixels >= this.image_width * this.image_height) { return false; } ++this.xpos; if (this.xpos >= this.image_width) { this.xpos = 0; ++this.ypos; } return true; }; v2.error = function (e, f) { this.sendMessage(e, f, 'ERROR'); }; v2.sendMessage = function (msg, func, type) { var v1 = 'ImageScanner'; if (func) { v1 += '.' + func + '()'; } if (type) { v1 = type + ' in ' + v1; } v1 += ' :: ' + msg; trace(v1); }; v2.image_width = 100; v2.image_height = 100; v2.crop = true; v2.pixels_per_chunk = 500; v2.debug = new Object(); ASSetPropFlags(com.newgrounds.encoders.ImageScanner.prototype, null, 1); } #endinitclip } movieClip 23 __Packages.com.newgrounds.encoders.BaseN { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.BaseN) { var v1 = function (hash) { this.ceiling = 100000000000000.0; if (hash) { this.hashIndex = hash; } else { this.hashIndex = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/'; } this.bitSize = this.hashIndex.length; this.hashVal = new Object(); this.i = 0; while (this.i < this.bitSize) { this.hashVal[this.hashIndex.charAt(this.i)] = this.i; ++this.i; } }; com.newgrounds.encoders.BaseN = v1; var v2 = v1.prototype; v2.verify = function (s) { if (this.hashVal[s] != undefined) { return true; } else { return false; } }; v2.encode = function (n, minchars) { this.debug.lastencode = ''; if (typeof this.i != 'string') { n = n.toString(); } if (n.charAt(0) == '-') { var v3 = '-'; n = n.substring(1); } else { var v3 = ''; } if ((String(n)).indexOf('.') > -1) { var v4 = (String(n)).split('.', 2); return v3 + this.baseNEncoder(v4[0], minchars) + '.' + this.baseNEncoder(v4[1]); } else { this.debug.lastencode += '\tNo decimal\r'; return v3 + this.baseNEncoder(n, minchars); } }; v2.decode = function (s) { var v4 = 1; if (s.charAt(0) == '-') { v4 = -1; s = s.substring(1, s.length); } var v3 = s.indexOf('.'); if (v3 > -1) { var v5 = Math.pow(10, this.baseNDecoder(s.substring(v3 + 1, s.length))); return (this.baseNDecoder(s.substring(0, v3)) / v5) * v4; } else { return this.baseNDecoder(s) * v4; } }; v2.baseNEncoder = function (n, minchars) { if (!minchars) { minchars = 1; } var v4 = ''; while (n != 0) { n = Math.round(n); var v3 = n % this.bitSize; if (Math.round(v3) != v3) { trace('BaseN failed on ' + n + '%' + this.bitSize + ' = ' + v3 + ' ' + int(n) + ' ' + int(this.bitSize)); } v4 = this.hashIndex.charAt(v3) + v4; this.debug.lastencode += '\t-> n:' + n + ' % bitSize:' + this.bitSize + ' = ' + v3 + ', final char=' + v4 + '\n'; n -= v3; n /= this.bitSize; } if (minchars) { while (v4.length < minchars) { v4 = this.hashIndex.charAt(0) + v4; } } return v4; }; v2.baseNDecoder = function (s) { var v2 = 0; var v6 = 0; this.i = 0; while (this.i < s.length) { var v3 = s.charAt(s.length - this.i - 1); if (v3 == this.hashIndex.charAt(0)) { var v5 = 0; } else { var v5 = this.hashVal[v3] * Math.pow(this.bitSize, this.i); } v2 += v5; if (v2 >= this.ceiling) { v6 += (v2 - v2 % this.ceiling) / this.ceiling; v2 %= this.ceiling; } ++this.i; } if (v6 > 0) { v2 = '' + v2; while (v2.length < (this.ceiling.toString()).length - 1) { v2 = '0' + v2; } v2 = '' + v6 + v2; } return v2; }; v2.debug = new Object(); ASSetPropFlags(com.newgrounds.encoders.BaseN.prototype, null, 1); } #endinitclip } movieClip 34 __Packages.com.newgrounds.APIEventDispatcher { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEventDispatcher) { var v1 = function () {}; com.newgrounds.APIEventDispatcher = v1; var v2 = v1.prototype; v2.addEventListener = function (event, callback, target) { if (!target) { throw 'Attempted to create a listener without providing a target object.'; } if (!this.listeners[event]) { this.listeners[event] = []; } else { this.removeEventListener(event, target); } this.listeners[event].push({'target': target, 'callback': callback}); }; v2.removeEventListener = function (event, target) { if (!target) { throw 'Attempted to remove a listener without providing a target object.'; } if (!this.listeners[event] || this.listeners[event].length < 1) { return undefined; } var v4 = []; var v2 = 0; while (v2 < this.listeners[event].length) { if (this.listeners[event][v2].target != target) { v4.push(this.listeners[event][v2]); } ++v2; } this.listeners[event] = v4; }; v2.dispatchEvent = function (event) { if (!this.hasEventListener(event.__get__type())) { return false; } this.collectGarbage(event.__get__type()); var v2 = 0; while (v2 < this.listeners[event.__get__type()].length) { var v4 = this.listeners[event.__get__type()][v2].callback; if (this.listeners[event.__get__type()][v2].target) { var v5 = this.listeners[event.__get__type()][v2].target; v4.call(v5, event); } else { v4(event); } ++v2; } return true; }; v2.hasEventListener = function (event) { return this.listeners[event] != undefined && this.listeners[event].length > 0; }; v2.collectGarbage = function (event) { var v5 = []; if (!this.hasEventListener) { return undefined; } var v2 = 0; while (v2 < this.listeners[event].length) { var v4 = this.listeners[event][v2].target; if (v4) { v5.push(this.listeners[event][v2]); } ++v2; } this.listeners[event] = v5; }; v2.listeners = {}; ASSetPropFlags(com.newgrounds.APIEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 21 __Packages.com.newgrounds.APIEvent { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIEvent) { var v1 = function (type, success, data) { this._type = type; this._success = success; if (data.isError()) { this._error = data; this.data = null; } else { if (data.error && data.error.isError()) { this._error = data.error; this.data = data; } else { this.data = data; this._error = null; } } }; com.newgrounds.APIEvent = v1; var v2 = v1.prototype; v2.__get__error = function () { return this._error; }; v2.__get__type = function () { return this._type; }; v2.__get__success = function () { return this._success; }; v1.API_CONNECTED = 'apiConnected'; v1.ADS_APPROVED = 'adsApproved'; v1.AD_ATTACHED = 'adAttached'; v1.HOST_BLOCKED = 'hostBlocked'; v1.NEW_VERSION_AVAILABLE = 'newVersionAvailable'; v1.EVENT_LOGGED = 'eventLogged'; v1.SCORE_POSTED = 'scorePosted'; v1.SCORES_LOADED = 'scoresLoaded'; v1.UNLOCK_MEDAL = 'unlockMedal'; v1.MEDAL_UNLOCKED = 'medalUnlocked'; v1.MEDALS_LOADED = 'medalsLoaded'; v1.METADATA_LOADED = 'metadataLoaded'; v1.FILE_PRIVS_LOADED = 'filePrivsLoaded'; v1.FILE_SAVED = 'fileSaved'; v1.FILE_LOADED = 'fileLoaded'; v1.FILE_INITIALIZED = 'fileInitialized'; v1.FILE_REQUESTED = 'fileRequested'; v1.QUERY_COMPLETE = 'queryComplete'; v1.VOTE_COMPLETE = 'voteComplete'; v1.API_ERROR = 'apiError'; v1.UNCAUGHT_EVENT = 'uncaughtEvent'; v2.addProperty('error', v2.__get__error, function () {}); v2.addProperty('success', v2.__get__success, function () {}); v2.addProperty('type', v2.__get__type, function () {}); ASSetPropFlags(com.newgrounds.APIEvent.prototype, null, 1); } #endinitclip } movieClip 15 __Packages.com.newgrounds.APIError { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.APIError) { var v1 = function (error, msg) { if ((Number(error)).toString() == String(error)) { error = Number(error); } else { if (com.newgrounds.APIError.error_codes[String(error)]) { error = com.newgrounds.APIError.error_codes[String(error)]; } else { error = 0; } } this.code = error; this.message = msg; this.name = com.newgrounds.APIError.error_names[error]; this.alias = com.newgrounds.APIError.aliases[error]; }; com.newgrounds.APIError = v1; var v2 = v1.prototype; v1.init_codes = function () { var v2 = new Object(); var v1 = 0; while (v1 < com.newgrounds.APIError.aliases.length) { v2[com.newgrounds.APIError.aliases[v1]] = v1; ++v1; } return v2; }; v1.init_names = function () { var v5 = new Array(); var v3 = 0; while (v3 < com.newgrounds.APIError.aliases.length) { var v2 = (com.newgrounds.APIError.aliases[v3].toLowerCase()).split('_'); var v1 = 0; while (v1 < v2.length) { v2[v1] = (v2[v1].substr(0, 1)).toUpperCase() + v2[v1].substr(1, v2[v1].length); for (var v4 in com.newgrounds.APIError.always_caps) { if (v2[v1].toUpperCase() == com.newgrounds.APIError.always_caps[v4]) { v2[v1] = v2[v1].toUpperCase(); } } ++v1; } v5[v3] = v2.join(' '); ++v3; } return v5; }; v2.isError = function () { return true; }; v1.aliases = new Array('UNKNOWN_ERROR', 'INVALID_API_ID', 'MISSING_PARAM', 'INVALID_STAT_ID', 'INVALID_COMMAND_ID', 'FLASH_ADS_NOT_APPROVED', 'PERMISSION_DENIED', 'IDENTIFICATION_REQUIRED', 'INVALID_EMAIL_ADDRESS', 'BANNED_USER', 'SESSION_EXPIRED', 'INVALID_SCORE', 'INVALID_MEDAL', 'INVALID_SAVE_GROUP', 'FILE_NOT_FOUND', 'SITE_ID_REQUIRED', 'UPLOAD_IN_PROGRESS', 'USER_CANCELLED', 'CONFIRM_REQUEST', 'ILLEGAL_REQUEST', 'CONNECTION_FAILED', 'QUERY_INCOMPLETE', 'SAVE_FILE_ERROR', 'INVALID_VALUE', 'SERVER_ERROR', 'INVALID_SCOREBOARD'); v1.always_caps = new Array('API', 'URL', 'ID'); v1.error_codes = com.newgrounds.APIError.init_codes(); v1.error_names = com.newgrounds.APIError.init_names(); v2.code = 0; ASSetPropFlags(com.newgrounds.APIError.prototype, null, 1); } #endinitclip } movieClip 28 __Packages.com.newgrounds.RemoteAuth { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.RemoteAuth) { var v1 = function (id) { this.auth_token = id; System.security.allowDomain('*'); this.receiver = new LocalConnection(); this.receiver.allowDomain = function () { return true; }; this.receiver.onAuth = function (auth_result) { trace('remote login is a success! ' + auth_result); com.newgrounds.API.onRemoteAuthentication(auth_result); }; this.receiver.connect('_' + this.auth_token); }; com.newgrounds.RemoteAuth = v1; var v2 = v1.prototype; v2.__get__token = function () { return this.auth_token; }; v2.addProperty('token', v2.__get__token, function () {}); ASSetPropFlags(com.newgrounds.RemoteAuth.prototype, null, 1); } #endinitclip } movieClip 29 __Packages.com.newgrounds.Medal { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Medal) { var v1 = function (id, name, value, difficulty, unlocked, _icon_url) { if (id == undefined || name == undefined || value == undefined || difficulty == undefined) { com.newgrounds.API.fatalError('Medal instances require an id, name, value and difficulty'); } this._medal_id = id; this._medal_name = name; this._medal_value = value; this._medal_difficulty = difficulty; if (unlocked) { this._medal_unlocked = true; } if (_icon_url) { this._icon_url = _icon_url; } }; com.newgrounds.Medal = v1; var v2 = v1.prototype; v2.__get__difficulty = function () { return com.newgrounds.Medal.difficulty_names[this._medal_difficulty]; }; v2.__get__difficultyId = function () { return this._medal_difficulty; }; v2.__get__icon_url = function () { return this._icon_url; }; v2.__get__id = function () { return this._medal_id; }; v2.__get__name = function () { return this._medal_name; }; v2.__get__unlocked = function () { return this._medal_unlocked; }; v2.__get__value = function () { return this._medal_value; }; v2.isUnlocked = function () { return this._medal_unlocked; }; v2.unlock = function () { if (!this.isUnlocked()) { com.newgrounds.API.unlockMedal(this); } }; v2.setUnlocked = function (u) { this._medal_unlocked = u; }; v2.attachIcon = function (target, depth) { if (!depth) { depth = target.getNextHighestDepth(); } var v3 = target.createEmptyMovieClip('Asset_Medal_Icon_' + this.getID(), depth); if (this._icon_url) { v3.loadMovie(this._icon_url); } else { var v4 = flash.display.BitmapData.loadBitmap('Asset_default_medal_icon_' + this.getDifficulty(), depth); v3.attachBitmap(v4, depth, true); } }; v2.getID = function () { return this._medal_id; }; v2.getName = function () { return this._medal_name; }; v2.getValue = function () { return this._medal_value; }; v2.getDifficulty = function (as_string) { if (as_string) { return com.newgrounds.Medal.difficulty_names[this._medal_difficulty]; } else { return this._medal_difficulty; } }; v2._medal_unlocked = false; v2._icon_loaded = false; v2._icon_width = 50; v2._icon_height = 50; v2._icon_url = null; v1.difficulty_names = new Array(null, 'Easy', 'Moderate', 'Challenging', 'Difficult', 'Brutal'); v2.addProperty('difficulty', v2.__get__difficulty, function () {}); v2.addProperty('difficultyId', v2.__get__difficultyId, function () {}); v2.addProperty('icon_url', v2.__get__icon_url, function () {}); v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('unlocked', v2.__get__unlocked, function () {}); v2.addProperty('value', v2.__get__value, function () {}); ASSetPropFlags(com.newgrounds.Medal.prototype, null, 1); } #endinitclip } movieClip 1 __Packages.com.newgrounds.components.FlashAd { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.components) { _global.com.newgrounds.components = new Object(); } if (!_global.com.newgrounds.components.FlashAd) { var v1 = function () { super(); this.background._visible = this.show_background; if (this.show_background) { this._x = Math.round(this._x); this._y = Math.round(this._y); this._xscale = 100; this._yscale = 100; } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.ADS_APPROVED, this.loadAd, this); }; com.newgrounds.components.FlashAd = v1; com.newgrounds.components.FlashAd extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { com.newgrounds.API.attachFlashAd(this); }; v2.loadAd = function (event, params) { com.newgrounds.API.attachFlashAd(this); }; v2.onUnload = function () { this.clip.ad.unloadMovie(); this.clip.ad.removeMovieClip(); this.clip.removeMovieClip(); this.mask.removeMovieClip(); this.background.removeMovieClip(); com.newgrounds.API.removeEventListener(com.newgrounds.APIEvent.ADS_APPROVED, this); }; ASSetPropFlags(com.newgrounds.components.FlashAd.prototype, null, 1); } #endinitclip } movieClip 20 __Packages.com.newgrounds.ValidationTools { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.ValidationTools) { var v1 = function () {}; com.newgrounds.ValidationTools = v1; var v2 = v1.prototype; v1.isNumber = function (v) { if (typeof v == 'number') { return true; return false; } if (typeof v == 'string' and (Number(v)).toString() == v) { return true; } return false; }; v1.isInteger = function (v) { if (com.newgrounds.ValidationTools.isNumber(v)) { v = Number(v); return Math.floor(v) == v; } return false; }; v1.isFloat = function (v) { return com.newgrounds.ValidationTools.isNumber(v); }; v1.isString = function (v) { if (typeof v == 'string' or typeof v == 'number') { return true; } return false; }; v1.isEmpty = function (o) { for (var v2 in o) { return false; } return true; }; ASSetPropFlags(com.newgrounds.ValidationTools.prototype, null, 1); } #endinitclip } movieClip 25 __Packages.com.newgrounds.encoders.SerialXML { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.SerialXML) { var v1 = function () {}; com.newgrounds.encoders.SerialXML = v1; var v2 = v1.prototype; v1.decode = function (xml) { if (!(xml instanceof XML)) { xml = new XML(xml); } var v2 = com.newgrounds.encoders.SerialXML.populateObject(xml.firstChild, {}); return v2.DATA; }; v1.encode = function (obj) { var v1 = new XML(); com.newgrounds.encoders.SerialXML.populateXML(v1, obj, 'DATA'); return v1; }; v1.populateObject = function (child, object) { var v6 = child.nodeName; var v5 = com.newgrounds.encoders.SerialXML.getValue(v6, child.attributes.v); var v4 = child.attributes.n; if (object instanceof Array) { v4 = object.length; object.push(v5); } else { object[v4] = v5; } if (child.hasChildNodes()) { var v1 = 0; while (v1 < child.childNodes.length) { com.newgrounds.encoders.SerialXML.populateObject(child.childNodes[v1], object[v4]); ++v1; } } return object; }; v1.populateXML = function (child, obj, name) { if (obj === undefined) { return undefined; } var v5 = new XML(); var v2; if (obj instanceof Array) { v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj)); if (name) { v2.attributes.n = name; } child.appendChild(v2); var v4 = 0; while (v4 < obj.length) { com.newgrounds.encoders.SerialXML.populateXML(v2, obj[v4]); ++v4; } } else { if (typeof obj == 'object') { v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj)); if (name) { v2.attributes.n = name; } child.appendChild(v2); for (var v4 in obj) { com.newgrounds.encoders.SerialXML.populateXML(v2, obj[v4], v4); } } else { v2 = v5.createElement(com.newgrounds.encoders.SerialXML.getType(obj)); if (name) { v2.attributes.n = name; } if ((com.newgrounds.encoders.SerialXML.getType(obj)).length == 1) { v2.attributes.v = obj; } child.appendChild(v2); } } }; v1.getValue = function (type, stringval) { switch (type.toUpperCase()) { case 'O': return new Object(); break; case 'A': return new Array(); break; case 'N': return Number(stringval); break; case 'S': return String(stringval); break; case 'TRUE': return true; break; case 'FALSE': return false; break; default: return null; } }; v1.getType = function (obj) { switch (obj instanceof Array ? 'array' : typeof obj) { case 'array': return 'A'; break; case 'object': return 'O'; break; case 'string': return 'S'; break; case 'number': return 'N'; case 'boolean': return (obj === true) ? 'TRUE' : 'FALSE'; break; default: return 'NULL'; } }; ASSetPropFlags(com.newgrounds.encoders.SerialXML.prototype, null, 1); } #endinitclip } movieClip 26 __Packages.com.newgrounds.encoders.LZW2 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.LZW2) { var v1 = function () {}; com.newgrounds.encoders.LZW2 = v1; var v2 = v1.prototype; v1.doCompressorConfig = function () { com.newgrounds.encoders.LZW2.comp_dict = []; var v1 = 0; while (v1 < 256) { com.newgrounds.encoders.LZW2.comp_dict[String.fromCharCode(v1)] = v1; ++v1; } com.newgrounds.encoders.LZW2.comp_dict.< = 256; com.newgrounds.encoders.LZW2.comp_dict.> = 257; com.newgrounds.encoders.LZW2.comp_dict.& = 258; com.newgrounds.encoders.LZW2.comp_dict." = 259; com.newgrounds.encoders.LZW2.comp_dict.\' = 260; com.newgrounds.encoders.LZW2.pos = 0; com.newgrounds.encoders.LZW2.result = ''; com.newgrounds.encoders.LZW2.buffer = ''; com.newgrounds.encoders.LZW2.nbChar = 256 + com.newgrounds.encoders.LZW2.skipnum; }; v1.compress = function (string, callback, callback_params) { com.newgrounds.encoders.LZW2.doCompressorConfig(); if (com.newgrounds.encoders.LZW2.busy) { trace('[LZW COMPRESSOR] :: Compression can not begin until previous compression or decompression is complete!'); return undefined; } com.newgrounds.encoders.LZW2.splitStr = string.split(''); string = ''; com.newgrounds.encoders.LZW2.len = com.newgrounds.encoders.LZW2.splitStr.length; com.newgrounds.encoders.LZW2.local = {'delay': 30, 'callback': callback, 'callback_params': callback_params, 'compress_chunk': function () { com.newgrounds.encoders.LZW2.compress_chunk(); }, 'busy': false, 'complete': false}; com.newgrounds.encoders.LZW2.interval = setInterval(com.newgrounds.encoders.LZW2.local, 'compress_chunk', 5); }; v1.getProgress = function () { return Math.round((com.newgrounds.encoders.LZW2.pos / com.newgrounds.encoders.LZW2.len) * 100); }; v1.compress_chunk = function () { if (com.newgrounds.encoders.LZW2.local.delay > 0) { --com.newgrounds.encoders.LZW2.local.delay; } else { if (!com.newgrounds.encoders.LZW2.local.busy) { com.newgrounds.encoders.LZW2.local.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.LZW2.max_chunk_length) { com.newgrounds.encoders.LZW2.encode_next(); if (com.newgrounds.encoders.LZW2.local.complete) { break; } ++v1; } com.newgrounds.encoders.LZW2.local.busy = false; } } if (com.newgrounds.encoders.LZW2.local.complete) { trace('LZW2 complete ' + com.newgrounds.encoders.LZW2.nbChar + ' ' + com.newgrounds.encoders.LZW2.comp_dict.length + ' ' + com.newgrounds.encoders.LZW2.len + ' ' + com.newgrounds.encoders.LZW2.pos + ' ' + com.newgrounds.encoders.LZW2.skipnum); clearInterval(com.newgrounds.encoders.LZW2.interval); com.newgrounds.encoders.LZW2.local.callback(com.newgrounds.encoders.LZW2.result, com.newgrounds.encoders.LZW2.local.callback_params); com.newgrounds.encoders.LZW2.result = ''; com.newgrounds.encoders.LZW2.buffer = ''; } }; v1.encode_next = function () { if (com.newgrounds.encoders.LZW2.pos <= com.newgrounds.encoders.LZW2.len) { var v1 = com.newgrounds.encoders.LZW2.splitStr[com.newgrounds.encoders.LZW2.pos]; if (com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer + v1] !== undefined) { com.newgrounds.encoders.LZW2.buffer += v1; } else { com.newgrounds.encoders.LZW2.result += String.fromCharCode(com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer]); com.newgrounds.encoders.LZW2.comp_dict[com.newgrounds.encoders.LZW2.buffer + v1] = com.newgrounds.encoders.LZW2.nbChar; ++com.newgrounds.encoders.LZW2.nbChar; com.newgrounds.encoders.LZW2.buffer = v1; } ++com.newgrounds.encoders.LZW2.pos; } else { com.newgrounds.encoders.LZW2.local.complete = true; return undefined; } }; v1.comp_config = false; v1.skipnum = 5; v1.busy = false; v1.max_chunk_length = 12000; ASSetPropFlags(com.newgrounds.encoders.LZW2.prototype, null, 1); } #endinitclip } movieClip 27 __Packages.com.newgrounds.encoders.LZW { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.LZW) { var v1 = function () {}; com.newgrounds.encoders.LZW = v1; var v2 = v1.prototype; v1.setXMLSafe = function (x) { com.newgrounds.encoders.LZW.xmlsafe = x; }; v1.compress = function (str, escape_chars) { var v2 = new Array(); var v11 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0; var v5 = 0; while (v5 < 256) { v2[String.fromCharCode(v5)] = v5; ++v5; } if (com.newgrounds.encoders.LZW.xmlsafe) { v2.< = 256; v2.> = 257; v2.& = 258; v2." = 259; v2.\' = 260; } var v7 = ''; var v8 = str.split(''); var v9 = v8.length; var v6 = 256 + v11; var v1 = ''; var v4; v5 = 0; while (v5 <= v9) { var v3 = v8[v5]; if (v2[v1 + v3] !== undefined) { v1 += v3; } else { v4 = String.fromCharCode(v2[v1]); if (escape_chars and (v2[v1] < 33 or v2[v1] > 126 or v4 == '%')) { v4 = escape(v4); } v7 += v4; v2[v1 + v3] = v6; ++v6; v1 = v3; } ++v5; } return v7; }; v1.decompress = function (str) { var v4 = new Array(); var v10 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0; var v6 = 0; while (v6 < 256) { var v9 = String.fromCharCode(v6); v4[v6] = v9; ++v6; } if (com.newgrounds.encoders.LZW.xmlsafe) { v4[256] = '<'; v4[257] = '>'; v4[258] = '&'; v4[259] = '"'; v4[260] = '\''; } var v11 = str; var v13 = v11.split(''); var v12 = v13.length; var v7 = 256 + v10; var v1 = ''; var v2 = ''; var v8 = ''; v6 = 0; while (v6 < v12) { var v5 = v11.charCodeAt(v6); var v3 = v4[v5]; if (v1 == '') { v1 = v3; v8 += v3; } else { if (v5 <= 255 + v10) { v8 += v3; v2 = v1 + v3; v4[v7] = v2; ++v7; v1 = v3; } else { v2 = v4[v5]; if (v2 == undefined) { v2 = v1 + v1.slice(0, 1); } v8 += v2; v4[v7] = v1 + v2.slice(0, 1); ++v7; v1 = v2; } } ++v6; } return v8; }; v1.compress_fp6 = function (str) { var v3 = new Array(); var v10 = com.newgrounds.encoders.LZW.xmlsafe ? 5 : 0; var v4 = 0; while (v4 < 256) { v3[String(v4)] = v4; ++v4; } if (com.newgrounds.encoders.LZW.xmlsafe) { var v14 = String((new String('<')).charCodeAt(0)); var v11 = String((new String('>')).charCodeAt(0)); var v13 = String((new String('&')).charCodeAt(0)); var v15 = String((new String('"')).charCodeAt(0)); var v12 = String((new String('\'')).charCodeAt(0)); v3[v14] = 256; v3[v11] = 257; v3[v13] = 258; v3[v15] = 259; v3[v12] = 260; } var v7 = ''; var v16 = str; var v8 = v16.split(''); var v9 = v8.length; var v6 = 256 + v10; var v1 = new Array(); v4 = 0; while (v4 <= v9) { var v2 = v8[v4]; if (v1.length == 0) { var v5 = String(v2.charCodeAt(0)); } else { var v5 = v1.join('-') + '-' + String(v2.charCodeAt(0)); } if (v3[v5] !== undefined) { v1.push(v2.charCodeAt(0)); } else { v7 += String.fromCharCode(v3[v1.join('-')]); v3[v5] = v6; ++v6; false; v1 = new Array(); v1.push(v2.charCodeAt(0)); } ++v4; } return v7; }; v1.xmlsafe = false; ASSetPropFlags(com.newgrounds.encoders.LZW.prototype, null, 1); } #endinitclip } movieClip 30 __Packages.com.newgrounds.ScoreBoard { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.ScoreBoard) { var v1 = function (id, name, tag) { this._name = name; this._id = id; if (tag !== undefined) { this._tag = tag; } }; com.newgrounds.ScoreBoard = v1; var v2 = v1.prototype; v2.exists = function () { return Number(this._id) > 0; }; v2.__get__id = function () { return this._id; }; v2.__get__name = function () { return this._name; }; v2.__get__period = function () { return this._period; }; v2.__get__tag = function () { return this._tag; }; v2.__get__page = function () { return this._page; }; v2.__get__num_results = function () { return this._num_results; }; v2.__get__scores = function () { return this._scores; }; v2.postScore = function (value, tag) { if (tag !== undefined) { this._tag = tag; } com.newgrounds.API.postScore(this._name, value, this._tag); }; v2.loadScores = function (period, page, num_results, tag) { if (period) { this._period = period; } if (page) { this._page = page; } if (num_results) { this._num_results = num_results; } this._scores = []; com.newgrounds.API.loadScores(this._name, this._period, tag); }; v2.setScores = function (scores, period, page, num_results) { if (period) { this._period = period; } if (page) { this._page = page; } if (num_results) { this._num_results = num_results; } this._scores = []; var v2 = 0; while (v2 < scores.length) { var v4 = this._num_results * (this._page - 1) + 1 + v2; this._scores.push(new com.newgrounds.Score(this, v4, scores[v2].username, scores[v2].value, scores[v2].numeric_value)); ++v2; } }; v2._period = 'Today'; v2._num_results = 10; v2._page = 1; v2._tag = ''; v2.addProperty('id', v2.__get__id, function () {}); v2.addProperty('name', v2.__get__name, function () {}); v2.addProperty('num_results', v2.__get__num_results, function () {}); v2.addProperty('page', v2.__get__page, function () {}); v2.addProperty('period', v2.__get__period, function () {}); v2.addProperty('scores', v2.__get__scores, function () {}); v2.addProperty('tag', v2.__get__tag, function () {}); ASSetPropFlags(com.newgrounds.ScoreBoard.prototype, null, 1); } #endinitclip } movieClip 31 __Packages.com.newgrounds.Score { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.Score) { var v1 = function (board, position, username, value, numeric_value) { this._board = board; this._position = position; this._username = username; this._value = value; this._numeric_value = numeric_value; }; com.newgrounds.Score = v1; var v2 = v1.prototype; v2.__get__board = function () { return this._board; }; v2.__get__position = function () { return this._position; }; v2.__get__username = function () { return this._username; }; v2.__get__value = function () { return this._value; }; v2.__get__numeric_value = function () { return this._numeric_value; }; v1.fromTime = function (time) { var v1 = time.split(':'); var v2 = Math.round(Number(v1.pop()) * 1000); if (v1.length > 0) { v2 += Number(v1.pop()) * 60; } if (v1.length > 0) { v2 += Number(v1.pop()) * 3600; } return v2; }; v1.fromDistance = function (distance) { var v1 = distance.indexOf('\''); var v5 = distance.indexOf('"', v1); var v3 = Number(distance.substr(0, v1)); var v4 = Number(distance.substring(v1 + 1, v5)); return Math.round(v3 * 12 + v4); }; v2.addProperty('board', v2.__get__board, function () {}); v2.addProperty('numeric_value', v2.__get__numeric_value, function () {}); v2.addProperty('position', v2.__get__position, function () {}); v2.addProperty('username', v2.__get__username, function () {}); v2.addProperty('value', v2.__get__value, function () {}); ASSetPropFlags(com.newgrounds.Score.prototype, null, 1); } #endinitclip } movieClip 32 __Packages.com.newgrounds.encoders.RC4 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.RC4) { var v1 = function () {}; com.newgrounds.encoders.RC4 = v1; var v2 = v1.prototype; v1.encrypt = function (src, key) { var v3 = com.newgrounds.encoders.RC4.strToChars(src); var v1 = com.newgrounds.encoders.RC4.strToChars(key); var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1); return com.newgrounds.encoders.RC4.charsToHex(v2); }; v1.encryptbin = function (src, key) { var v3 = com.newgrounds.encoders.RC4.strToChars(src); var v1 = com.newgrounds.encoders.RC4.strToChars(key); var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1); return v2; }; v1.decrypt = function (src, key) { var v3 = com.newgrounds.encoders.RC4.hexToChars(src); var v1 = com.newgrounds.encoders.RC4.strToChars(key); var v2 = com.newgrounds.encoders.RC4.calculate(v3, v1); return com.newgrounds.encoders.RC4.charsToStr(v2); }; v1.initialize = function (pwd) { var v2 = 0; var v3; var v4 = pwd.length; var v1 = 0; while (v1 <= 255) { com.newgrounds.encoders.RC4.mykey[v1] = pwd[v1 % v4]; com.newgrounds.encoders.RC4.sbox[v1] = v1; ++v1; } v1 = 0; while (v1 <= 255) { v2 = (v2 + com.newgrounds.encoders.RC4.sbox[v1] + com.newgrounds.encoders.RC4.mykey[v1]) % 256; v3 = com.newgrounds.encoders.RC4.sbox[v1]; com.newgrounds.encoders.RC4.sbox[v1] = com.newgrounds.encoders.RC4.sbox[v2]; com.newgrounds.encoders.RC4.sbox[v2] = v3; ++v1; } }; v1.calculate = function (plaintxt, psw) { com.newgrounds.encoders.RC4.initialize(psw); var v1 = 0; var v2 = 0; var v9 = new Array(); var v7; var v5; var v6; var v3 = 0; while (v3 < plaintxt.length) { v1 = (v1 + 1) % 256; v2 = (v2 + com.newgrounds.encoders.RC4.sbox[v1]) % 256; v5 = com.newgrounds.encoders.RC4.sbox[v1]; com.newgrounds.encoders.RC4.sbox[v1] = com.newgrounds.encoders.RC4.sbox[v2]; com.newgrounds.encoders.RC4.sbox[v2] = v5; var v4 = (com.newgrounds.encoders.RC4.sbox[v1] + com.newgrounds.encoders.RC4.sbox[v2]) % 256; v7 = com.newgrounds.encoders.RC4.sbox[v4]; v6 = plaintxt[v3] ^ v7; v9.push(v6); ++v3; } return v9; }; v1.charsToHex = function (chars) { var v4 = new String(''); var v3 = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); var v1 = 0; while (v1 < chars.length) { v4 += v3[chars[v1] >> 4] + v3[chars[v1] & 15]; ++v1; } return v4; }; v1.hexToChars = function (hex) { var v3 = new Array(); var v1 = (hex.substr(0, 2) == '0x') ? 2 : 0; while (v1 < hex.length) { v3.push(parseInt(hex.substr(v1, 2), 16)); v1 += 2; } return v3; }; v1.charsToStr = function (chars) { var v3 = new String(''); var v1 = 0; while (v1 < chars.length) { v3 += String.fromCharCode(chars[v1]); ++v1; } return v3; }; v1.strToChars = function (str) { var v3 = new Array(); var v1 = 0; while (v1 < str.length) { v3.push(str.charCodeAt(v1)); ++v1; } return v3; }; v1.sbox = new Array(255); v1.mykey = new Array(255); ASSetPropFlags(com.newgrounds.encoders.RC4.prototype, null, 1); } #endinitclip } movieClip 33 __Packages.com.newgrounds.encoders.JSON { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.JSON) { var v1 = function () {}; com.newgrounds.encoders.JSON = v1; var v2 = v1.prototype; v1.encode = function (arg, noquotes) { var v3; var v2; var v6; var v1 = ''; var v4; if (arg.isSServerVar()) { var v8 = 'sservervariable'; } else { var v8 = typeof arg; } switch (v8) { return 'null'; case 'sservervariable': return '?' + arg.getEncodedValue(); break; case 'object': if (arg) { if (arg instanceof Array) { v2 = 0; while (v2 < arg.length) { v4 = com.newgrounds.encoders.JSON.encode(arg[v2]); if (v1) { v1 += ','; } v1 += v4; ++v2; } return '[' + v1 + ']'; } else { if (typeof arg.toString != 'undefined') { for (v2 in arg) { v4 = arg[v2]; if (typeof v4 != 'undefined' && typeof v4 != 'function') { v4 = com.newgrounds.encoders.JSON.encode(v4); if (v1) { v1 += ','; } v1 += com.newgrounds.encoders.JSON.encode(v2) + ':' + v4; } } return '{' + v1 + '}'; } } } return 'null'; case 'number': return isFinite(arg) ? String(arg) : 'null'; case 'string': v6 = arg.length; if (noquotes) { var v7 = ''; } else { var v7 = '"'; } v1 = v7; v2 = 0; while (v2 < v6) { v3 = arg.charAt(v2); if (v3 >= ' ') { if (v3 == '\\' || v3 == '"') { v1 += '\\'; } v1 += v3; } else { switch (v3) { case '\b': v1 += '\\b'; break; case '\f': v1 += '\\f'; break; case '\n': v1 += '\\n'; break; case '\r': v1 += '\\r'; break; case '\t': v1 += '\\t'; break; default: v3 = v3.charCodeAt(); v1 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16); } } v2 += 1; } return v1 + v7; case 'boolean': return String(arg); default: return 'null'; } }; v1.background_encode = function (arg, callback) { if (com.newgrounds.encoders.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping encode'); return false; } } com.newgrounds.encoders.JSON.busy = true; var v2 = new Date(); com.newgrounds.encoders.JSON.start = v2.getTime(); com.newgrounds.encoders.JSON.cache = {'busy': false, 'complete': false, 'arg': arg, 'target': arg, 'parents': [], 'encoded': '', 'callback': callback, 'encode_chunk': function () { com.newgrounds.encoders.JSON.encode_chunk(); }}; if (com.newgrounds.encoders.JSON.getType(arg) == 'object') { com.newgrounds.encoders.JSON.cache.encoded = '{'; com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'encode_chunk', 25); return true; } if (com.newgrounds.encoders.JSON.getType(arg) == 'array') { com.newgrounds.encoders.JSON.cache.encoded = '['; } com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'encode_chunk', 25); return true; }; v1.background_decode = function (arg, callback) { if (com.newgrounds.encoders.JSON.busy) { trace('[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed'); return false; } else { if (!callback) { trace('[Newgrounds Encoder] :: Missing a callback function, skipping decode'); return false; } } com.newgrounds.encoders.JSON.busy = true; var v1 = new Date(); com.newgrounds.encoders.JSON.start = v1.getTime(); com.newgrounds.encoders.JSON.cache = {'busy': false, 'callback': callback, 'complete': false, 'arg': arg, 'pos': 0, 'parents': ['root'], 'target': null, 'scratch': '', 'decode_chunk': function () { com.newgrounds.encoders.JSON.decode_chunk(); }}; com.newgrounds.encoders.JSON.interval = setInterval(com.newgrounds.encoders.JSON.cache, 'decode_chunk', 25); return true; }; v1.decode = function (text) { var at = 0; var ch = ' '; var _value; var _error = function (m) { throw {'name': 'JSONError', 'message': m, 'at': at - 1, 'text': text}; }; var _next = function () { ch = text.charAt(at); at += 1; return ch; }; var _white = function () { while (ch) { if (ch <= ' ') { _next(); } else { if (ch == '/') { switch (_next()) { case '/': for (;;) { if (!(_next() && ch != '\n' && ch != '\r')) break; } break; case '*': _next(); for (;;) { if (ch) { if (ch == '*') { if (_next() == '/') { _next(); break; } } else { _next(); } continue; } _error('Unterminated comment'); } break; default: _error('Syntax error'); } } else { break; } } } }; var _string = function () { var v4; var v1 = ''; var v3; var v2; var v5 = false; if (ch == '"') { while (_next()) { if (ch == '"') { _next(); return v1; } else { if (ch == '\\') { switch (_next()) { case 'b': v1 += '\b'; break; case 'f': v1 += '\f'; break; case 'n': v1 += '\n'; break; case 'r': v1 += '\r'; break; case 't': v1 += '\t'; break; case 'u': v2 = 0; v4 = 0; while (v4 < 4) { v3 = parseInt(_next(), 16); if (!isFinite(v3)) { v5 = true; break; } v2 = v2 * 16 + v3; v4 += 1; } if (v5) { v5 = false; } else { v1 += String.fromCharCode(v2); break; default: v1 += ch; } } } else { v1 += ch; } } } } _error('Bad string'); }; var _array = function () { var v1 = []; if (ch == '[') { _next(); _white(); if (ch == ']') { _next(); return v1; } while (ch) { v1.push(_value()); _white(); if (ch == ']') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad array'); }; var _object = function () { var v2; var v1 = {}; if (ch == '{') { _next(); _white(); if (ch == '}') { _next(); return v1; } while (ch) { v2 = _string(); _white(); if (ch != ':') { break; } _next(); v1[v2] = _value(); _white(); if (ch == '}') { _next(); return v1; } else { if (ch != ',') { break; } } _next(); _white(); } } _error('Bad object'); }; var _number = function () { var v1 = ''; var v2; if (ch == '-') { v1 = '-'; _next(); } for (;;) { if (!(ch >= '0' && ch <= '9')) break; v1 += ch; _next(); } if (ch == '.') { v1 += '.'; for (;;) { if (!(_next() && ch >= '0' && ch <= '9')) break; v1 += ch; } } v2 = 1 * v1; if (!isFinite(v2)) { _error('Bad number'); } else { return v2; } }; var _word = function () { switch (ch) { case 't': if (_next() == 'r' && _next() == 'u' && _next() == 'e') { _next(); return true; } break; case 'f': if (_next() == 'a' && _next() == 'l' && _next() == 's' && _next() == 'e') { _next(); return false; } break; case 'n': if (_next() == 'u' && _next() == 'l' && _next() == 'l') { _next(); return null; } } _error('Syntax error'); }; _value = function () { _white(); switch (ch) { case '{': return _object(); case '[': return _array(); case '"': return _string(); case '-': return _number(); } return (ch >= '0' && ch <= '9') ? _number() : _word(); }; return _value(); }; v1.getType = function (v) { if (v instanceof Array) { return 'array'; } else { return typeof v; } }; v1.decode_chunk = function () { if (!com.newgrounds.encoders.JSON.cache.busy && !com.newgrounds.encoders.JSON.cache.complete) { com.newgrounds.encoders.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.decode_chunks) { com.newgrounds.encoders.JSON.chunk_decoder(); if (com.newgrounds.encoders.JSON.cache.complete) { break; } ++v1; } trace(Math.round((com.newgrounds.encoders.JSON.cache.pos / com.newgrounds.encoders.JSON.cache.arg.length) * 100) + '% decoded'); com.newgrounds.encoders.JSON.cache.busy = false; } if (com.newgrounds.encoders.JSON.cache.complete) { var v2 = new Date(); com.newgrounds.encoders.JSON.busy = false; clearInterval(com.newgrounds.encoders.JSON.interval); com.newgrounds.encoders.JSON.cache.callback(com.newgrounds.encoders.JSON.cache.root, v2.getTime() - com.newgrounds.encoders.JSON.start); com.newgrounds.encoders.JSON.cache.arg = ''; } }; v1.encode_chunk = function () { if (!com.newgrounds.encoders.JSON.cache.busy && !com.newgrounds.encoders.JSON.cache.complete) { com.newgrounds.encoders.JSON.cache.busy = true; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.encode_chunks) { com.newgrounds.encoders.JSON.chunk_encoder(); if (com.newgrounds.encoders.JSON.cache.complete) { break; } ++v1; } com.newgrounds.encoders.JSON.cache.busy = false; } if (com.newgrounds.encoders.JSON.cache.complete) { var v3 = new Date(); var v2 = v3.getTime(); com.newgrounds.encoders.JSON.busy = false; clearInterval(com.newgrounds.encoders.JSON.interval); com.newgrounds.encoders.JSON.cache.callback(com.newgrounds.encoders.JSON.cache.encoded, v2 - com.newgrounds.encoders.JSON.start); com.newgrounds.encoders.JSON.cache.encoded = ''; } }; v1.chunk_decoder = function () { function _object() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (!com.newgrounds.encoders.JSON.cache.mode) { com.newgrounds.encoders.JSON.cache.mode = 'object'; ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.JSON.cache.scratch = ''; _setTargetValue({}); } else { if (v1 == ',') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 != '"') { throw 'Malformed object key in encoded string. Keys must be wrapped in quotes ("")'; } com.newgrounds.encoders.JSON.cache.scratch = ''; } else { if (v1 == '}') { _useParent(); } else { if (v1 == '"') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 != ':') { throw 'Malformed object notation. Object keys and values must be separated by colons(:)'; } _addParent(com.newgrounds.encoders.JSON.cache.scratch); com.newgrounds.encoders.JSON.cache.mode = null; } else { if (v1 == '\\') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); } com.newgrounds.encoders.JSON.cache.scratch += v1; } } } } ++com.newgrounds.encoders.JSON.cache.pos; } function _array() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (!com.newgrounds.encoders.JSON.cache.mode) { com.newgrounds.encoders.JSON.cache.mode = 'array'; ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); _setTargetValue([]); if (v1 != ']') { _addArrayKey(); } else { _useParent(); } return undefined; } else { if (v1 == ',') { _addArrayKey(); } else { if (v1 == ']') { _useParent(); } } } ++com.newgrounds.encoders.JSON.cache.pos; } function _boolean() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 == 't') { _setTargetValue(true); com.newgrounds.encoders.JSON.cache.pos += 3; } else { if (v1 == 'f') { _setTargetValue(false); com.newgrounds.encoders.JSON.cache.pos += 4; } else { throw 'Bool values must be true or false'; } } _useParent(); } function _null() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (v1 == 'n') { _setTargetValue(null); com.newgrounds.encoders.JSON.cache.pos += 2; } else { throw 'Null values must be null'; } _useParent(); } function _string() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); if (!com.newgrounds.encoders.JSON.cache.mode) { if (v1 != '"') { throw 'Strings must be wrapped in quotes ("")'; } com.newgrounds.encoders.JSON.cache.scratch = ''; com.newgrounds.encoders.JSON.cache.mode = 'string'; } else { if (v1 == '"') { _setTargetValue(com.newgrounds.encoders.JSON.cache.scratch); _useParent(); } else { if (v1 == '\\') { ++com.newgrounds.encoders.JSON.cache.pos; v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); switch (v1) { case 'n': v1 = '\n'; break; case 'r': v1 = '\n'; break; case 't': v1 = '\t'; break; case 'u': v1 = '\\' + v1; } } com.newgrounds.encoders.JSON.cache.scratch += v1; } } ++com.newgrounds.encoders.JSON.cache.pos; } function _number() { var v1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); var v2 = '01234567890.-'; if (!com.newgrounds.encoders.JSON.cache.mode) { com.newgrounds.encoders.JSON.cache.mode = 'number'; com.newgrounds.encoders.JSON.cache.scratch = ''; } if (v2.indexOf(v1) < 0) { _setTargetValue(Number(com.newgrounds.encoders.JSON.cache.scratch)); _useParent(); } else { com.newgrounds.encoders.JSON.cache.scratch += v1; ++com.newgrounds.encoders.JSON.cache.pos; } } function _setTargetValue(newval) { var v2 = (_getParent()).obj; var v1 = com.newgrounds.encoders.JSON.cache.parents[com.newgrounds.encoders.JSON.cache.parents.length - 1]; v2[v1] = newval; } function _useParent() { com.newgrounds.encoders.JSON.cache.mode = com.newgrounds.encoders.JSON.getType((_getParent()).obj); com.newgrounds.encoders.JSON.cache.parents.pop(); } function _getParent() { var v2 = com.newgrounds.encoders.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.cache.parents.length - 1) { v2 = v2[com.newgrounds.encoders.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.JSON.cache.parents[v1]}; } function _getCurrent() { var v2 = com.newgrounds.encoders.JSON.cache; var v1 = 0; while (v1 < com.newgrounds.encoders.JSON.cache.parents.length) { v2 = v2[com.newgrounds.encoders.JSON.cache.parents[v1]]; ++v1; } return {'obj': v2, 'name': com.newgrounds.encoders.JSON.cache.parents[v1]}; } function _addParent(child) { com.newgrounds.encoders.JSON.cache.parents.push(child); } function _addArrayKey() { var v1 = (_getCurrent()).obj.length; com.newgrounds.encoders.JSON.cache.parents.push(v1); com.newgrounds.encoders.JSON.cache.mode = null; } if (com.newgrounds.encoders.JSON.cache.pos >= com.newgrounds.encoders.JSON.cache.arg.length) { com.newgrounds.encoders.JSON.cache.complete = true; return undefined; } else { if (com.newgrounds.encoders.JSON.cache.mode) { ('_' + com.newgrounds.encoders.JSON.cache.mode)(); } else { var char = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos); switch (char) { case '{': _object(); break; case '[': _array(); break; case '"': _string(); break; case 'n': _null(); break; case 't': _boolean(); break; case 'f': _boolean(); break; default: _number(); } } } }; v1.chunk_encoder = function () { if (com.newgrounds.encoders.JSON.cache.complete) { return undefined; } var v2 = com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target); switch (v2) { case 'number': com.newgrounds.encoders.JSON.cache.encoded += com.newgrounds.encoders.JSON.cache.target; com.newgrounds.encoders.JSON.getParent(); break; case 'string': com.newgrounds.encoders.JSON.cache.encoded += '"' + (com.newgrounds.encoders.JSON.cache.target.split('"')).join('\\"') + '"'; com.newgrounds.encoders.JSON.getParent(); break; case 'boolean': com.newgrounds.encoders.JSON.cache.encoded += (com.newgrounds.encoders.JSON.cache.target == true) ? 'true' : 'false'; com.newgrounds.encoders.JSON.getParent(); break; case 'null': com.newgrounds.encoders.JSON.cache.encoded += 'null'; com.newgrounds.encoders.JSON.getParent(); break; case 'array': if (com.newgrounds.encoders.JSON.cache.target.length < 1) { com.newgrounds.encoders.JSON.cache.encoded += ']'; com.newgrounds.encoders.JSON.getParent(); } else { com.newgrounds.encoders.JSON.cache.parents.push(com.newgrounds.encoders.JSON.cache.target); com.newgrounds.encoders.JSON.cache.target = com.newgrounds.encoders.JSON.cache.target[0]; if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'array') { com.newgrounds.encoders.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'object') { com.newgrounds.encoders.JSON.cache.encoded += '{'; } } } break; case 'object': for (var v1 in com.newgrounds.encoders.JSON.cache.target) { break; } if (v1 === undefined) { com.newgrounds.encoders.JSON.cache.encoded += '}'; com.newgrounds.encoders.JSON.getParent(); } else { com.newgrounds.encoders.JSON.cache.parents.push(com.newgrounds.encoders.JSON.cache.target); com.newgrounds.encoders.JSON.cache.target = com.newgrounds.encoders.JSON.cache.target[v1]; com.newgrounds.encoders.JSON.cache.encoded += '"' + (v1.split('"')).join('\\"') + '":'; if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'array') { com.newgrounds.encoders.JSON.cache.encoded += '['; } else { if (com.newgrounds.encoders.JSON.getType(com.newgrounds.encoders.JSON.cache.target) == 'object') { com.newgrounds.encoders.JSON.cache.encoded += '{'; } } } break; default: com.newgrounds.encoders.JSON.cache.encoded += 'null'; com.newgrounds.encoders.JSON.getParent(); } }; v1.getParent = function () { if (com.newgrounds.encoders.JSON.cache.parents.length > 0) { var v1 = com.newgrounds.encoders.JSON.cache.parents.pop(); if (com.newgrounds.encoders.JSON.getType(v1) == 'array') { v1.shift(); } else { for (var v3 in v1) { delete v1[v3]; break; } } if (com.newgrounds.encoders.JSON.getType(v1) == 'object' or com.newgrounds.encoders.JSON.getType(v1) == 'array') { for (var v2 in v1) { break; } if (v2 !== undefined) { com.newgrounds.encoders.JSON.cache.encoded += ','; } } com.newgrounds.encoders.JSON.cache.target = v1; } else { com.newgrounds.encoders.JSON.cache.complete = true; } }; v1.encode_chunks = 20000; v1.decode_chunks = 20000; v1.busy = false; ASSetPropFlags(com.newgrounds.encoders.JSON.prototype, null, 1); } #endinitclip } movieClip 35 __Packages.com.newgrounds.encoders.MD5 { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.encoders) { _global.com.newgrounds.encoders = new Object(); } if (!_global.com.newgrounds.encoders.MD5) { var v1 = function () {}; com.newgrounds.encoders.MD5 = v1; var v2 = v1.prototype; v1.calculate = function (src) { return com.newgrounds.encoders.MD5.hex_md5(src); }; v1.hex_md5 = function (src) { return com.newgrounds.encoders.MD5.binl2hex(com.newgrounds.encoders.MD5.core_md5(com.newgrounds.encoders.MD5.str2binl(src), src.length * 8)); }; v1.core_md5 = function (x, len) { x[len >> 5] |= 128 << len % 32; x[(len + 64 >>> 9 << 4) + 14] = len; var v4 = 1732584193; var v3 = -271733879; var v2 = -1732584194; var v1 = 271733878; var v5 = 0; while (v5 < x.length) { var v10 = v4; var v9 = v3; var v8 = v2; var v7 = v1; v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 0], 7, -680876936); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 1], 12, -389564586); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 2], 17, 606105819); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 3], 22, -1044525330); v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 4], 7, -176418897); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 5], 12, 1200080426); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 6], 17, -1473231341); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 7], 22, -45705983); v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 8], 7, 1770035416); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 9], 12, -1958414417); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 10], 17, -42063); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 11], 22, -1990404162); v4 = com.newgrounds.encoders.MD5.md5_ff(v4, v3, v2, v1, x[v5 + 12], 7, 1804603682); v1 = com.newgrounds.encoders.MD5.md5_ff(v1, v4, v3, v2, x[v5 + 13], 12, -40341101); v2 = com.newgrounds.encoders.MD5.md5_ff(v2, v1, v4, v3, x[v5 + 14], 17, -1502002290); v3 = com.newgrounds.encoders.MD5.md5_ff(v3, v2, v1, v4, x[v5 + 15], 22, 1236535329); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 1], 5, -165796510); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 6], 9, -1069501632); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 11], 14, 643717713); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 0], 20, -373897302); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 5], 5, -701558691); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 10], 9, 38016083); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 15], 14, -660478335); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 4], 20, -405537848); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 9], 5, 568446438); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 14], 9, -1019803690); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 3], 14, -187363961); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 8], 20, 1163531501); v4 = com.newgrounds.encoders.MD5.md5_gg(v4, v3, v2, v1, x[v5 + 13], 5, -1444681467); v1 = com.newgrounds.encoders.MD5.md5_gg(v1, v4, v3, v2, x[v5 + 2], 9, -51403784); v2 = com.newgrounds.encoders.MD5.md5_gg(v2, v1, v4, v3, x[v5 + 7], 14, 1735328473); v3 = com.newgrounds.encoders.MD5.md5_gg(v3, v2, v1, v4, x[v5 + 12], 20, -1926607734); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 5], 4, -378558); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 8], 11, -2022574463); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 11], 16, 1839030562); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 14], 23, -35309556); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 1], 4, -1530992060); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 4], 11, 1272893353); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 7], 16, -155497632); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 10], 23, -1094730640); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 13], 4, 681279174); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 0], 11, -358537222); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 3], 16, -722521979); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 6], 23, 76029189); v4 = com.newgrounds.encoders.MD5.md5_hh(v4, v3, v2, v1, x[v5 + 9], 4, -640364487); v1 = com.newgrounds.encoders.MD5.md5_hh(v1, v4, v3, v2, x[v5 + 12], 11, -421815835); v2 = com.newgrounds.encoders.MD5.md5_hh(v2, v1, v4, v3, x[v5 + 15], 16, 530742520); v3 = com.newgrounds.encoders.MD5.md5_hh(v3, v2, v1, v4, x[v5 + 2], 23, -995338651); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 0], 6, -198630844); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 7], 10, 1126891415); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 14], 15, -1416354905); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 5], 21, -57434055); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 12], 6, 1700485571); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 3], 10, -1894986606); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 10], 15, -1051523); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 1], 21, -2054922799); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 8], 6, 1873313359); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 15], 10, -30611744); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 6], 15, -1560198380); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 13], 21, 1309151649); v4 = com.newgrounds.encoders.MD5.md5_ii(v4, v3, v2, v1, x[v5 + 4], 6, -145523070); v1 = com.newgrounds.encoders.MD5.md5_ii(v1, v4, v3, v2, x[v5 + 11], 10, -1120210379); v2 = com.newgrounds.encoders.MD5.md5_ii(v2, v1, v4, v3, x[v5 + 2], 15, 718787259); v3 = com.newgrounds.encoders.MD5.md5_ii(v3, v2, v1, v4, x[v5 + 9], 21, -343485551); v4 = com.newgrounds.encoders.MD5.safe_add(v4, v10); v3 = com.newgrounds.encoders.MD5.safe_add(v3, v9); v2 = com.newgrounds.encoders.MD5.safe_add(v2, v8); v1 = com.newgrounds.encoders.MD5.safe_add(v1, v7); v5 += 16; } return new Array(v4, v3, v2, v1); }; v1.md5_cmn = function (q, a, b, x, s, t) { return com.newgrounds.encoders.MD5.safe_add(com.newgrounds.encoders.MD5.bit_rol(com.newgrounds.encoders.MD5.safe_add(com.newgrounds.encoders.MD5.safe_add(a, q), com.newgrounds.encoders.MD5.safe_add(x, t)), s), b); }; v1.md5_ff = function (a, b, c, d, x, s, t) { return com.newgrounds.encoders.MD5.md5_cmn(b & c | ~b & d, a, b, x, s, t); }; v1.md5_gg = function (a, b, c, d, x, s, t) { return com.newgrounds.encoders.MD5.md5_cmn(b & d | c & ~d, a, b, x, s, t); }; v1.md5_hh = function (a, b, c, d, x, s, t) { return com.newgrounds.encoders.MD5.md5_cmn(b ^ c ^ d, a, b, x, s, t); }; v1.md5_ii = function (a, b, c, d, x, s, t) { return com.newgrounds.encoders.MD5.md5_cmn(c ^ (b | ~d), a, b, x, s, t); }; v1.bit_rol = function (num, cnt) { return num << cnt | num >>> 32 - cnt; }; v1.safe_add = function (x, y) { var v1 = (x & 65535) + (y & 65535); var v2 = (x >> 16) + (y >> 16) + (v1 >> 16); return v2 << 16 | v1 & 65535; }; v1.str2binl = function (str) { var v3 = new Array(); var v4 = 255; var v1 = 0; while (v1 < str.length * 8) { v3[v1 >> 5] |= (str.charCodeAt(v1 / 8) & v4) << v1 % 32; v1 += 8; } return v3; }; v1.binl2hex = function (binarray) { var v4 = new String(''); var v3 = new String('0123456789abcdef'); var v1 = 0; while (v1 < binarray.length * 4) { v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15); ++v1; } return v4; }; ASSetPropFlags(com.newgrounds.encoders.MD5.prototype, null, 1); } #endinitclip } movieClip 36 __Packages.com.newgrounds.components.APIConnector { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.newgrounds) { _global.com.newgrounds = new Object(); } if (!_global.com.newgrounds.components) { _global.com.newgrounds.components = new Object(); } if (!_global.com.newgrounds.components.APIConnector) { var v1 = function () { super(); this._x = Math.round(this._x); this._y = Math.round(this._y); if (this.fake_session and com.newgrounds.API.getHost() == 'localhost') { com.newgrounds.API.setFakeSession(true); } if (this.api_id && !com.newgrounds.API.isConnected()) { this.nextFrame(); this._visible = false; this.setGotoFrame('connecting'); if (this.error_screens) { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, this.onNewVersion, this); com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.HOST_BLOCKED, this.onBadHost, this); } if (this.medal_popups) { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, this.doUnlock, this); } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, this.onConnected, this); if (com.newgrounds.API.isPublishedHost()) { this.debug = false; } if (this.version) { com.newgrounds.API.setVersion(this.version); } if (!com.newgrounds.API.hasUserSession()) { var v3 = com.newgrounds.API.loadLocal('api_connector_data'); if (v3) { this.local_data = v3; } else { this.local_data = {'medals_unlocked': new Array()}; } } com.newgrounds.API.setPreload(true); com.newgrounds.API.connect(this.api_id, this.encryption_key, this.debug); } else { if (this.api_id && com.newgrounds.API.isConnected()) { this._visible = false; this.setGotoFrame('done'); } } this.stop(); }; com.newgrounds.components.APIConnector = v1; com.newgrounds.components.APIConnector extends MovieClip; var v2 = v1.prototype; v2.doUnlock = function (e) { var v5 = _root.attachMovie('NewgroundsAPIAsset_Medal_Popup', 'medal_pop_' + e.data.medal.getID(), _root.getNextHighestDepth()); if (e.data.x != undefined) { v5._x = e.data.x + 254; } else { v5._x = Stage.width; } if (e.data.x != undefined) { v5._y = e.data.y + 73; } else { v5._y = Stage.height; } v5.medal = e.data.medal; var v3 = com.newgrounds.API.getMedals(); var v2 = 0; while (v2 < v3.length) { if (v3[v2].getID() != e.data.medal.getID() && _root['medal_pop_' + v3[v2].getID()]) { _root['medal_pop_' + v3[v2].getID()]._y -= 70; } ++v2; } }; v2.onLoginError = function () { var v2 = _root.attachMovie('Asset_Login_Warning', 'Asset_Login_Warning', _root.getNextHighestDepth()); }; v2.onConnectionError = function () { var v3 = _root.attachMovie('Asset_Connection_Error', 'Asset_Connection_Error', _root.getNextHighestDepth()); this.setGotoFrame('done'); }; v2.onConnected = function (event, params) { if (event.success) { this.setGotoFrame('connected'); if (this.error_screens && com.newgrounds.API.isPublishedHost() && com.newgrounds.API.hasPublisher() && !com.newgrounds.API.hasUserSession()) { this.onLoginError(); } } else { if (this.error_screens) { this.onConnectionError(); } } }; v2.onNewVersion = function () { var v2 = _root.attachMovie('NewgroundsAsset_New_Version_Available', 'NewgroundsAsset_New_Version_Available', _root.getNextHighestDepth()); v2.official_version_url = com.newgrounds.API.getOfficialURL(); }; v2.onBadHost = function () { var v2 = _root.attachMovie('NewgroundsAsset_Illegal_Host', 'NewgroundsAsset_Illegal_Host', _root.getNextHighestDepth()); v2.official_version_url = com.newgrounds.API.getOfficialURL(); }; v2.setGotoFrame = function (frame) { if (this.goto_frame == null) { this.goto_frame = frame; this.gotoframe_interval = setInterval(this, 'gotoFrameIfLoaded', 50); } }; v2.gotoFrameIfLoaded = function () { if (this.goto_frame != null && this._framesloaded == this._totalframes) { this._visible = true; this.gotoAndStop(this.goto_frame); this.goto_frame = null; clearInterval(this.gotoframe_interval); } }; v2.goto_frame = null; ASSetPropFlags(com.newgrounds.components.APIConnector.prototype, null, 1); } #endinitclip } frame 2 { function savegame() { myLSO = SharedObject.getLocal('BNSAAsavefile'); if (myLSO.data.myObj == undefined) { } else {} myObj = {}; myObj.objArray = new Array(); myObj.objArray[0] = _root.a1UN; myObj.objArray[1] = _root.a2UN; myObj.objArray[2] = _root.a3UN; myObj.objArray[3] = _root.a4UN; myObj.objArray[4] = _root.a5UN; myObj.objArray[5] = _root.a6UN; myObj.objArray[6] = _root.a7UN; myObj.objArray[7] = _root.a8UN; myObj.objArray[8] = _root.a9UN; myObj.objArray[9] = _root.playedonce; myObj.objArray[10] = _root.q; myObj.objArray[11] = _root.m; myObj.objArray[12] = _root.a10UN; myObj.objArray[13] = _root.a11UN; myObj.objArray[14] = _root.a12UN; myObj.objArray[15] = _root.a13UN; myLSO.data.myObj = myObj; } function loadGame() { myLSO = SharedObject.getLocal('BNSAAsavefile'); if (myLSO.data.myObj == undefined) { a1UN = false; a2UN = false; a3UN = false; a4UN = false; a5UN = false; a6UN = false; a7UN = false; a8UN = false; a9UN = false; a10UN = false; a11UN = false; a12UN = false; a13UN = false; _root.playedonce = false; _root.q = 2; _root.m = 1; } else { _root.a1UN = myLSO.data.myObj.objArray[0]; _root.a2UN = myLSO.data.myObj.objArray[1]; _root.a3UN = myLSO.data.myObj.objArray[2]; _root.a4UN = myLSO.data.myObj.objArray[3]; _root.a5UN = myLSO.data.myObj.objArray[4]; _root.a6UN = myLSO.data.myObj.objArray[5]; _root.a7UN = myLSO.data.myObj.objArray[6]; _root.a8UN = myLSO.data.myObj.objArray[7]; _root.a9UN = myLSO.data.myObj.objArray[8]; _root.playedonce = myLSO.data.myObj.objArray[9]; _root.q = myLSO.data.myObj.objArray[10]; _root.m = myLSO.data.myObj.objArray[11]; _root.a10UN = myLSO.data.myObj.objArray[12]; _root.a11UN = myLSO.data.myObj.objArray[13]; _root.a12UN = myLSO.data.myObj.objArray[14]; _root.a13UN = myLSO.data.myObj.objArray[15]; } } stop(); _root._quality = 'high'; _root.loadGame(); _root.gameplaying = false; _root.gametimer = 0; _root.remover = true; _root.multiplayergame = false; _root.donefirstfade = false; _root.mainfadetimer = 0; multiplayergamefinished = false; _root.killstowin = 1; _root.whowon = 0; _root.blacksq2.gotoAndPlay(1); _root.mainfadetimer == 20; API.logCustomEvent('visitMenu'); stop(); } movieClip 142 { } button 146 { on (press) { if (_root.playedonce) { _root.gotoAndStop('sp2'); } else { _root.gotoAndStop('sp1'); } } } button 150 { on (press) { _root.gotoAndStop('mp1'); } } button 154 { on (press) { _root.gotoAndStop('ach'); } } button 158 { on (press) { _root.gotoAndStop('in'); } } button 162 { on (press) { _root.gotoAndStop('opt'); } } button 166 { on (press) { _root.gotoAndStop('cre'); } } movieClip 168 { } movieClip 170 { } movieClip 171 { } button 175 { on (press) { getURL('http://www.funny-games.biz/main.html', '_blank'); } } button 179 { on (press) { API.logCustomEvent('clickedMySite'); getURL('http://www.person333.deviantart.com', '_blank'); } } movieClip 182 { frame 1 { stopAllSounds(); } frame 3 { stop(); } } movieClip 184 { } movieClip 185 { frame 15 { stop(); } } instance blacksq2 of movieClip 185 { onClipEvent (enterFrame) { --_root.mainfadetimer; if (_root.gameplaying and _root.mainfadetimer <= 0) { this.removeMovieClip(); } this.swapDepths(_root.hitCoun + 1090); if (_root.multiplayergame == false) { _x = _root.cm._x; _y = _root.cm._y; } else { _x = 275; _y = 200; } } } movieClip 187 { } instance of movieClip 187 { onClipEvent (enterFrame) { if (_root.endscene == false) { _root.gametimer += 0.03333333333; } this._visible = false; if (_root.m == 2) { stopAllSounds(); } } } frame 3 { stop(); } button 193 { on (press) { _root.gotoAndPlay('mp2'); } } movieClip 198 { } movieClip 200 { } movieClip 202 { } movieClip 204 { } button 207 { on (press) { _root.gotoAndPlay(2); } } frame 4 { _root.playedonce = true; _root.savegame(); stop(); } movieClip 212 { } movieClip 217 { } movieClip 219 { } movieClip 221 { } movieClip 223 { } button 224 { on (press) { _root.gotoAndPlay('sp2'); } } frame 5 { stop(); } button 229 { on (press) { _root.blacksq2.gotoAndPlay(1); _root.mainfadetimer == 20; _root.gotoAndPlay('playgame'); } } frame 6 { stop(); } button 234 { on (press) { _root.blacksq2.gotoAndPlay(1); _root.mainfadetimer == 20; _root.multiplayers = 2; _root.gotoAndPlay('versus'); } } button 238 { on (press) { _root.blacksq2.gotoAndPlay(1); _root.mainfadetimer == 20; _root.multiplayers = 3; _root.gotoAndPlay('versus'); } } button 242 { on (press) { _root.blacksq2.gotoAndPlay(1); _root.mainfadetimer == 20; _root.multiplayers = 4; _root.gotoAndPlay('versus'); } } movieClip 246 { } movieClip 248 { } movieClip 251 { } movieClip 254 { } movieClip 257 { } movieClip 260 { } movieClip 263 { } movieClip 265 { } movieClip 268 { } movieClip 271 { } movieClip 275 { } movieClip 276 { } movieClip 279 { } movieClip 290 { } movieClip 294 { } movieClip 295 { } movieClip 296 { } movieClip 299 { } movieClip 302 { } movieClip 305 { } movieClip 307 { } movieClip 309 { } movieClip 311 { } movieClip 316 { frame 1 { stop(); } } button 317 { on (rollOver) { _root.achview.gotoAndStop(12); } } button 318 { on (rollOver) { _root.achview.gotoAndStop(3); } } movieClip 319 { frame 1 { if (_root.a2UN) { gotoAndStop(2); } else { _root.a2UN = false; _root.savegame; } stop(); } } button 320 { on (rollOver) { _root.achview.gotoAndStop(13); } } button 321 { on (rollOver) { _root.achview.gotoAndStop(4); } } movieClip 322 { frame 1 { if (_root.a3UN) { gotoAndStop(2); } else { _root.a3UN = false; _root.savegame; } stop(); } } button 323 { on (rollOver) { _root.achview.gotoAndStop(14); } } button 324 { on (rollOver) { _root.achview.gotoAndStop(5); } } movieClip 325 { frame 1 { if (_root.a4UN) { gotoAndStop(2); } else { _root.a4UN = false; _root.savegame; } stop(); } } button 326 { on (rollOver) { _root.achview.gotoAndStop(15); } } button 327 { on (rollOver) { _root.achview.gotoAndStop(6); } } movieClip 328 { frame 1 { if (_root.a5UN) { gotoAndStop(2); } else { _root.a5UN = false; _root.savegame; } stop(); } } button 329 { on (rollOver) { _root.achview.gotoAndStop(16); } } button 330 { on (rollOver) { _root.achview.gotoAndStop(7); } } movieClip 331 { frame 1 { if (_root.a6UN) { gotoAndStop(2); } else { _root.a6UN = false; _root.savegame; } stop(); } } button 332 { on (rollOver) { _root.achview.gotoAndStop(17); } } button 333 { on (rollOver) { _root.achview.gotoAndStop(8); } } movieClip 334 { frame 1 { if (_root.a7UN) { gotoAndStop(2); } else { _root.a7UN = false; _root.savegame; } stop(); } } button 335 { on (rollOver) { _root.achview.gotoAndStop(18); } } button 336 { on (rollOver) { _root.achview.gotoAndStop(9); } } movieClip 337 { frame 1 { if (_root.a8UN) { gotoAndStop(2); } else { _root.a8UN = false; _root.savegame; } stop(); } } button 338 { on (rollOver) { _root.achview.gotoAndStop(19); } } button 339 { on (rollOver) { _root.achview.gotoAndStop(10); } } movieClip 340 { frame 1 { if (_root.a9UN) { gotoAndStop(2); } else { _root.a9UN = false; _root.savegame; } stop(); } } button 341 { on (rollOver) { _root.achview.gotoAndStop(24); } } button 342 { on (rollOver) { _root.achview.gotoAndStop(20); } } movieClip 343 { frame 1 { if (_root.a10UN) { gotoAndStop(2); } else { _root.a10UN = false; _root.savegame; } stop(); } } button 344 { on (rollOver) { _root.achview.gotoAndStop(25); } } button 345 { on (rollOver) { _root.achview.gotoAndStop(21); } } movieClip 346 { frame 1 { if (_root.a11UN) { gotoAndStop(2); } else { _root.a11UN = false; _root.savegame; } stop(); } } button 347 { on (rollOver) { _root.achview.gotoAndStop(26); } } button 348 { on (rollOver) { _root.achview.gotoAndStop(22); } } movieClip 349 { frame 1 { if (_root.a12UN) { gotoAndStop(2); } else { _root.a12UN = false; _root.savegame; } stop(); } } button 350 { on (rollOver) { _root.achview.gotoAndStop(27); } } button 351 { on (rollOver) { _root.achview.gotoAndStop(23); } } movieClip 352 { frame 1 { if (_root.a13UN) { gotoAndStop(2); } else { _root.a13UN = false; _root.savegame; } stop(); } } button 356 { on (press) { a1UN = false; a2UN = false; a3UN = false; a4UN = false; a5UN = false; a6UN = false; a7UN = false; a8UN = false; a9UN = false; a10UN = false; a11UN = false; a12UN = false; a13UN = false; _root.savegame(); _root.gotoAndPlay(2); } } button 363 { on (press) { stopAllSounds(); nextFrame(); } } button 368 { on (press) { _root.playn = false; prevFrame(); } } movieClip 369 { frame 1 { if (_root.m == 1) { gotoAndStop(2); } if (_root.m == 2) { gotoAndStop(3); } } frame 2 { stop(); _root.m = 1; _root.savegame(); } frame 3 { _root.m = 2; _root.savegame(); } } movieClip 370 { } button 376 { on (press) { gotoAndStop(4); } } button 380 { on (press) { gotoAndStop(3); } } button 385 { on (press) { gotoAndStop(2); } } movieClip 387 { frame 1 { if (_root.q == 1) { gotoAndStop(2); } if (_root.q == 2) { gotoAndStop(3); } if (_root.q == 3) { gotoAndStop(4); } } frame 2 { stop(); _root.q = 1; _root.savegame(); } frame 3 { _root.q = 2; _root.savegame(); } frame 4 { _root.q = 3; _root.savegame(); } } movieClip 388 { } button 393 { on (press) { API.logCustomEvent('clickedASong'); getURL('http://www.newgrounds.com/audio/listen/378669', '_blank'); } } button 397 { on (press) { getURL('http://www.person333.deviantart.com', '_blank'); } } button 401 { on (press) { API.logCustomEvent('clickedASong'); getURL('http://www.newgrounds.com/audio/listen/376389', '_blank'); } } button 405 { on (press) { API.logCustomEvent('clickedASong'); getURL('http://www.newgrounds.com/audio/listen/120136', '_blank'); } } button 409 { on (press) { API.logCustomEvent('clickedASong'); getURL('http://www.newgrounds.com/audio/listen/215901', '_blank'); } } frame 10 { _root.playedonce = true; _root.savegame(); stop(); } frame 16 { stopAllSounds(); yChange; xChange; _root.gametimer = 0; _root.lowcalorie = true; _root.terminalframe = false; _root.hitbyspike = false; _root.hitwithbomb = false; _root.evolv = false; _root.endscene = false; _root.gamestarted = false; _root.gameplaying = true; _root.calories = 0; _root.dooropen = false; _root.givefinalaward = false; _root.donefirstfade = false; _root.kills = 0; _root.hulkmax = 30; _root.bossseen = false; _root.hulkhp = _root.hulkmax; _root.bossfight = false; _root.grabdelay = 500; _root.grabbed = false; _root.initialgrab = false; _root.shaken = 0; _root.hulkdead = false; _root.pickupable = true; _root.bomb = false; _root.noclip = false; _root.respawn = 0; _root.dupeangletest = 20; _root.gore = 'half'; _root.hitCoun = 20; _root.litCoun = 5; _root.hitsomethingdeadly = false; _root.maxhealth = 2; _root.invince = -5; _root.health = _root.maxhealth; _root.lives = 10; _root.low = 5; _root.high = 5; if (_root.q == 1) { _root._quality = 'high'; } if (_root.q == 2) { _root._quality = 'medium'; } if (_root.q == 3) { _root._quality = 'low'; } _root.timegap = 150; _root.pspeed = 1; _root.score = 0; _root.dead = false; _root.lose = false; _root.plat = 1; _root.lob = 0; _root.skew = 0; _root.bobi = 0; stop(); _root.cook = 0; _root.cookm = 67; API.logCustomEvent('singlePlayer'); } movieClip 416 { } movieClip 417 { } movieClip 419 { } instance of movieClip 419 { onClipEvent (enterFrame) { _x = _x + (_root.cm._x - _x); _y = _y + (_root.cm._y - _y); } } movieClip 421 { } instance ground of movieClip 421 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 433 { } movieClip 434 { instance of movieClip 433 { onClipEvent (load) { this.gotoAndPlay(random(30)); } } instance of movieClip 433 { onClipEvent (load) { this.gotoAndPlay(random(30)); } } instance of movieClip 433 { onClipEvent (load) { this.gotoAndPlay(random(30)); } } instance of movieClip 433 { onClipEvent (load) { this.gotoAndPlay(random(30)); } } instance of movieClip 433 { onClipEvent (load) { this.gotoAndPlay(random(30)); } } } button 436 { on (press) { _root.gore = 'low'; } } button 437 { on (press) { _root.gore = 'full'; } } movieClip 439 { } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.gamestarted == false) { _root.man._x = this._x; _root.man._y = this._y; _root.man._visible = false; } else { _root.man._visible = true; } if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } movieClip 441 { } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } movieClip 446 { } movieClip 448 { } movieClip 450 { } movieClip 452 { } movieClip 454 { } movieClip 455 { } movieClip 462 { } movieClip 463 { frame 70 { _root.gamestarted = true; _root.man._visible = true; stop(); } } movieClip 464 { } movieClip 466 { } movieClip 467 { frame 1 { this._visible = false; } frame 15 { stop(); } } movieClip 472 { } movieClip 479 { frame 1 { meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 484 { frame 10 { bob = true; _root.man._y = _parent._parent._y; _root.man._x = _parent._parent._x; _root.man.speed = 0; _root.man.grav = 0; _root.man.dead = false; _root.man.atkn = false; _root.invince = 20; _parent._parent.removeMovieClip(); stop(); } } movieClip 489 { frame 10 { bob = true; _root.man._y = _parent._parent._y; _root.man._x = _parent._parent._x; _root.man.speed = 0; _root.man.grav = 0; _root.man.dead = false; _root.man.atkn = false; _root.invince = 20; _parent._parent.removeMovieClip(); stop(); } } movieClip 490 { frame 1 { stop(); } instance of movieClip 479 { onClipEvent (enterFrame) { _root.man._y = _parent._parent._y; _root.man._x = _parent._parent._x; } } frame 2 { _parent.playr.gotoAndPlay(2); } frame 3 { _parent.playr.gotoAndPlay(2); } } movieClip 492 { } movieClip 497 { frame 1 { stop(); } frame 2 { meh = new Array(3, 4, 5, 6); gotoAndStop(meh[random(4)]); } } movieClip 498 { frame 250 { this.removeMovieClip(); stop(); } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 502 { } movieClip 508 { } movieClip 509 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } } frame 12 { stop(); } frame 13 { stop(); } } movieClip 511 { } movieClip 513 { } movieClip 516 { } movieClip 521 { frame 7 { stop(); } } movieClip 523 { } movieClip 526 { frame 17 { stop(); } } movieClip 531 { frame 1 { stop(); } frame 6 { stop(); } } movieClip 534 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } frame 2 { if (_root.bomb) { gotoAndStop('bom2'); } stop(); } frame 3 { if (_root.bomb) { gotoAndStop('bom3'); } stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } movieClip 535 { frame 20 { stop(); } } movieClip 537 { } movieClip 540 { } movieClip 543 { } movieClip 545 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } frame 2 { if (_root.bomb) { gotoAndStop('bom2'); } } } movieClip 549 { } movieClip 550 { frame 1 { stop(); } } movieClip 553 { } movieClip 554 { } movieClip 556 { } movieClip 557 { } movieClip 559 { } movieClip 590 { frame 1 { meh = new Array(2, 15, 28, 40); gotoAndPlay(meh[random(4)]); } frame 14 { stop(); } frame 27 { stop(); } frame 39 { stop(); } frame 51 { stop(); } } movieClip 591 { instance of movieClip 590 { onClipEvent (load) { _y = _y + (5 - Math.random() * 10); } } instance of movieClip 590 { onClipEvent (load) { _x = _x + (5 - Math.random() * 10); } } instance of movieClip 590 { onClipEvent (load) { _y = _y + (5 - Math.random() * 10); } } instance of movieClip 590 { onClipEvent (load) { _x = _x + (5 - Math.random() * 10); } } } movieClip 592 { frame 1 { if (_root.gore == 'none') { gotoAndPlay(19); } _root.cm.gotoAndPlay(2); } frame 18 { stop(); } frame 36 { stop(); } } movieClip 595 { frame 2 { if (_root.health >= 1) { gotoAndPlay(129); } else { _parent.realdead = true; _root.health = _root.maxhealth; if (_root.gore == 'low') { gotoAndPlay(98); } else { if (_root.gore == 'half') { gotoAndPlay(35); } else { meh = new Array(3, 35, 67); gotoAndPlay(meh[random(3)]); } } _root.health = _root.maxhealth; } } frame 2 { _root.blod.play(); } frame 3 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 4 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 32 { _root.respawn = 3; } frame 33 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.manhasbeenhit = false; } stop(); } frame 34 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 35 { ++_root.hitCoun; duplicateMovieClip(_root.full, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; _root['hitne' + _root.hitCoun].gib = 1; if (_parent.dir == 1) { _root.lol = 1; _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root.lol = 2; _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 36 { _root.lives -= 1; if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 64 { _root.respawn = 3; } frame 65 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.cm.xlocked = 'none'; _root.cm.ylocked = 'none'; _root.manhasbeenhit = false; } stop(); } frame 66 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 67 { ++_root.hitCoun; duplicateMovieClip(_root.half, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 68 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 96 { _root.respawn = 3; } frame 97 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.manhasbeenhit = false; } stop(); } frame 98 { _root.respawn = 3; } frame 99 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 127 { _root.respawn = 3; } frame 128 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.cm.xlocked = 'none'; _root.cm.ylocked = 'none'; _root.manhasbeenhit = false; } stop(); } frame 129 { ++_root.hitCoun; duplicateMovieClip(_root.fullno, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } _root.health -= 1; if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; ++_root.litCoun; duplicateMovieClip(_root.splsh, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 159 { stop(); } frame 160 { _root.hitbyspike = true; _parent.realdead = true; if (_root.gore == 'low') { } else { ++_root.hitCoun; duplicateMovieClip(_root.fullf, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } } frame 161 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 189 { _root.respawn = 3; } frame 190 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.realdead = false; _parent.dead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 191 { ++_root.hitCoun; duplicateMovieClip(_root.fullfire, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 192 { _root.lives -= 1; } frame 220 { _root.respawn = 3; } frame 221 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.cm.xlocked = 'none'; _root.cm.ylocked = 'none'; _root.manhasbeenhit = false; } stop(); } } movieClip 597 { } movieClip 598 { frame 13 { stop(); } } movieClip 601 { } movieClip 607 { frame 7 { gotoAndPlay(3); } } movieClip 610 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } } movieClip 613 { } movieClip 615 { } movieClip 617 { } movieClip 618 { } movieClip 620 { } movieClip 622 { } movieClip 623 { frame 1 { this.gotoAndPlay(18); } frame 6 { _root.mangun._x = _root.man._x; _root.mangun._y = _root.man._y; if (_root.man.dir == 0) { _root.mangun._xscale = 100; } else { _root.mangun._xscale = -100; } _root.mangun.gotoAndPlay(1); } instance zoop of movieClip 620 { onClipEvent (enterFrame) { if (this.hitTest(_root.dude)) { _root.health2 = -1; _root.nextgib = 3; _root.dude.speed = 0; _root.dude.atkn = true; _root.dude.dead = true; _root.dude.gotoAndStop(7); _root.dude.bld.gotoAndPlay(3); } } } frame 18 { _parent.gunin = false; _parent.crouchin = false; } } movieClip 625 { } movieClip 626 { } movieClip 627 { instance of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance jumpclip of movieClip 535 { onClipEvent (enterFrame) { if (_root.man.grav <= 3 and _root.man.grav >= 0) { this.bob.gotoAndStop(3); } else { if (_root.man.grav <= 0) { this.bob.gotoAndStop(1); } else { this.bob.gotoAndStop(2); } } } } frame 7 { if (_root.bomb) { _root.hitwithbomb = true; _root.tnt._x = _x; _root.tnt._y = _y; _root.tnt._visible = true; _root.bomb = false; } } instance bld of movieClip 595 { onClipEvent (enterFrame) { _parent.speed = 0; } } instance of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 610 { onClipEvent (enterFrame) { if (_root.bomb) { this.gotoAndStop('bom'); } else { this.gotoAndStop(1); } } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 632 { frame 161 { stop(); } } instance of movieClip 632 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } movieClip 634 { } movieClip 635 { } movieClip 638 { frame 1 { stopAllSounds(); } frame 3 { stop(); } } movieClip 647 { frame 1 { meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 655 { frame 8 { stop(); } } movieClip 663 { frame 1 { stop(); } instance of movieClip 223 { onClipEvent (enterFrame) { if (_root.man.speed <= 2 and _root.man.speed >= -2 and _root.man.atkn == false and _root.man.dead == false and _root.man.gunin == false and _root.man.crouchin == false) { if (_root.man.hitTest(this)) { _parent.play(); } else { _parent.stop(); } } else { _parent.stop(); } } } frame 2 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 78; } frame 11 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 78; } frame 20 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 78; } frame 29 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 78; } frame 38 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 78; stop(); } } movieClip 681 { frame 1 { stop(); } instance of movieClip 223 { onClipEvent (enterFrame) { if (_root.man.speed <= 2 and _root.man.speed >= -2 and _root.man.atkn == false and _root.man.dead == false and _root.man.gunin == false and _root.man.crouchin == false) { if (_root.man.hitTest(this)) { _parent.play(); } else { _parent.stop(); } } else { _parent.stop(); } } } frame 2 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 154; } frame 11 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 154; } frame 20 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 154; } frame 29 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 154; } frame 38 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 154; } frame 47 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 154; } frame 56 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 154; } frame 65 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 154; } frame 74 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 154; stop(); } } movieClip 688 { frame 1 { stop(); } instance of movieClip 223 { onClipEvent (enterFrame) { if (_root.man.speed <= 2 and _root.man.speed >= -2 and _root.man.atkn == false and _root.man.dead == false and _root.man.gunin == false and _root.man.crouchin == false) { if (_root.man.hitTest(this)) { _parent.play(); } else { _parent.stop(); } } else { _parent.stop(); } } } frame 2 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 55; } frame 11 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 55; } frame 20 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.life.gotoAndPlay(1); _root.lives += 1; _root.calories += 55; } frame 29 { _root.cook += 1; _root.man.stand.gotoAndPlay(2); _root.calories += 55; stop(); } } movieClip 701 { frame 1 { if (_root.nextgib == 2) { gotoAndStop(2); } if (_root.nextgib == 3) { gotoAndStop(7); } if (_root.nextgib == 4) { gotoAndStop(8); } meh = new Array(3, 4); gotoAndStop(meh[random(2)]); stop(); } frame 2 { meh = new Array(5, 6); gotoAndStop(meh[random(2)]); } frame 7 { meh = new Array(9, 10); gotoAndStop(meh[random(2)]); } frame 8 { meh = new Array(11, 12); gotoAndStop(meh[random(2)]); } } movieClip 702 { frame 250 { this.removeMovieClip(); stop(); } } instance arm of movieClip 702 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (spilt == false) { if (_root.ground.hitTest(_x, _y, true)) { this.playr.gotoAndPlay(2); if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; } spilt = true; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(3); } } else { _rotation = -front; if (gib == 2) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(2); } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { spinin = true; } } onClipEvent (load) { gib = _root.nextgib; spilt = false; front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; t += 0.5; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 707 { frame 1 { if (_root.nextgib == 2) { gotoAndStop(2); } if (_root.nextgib == 3) { gotoAndStop(3); } if (_root.nextgib == 4) { gotoAndStop(4); } stop(); } } movieClip 708 { frame 250 { this.removeMovieClip(); stop(); } } instance body of movieClip 708 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (spilt == false) { if (_root.ground.hitTest(_x, _y, true)) { this.playr.gotoAndPlay(2); if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; } spilt = true; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(3); } } else { _rotation = -front; if (gib == 2) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(2); } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { spinin = true; } } onClipEvent (load) { gib = _root.nextgib; spilt = false; front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; t += 0.5; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 711 { frame 1 { if (_root.nextgib == 2) { gotoAndStop(2); } stop(); } } movieClip 712 { frame 250 { this.removeMovieClip(); stop(); } } instance head of movieClip 712 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (spilt == false) { if (_root.ground.hitTest(_x, _y, true)) { this.playr.gotoAndPlay(2); if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; } spilt = true; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { spinin = true; } } onClipEvent (load) { spilt = false; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; t += 0.5; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 717 { frame 1 { if (_root.nextgib == 2) { gotoAndStop(2); } if (_root.nextgib == 3) { gotoAndStop(3); } if (_root.nextgib == 4) { gotoAndStop(4); } stop(); } } movieClip 718 { frame 250 { this.removeMovieClip(); stop(); } } instance leg of movieClip 718 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (spilt == false) { if (_root.ground.hitTest(_x, _y, true)) { this.playr.gotoAndPlay(2); if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; } spilt = true; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(3); } } else { _rotation = -front; if (gib == 2) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(2); } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { spinin = true; } } onClipEvent (load) { gib = _root.nextgib; spilt = false; front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; t += 0.5; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 745 { frame 1 { meh = new Array(2, 24, 41, 67, 93, 114); gotoAndPlay(meh[random(6)]); } frame 23 { this.removeMovieClip(); stop(); } frame 40 { this.removeMovieClip(); stop(); } frame 66 { this.removeMovieClip(); stop(); } frame 92 { this.removeMovieClip(); stop(); } frame 113 { this.removeMovieClip(); stop(); } frame 134 { this.removeMovieClip(); stop(); } } instance bld of movieClip 745 { onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true) == false) { _y = _y + 1.5; } else {} } onClipEvent (load) { spd = 2; rot = Math.random() * 360; _rotation = rot; _x = _x + (10 - Math.random() * 20); _y = _y + (10 - Math.random() * 20); } onClipEvent (enterFrame) { spd -= 0.2; if (spd <= 0) { spd = 0; } if (_rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 752 { frame 1 { meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 763 { frame 1 { meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 764 { frame 1 { if (_root.nextgib == 2) { gotoAndStop(6); } stop(); } frame 2 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 3 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 4 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 5 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } } movieClip 765 { frame 250 { this.removeMovieClip(); stop(); } } instance half of movieClip 765 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (we <= 5) { wimer -= 1; if (wimer <= 0) { if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; we += 0.5; wimer = t; } } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(4); } } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(5); } } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (gib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { gib = _root.nextgib; front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 20 - 10; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; if (nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_x >= _root.man._x + _root.dupeangletest) { if (_root.shotgundeath) { rot = 60 + Math.random() * 30; } else { rot = Math.random() * 90; } } else { if (_x <= _root.man._x - _root.dupeangletest) { if (_root.shotgundeath) { rot = -60 - Math.random() * 30; } else { rot = -Math.random() * 90; } } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 767 { } movieClip 768 { frame 27 { this.removeMovieClip(); stop(); } } instance flick of movieClip 768 { onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { this.removeMovieClip(); } } onClipEvent (load) { scale = 50 + Math.random() * 200; this._yscale = scale; this._xscale = scale; spd = 5 + Math.random() * 5; blown = false; gravity = 0; } onClipEvent (enterFrame) { if (this._y >= 1500) { this.removeMovieClip(); } this._y += gravity; spd -= 0.3; gravity += 0.2; if (spd <= 0) { spd = 0; } if (gravity >= 19) { gravity = 20; } if (blown == true) { this._y -= gravity; } } onClipEvent (load) { this._rotation = Math.random() * 360; } onClipEvent (enterFrame) { if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } movieClip 779 { frame 1 { meh = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); gotoAndStop(meh[random(10)]); } } movieClip 780 { frame 276 { this.removeMovieClip(); stop(); } } instance pool of movieClip 780 { onClipEvent (load) { timar = 5; this.bl._xscale = 20; this.bl._yscale = 20; _visible = false; tim = 3; _x = _x + (20 - Math.random() * 40); } onClipEvent (enterFrame) { if (this.bl._xscale <= 100) { this.bl._xscale += 20; this.bl._yscale += 20; } if (_root.remover) { this.removeMovieClip(); } timar -= 1; this.bl._alpha -= 0.01; if (timar >= 0) { if (!_root.ground.hitTest(_x - 15, _y + 5, true)) { _x = _x + 10; } else { if (!_root.ground.hitTest(_x + 15, _y + 5, true)) { _x = _x - 10; } } if (_root.ground.hitTest(_x - 15, _y - 5, true)) { _x = _x + 10; } else { if (_root.ground.hitTest(_x + 15, _y - 5, true)) { _x = _x - 10; } } } tim -= 1; if (tim <= 1) { _visible = true; } else { while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; } while (_root.ground.hitTest(_x, _y, true) == false and _y <= 1000) { _y = _y + 1; } _visible = false; } } } movieClip 792 { frame 1 { meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 799 { } movieClip 814 { frame 1 { stop(); meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 826 { frame 1 { stop(); meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 842 { frame 1 { stop(); meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 858 { frame 1 { stop(); meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 874 { frame 1 { stop(); meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 879 { frame 1 { if (_root.nextgib == 2) { gotoAndStop(6); } if (_root.nextgib == 3) { gotoAndStop(7); } if (_root.nextgib == 4) { gotoAndStop(10); } stop(); } frame 2 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 3 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 4 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 5 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 8 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 9 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 11 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 12 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 14 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 15 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 17 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } frame 18 { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; _parent.playr.gotoAndPlay(2); } } movieClip 880 { frame 250 { this.removeMovieClip(); stop(); } } instance fullf of movieClip 880 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (splatspacing <= 5) { splattimer -= 1; if (splattimer <= 0) { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; splatspacing += 0.5; splattimer = splatspacing; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 5; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(4); } } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(5); } } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (gib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { splattimer = 0; splatspacing = 0; bloodtimer = 0; newbloodtime = 0; gib = _root.nextgib; front = Math.random() * 20 + 80; spinin = true; spd = 0; gravity = 5; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { bloodtimer -= 1; if (spinin) { if (bloodtimer <= 0) { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; newbloodtime += 0.1; bloodtimer = newbloodtime; } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { rot = Math.random() * 180 - 90; } else { if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 882 { } movieClip 883 { frame 250 { this.removeMovieClip(); stop(); } } instance gum of movieClip 883 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(3); } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(2); } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { spinin = true; } } onClipEvent (load) { spilt = false; front = Math.random() * 20 + 80; spinin = true; spd = _root.low / 1.5 + Math.random() * (_root.high / 1.5); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.8; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 886 { } movieClip 908 { frame 1 { _root.kills += 1; if (_root.gore == 'low') { gotoAndPlay(97); } else { _root.scaw.gotoAndPlay(2); if (_root.gore == 'half') { gotoAndPlay(34); } else { if (_parent.giblets) { gotoAndPlay(2); } else { meh = new Array(2, 34, 66); gotoAndPlay(meh[random(3)]); } } } } frame 2 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 3 { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 32 { stop(); } frame 33 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 34 { ++_root.hitCoun; duplicateMovieClip(_root.full, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; _root['hitne' + _root.hitCoun].gib = 2; if (_parent._xscale == 100) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 35 { if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 64 { stop(); } frame 65 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 66 { ++_root.hitCoun; duplicateMovieClip(_root.half, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent._xscale == 100) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 67 { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 96 { stop(); } frame 98 { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 127 { stop(); } } movieClip 909 { frame 1 { giblets = false; shotgundeath = false; } frame 1 { stop(); } instance hit of movieClip 886 { onClipEvent (enterFrame) { if (this.hitTest(_root.mangun.hit)) { if (_root.man.dead == false) { _parent.shotgundeath = true; _parent.dead = true; _root.gunkill._x = _parent._x; _root.gunkill._y = _parent._y; _root.nextgib = 2; _parent.nextFrame(); } } if (this.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _parent.dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; _parent.nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } frame 2 { _root.nextgib = 2; if (shotgundeath) { _root.shotgundeath = true; } else { _root.shotgundeath = false; } _root.gunkill._x = _x; _root.gunkill._y = _y; stop(); } } instance of movieClip 909 { onClipEvent (enterFrame) { if (_root.man._x >= _x) { _xscale = 100; } else { _xscale = -100; } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } movieClip 911 { } movieClip 913 { } movieClip 916 { } movieClip 918 { } movieClip 920 { } movieClip 922 { } movieClip 923 { } movieClip 925 { } movieClip 927 { } movieClip 928 { frame 1 { stop(); } } instance of movieClip 928 { onClipEvent (load) { dead = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.gunkill)) { dead = true; } if (dead == false) { myRadians = Math.atan2(_root.man._y - 20 + _root.lob - this._y, _root.man._x - this._x); myDegrees = Math.round(myRadians * 180 / Math.PI); _root.yChange = Math.round(_root.man._y - 20 + _root.lob - this._y); _root.xChange = Math.round(_root.man._x - this._x); this._rotation = myDegrees; if (myDegrees <= 90 and myDegrees >= -90) { _yscale = 100; } else { _yscale = -100; } timer -= 1; if (timer <= 0) { timer = 0; } if (timer <= 0) { bullets -= 1; ++_root.eCount; duplicateMovieClip(_root.ebulet, 'ebulletnew' + _root.eCount, _root.eCount); _root['ebulletnew' + _root.eCount]._x = this._x; _root['ebulletnew' + _root.eCount]._y = this._y; gotoAndPlay(2); timer = 129; } } else { _visible = false; stop(); } } } movieClip 930 { } movieClip 932 { } movieClip 933 { } movieClip 935 { frame 2 { stop(); } } movieClip 943 { } movieClip 950 { frame 1 { stop(); } instance of movieClip 935 { onClipEvent (enterFrame) { if (_root.ground.hitTest(_parent._x, _parent._y, true)) { _parent.blown = true; _parent.spd = 0; _parent.gravity = 0; _parent.play(); } } } frame 2 { blown = true; } frame 10 { this.removeMovieClip(); stop(); } frame 11 { blown = true; } frame 19 { this.removeMovieClip(); stop(); } } instance ebulet2 of movieClip 950 { onClipEvent (load) { timer = 80; blown = false; stort = true; spd = 8; sp = 25; rx = _root.man._x; ry = _root.man._y - 20; cx = this._x; cy = this._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433 + 90; _rotation = angle - 5 + Math.random() * 10; this.gotoAndStop(1); resett = false; timer = 0; resett = true; } onClipEvent (enterFrame) { timer -= 1; if (timer <= 0) { blown = true; spd = 0; gravity = 0; this.gotoAndPlay(10); } if (this.hit.hitTest(_root.man.hit)) { if (_root.invince <= 1) { _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); blown = true; spd = 0; gravity = 0; this.gotoAndPlay(10); } } } onClipEvent (enterFrame) { if (resett) { timer = 80; blown = false; stort = true; spd = 8; sp = 25; rx = _root.man._x; ry = _root.man._y - 20; cx = this._x; cy = this._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433 + 90; _rotation = angle - 5 + Math.random() * 10; this.gotoAndStop(1); resett = false; } } onClipEvent (enterFrame) { if (stort == true) { if (_rotation > 180) { _y = _y + sp * Math.cos(0.0174532925199433 * _rotation); _x = _x - sp * Math.sin(0.0174532925199433 * _rotation); stort = false; } else { _y = _y - sp * Math.cos(0.0174532925199433 * _rotation); _x = _x + sp * Math.sin(0.0174532925199433 * _rotation); stort = false; } } if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } movieClip 952 { } instance gunkill of movieClip 952 { onClipEvent (load) { _visible = false; } } movieClip 953 { } movieClip 955 { } movieClip 957 { } movieClip 959 { frame 1 { hitted = false; stop(); } instance of movieClip 953 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { if (_parent.hitted == false) { _root.man.jumpclip.gotoAndPlay(1); _root.man.jumpclip.bob.gotoAndStop(1); _root.man._y -= 10; _root.man.grav = -20; _parent.gotoAndPlay(2); _parent.hitted = true; } } } } } movieClip 967 { frame 16 { this.removeMovieClip(); stop(); } } instance fullfire of movieClip 967 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } onClipEvent (enterFrame) { while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = 0; } onClipEvent (enterFrame) { timer -= 1; if (this._y >= 1500) { this.removeMovieClip(); } } onClipEvent (load) { if (_root.man.dir == 0) { _xscale = 100; } else { _xscale = -100; } this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 968 { } movieClip 971 { } movieClip 976 { } movieClip 977 { frame 15 { stop(); } } movieClip 979 { } movieClip 980 { frame 40 { stop(); } } movieClip 981 { frame 1 { stop(); } frame 2 { _root.spawnx = _x; _root.spawny = _y; } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 983 { } movieClip 985 { } movieClip 987 { } movieClip 989 { } movieClip 990 { } instance blu of movieClip 990 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_root.gameplaying == false) { this.removeMovieClip(); } if (_alpha >= 100) { _alpha = 100; } if (_alpha <= 0) { _alpha = 0; } this.swapDepths(_root.hitCoun + 440); if (_root.man.realdead) { _alpha = _alpha + 5; } else { _alpha = _alpha - 20; } _x = _root.c._x; _y = _root.c._y; } } // unknown tag 88 length 68 movieClip 994 { } movieClip 996 { } movieClip 998 { } movieClip 1012 { frame 1 { stop(); } instance of movieClip 998 { onClipEvent (enterFrame) { lol = _root.ach + 1; _parent.gotoAndStop(lol); } } frame 3 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('Killing spree', -2000, -2000); } frame 4 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('Super killing spree', -2000, -2000); } frame 5 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('Thats a lot of bodies', -2000, -2000); } frame 6 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('The bigger they are', -2000, -2000); } frame 7 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('I\'ll just have one', -2000, -2000); } frame 8 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('OM NOM NOM', -2000, -2000); } frame 9 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('Stockpile', -2000, -2000); } frame 10 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('What a day', -2000, -2000); } frame 11 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('MY BOMB!!!', -2000, -2000); } frame 12 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('I hate spikes', -2000, -2000); } frame 13 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('Unnecessary calories', -2000, -2000); } frame 14 { function onMedalUnlocked(event) { if (event.__get__success()) { var v1 = event.data.medal; trace('You unlocked \'' + v1.__get__name() + '\'! (value: ' + v1.__get__value() + ' points)'); } } com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, this); com.newgrounds.API.unlockMedal('Speed run', -2000, -2000); } } movieClip 1013 { frame 1 { stop(); } instance of movieClip 996 { onClipEvent (enterFrame) { if (_root.a9UN == false) { if (_root.endscene) { _root.ach = 9; _root.a9UN = true; _parent.gotoAndPlay(2); } } if (_root.a13UN == false) { if (_root.endscene and _root.gametimer <= 300) { _root.ach = 13; _root.a13UN = true; _parent.gotoAndPlay(2); } } if (_root.a12UN == false) { if (_root.endscene and _root.lowcalorie) { _root.ach = 12; _root.a12UN = true; _parent.gotoAndPlay(2); } } if (_root.a11UN == false) { if (_root.endscene and _root.hitbyspike == false) { _root.ach = 11; _root.a11UN = true; _parent.gotoAndPlay(2); } } if (_root.a10UN == false) { if (_root.hitwithbomb == false and _root.terminalframe == true) { _root.ach = 10; _root.a10UN = true; _parent.play(); } } if (_root.a5UN == false) { if (_root.hulkhp <= 0 and _root.bossfight == false) { _root.ach = 5; _root.a5UN = true; _parent.play(); } } if (_root.a6UN == false) { if (_root.cook >= 1) { _root.ach = 6; _root.a6UN = true; _parent.play(); } } if (_root.a8UN == false) { if (_root.lives >= 50) { _root.ach = 8; _root.a8UN = true; _parent.play(); } } if (_root.a7UN == false) { if (_root.cook >= 138) { _root.ach = 7; _root.a7UN = true; _parent.play(); } } if (_root.a2UN == false) { if (_root.kills >= 10) { _root.ach = 2; _root.a2UN = true; _parent.play(); } } else { if (_root.a3UN == false) { if (_root.kills >= 25) { _root.ach = 3; _root.a3UN = true; _parent.play(); } } else { if (_root.a4UN == false) { if (_root.kills >= 60) { _root.ach = 4; _root.a4UN = true; _parent.play(); } } } } } } frame 15 { _root.savegame(); } } instance achievments of movieClip 1013 { onClipEvent (enterFrame) { if (_root.lives >= 15) { _root.lowcalorie = false; } if (_root.gameplaying == false) { this.removeMovieClip(); } if (_root.multiplayergame == false and _root.endscene == false) { _x = _root.cm._x; _y = _root.cm._y; } else { _x = 275; _y = 200; } this.swapDepths(_root.hitCoun + 782); } } movieClip 1015 { } movieClip 1017 { } movieClip 1018 { frame 1 { stop(); } frame 31 { stop(); } } instance scaw of movieClip 1018 { onClipEvent (enterFrame) { _x = _root.cm._x; _y = _root.cm._y; } } movieClip 1021 { frame 2 { _root.remover = true; } frame 6 { _root.remover = false; stop(); } } movieClip 1023 { frame 15 { stop(); } frame 60 { stop(); } frame 93 { _root.donefirstfade = true; stop(); } } instance blacksq of movieClip 1023 { onClipEvent (load) { this.gotoAndPlay('beginfade'); } onClipEvent (enterFrame) { if (_root.gameplaying == false) { this.removeMovieClip(); } this.swapDepths(_root.hitCoun + 700); if (_root.donefirstfade) { if (_root.remover) { this.gotoAndPlay(1); } } if (_root.multiplayergame == false) { _x = _root.cm._x; _y = _root.cm._y; } else { _x = 275; _y = 200; } } } movieClip 1027 { } movieClip 1032 { frame 79 { stop(); } } instance life of movieClip 1032 { onClipEvent (enterFrame) { if (_root.gameplaying == false) { this.removeMovieClip(); } if (_root.endscene) { this._visible = false; } this.swapDepths(_root.hitCoun + 300); _x = _root.cm._x; _y = _root.cm._y; } } movieClip 1034 { } movieClip 1037 { } movieClip 1039 { } movieClip 1040 { } instance blup of movieClip 1040 { onClipEvent (enterFrame) { if (_root.gameplaying == false) { this.removeMovieClip(); } this.swapDepths(_root.hitCoun + 500); if (_root.lives <= -1) { _visible = true; } else { _visible = false; } _x = _root.cm._x; _y = _root.cm._y; } } movieClip 1043 { } movieClip 1044 { } instance box of movieClip 1044 { onClipEvent (load) { grav = 0; speed = 4; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true)) { _root.blockr = true; } else { _root.blockr = false; } if (_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true)) { _root.blockl = true; } else { _root.blockl = false; } } } movieClip 1045 { frame 21 { stop(); } } instance flsh of movieClip 1045 { onClipEvent (load) { this.gotoAndStop('edn'); } onClipEvent (enterFrame) { if (_root.gameplaying == false) { this.removeMovieClip(); } this.swapDepths(_root.hitCoun + 2000); _x = _root.cm._x; _y = _root.cm._y; } } movieClip 1047 { } instance ebulet of movieClip 950 { onClipEvent (load) { timer = 80; blown = false; stort = true; spd = 8; sp = 25; rx = _root.man._x; ry = _root.man._y - 20; cx = this._x; cy = this._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433 + 90; _rotation = angle - 5 + Math.random() * 10; this.gotoAndStop(1); resett = false; timer = 0; resett = true; } onClipEvent (enterFrame) { timer -= 1; if (timer <= 0) { blown = true; spd = 0; gravity = 0; this.gotoAndPlay(10); } if (this.hit.hitTest(_root.man.hit)) { if (_root.invince <= 1) { _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); blown = true; spd = 0; gravity = 0; this.gotoAndPlay(10); } } } onClipEvent (enterFrame) { if (resett) { timer = 80; blown = false; stort = true; spd = 8; sp = 25; rx = _root.man._x; ry = _root.man._y - 20; cx = this._x; cy = this._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433 + 90; _rotation = angle - 5 + Math.random() * 10; this.gotoAndStop(1); resett = false; } } onClipEvent (enterFrame) { if (stort == true) { if (_rotation > 180) { _y = _y + sp * Math.cos(0.0174532925199433 * _rotation); _x = _x - sp * Math.sin(0.0174532925199433 * _rotation); stort = false; } else { _y = _y - sp * Math.cos(0.0174532925199433 * _rotation); _x = _x + sp * Math.sin(0.0174532925199433 * _rotation); stort = false; } } if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } instance ebulet3 of movieClip 950 { onClipEvent (load) { timer = 0; resett = true; timer = 80; blown = false; stort = true; spd = 8; sp = 25; rx = _root.man._x; ry = _root.man._y - 20; cx = this._x; cy = this._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433 + 90; _rotation = angle - 5 + Math.random() * 10; this.gotoAndStop(1); resett = false; } onClipEvent (enterFrame) { timer -= 1; if (timer <= 0) { blown = true; spd = 0; gravity = 0; this.gotoAndPlay(10); } if (this.hit.hitTest(_root.man.hit)) { if (_root.invince <= 1) { _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); blown = true; spd = 0; gravity = 0; this.gotoAndPlay(10); } } } onClipEvent (enterFrame) { if (resett) { timer = 80; blown = false; stort = true; spd = 8; sp = 25; rx = _root.man._x; ry = _root.man._y - 20; cx = this._x; cy = this._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433 + 90; _rotation = angle - 5 + Math.random() * 10; this.gotoAndStop(1); resett = false; } } onClipEvent (enterFrame) { if (stort == true) { if (_rotation > 180) { _y = _y + sp * Math.cos(0.0174532925199433 * _rotation); _x = _x - sp * Math.sin(0.0174532925199433 * _rotation); stort = false; } else { _y = _y - sp * Math.cos(0.0174532925199433 * _rotation); _x = _x + sp * Math.sin(0.0174532925199433 * _rotation); stort = false; } } if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } movieClip 1049 { } movieClip 1052 { } movieClip 1053 { } movieClip 1054 { } movieClip 1057 { } movieClip 1058 { } movieClip 1060 { } movieClip 1061 { frame 41 { stop(); } } instance blup of movieClip 1061 { onClipEvent (enterFrame) { if (_root.gameplaying == false) { this.removeMovieClip(); } this.swapDepths(_root.hitCoun + 490); if (_root.bossfight) { if (_root.bossseen == false) { this.gotoAndPlay(1); _root.bossseen = true; } _visible = true; } else { _visible = false; } _x = _root.cm._x; _y = _root.cm._y - 20; this.bar.realbar._xscale = (_root.hulkhp / _root.hulkmax) * 100; } } instance full of movieClip 880 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (splatspacing <= 5) { splattimer -= 1; if (splattimer <= 0) { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; splatspacing += 0.5; splattimer = splatspacing; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(4); } } else { if (gib == 3) { if (scay == 1) { this.bob.gotoAndStop(9); } else { this.bob.gotoAndStop(8); } } else { if (gib == 4) { if (scay == 1) { this.bob.gotoAndStop(12); } else { this.bob.gotoAndStop(11); } } else { if (gib == 5) { if (scay == 1) { this.bob.gotoAndStop(15); } else { this.bob.gotoAndStop(14); } } else { if (gib == 6) { if (scay == 1) { this.bob.gotoAndStop(18); } else { this.bob.gotoAndStop(17); } } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } } } } } else { _rotation = -front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(5); } } else { if (gib == 3) { if (scay == 1) { this.bob.gotoAndStop(8); } else { this.bob.gotoAndStop(9); } } else { if (gib == 4) { if (scay == 1) { this.bob.gotoAndStop(11); } else { this.bob.gotoAndStop(12); } } else { if (gib == 5) { if (scay == 1) { this.bob.gotoAndStop(14); } else { this.bob.gotoAndStop(15); } } else { if (gib == 6) { if (scay == 1) { this.bob.gotoAndStop(17); } else { this.bob.gotoAndStop(18); } } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (gib == 2) { this.bob.gotoAndStop(6); } else { if (gib == 3) { this.bob.gotoAndStop(7); } else { if (gib == 4) { this.bob.gotoAndStop(10); } else { if (gib == 5) { this.bob.gotoAndStop(13); } else { if (gib == 6) { this.bob.gotoAndStop(16); } else { this.bob.gotoAndStop(1); } } } } } spinin = true; } } onClipEvent (load) { splattimer = 0; splatspacing = 0; bloodtimer = 0; newbloodtime = 0; front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 20 - 10; } onClipEvent (enterFrame) { bloodtimer -= 1; if (spinin) { if (bloodtimer <= 0) { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; newbloodtime += 0.1; bloodtimer = newbloodtime; } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; if (_root.nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_root.nextgib == 2) { if (_x >= _root.man._x + _root.dupeangletest) { if (_root.shotgundeath) { rot = 60 + Math.random() * 30; } else { rot = Math.random() * 90; } } else { if (_x <= _root.man._x - _root.dupeangletest) { if (_root.shotgundeath) { rot = -60 - Math.random() * 30; } else { rot = -Math.random() * 90; } } else { rot = Math.random() * 180 - 90; } } } else { if (morex) { if (_root.shotgundeath) { rot = 60 + Math.random() * 30; } else { rot = Math.random() * 90; } } else { if (_root.shotgundeath) { rot = -60 - Math.random() * 30; } else { rot = -Math.random() * 90; } } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } button 1064 { on (press) { _root.endscene = false; _root.gotoAndStop(2); } } movieClip 1065 { } instance of movieClip 1065 { onClipEvent (enterFrame) { if (_root.gameplaying == false) { this.removeMovieClip(); } this.swapDepths(_root.hitCoun + 989); if (_root.multiplayergame == false and _root.endscene == false) { _x = _root.cm._x; _y = _root.cm._y; } else { _x = 275; _y = 200; } } } movieClip 1067 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } parentColor.setTransform(camColor.getTransform()); this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } instance c of movieClip 1067 { onClipEvent (enterFrame) { _x = _root.cm._x; _y = _root.cm._y; } } movieClip 1071 { frame 1 { stop(); } frame 2 { _root.shake = true; } frame 6 { _root.shake = false; } } instance cm of movieClip 1071 { onClipEvent (load) { xlocked = 'none'; ylocked = 'none'; } onClipEvent (enterFrame) { if (xlocked == 'none') { _x = _x + _root.xplus / 15; } if (_root.respawn >= 1 or _root.remover) { while (_root.left.hitTest(_x, _y, true)) { _x = _x + 0.1; } while (_root.right.hitTest(_x, _y, true)) { _x = _x - 0.1; } while (_root.up.hitTest(_x, _y, true)) { _y = _y + 0.1; } while (_root.down.hitTest(_x, _y, true)) { _y = _y - 0.1; } } if (_root.left.hitTest(_x, _y, true)) { xlocked = 'right'; } if (_root.right.hitTest(_x, _y, true)) { xlocked = 'left'; } if (xlocked == 'left') { if (_root.man._x <= this._x) { xlocked = 'none'; } } if (xlocked == 'right') { if (_root.man._x >= this._x) { xlocked = 'none'; } } if (ylocked == 'none') { _y = _y + _root.yplus / 15; } if (_root.down.hitTest(_x, _y, true)) { ylocked = 'down'; } if (_root.up.hitTest(_x, _y, true)) { ylocked = 'up'; } if (ylocked == 'up') { if (_root.man._y >= this._y) { ylocked = 'none'; } } if (ylocked == 'down') { if (_root.man._y <= this._y) { ylocked = 'none'; } } } onClipEvent (enterFrame) { _root.xplus = _root.man._x - _x; _root.yplus = _root.man._y - _y; if (_root.yplus <= 20 and _root.yplus >= -20) { _root.yplus = 0; } if (_root.xplus <= 20 and _root.xplus >= -20) { _root.xplus = 0; } } } frame 17 { _root.remov.gotoAndPlay(2); nextFrame(); } movieClip 1073 { } movieClip 1076 { } movieClip 1089 { frame 1 { stop(); } instance of movieClip 1076 { onClipEvent (enterFrame) { if (this.hitTest(_root.man.splashtest)) { if (_root.man.dead) { if (_root.gore == 'none') { } else { _parent.nextFrame(); } } } } } } movieClip 1090 { instance hit of movieClip 1073 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 1093 { frame 1 { stop(); } frame 2 { stop(); } } instance ground of movieClip 1093 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 1095 { } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } movieClip 1102 { } movieClip 1103 { frame 1 { stop(); } } movieClip 1104 { frame 1 { giblets = false; shotgundeath = false; } frame 1 { stop(); } instance hit of movieClip 886 { onClipEvent (enterFrame) { if (this.hitTest(_root.mangun.hit)) { if (_root.man.dead == false) { _parent.shotgundeath = true; _parent.dead = true; _root.nextgib = 2; _parent.nextFrame(); } } if (this.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; _parent.dead = true; _root.nextgib = 2; _parent.nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } frame 2 { _root.nextgib = 2; if (shotgundeath) { _root.shotgundeath = true; } else { _root.shotgundeath = false; } stop(); } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } movieClip 1106 { } movieClip 1108 { } movieClip 1109 { } movieClip 1111 { } movieClip 1112 { frame 15 { stop(); } } movieClip 1114 { } movieClip 1116 { frame 1 { _parent.shootable = true; } frame 40 { _parent.shootable = false; } frame 58 { _parent._xscale = -_parent._xscale; } frame 63 { this.gotoAndPlay(1); } frame 65 { _parent.shootable = false; } frame 101 { _parent.shootable = true; this.gotoAndPlay(20); } } movieClip 1117 { frame 1 { giblets = false; shotgundeath = false; } frame 1 { stop(); } instance hit of movieClip 886 { onClipEvent (enterFrame) { if (this.hitTest(_root.mangun.hit)) { if (_root.man.dead == false) { _parent.shotgundeath = true; _parent.dead = true; _root.gunkill._x = _parent._x; _root.gunkill._y = _parent._y; _root.nextgib = 2; _parent.nextFrame(); } } if (this.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _parent.dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; _parent.nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } frame 2 { _root.nextgib = 2; if (shotgundeath) { _root.shotgundeath = true; } else { _root.shotgundeath = false; } stop(); } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } movieClip 1120 { frame 90 { stop(); } } instance speech of movieClip 1120 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } movieClip 1122 { } movieClip 1125 { } movieClip 1127 { } movieClip 1133 { } movieClip 1135 { frame 101 { stop(); } } movieClip 1143 { frame 168 { stop(); } } movieClip 1150 { } movieClip 1153 { } movieClip 1159 { } movieClip 1160 { frame 230 { _root.speech.gotoAndPlay(1); _root.speech._visible = true; } frame 236 { _root.ground.play(); } frame 256 { stop(); } } movieClip 1161 { frame 1 { stop(); } } movieClip 1163 { } movieClip 1165 { } movieClip 1167 { } movieClip 1168 { } movieClip 1170 { frame 1 { fin = false; } frame 14 { fin = true; } } movieClip 1172 { } movieClip 1179 { frame 7 { stop(); } } movieClip 1180 { frame 1 { giblets = false; shotgundeath = false; checkall = 0; check1 = 0; check2 = 0; check3 = 0; check4 = 0; } instance hit of movieClip 886 { onClipEvent (enterFrame) { if (this.hitTest(_root.mangun.hit)) { if (_root.man.dead == false) { _parent.shotgundeath = true; _parent.dead = true; _root.nextgib = 2; _parent.gotoAndStop(4); } } if (this.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _parent.dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; _parent.nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance atk of movieClip 1170 { onClipEvent (enterFrame) { if (_parent.dirt == 0) { dir = 0; } if (_parent.dirt == 1) { dir = 1; } } onClipEvent (enterFrame) { if (_root.man.hitTest(_x, _y, true) == false) { if (fin) { _parent.atkin = false; } } } } frame 4 { torch_power = 25; torch_step = 1; torch_angle_step = 1; stop(); } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } frame 19 { _root.remov.gotoAndPlay(2); nextFrame(); } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } movieClip 1182 { } movieClip 1184 { } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } movieClip 1186 { } instance ground of movieClip 1186 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 1188 { } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 909 { onClipEvent (load) { dead = false; } onClipEvent (enterFrame) { if (dead == false) { if (_root.man._x >= _x) { _xscale = 100; } else { _xscale = -100; } } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } movieClip 1193 { frame 1 { stop(); } frame 2 { _root.ebulet._x = this._x; _root.ebulet._y = this._y; _root.ebulet.resett = true; } frame 7 { _root.ebulet2._x = this._x; _root.ebulet2._y = this._y; _root.ebulet2.resett = true; } frame 12 { _root.ebulet3._x = this._x; _root.ebulet3._y = this._y; _root.ebulet3.resett = true; } } instance of movieClip 1193 { onClipEvent (enterFrame) { if (_root.light3.hitTest(_root.man._x, _root.man._y - 25, true)) { hit = true; play(); } else { if (_root.man._x >= _x) { _rotation = 50; _yscale = 100; } else { _yscale = -100; _rotation = 130; } hit = false; } _root.light3._alpha = 0; } onClipEvent (load) { hit = false; timer = 0; dead = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.gunkill)) { dead = true; } if (dead == false) { _visible = true; timer -= 1; if (timer <= 0) { timer = 0; } if (hit) { myRadians = Math.atan2(_root.man._y - 20 + _root.lob - this._y, _root.man._x - this._x); myDegrees = Math.round(myRadians * 180 / Math.PI); _root.yChange = Math.round(_root.man._y - 20 + _root.lob - this._y); _root.xChange = Math.round(_root.man._x - this._x); this._rotation = myDegrees; if (myDegrees <= 90 and myDegrees >= -90) { _yscale = 100; } else { _yscale = -100; } } } else { torch_power = 25; torch_step = 1; torch_angle_step = 1; _visible = false; stop(); } } } movieClip 1195 { } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 1198 { frame 83 { stop(); } } instance of movieClip 1198 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } movieClip 1199 { } movieClip 1200 { } movieClip 1201 { } frame 21 { _root.remov.gotoAndPlay(2); nextFrame(); } movieClip 1203 { } instance ground of movieClip 1203 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 1205 { } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } movieClip 1207 { } instance of movieClip 909 { onClipEvent (load) { dead = false; } onClipEvent (enterFrame) { if (dead == false) { if (_root.man._x >= _x) { _xscale = 100; } else { _xscale = -100; } } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1193 { onClipEvent (enterFrame) { if (_root.light3.hitTest(_root.man._x, _root.man._y - 25, true)) { hit = true; play(); } else { if (_root.man._x >= _x) { _rotation = 50; _yscale = 100; } else { _yscale = -100; _rotation = 130; } hit = false; } _root.light3._alpha = 0; } onClipEvent (load) { hit = false; timer = 0; dead = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.gunkill)) { dead = true; } if (dead == false) { _visible = true; timer -= 1; if (timer <= 0) { timer = 0; } if (hit) { myRadians = Math.atan2(_root.man._y - 20 + _root.lob - this._y, _root.man._x - this._x); myDegrees = Math.round(myRadians * 180 / Math.PI); _root.yChange = Math.round(_root.man._y - 20 + _root.lob - this._y); _root.xChange = Math.round(_root.man._x - this._x); this._rotation = myDegrees; if (myDegrees <= 90 and myDegrees >= -90) { _yscale = 100; } else { _yscale = -100; } } } else { torch_power = 25; torch_step = 1; torch_angle_step = 1; _visible = false; stop(); } } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } frame 23 { _root.remov.gotoAndPlay(2); nextFrame(); } movieClip 1209 { } movieClip 1211 { } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 1217 { frame 3 { stop(); } } movieClip 1218 { frame 9 { gotoAndPlay(1); } frame 10 { stop(); } } instance lazer of movieClip 1218 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } } movieClip 1220 { frame 1 { stop(); } } instance of movieClip 1220 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { this.gotoAndStop(2); _root.lazer.gotoAndStop(10); } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } movieClip 1222 { } instance ground of movieClip 1222 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 1224 { } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } movieClip 1226 { } instance of movieClip 909 { onClipEvent (load) { dead = false; } onClipEvent (enterFrame) { if (dead == false) { if (_root.man._x >= _x) { _xscale = 100; } else { _xscale = -100; } } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1193 { onClipEvent (enterFrame) { if (_root.light3.hitTest(_root.man._x, _root.man._y - 25, true)) { hit = true; play(); } else { if (_root.man._x >= _x) { _rotation = 50; _yscale = 100; } else { _yscale = -100; _rotation = 130; } hit = false; } _root.light3._alpha = 0; } onClipEvent (load) { hit = false; timer = 0; dead = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.gunkill)) { dead = true; } if (dead == false) { _visible = true; timer -= 1; if (timer <= 0) { timer = 0; } if (hit) { myRadians = Math.atan2(_root.man._y - 20 + _root.lob - this._y, _root.man._x - this._x); myDegrees = Math.round(myRadians * 180 / Math.PI); _root.yChange = Math.round(_root.man._y - 20 + _root.lob - this._y); _root.xChange = Math.round(_root.man._x - this._x); this._rotation = myDegrees; if (myDegrees <= 90 and myDegrees >= -90) { _yscale = 100; } else { _yscale = -100; } } } else { torch_power = 25; torch_step = 1; torch_angle_step = 1; _visible = false; stop(); } } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 1227 { } movieClip 1228 { } frame 25 { _root.remov.gotoAndPlay(2); nextFrame(); } frame 26 { API.logCustomEvent('gotToCave'); } movieClip 1230 { } movieClip 1231 { } instance of movieClip 1231 { onClipEvent (enterFrame) { _x = _x + (_root.cm._x - _x); _y = _y + (_root.cm._y - _y); } } movieClip 1233 { } instance ground of movieClip 1233 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } movieClip 1235 { } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 1238 { frame 76 { stop(); } } instance of movieClip 1238 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } frame 27 { _root.remov.gotoAndPlay(2); stopAllSounds(); nextFrame(); } movieClip 1241 { } movieClip 1242 { } instance of movieClip 1242 { onClipEvent (enterFrame) { _x = _x + (_root.cm._x - _x); _y = _y + (_root.cm._y - _y); } } movieClip 1244 { } instance ground of movieClip 1244 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 1246 { } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } movieClip 1248 { } movieClip 1249 { } movieClip 1255 { } movieClip 1256 { } movieClip 1260 { } movieClip 1261 { } movieClip 1263 { } movieClip 1265 { } movieClip 1266 { } movieClip 1268 { } movieClip 1270 { } instance of movieClip 909 { onClipEvent (load) { dead = false; } onClipEvent (enterFrame) { if (dead == false) { if (_root.man._x >= _x) { _xscale = 100; } else { _xscale = -100; } } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1193 { onClipEvent (enterFrame) { if (_root.light3.hitTest(_root.man._x, _root.man._y - 25, true)) { hit = true; this.play(); } else { if (_root.man._x >= _x) { _rotation = 50; _yscale = 100; } else { _yscale = -100; _rotation = 130; } hit = false; } _root.light3._alpha = 0; } onClipEvent (load) { myRadians = 0; myDegrees = 0; hit = false; timer = 0; dead = false; } onClipEvent (enterFrame) { if (this.hitTest(_root.gunkill)) { dead = true; } if (dead == false) { _visible = true; timer -= 1; if (timer <= 0) { timer = 0; } if (hit) { myRadians = Math.atan2(_root.man._y - 20 + _root.lob - this._y, _root.man._x - this._x); myDegrees = Math.round(myRadians * 180 / Math.PI); _root.yChange = Math.round(_root.man._y - 20 + _root.lob - this._y); _root.xChange = Math.round(_root.man._x - this._x); this._rotation = myDegrees; if (myDegrees <= 90 and myDegrees >= -90) { _yscale = 100; } else { _yscale = -100; } } } else { _visible = false; stop(); } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 1273 { frame 81 { stop(); } } instance of movieClip 1273 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } movieClip 1274 { } frame 29 { _root.remov.gotoAndPlay(2); nextFrame(); } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } movieClip 1277 { } instance ground of movieClip 1277 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 1278 { } movieClip 1280 { } instance of movieClip 1220 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { this.gotoAndStop(2); _root.lazer.gotoAndStop(10); } } } instance lazer of movieClip 1218 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } } movieClip 1286 { } movieClip 1291 { } movieClip 1293 { } movieClip 1297 { } movieClip 1299 { } movieClip 1302 { } movieClip 1303 { } movieClip 1305 { } movieClip 1306 { } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } frame 31 { _root.remov.gotoAndPlay(2); nextFrame(); } movieClip 1308 { } instance ground of movieClip 1308 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } movieClip 1310 { } movieClip 1312 { } movieClip 1315 { } movieClip 1318 { } movieClip 1330 { } movieClip 1331 { } movieClip 1333 { } movieClip 1334 { } movieClip 1335 { } movieClip 1336 { instance of movieClip 1335 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } } } movieClip 1338 { } instance of movieClip 1338 { onClipEvent (enterFrame) { thyme -= 1; if (thyme <= 0) { _parent.myColor = Math.round(Math.random() * 16711680); thyme = 3; } _parent.myColoredObject = new Color(this); _parent.myColoredObject.setRGB(_parent.myColor); } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 1340 { } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } movieClip 1342 { } movieClip 1344 { } movieClip 1345 { instance of movieClip 1344 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } frame 33 { _root.remov.gotoAndPlay(2); nextFrame(); } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } movieClip 1347 { } instance ground of movieClip 1347 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 1348 { } movieClip 1350 { } movieClip 1351 { instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1090 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man.hit2)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(160); _root.hitsomethingdeadly = true; } } } } } movieClip 1352 { } movieClip 1356 { } movieClip 1357 { } movieClip 1359 { } movieClip 1360 { } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } movieClip 1361 { } frame 35 { _root.remov.gotoAndPlay(2); nextFrame(); } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } movieClip 1365 { } movieClip 1366 { frame 1 { stop(); } frame 70 { stop(); } } instance ground of movieClip 1366 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 1368 { } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } instance of movieClip 441 { onClipEvent (load) { hasbeenhit = false; } onClipEvent (enterFrame) { if (hasbeenhit == false) { if (_root.man.hitTest(this)) { _root.movie.gotoAndPlay(2); hasbeenhit = true; } } } } movieClip 1371 { } movieClip 1373 { frame 1 { stop(); } } movieClip 1374 { } movieClip 1377 { } movieClip 1378 { } movieClip 1381 { } movieClip 1382 { } movieClip 1384 { } movieClip 1385 { } movieClip 1387 { } movieClip 1391 { } movieClip 1392 { } movieClip 1395 { } movieClip 1396 { frame 10 { stop(); } } movieClip 1397 { frame 7 { stop(); } } movieClip 1398 { frame 7 { stop(); } } movieClip 1400 { } movieClip 1405 { } movieClip 1408 { } movieClip 1409 { frame 16 { stop(); } } movieClip 1418 { frame 20 { stop(); } } movieClip 1420 { } movieClip 1422 { frame 12 { stop(); } } movieClip 1426 { } movieClip 1429 { } movieClip 1430 { frame 12 { stop(); } } movieClip 1437 { } movieClip 1438 { frame 1 { stop(); } frame 89 { stopAllSounds(); } frame 160 { _root.ground.play(); _root.pickupable = false; } frame 186 { stop(); } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } frame 37 { _root.remov.gotoAndPlay(2); nextFrame(); } frame 38 { _root.pickupable = true; } movieClip 1441 { frame 1 { stop(); } frame 2 { stop(); } } instance ground of movieClip 1441 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } movieClip 1444 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1446 { } movieClip 1448 { } movieClip 1450 { } movieClip 1456 { } movieClip 1457 { frame 1 { stop(); } } movieClip 1458 { } movieClip 1461 { } movieClip 1462 { } movieClip 1465 { } movieClip 1466 { } movieClip 1468 { } movieClip 1470 { } movieClip 1473 { } movieClip 1476 { } movieClip 1477 { } movieClip 1480 { } movieClip 1482 { } movieClip 1484 { } movieClip 1486 { } movieClip 1488 { } movieClip 1489 { } movieClip 1492 { } movieClip 1493 { } movieClip 1496 { } movieClip 1497 { } movieClip 1501 { } movieClip 1502 { } movieClip 1506 { } movieClip 1511 { frame 1 { stop(); } instance of movieClip 1506 { onClipEvent (enterFrame) { if (_root.man._x <= _root.bob._x) { if (Key.isDown(37)) { _parent.play(); } } else { if (Key.isDown(39)) { _parent.play(); } } } } frame 2 { stop(); } instance of movieClip 1506 { onClipEvent (enterFrame) { if (_root.man._x <= _root.bob._x) { if (Key.isDown(39)) { _parent.play(); } } else { if (Key.isDown(37)) { _parent.play(); } } } } frame 3 { ++_root.shaken; } frame 4 { stop(); } instance of movieClip 1506 { onClipEvent (enterFrame) { if (_root.man._x <= _root.bob._x) { if (Key.isDown(37)) { _parent.play(); } } else { if (Key.isDown(39)) { _parent.play(); } } } } frame 5 { ++_root.shaken; } frame 6 { this.gotoAndStop(2); } } movieClip 1512 { } movieClip 1520 { } movieClip 1521 { frame 1 { _parent.nextattack = Math.random() * 5 + 20; _parent.free = true; stop(); } instance bob of movieClip 1458 { onClipEvent (enterFrame) { if (_root.hulkhp <= 0) { _root.hulkdead = true; } if (_root.hulkdead) { _parent.gotoAndPlay('ded'); } } } frame 2 { _parent.free = false; } frame 32 { gotoAndStop(1); } frame 33 { _parent.free = false; } frame 70 { gotoAndStop(1); } frame 71 { _parent.free = false; } instance bob of movieClip 1489 { onClipEvent (load) { if (_root.man._x > _parent._parent._x) { dir = 1; } else { dir = 76; } } onClipEvent (enterFrame) { if (dir == 1) { _parent._parent._x += 3; } else { _parent._parent._x -= 3; } } } frame 93 { gotoAndStop(1); } frame 95 { _root.bossfight = false; _root.bossseen = true; } frame 137 { stopAllSounds(); API.logCustomEvent('killedBoss'); } frame 138 { _root.ground.nextFrame(); _root.groundcover.nextFrame(); _root.dooropen = true; stop(); } frame 139 { _parent.free = false; } instance bob of movieClip 1512 { onClipEvent (enterFrame) { if (_root.shaken >= 20) { _parent.gotoAndStop('drophim'); } } } frame 236 { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; _root.grabdelay = 200; _root.grabbed = false; _root.initialgrab = false; _root.man.grav = 0; _parent.nextattack = 30; _root.shaken = 0; gotoAndStop(1); } frame 238 { _root.man.atkn = false; _root.man.dead = false; _root.grabdelay = 200; _root.grabbed = false; _root.initialgrab = false; _root.man.grav = -3; _parent.nextattack = 30; _root.shaken = 0; gotoAndStop(1); } } movieClip 1524 { } movieClip 1525 { } movieClip 1526 { } movieClip 1528 { } movieClip 1529 { frame 68 { stop(); } } movieClip 1536 { frame 137 { _root.bossfight = true; } instance bob of movieClip 1458 { onClipEvent (enterFrame) { if (_root.hulkhp <= 0) { _root.hulkdead = true; } if (_root.hulkdead) { _parent.gotoAndPlay('ded'); } } } frame 155 { _root.evolv = true; _parent.gotoAndStop(1); } } movieClip 1537 { frame 1 { if (_root.evolv == false) { this.gotoAndStop(10); } stop(); } frame 2 { _root.hulkhp -= 1; ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _root.man._x; _root['hitne' + _root.litCoun]._y = _root.man._y; ++_root.litCoun; duplicateMovieClip(_root.splsh, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _root.man._x; _root['hitne' + _root.litCoun]._y = _root.man._y; _root['hitne' + _root.litCoun]._xscale = 50; _root['hitne' + _root.litCoun]._yscale = 50; } frame 9 { this.gotoAndStop(1); } frame 10 { stop(); } } instance hulk of movieClip 1537 { onClipEvent (enterFrame) { --_root.grabdelay; if (_root.hulkdead == false) { rx = _root.man._x; tx = _x; _root.hulkdist = Math.sqrt((rx - tx) * (rx - tx)); if (_root.man.dead == false) { if (free) { if (_root.hulkdist <= 110 and _root.hulkdist >= 75 and _root.grabdelay <= 0 or _root.hulkdist >= -110 and _root.hulkdist <= -75 and _root.grabdelay <= 0) { _root.grabbed = true; _root.grabdelay = 100; nextattack = 30; _root.man.atkn = true; _root.man.dead = true; _root.man.grav = 0; _root.man._y = this._y + 30; if (_root.man._x >= this._x) { _root.man._x = this._x + 120; } else { _root.man._x = this._x - 120; } _root.man.gotoAndStop(12); } } } if (_root.grabbed == false) { if (free) { if (nextattack <= 0) { if (_root.hulkdist >= 300) { this.man.gotoAndPlay('atkrun'); } else { if (_root.hulkdist >= 180) { this.man.gotoAndPlay('atk1'); } else { if (_root.hulkdist >= 100) { this.man.gotoAndPlay('atkrun'); } else { this.man.gotoAndPlay('atk2'); } } } } nextattack -= 1; if (_root.man._x > this._x) { _xscale = -100; } else { _xscale = 100; } } } else { if (_root.initialgrab == false) { _root.initialgrab = true; this.man.gotoAndPlay('grab'); } } if (this.hitTest(_root.mangun.hit)) { play(); } if (this.man.bob.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 5; _root.man._y += 5; dead = true; play(); } } else { if (_root.invince <= 1) { if (this.man.kill.hitTest(_root.man.hit)) { _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } else { if (this.man.hed.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 5; _root.man._y += 5; this.man.play(); } } } } } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { if (_root.hulkhp <= 1) { if (_root.dooropen) { _root.remover = true; _root.nextFrame(); } } } } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 1544 { frame 161 { stop(); } } instance of movieClip 1544 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } movieClip 1547 { frame 50 { stop(); } } instance of movieClip 1547 { onClipEvent (load) { gonnaappear = true; this._visible = false; } onClipEvent (enterFrame) { if (gonnaappear) { if (_root.grabbed) { this._visible = true; this.gotoAndPlay(1); gonnaappear = false; } } _x = _root.man._x; _y = _root.man._y; } } movieClip 1549 { frame 50 { stop(); } } instance of movieClip 1549 { onClipEvent (load) { gonnaappear = true; this._visible = false; } onClipEvent (enterFrame) { if (gonnaappear) { if (_root.bossfight == false and _root.hulkhp <= 1) { this._visible = true; this.gotoAndPlay(1); gonnaappear = false; } } _x = _root.man._x; _y = _root.man._y; } } frame 39 { _root.remov.gotoAndPlay(2); nextFrame(); } frame 40 { _root.hitwithbomb = false; } movieClip 1551 { } instance ground of movieClip 1551 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } movieClip 1553 { } instance of movieClip 1553 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { if (_root.bomb) { _root.remover = true; _root.nextFrame(); } else { _root.spech.play(); _root.spech._visible = true; } } else { _root.spech.gotoAndStop(1); _root.spech._visible = false; } } } movieClip 1556 { } movieClip 1558 { } movieClip 1560 { } movieClip 1562 { } movieClip 1563 { } movieClip 1566 { frame 81 { stop(); } } instance spech of movieClip 1566 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } movieClip 1570 { } movieClip 1571 { frame 22 { gotoAndPlay(2); } } movieClip 1572 { frame 1 { stop(); } frame 2 { stop(); } } instance tnt of movieClip 1572 { onClipEvent (load) { grav = 0; speed = 4; } onClipEvent (enterFrame) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } } onClipEvent (enterFrame) { if (_root.pickupable) { if (_root.man.hitTest(this)) { if (_visible) { if (_root.man.dead == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } if (_root.man.crouchin) { _root.bomb = true; _visible = false; } } else { if (_visible) { this.gotoAndStop(1); } } } else { _visible = true; this.gotoAndStop(1); } } } frame 41 { _root.remov.gotoAndPlay(2); nextFrame(); } movieClip 1574 { } instance ground of movieClip 1574 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 1553 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { if (_root.bomb) { _root.remover = true; _root.nextFrame(); } else { _root.spech.play(); _root.spech._visible = true; } } else { _root.spech.gotoAndStop(1); _root.spech._visible = false; } } } instance of movieClip 981 { onClipEvent (enterFrame) { if (this.hitTest(_root.man)) { gotoAndStop(2); } } } movieClip 1576 { frame 81 { stop(); } } instance spech of movieClip 1576 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } movieClip 1578 { } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1117 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.man.killspot.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } } onClipEvent (load) { this.man.gotoAndPlay(random(35)); dead = false; xrange = 130; yrange = 50; shootable = true; } onClipEvent (enterFrame) { if (shootable) { if (_xscale == -100) { if (_root.man._x <= _x and _root.man._x >= _x - xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } else { if (_root.man._x >= _x and _root.man._x <= _x + xrange and _root.man._y <= _y + 20 + yrange and _root.man._y >= _y + 20 - yrange) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } this.man.gotoAndPlay(64); } } } if (dead == false) { if (_root.man._x >= _x) { } else {} } if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { dead = true; _root.gunkill._x = _x; _root.gunkill._y = _y; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } } instance of movieClip 1104 { onClipEvent (enterFrame) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.grav >= 5) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; nextFrame(); } } else { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { grav = 0; speed = 4; scale = _xscale; dead = false; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (_xscale == scale) { this._x -= speed; } if (_xscale == -scale) { this._x += speed; } ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (_xscale == scale) { if (!_root.ground.hitTest(_x - 10, _y + 5, true)) { this._x += speed; this._xscale = -scale; } if (_root.ground.hitTest(_x - 10, _y - 5, true)) { this._x += speed; this._xscale = -scale; } } else { if (_xscale == -scale) { if (!_root.ground.hitTest(_x + 10, _y + 5, true)) { this._x -= speed; this._xscale = scale; } if (_root.ground.hitTest(_x + 10, _y - 5, true)) { this._x -= speed; this._xscale = scale; } } } } } } } instance of movieClip 1180 { onClipEvent (enterFrame) { checkall = check1 + check2 + check3 + check4; if (_xscale == 100) { if (!_root.ground.hitTest(_x - 5, _y + 5, true)) { this._x += speed; check1 = 1; } else { check1 = 0; } if (_root.ground.hitTest(_x - 5, _y - 5, true)) { this._x += speed; check2 = 1; } else { check2 = 0; } } else { if (_xscale == -100) { if (!_root.ground.hitTest(_x + 5, _y + 5, true)) { this._x -= speed; check3 = 1; } else { check3 = 0; } if (_root.ground.hitTest(_x + 5, _y - 5, true)) { this._x -= speed; check4 = 1; } else { check4 = 0; } } } if (_root.man.grav >= 5) { if (this.hit.hitTest(_root.man.hit)) { if (_root.man.dead == false) { _root.man.grav = 0; _root.man._y += 5; dead = true; _root.nextgib = 2; this.gotoAndStop(4); } } } else { if (_root.man.hit.hitTest(this.atk.zoop)) { if (_root.invince <= 1) { if (_root.man._x > this._x) { _root.morex = true; } else { _root.morex = false; } _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } } } } onClipEvent (load) { dead = false; hp = Math.random() * 3 + 1; de = 1; dir = 0; pushback = 5; atkin = false; grav = 0; speed = 3; dist = 30; distance = Math.random() * 50 + 150; scale = _xscale; ok = true; } onClipEvent (enterFrame) { if (_root.respawn <= 1) { if (dead == false) { if (dir == 1) { blow -= de; if (blow <= 0) { blow = 0; } } if (dir == 0) { blow += de; if (blow >= 0) { blow = 0; } } this._x -= blow; if (_root.man.atkmc.hit.hitTest(this)) { if (ok) { if (hp <= 1) { hp = 5; if (_root.aut.dir == 0) { dir = 0; blow = Math.random() * 5 - 10; } if (_root.aut.dir == 1) { dir = 1; blow = Math.random() * 5 + 5; } ok = false; gotoAndStop(5); } else { if (_root.aut.dir == 0) { dir = 0; blow = -pushback; } if (_root.aut.dir == 1) { dir = 1; blow = pushback; } ok = false; hp -= 1; gotoAndStop(4); } } } if (atkin) { if (ok) { gotoAndStop(3); } } rx = _root.man._x; ry = _root.man._y; erx = this._x; ery = this._y; if (atkin == false) { if (ok) { if (Math.sqrt((rx - erx) * (rx - erx) + (ry - ery) * (ry - ery)) < distance) { if (rx < erx - dist) { this._x -= speed; _xscale = scale; dirt = 0; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx > erx + dist) { this._x += speed; _xscale = -scale; dirt = 1; if (checkall == 0) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } if (rx < erx - dist == false) { if (rx > erx + dist == false) { atkin = true; } } } else { if (atkin == false) { this.gotoAndStop(2); } } } } } if (blow == 0 == false or ok) { ++grav; _y = _y + grav; while (_root.ground.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; } if (ok) { } } } } } frame 43 { _root.remov.gotoAndPlay(2); nextFrame(); } frame 44 { _root.terminalframe = true; } movieClip 1580 { } instance ground of movieClip 1580 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 441 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { if (_root.pickupable == false) { _root.remover = true; _root.nextFrame(); } else { _root.spech.play(); _root.spech._visible = true; } } else { _root.spech.gotoAndStop(1); _root.spech._visible = false; } } } movieClip 1583 { frame 81 { stop(); } } instance spech of movieClip 1583 { onClipEvent (enterFrame) { _x = _root.man._x; _y = _root.man._y; } } movieClip 1586 { } movieClip 1587 { } movieClip 1592 { } movieClip 1595 { } movieClip 1596 { } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 1598 { } movieClip 1599 { frame 1 { stop(); } frame 2 { stop(); } } instance of movieClip 1599 { onClipEvent (enterFrame) { if (_root.bomb) { if (_root.man.hitTest(this)) { if (_root.man.dead == false) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_root.man.crouchin) { _root.pickupable = false; _root.bomb = false; _visible = false; _root.tnt._x = _x; _root.tnt._y = _y; _root.tnt._visible = true; } } else { this.gotoAndStop(1); } } } } frame 45 { _root.remov.gotoAndPlay(2); nextFrame(); } frame 46 { _root.pickupable = true; _root.flsh.gotoAndPlay(1); } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } instance of movieClip 441 { onClipEvent (enterFrame) { if (_root.man.hitTest(this)) { _root.remover = true; _root.nextFrame(); } } } movieClip 1601 { } movieClip 1610 { } movieClip 1611 { instance of movieClip 1610 { onClipEvent (load) { meh = new Array(1, 3, 5, 7, 9, 12, 13, 15); gotoAndPlay(meh[random(8)]); } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } movieClip 1613 { } instance ground of movieClip 1613 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 1615 { } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance man of movieClip 627 { onClipEvent (load) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 10, true)) { if (Key.isDown(16)) { } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } if (_y >= 1500) { if (_root.hitsomethingdeadly == false) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(1); _root.hitsomethingdeadly = true; } } if (_root.end.hitTest(_x, _y, true)) { finished = true; atkn = true; gotoAndStop(5); _root.end.nextFrame(); } if (_root.noclip) { grav = 10; _y = _y + yspeed; if (Key.isDown(40) == false) { if (Key.isDown(38) == false) { if (yspeed >= -0.1 && yspeed <= 0.1) { yspeed = 0; } if (yspeed >= 0.1) { yspeed -= fric; } if (yspeed <= -0.1) { yspeed += fric; } } } if (yspeed <= -max) { yspeed = -max; } if (yspeed >= max) { yspeed = max; } if (dead == false) { if (atkn == false) { if (Key.isDown(38)) { yspeed -= acc; } if (Key.isDown(40)) { yspeed += acc; } } } } if (_root.noclip == false) { if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } } onClipEvent (enterFrame) { for (;;) { if (!(_root.box.hitTest(_x + _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x + _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x - 1; if (_root.blockr == false) { ++_root.box._x; } } for (;;) { if (!(_root.box.hitTest(_x - _width / 2, _y + 5 - _height / 2, true) || _root.box.hitTest(_x - _width / 2, _y + 5 - (_height / 6) * 4, true))) break; _x = _x + 1; if (_root.blockl == false) { --_root.box._x; } } } onClipEvent (enterFrame) { if (dead == false) { if (atkn == false) { if (_root.noclip) { this.gotoAndStop('fly'); } } } } } movieClip 1619 { frame 1 { _root.health = _root.maxhealth; } frame 2 { _root.morex = true; _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); } frame 5 { _root.health = _root.maxhealth; } frame 33 { stop(); } } movieClip 1621 { } instance of movieClip 1621 { onClipEvent (enterFrame) { if (_root.gameplaying == false or _root.endscene) { this.removeMovieClip(); } this.swapDepths(_root.hitCoun + 650); _x = _root.cm._x; _y = _root.cm._y; } } frame 47 { _root.remov.gotoAndPlay(2); stopAllSounds(); nextFrame(); } frame 48 { _root.endscene = true; stop(); } frame 48 { API.logCustomEvent('completeGame'); } instance of movieClip 419 { onClipEvent (enterFrame) { _x = _x + (_root.cm._x - _x); _y = _y + (_root.cm._y - _y); } } movieClip 1624 { instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } instance of movieClip 1611 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly == false) { if (this.hit.hitTest(_root.man)) { _root.health = -1; _root.nextgib = 1; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay(191); _root.hitsomethingdeadly = true; } } } } } movieClip 1631 { } movieClip 1633 { } movieClip 1634 { frame 147 { _root.blacksq.gotoAndPlay('fadein'); } frame 300 { _root.remover = true; _root.nextFrame(); } } movieClip 1636 { } instance man of movieClip 1636 { onClipEvent (load) { this._visible = false; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } frame 49 { _root.remov.gotoAndPlay(2); nextFrame(); } frame 50 { _root.endscene = true; _root.givefinalaward = true; stop(); } frame 50 { _root.endtext = 'You killed ' + _root.kills + ' enemies'; _root.endtext2 = 'and ate ' + _root.calories + ' calories'; } movieClip 1642 { } instance man of movieClip 1636 { onClipEvent (load) { this._visible = false; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } instance cm of movieClip 1071 { onClipEvent (load) { xlocked = 'none'; ylocked = 'none'; } onClipEvent (enterFrame) { if (xlocked == 'none') { _x = _x + _root.xplus / 15; } if (_root.respawn >= 1 or _root.remover) { while (_root.left.hitTest(_x, _y, true)) { _x = _x + 0.1; } while (_root.right.hitTest(_x, _y, true)) { _x = _x - 0.1; } while (_root.up.hitTest(_x, _y, true)) { _y = _y + 0.1; } while (_root.down.hitTest(_x, _y, true)) { _y = _y - 0.1; } } if (_root.left.hitTest(_x, _y, true)) { xlocked = 'right'; } if (_root.right.hitTest(_x, _y, true)) { xlocked = 'left'; } if (xlocked == 'left') { if (_root.man._x <= this._x) { xlocked = 'none'; } } if (xlocked == 'right') { if (_root.man._x >= this._x) { xlocked = 'none'; } } if (ylocked == 'none') { _y = _y + _root.yplus / 15; } if (_root.down.hitTest(_x, _y, true)) { ylocked = 'down'; } if (_root.up.hitTest(_x, _y, true)) { ylocked = 'up'; } if (ylocked == 'up') { if (_root.man._y >= this._y) { ylocked = 'none'; } } if (ylocked == 'down') { if (_root.man._y <= this._y) { ylocked = 'none'; } } } onClipEvent (enterFrame) { _root.xplus = _root.man._x - _x; _root.yplus = _root.man._y - _y; if (_root.yplus <= 20 and _root.yplus >= -20) { _root.yplus = 0; } if (_root.xplus <= 20 and _root.xplus >= -20) { _root.xplus = 0; } } } frame 51 { stopAllSounds(); _root.remov.gotoAndPlay(2); nextFrame(); } frame 52 { _root.multiplayergame = true; _root.dudehasbeenhit = false; _root.manhasbeenhit = false; _root.greendudehasbeenhit = false; _root.orangedudehasbeenhit = false; _root.manneedspawn = false; _root.dudeneedspawn = false; _root.greendudeneedspawn = false; _root.orangedudeneedspawn = false; _root.mankills = 0; _root.dudekills = 0; _root.greendudekills = 0; _root.orangedudekills = 0; _root.achievments._visible = false; _root.life._visible = false; } frame 52 { stopAllSounds(); _root.gametimer = 0; _root.lowcalorie = true; _root.terminalframe = false; _root.hitbyspike = false; _root.hitwithbomb = false; _root.evolv = false; _root.endscene = false; _root.gamestarted = false; _root.gameplaying = true; _root.calories = 0; _root.dooropen = false; _root.givefinalaward = false; _root.donefirstfade = false; _root.kills = 0; _root.hulkmax = 30; _root.bossseen = false; _root.hulkhp = _root.hulkmax; _root.bossfight = false; _root.grabdelay = 500; _root.grabbed = false; _root.initialgrab = false; _root.shaken = 0; _root.hulkdead = false; _root.pickupable = true; _root.bomb = false; _root.noclip = false; _root.respawn = 0; _root.dupeangletest = 20; _root.gore = 'half'; _root.hitCoun = 20; _root.litCoun = 5; _root.hitsomethingdeadly = false; _root.maxhealth = 2; _root.invince = -5; _root.health = _root.maxhealth; _root.lives = 10; _root.low = 5; _root.high = 5; if (_root.q == 1) { _root._quality = 'high'; } if (_root.q == 2) { _root._quality = 'medium'; } if (_root.q == 3) { _root._quality = 'low'; } _root.timegap = 150; _root.pspeed = 1; _root.score = 0; _root.dead = false; _root.lose = false; _root.plat = 1; _root.lob = 0; _root.skew = 0; _root.bobi = 0; stop(); _root.cook = 0; _root.cookm = 67; API.logCustomEvent('multiPlayer'); } movieClip 1644 { } instance ground of movieClip 1644 { onClipEvent (enterFrame) { _root.invince -= 1; if (_root.invince <= 0) { _root.invince = 0; } _root.fullno.bob.gotoAndStop(7); _root.fullno._x = 0; _root.fullno._y = 1000; _root.full._x = 0; _root.full._y = 1000; _root.half._x = 0; _root.half._y = 1000; _root.head._x = 0; _root.head._y = 1000; _root.arm._x = 0; _root.arm._y = 1000; _root.leg._x = 0; _root.leg._y = 1000; _root.body._x = 0; _root.body._y = 1000; } } movieClip 1646 { } movieClip 1647 { } movieClip 1649 { } movieClip 1651 { frame 1 { stopAllSounds(); } frame 3 { stop(); } } instance of movieClip 439 { onClipEvent (enterFrame) { if (_root.remover) { _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; } } onClipEvent (load) { _visible = false; _root.spawnx = _x; _root.spawny = _y; _root.fullno._y = _root.spawny; _root.fullno._x = _root.spawnx; } } movieClip 1654 { frame 1 { stop(); } frame 2 { stop(); } } instance spot2 of movieClip 1654 { onClipEvent (enterFrame) { _visible = false; if (this.hitTest(_root.man.ball) or this.hitTest(_root.dude.ball) or this.hitTest(_root.greendude.ball) or this.hitTest(_root.orangedude.ball)) { this.gotoAndStop(2); _root.spotfree2 = false; } else { this.gotoAndStop(1); _root.spotfree2 = true; } } } instance spot of movieClip 1654 { onClipEvent (enterFrame) { _visible = false; if (this.hitTest(_root.man.ball) or this.hitTest(_root.dude.ball) or this.hitTest(_root.greendude.ball) or this.hitTest(_root.orangedude.ball)) { this.gotoAndStop(2); _root.spotfree = false; } else { this.gotoAndStop(1); _root.spotfree = true; } } } instance spot4 of movieClip 1654 { onClipEvent (enterFrame) { _visible = false; if (this.hitTest(_root.man.ball) or this.hitTest(_root.dude.ball) or this.hitTest(_root.greendude.ball) or this.hitTest(_root.orangedude.ball)) { this.gotoAndStop(2); _root.spotfree4 = false; } else { this.gotoAndStop(1); _root.spotfree4 = true; } } } instance spot3 of movieClip 1654 { onClipEvent (enterFrame) { _visible = false; if (this.hitTest(_root.man.ball) or this.hitTest(_root.dude.ball) or this.hitTest(_root.greendude.ball) or this.hitTest(_root.orangedude.ball)) { this.gotoAndStop(2); _root.spotfree3 = false; } else { this.gotoAndStop(1); _root.spotfree3 = true; } } } instance fullno of movieClip 498 { onClipEvent (enterFrame) { if (_root.hitsomethingdeadly) { this.removeMovieClip(); } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (_root.nextgib == 2) { this.bob.gotoAndStop(5); } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (_root.nextgib == 2) { this.bob.gotoAndStop(4); } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * (_root.high * 2); gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; _root.per = _rotation; if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 1661 { } movieClip 1662 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1665 { frame 3 { stop(); } } movieClip 1668 { } movieClip 1670 { frame 17 { stop(); } } movieClip 1672 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } frame 2 { if (_root.bomb) { gotoAndStop('bom2'); } stop(); } frame 3 { if (_root.bomb) { gotoAndStop('bom3'); } stop(); } frame 4 { stop(); } } movieClip 1673 { frame 20 { stop(); } } movieClip 1675 { } movieClip 1677 { } movieClip 1679 { } movieClip 1683 { frame 1 { stop(); } } movieClip 1686 { } movieClip 1687 { } movieClip 1689 { } movieClip 1690 { } movieClip 1692 { frame 2 { if (_root.health >= 1) { gotoAndPlay(129); } else { gotoAndPlay(35); _parent.realdead = true; _root.health = _root.maxhealth; if (poo) { if (_root.gore == 'none') { gotoAndPlay(98); } else { if (_root.gore == 'half') { gotoAndPlay(35); } else { meh = new Array(3, 35, 67); gotoAndPlay(meh[random(3)]); } } } _root.health = _root.maxhealth; } } frame 2 { _root.blod.play(); } frame 3 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 4 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 32 { _root.respawn = 3; } frame 33 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 34 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 35 { ++_root.hitCoun; duplicateMovieClip(_root.full, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; _root['hitne' + _root.hitCoun].morex = _parent.morex; _root['hitne' + _root.hitCoun].gib = 4; if (_parent.dir == 1) { _root.lol = 3; _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root.lol = 4; _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 36 { if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 64 { _root.respawn = 3; } frame 65 { _root.manneedspawn = true; stop(); } frame 66 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 67 { ++_root.hitCoun; duplicateMovieClip(_root.half, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 68 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 96 { _root.respawn = 3; } frame 97 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 98 { ++_root.hitCoun; duplicateMovieClip(_root.fullnogore, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 127 { _root.respawn = 3; } frame 128 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 129 { ++_root.hitCoun; duplicateMovieClip(_root.fullno, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } _root.health -= 1; if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; ++_root.litCoun; duplicateMovieClip(_root.splsh, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 159 { stop(); } frame 160 { _parent.realdead = true; if (_root.gore == 'none') { ++_root.hitCoun; duplicateMovieClip(_root.fullnogoref, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } else { ++_root.hitCoun; duplicateMovieClip(_root.fullf, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } } frame 161 { _root.lives -= 1; if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 189 { _root.respawn = 3; } frame 190 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.realdead = false; _parent.dead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 191 { ++_root.hitCoun; duplicateMovieClip(_root.fullfire, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 192 { _root.lives -= 1; } frame 220 { _root.respawn = 3; } frame 221 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } } movieClip 1695 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } } movieClip 1698 { } movieClip 1700 { } movieClip 1701 { frame 6 { _root.mangun._x = _root.man._x; _root.mangun._y = _root.man._y; if (_root.man.dir == 0) { _root.mangun._xscale = 100; } else { _root.mangun._xscale = -100; } _root.mangun.gotoAndPlay(1); } instance zoop of movieClip 620 { onClipEvent (enterFrame) { if (_root.dudehasbeenhit == false) { if (this.hitTest(_root.dude)) { if (_root.dude._x >= _parent._parent._x) { _root.dude.morex = true; } else { _root.dude.morex = false; } _root.health2 = -1; _root.nextgib = 3; _root.dude.speed = 0; _root.dude.atkn = true; _root.dude.dead = true; _root.dude.gotoAndStop(7); _root.dude.bld.gotoAndPlay('blat'); _root.dudehasbeenhit = true; ++_root.mankills; _root.mankillcount._x = _root.man._x; _root.mankillcount._y = _root.man._y; _root.mankillcount.gotoAndPlay(1); } } if (_root.greendudehasbeenhit == false) { if (this.hitTest(_root.greendude)) { if (_root.greendude._x >= _parent._parent._x) { _root.greendude.morex = true; } else { _root.greendude.morex = false; } _root.health2 = -1; _root.nextgib = 5; _root.greendude.speed = 0; _root.greendude.atkn = true; _root.greendude.dead = true; _root.greendude.gotoAndStop(7); _root.greendude.bld.gotoAndPlay('blat'); _root.greendudehasbeenhit = true; ++_root.mankills; _root.mankillcount._x = _root.man._x; _root.mankillcount._y = _root.man._y; _root.mankillcount.gotoAndPlay(1); } } if (_root.orangedudehasbeenhit == false) { if (this.hitTest(_root.orangedude)) { if (_root.orangedude._x >= _parent._parent._x) { _root.orangedude.morex = true; } else { _root.orangedude.morex = false; } _root.health2 = -1; _root.nextgib = 6; _root.orangedude.speed = 0; _root.orangedude.atkn = true; _root.orangedude.dead = true; _root.orangedude.gotoAndStop(7); _root.orangedude.bld.gotoAndPlay('blat'); _root.orangedudehasbeenhit = true; ++_root.mankills; _root.mankillcount._x = _root.man._x; _root.mankillcount._y = _root.man._y; _root.mankillcount.gotoAndPlay(1); } } } } frame 18 { _parent.gunin = false; _parent.crouchin = false; } } movieClip 1702 { instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1673 { onClipEvent (enterFrame) { if (_root.man.grav <= 3 and _root.man.grav >= 0) { this.bob.gotoAndStop(3); } else { if (_root.man.grav <= 0) { this.bob.gotoAndStop(1); } else { this.bob.gotoAndStop(2); } } } } frame 7 { if (_root.bomb) { _root.tnt._x = _x; _root.tnt._y = _y; _root.tnt._visible = true; _root.bomb = false; } } instance bld of movieClip 1692 { onClipEvent (enterFrame) { _parent.speed = 0; } } instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1695 { onClipEvent (enterFrame) { if (_root.bomb) { this.gotoAndStop('bom'); } else { this.gotoAndStop(1); } } } } instance man of movieClip 1702 { onClipEvent (load) { cooldown = 0; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { --cooldown; if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 3, true)) { if (Key.isDown(16)) { if (cooldown <= 0) { crouchin = true; gunin = true; gotoAndStop(10); cooldown = 50; } } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(40)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(40) == false) { crch = false; crouchin = false; } } } } } } } else { gunin = false; crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(39) == false and _root.pickupable) { if (Key.isDown(37) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(39) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir2 = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(37)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir2 = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (gunin == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(38)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(40)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(38) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(38) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (Key.isDown(38)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } } } movieClip 1709 { } movieClip 1710 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1713 { frame 3 { stop(); } } movieClip 1715 { } movieClip 1718 { frame 17 { stop(); } } movieClip 1720 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } frame 2 { if (_root.bomb) { gotoAndStop('bom2'); } stop(); } frame 3 { if (_root.bomb) { gotoAndStop('bom3'); } stop(); } frame 4 { stop(); } } movieClip 1721 { frame 20 { stop(); } } movieClip 1723 { } movieClip 1725 { } movieClip 1727 { } movieClip 1731 { frame 1 { stop(); } } movieClip 1734 { } movieClip 1735 { } movieClip 1737 { } movieClip 1738 { } movieClip 1739 { frame 2 { if (_root.health >= 1) { gotoAndPlay(129); } else { gotoAndPlay(35); _parent.realdead = true; _root.health = _root.maxhealth; if (poo) { if (_root.gore == 'none') { gotoAndPlay(98); } else { if (_root.gore == 'half') { gotoAndPlay(35); } else { meh = new Array(3, 35, 67); gotoAndPlay(meh[random(3)]); } } } _root.health = _root.maxhealth; } } frame 2 { _root.blod.play(); } frame 3 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 4 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 32 { _root.respawn = 3; } frame 33 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 34 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 35 { ++_root.hitCoun; duplicateMovieClip(_root.full, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; _root['hitne' + _root.hitCoun].morex = _parent.morex; _root['hitne' + _root.hitCoun].gib = 3; if (_parent.dir == 1) { _root.lol = 3; _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root.lol = 4; _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 36 { if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 64 { _root.respawn = 3; } frame 65 { _root.dudeneedspawn = true; stop(); } frame 66 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 67 { ++_root.hitCoun; duplicateMovieClip(_root.half, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 68 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 96 { _root.respawn = 3; } frame 97 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 98 { ++_root.hitCoun; duplicateMovieClip(_root.fullnogore, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 127 { _root.respawn = 3; } frame 128 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 129 { ++_root.hitCoun; duplicateMovieClip(_root.fullno, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } _root.health -= 1; if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; ++_root.litCoun; duplicateMovieClip(_root.splsh, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 159 { stop(); } frame 160 { _parent.realdead = true; if (_root.gore == 'none') { ++_root.hitCoun; duplicateMovieClip(_root.fullnogoref, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } else { ++_root.hitCoun; duplicateMovieClip(_root.fullf, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } } frame 161 { _root.lives -= 1; if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 189 { _root.respawn = 3; } frame 190 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.realdead = false; _parent.dead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 191 { ++_root.hitCoun; duplicateMovieClip(_root.fullfire, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 192 { _root.lives -= 1; } frame 220 { _root.respawn = 3; } frame 221 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } } movieClip 1742 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } } movieClip 1745 { } movieClip 1747 { } movieClip 1748 { frame 6 { _root.mangun._x = _root.man._x; _root.mangun._y = _root.man._y; if (_root.man.dir == 0) { _root.mangun._xscale = 100; } else { _root.mangun._xscale = -100; } _root.mangun.gotoAndPlay(1); } instance zoop of movieClip 620 { onClipEvent (enterFrame) { if (_root.manhasbeenhit == false) { if (this.hitTest(_root.man)) { if (_root.man._x >= _parent._parent._x) { _root.man.morex = true; } else { _root.man.morex = false; } _root.health = -1; _root.nextgib = 4; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay('blat'); _root.manhasbeenhit = true; ++_root.dudekills; _root.dudekillcount._x = _root.dude._x; _root.dudekillcount._y = _root.dude._y; _root.dudekillcount.gotoAndPlay(1); } } if (_root.greendudehasbeenhit == false) { if (this.hitTest(_root.greendude)) { if (_root.greendude._x >= _parent._parent._x) { _root.greendude.morex = true; } else { _root.greendude.morex = false; } _root.health2 = -1; _root.nextgib = 5; _root.greendude.speed = 0; _root.greendude.atkn = true; _root.greendude.dead = true; _root.greendude.gotoAndStop(7); _root.greendude.bld.gotoAndPlay('blat'); _root.greendudehasbeenhit = true; ++_root.dudekills; _root.dudekillcount._x = _root.dude._x; _root.dudekillcount._y = _root.dude._y; _root.dudekillcount.gotoAndPlay(1); } } if (_root.orangedudehasbeenhit == false) { if (this.hitTest(_root.orangedude)) { if (_root.orangedude._x >= _parent._parent._x) { _root.orangedude.morex = true; } else { _root.orangedude.morex = false; } _root.health2 = -1; _root.nextgib = 6; _root.orangedude.speed = 0; _root.orangedude.atkn = true; _root.orangedude.dead = true; _root.orangedude.gotoAndStop(7); _root.orangedude.bld.gotoAndPlay('blat'); _root.orangedudehasbeenhit = true; ++_root.dudekills; _root.dudekillcount._x = _root.dude._x; _root.dudekillcount._y = _root.dude._y; _root.dudekillcount.gotoAndPlay(1); } } } } frame 18 { _parent.gunin = false; _parent.crouchin = false; } } movieClip 1749 { instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1721 { onClipEvent (enterFrame) { if (_root.man.grav <= 3 and _root.man.grav >= 0) { this.bob.gotoAndStop(3); } else { if (_root.man.grav <= 0) { this.bob.gotoAndStop(1); } else { this.bob.gotoAndStop(2); } } } } frame 7 { if (_root.bomb) { _root.tnt._x = _x; _root.tnt._y = _y; _root.tnt._visible = true; _root.bomb = false; } } instance bld of movieClip 1739 { onClipEvent (enterFrame) { _parent.speed = 0; } } instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1742 { onClipEvent (enterFrame) { if (_root.bomb) { this.gotoAndStop('bom'); } else { this.gotoAndStop(1); } } } } instance dude of movieClip 1749 { onClipEvent (load) { cooldown = 0; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { --cooldown; if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 3, true)) { if (Key.isDown(69) or Key.isDown(81)) { if (cooldown <= 0) { crouchin = true; gunin = true; gotoAndStop(10); cooldown = 50; } } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(83)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(83) == false) { crch = false; crouchin = false; } } } } } } } else { gunin = false; crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(68) == false and _root.pickupable) { if (Key.isDown(65) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(68) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir2 = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(65)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir2 = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (gunin == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(87)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(83)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(87) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(87) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (Key.isDown(87)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } } } movieClip 1756 { } movieClip 1757 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1760 { frame 3 { stop(); } } movieClip 1771 { frame 17 { stop(); } } movieClip 1773 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } frame 2 { if (_root.bomb) { gotoAndStop('bom2'); } stop(); } frame 3 { if (_root.bomb) { gotoAndStop('bom3'); } stop(); } frame 4 { stop(); } } movieClip 1774 { frame 20 { stop(); } } movieClip 1776 { } movieClip 1778 { } movieClip 1780 { } movieClip 1782 { } movieClip 1784 { } movieClip 1785 { } movieClip 1786 { frame 2 { if (_root.health >= 1) { gotoAndPlay(129); } else { gotoAndPlay(35); _parent.realdead = true; _root.health = _root.maxhealth; if (poo) { if (_root.gore == 'none') { gotoAndPlay(98); } else { if (_root.gore == 'half') { gotoAndPlay(35); } else { meh = new Array(3, 35, 67); gotoAndPlay(meh[random(3)]); } } } _root.health = _root.maxhealth; } } frame 2 { _root.blod.play(); } frame 3 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 4 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 32 { _root.respawn = 3; } frame 33 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 34 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 35 { ++_root.hitCoun; duplicateMovieClip(_root.full, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; _root['hitne' + _root.hitCoun].morex = _parent.morex; _root['hitne' + _root.hitCoun].gib = 5; if (_parent.dir == 1) { _root.lol = 3; _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root.lol = 4; _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 36 { if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 64 { _root.respawn = 3; } frame 65 { _root.greendudeneedspawn = true; stop(); } frame 66 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 67 { ++_root.hitCoun; duplicateMovieClip(_root.half, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 68 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 96 { _root.respawn = 3; } frame 97 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 98 { ++_root.hitCoun; duplicateMovieClip(_root.fullnogore, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 127 { _root.respawn = 3; } frame 128 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 129 { ++_root.hitCoun; duplicateMovieClip(_root.fullno, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } _root.health -= 1; if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; ++_root.litCoun; duplicateMovieClip(_root.splsh, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 159 { stop(); } frame 160 { _parent.realdead = true; if (_root.gore == 'none') { ++_root.hitCoun; duplicateMovieClip(_root.fullnogoref, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } else { ++_root.hitCoun; duplicateMovieClip(_root.fullf, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } } frame 161 { _root.lives -= 1; if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 189 { _root.respawn = 3; } frame 190 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.realdead = false; _parent.dead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 191 { ++_root.hitCoun; duplicateMovieClip(_root.fullfire, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 192 { _root.lives -= 1; } frame 220 { _root.respawn = 3; } frame 221 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } } movieClip 1789 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } } movieClip 1792 { } movieClip 1794 { } movieClip 1795 { } movieClip 1796 { frame 6 { _root.mangun._x = _root.man._x; _root.mangun._y = _root.man._y; if (_root.man.dir == 0) { _root.mangun._xscale = 100; } else { _root.mangun._xscale = -100; } _root.mangun.gotoAndPlay(1); } instance zoop of movieClip 1795 { onClipEvent (enterFrame) { if (_root.manhasbeenhit == false) { if (this.hitTest(_root.man)) { if (_root.man._x >= _parent._parent._x) { _root.man.morex = true; } else { _root.man.morex = false; } _root.health = -1; _root.nextgib = 4; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay('blat'); _root.manhasbeenhit = true; ++_root.greendudekills; _root.greendudekillcount._x = _root.greendude._x; _root.greendudekillcount._y = _root.greendude._y; _root.greendudekillcount.gotoAndPlay(1); } } if (_root.dudehasbeenhit == false) { if (this.hitTest(_root.dude)) { if (_root.dude._x >= _parent._parent._x) { _root.dude.morex = true; } else { _root.dude.morex = false; } _root.health2 = -1; _root.nextgib = 3; _root.dude.speed = 0; _root.dude.atkn = true; _root.dude.dead = true; _root.dude.gotoAndStop(7); _root.dude.bld.gotoAndPlay('blat'); _root.dudehasbeenhit = true; ++_root.greendudekills; _root.greendudekillcount._x = _root.greendude._x; _root.greendudekillcount._y = _root.greendude._y; _root.greendudekillcount.gotoAndPlay(1); } } if (_root.orangedudehasbeenhit == false) { if (this.hitTest(_root.orangedude)) { if (_root.orangedude._x >= _parent._parent._x) { _root.orangedude.morex = true; } else { _root.orangedude.morex = false; } _root.health2 = -1; _root.nextgib = 6; _root.orangedude.speed = 0; _root.orangedude.atkn = true; _root.orangedude.dead = true; _root.orangedude.gotoAndStop(7); _root.orangedude.bld.gotoAndPlay('blat'); _root.orangedudehasbeenhit = true; ++_root.greendudekills; _root.greendudekillcount._x = _root.greendude._x; _root.greendudekillcount._y = _root.greendude._y; _root.greendudekillcount.gotoAndPlay(1); } } } } frame 18 { _parent.gunin = false; _parent.crouchin = false; } } movieClip 1797 { instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1774 { onClipEvent (enterFrame) { if (_root.man.grav <= 3 and _root.man.grav >= 0) { this.bob.gotoAndStop(3); } else { if (_root.man.grav <= 0) { this.bob.gotoAndStop(1); } else { this.bob.gotoAndStop(2); } } } } frame 7 { if (_root.bomb) { _root.tnt._x = _x; _root.tnt._y = _y; _root.tnt._visible = true; _root.bomb = false; } } instance bld of movieClip 1786 { onClipEvent (enterFrame) { _parent.speed = 0; } } instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1789 { onClipEvent (enterFrame) { if (_root.bomb) { this.gotoAndStop('bom'); } else { this.gotoAndStop(1); } } } } instance greendude of movieClip 1797 { onClipEvent (load) { cooldown = 0; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { --cooldown; if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 3, true)) { if (Key.isDown(79) or Key.isDown(85)) { if (cooldown <= 0) { crouchin = true; gunin = true; gotoAndStop(10); cooldown = 50; } } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(75)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(75) == false) { crch = false; crouchin = false; } } } } } } } else { gunin = false; crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(76) == false and _root.pickupable) { if (Key.isDown(74) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(76) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir2 = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(74)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir2 = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (gunin == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(73)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(75)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(73) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(73) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (Key.isDown(73)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } } } movieClip 1804 { } movieClip 1805 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } } frame 12 { stop(); } frame 13 { stop(); } } movieClip 1808 { frame 3 { stop(); } } movieClip 1819 { frame 17 { stop(); } } movieClip 1821 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } frame 2 { if (_root.bomb) { gotoAndStop('bom2'); } stop(); } frame 3 { if (_root.bomb) { gotoAndStop('bom3'); } stop(); } frame 4 { stop(); } } movieClip 1822 { frame 20 { stop(); } } movieClip 1824 { } movieClip 1826 { } movieClip 1828 { } movieClip 1830 { } movieClip 1832 { } movieClip 1833 { } movieClip 1834 { frame 2 { if (_root.health >= 1) { gotoAndPlay(129); } else { gotoAndPlay(35); _parent.realdead = true; _root.health = _root.maxhealth; if (poo) { if (_root.gore == 'none') { gotoAndPlay(98); } else { if (_root.gore == 'half') { gotoAndPlay(35); } else { meh = new Array(3, 35, 67); gotoAndPlay(meh[random(3)]); } } } _root.health = _root.maxhealth; } } frame 2 { _root.blod.play(); } frame 3 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 4 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 32 { _root.respawn = 3; } frame 33 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 34 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 35 { ++_root.hitCoun; duplicateMovieClip(_root.full, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; _root['hitne' + _root.hitCoun].morex = _parent.morex; _root['hitne' + _root.hitCoun].gib = 6; if (_parent.dir == 1) { _root.lol = 3; _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root.lol = 4; _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 36 { if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 64 { _root.respawn = 3; } frame 65 { _root.orangedudeneedspawn = true; stop(); } frame 66 { ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.arm, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.leg, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.body, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y; } frame 67 { ++_root.hitCoun; duplicateMovieClip(_root.half, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } ++_root.hitCoun; duplicateMovieClip(_root.head, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; } frame 68 { _root.lives -= 1; i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } frame 96 { _root.respawn = 3; } frame 97 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.dudehasbeenhit = false; } stop(); } frame 98 { ++_root.hitCoun; duplicateMovieClip(_root.fullnogore, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 127 { _root.respawn = 3; } frame 128 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 129 { ++_root.hitCoun; duplicateMovieClip(_root.fullno, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } _root.health -= 1; if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; ++_root.litCoun; duplicateMovieClip(_root.splsh, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 159 { stop(); } frame 160 { _parent.realdead = true; if (_root.gore == 'none') { ++_root.hitCoun; duplicateMovieClip(_root.fullnogoref, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } else { ++_root.hitCoun; duplicateMovieClip(_root.fullf, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } } frame 161 { _root.lives -= 1; if (_root.gore == 'full') { i = 1; while (i <= 15) { ++_root.hitCoun; duplicateMovieClip(_root.flick, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; ++i; } } if (_root.gore == 'none') { } else { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _parent._x; _root['hitne' + _root.litCoun]._y = _parent._y; } } frame 189 { _root.respawn = 3; } frame 190 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.realdead = false; _parent.dead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } frame 191 { ++_root.hitCoun; duplicateMovieClip(_root.fullfire, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _parent._x; _root['hitne' + _root.hitCoun]._y = _parent._y - 20; if (_parent.dir == 1) { _root['hitne' + _root.hitCoun].scay = -1; _root['hitne' + _root.hitCoun]._xscale = -100; } else { _root['hitne' + _root.hitCoun].scay = 1; _root['hitne' + _root.hitCoun]._xscale = 100; } } frame 192 { _root.lives -= 1; } frame 220 { _root.respawn = 3; } frame 221 { if (_root.lives >= 0) { _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _parent._y = _root.spawny; _parent._x = _root.spawnx; _root.cm._x = _root.man._x; _root.cm._y = _root.man._y; _parent.grav = 0; _parent.dead = false; _parent.realdead = false; _parent.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; } stop(); } } movieClip 1837 { frame 1 { if (_root.bomb) { gotoAndStop('bom'); } stop(); } } movieClip 1840 { } movieClip 1842 { } movieClip 1843 { frame 6 { _root.mangun._x = _root.man._x; _root.mangun._y = _root.man._y; if (_root.man.dir == 0) { _root.mangun._xscale = 100; } else { _root.mangun._xscale = -100; } _root.mangun.gotoAndPlay(1); } instance zoop of movieClip 620 { onClipEvent (enterFrame) { if (_root.manhasbeenhit == false) { if (this.hitTest(_root.man)) { if (_root.man._x >= _parent._parent._x) { _root.man.morex = true; } else { _root.man.morex = false; } _root.health = -1; _root.nextgib = 4; _root.man.speed = 0; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); _root.man.bld.gotoAndPlay('blat'); _root.manhasbeenhit = true; ++_root.orangedudekills; _root.orangedudekillcount._x = _root.orangedude._x; _root.orangedudekillcount._y = _root.orangedude._y; _root.orangedudekillcount.gotoAndPlay(1); } } if (_root.dudehasbeenhit == false) { if (this.hitTest(_root.dude)) { if (_root.dude._x >= _parent._parent._x) { _root.dude.morex = true; } else { _root.dude.morex = false; } _root.health2 = -1; _root.nextgib = 3; _root.dude.speed = 0; _root.dude.atkn = true; _root.dude.dead = true; _root.dude.gotoAndStop(7); _root.dude.bld.gotoAndPlay('blat'); _root.dudehasbeenhit = true; ++_root.orangedudekills; _root.orangedudekillcount._x = _root.orangedude._x; _root.orangedudekillcount._y = _root.orangedude._y; _root.orangedudekillcount.gotoAndPlay(1); } } if (_root.greendudehasbeenhit == false) { if (this.hitTest(_root.greendude)) { if (_root.greendude._x >= _parent._parent._x) { _root.greendude.morex = true; } else { _root.greendude.morex = false; } _root.health2 = -1; _root.nextgib = 5; _root.greendude.speed = 0; _root.greendude.atkn = true; _root.greendude.dead = true; _root.greendude.gotoAndStop(7); _root.greendude.bld.gotoAndPlay('blat'); _root.greendudehasbeenhit = true; ++_root.orangedudekills; _root.orangedudekillcount._x = _root.orangedude._x; _root.orangedudekillcount._y = _root.orangedude._y; _root.orangedudekillcount.gotoAndPlay(1); } } } } frame 18 { _parent.gunin = false; _parent.crouchin = false; } } movieClip 1844 { instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1822 { onClipEvent (enterFrame) { if (_root.man.grav <= 3 and _root.man.grav >= 0) { this.bob.gotoAndStop(3); } else { if (_root.man.grav <= 0) { this.bob.gotoAndStop(1); } else { this.bob.gotoAndStop(2); } } } } frame 7 { if (_root.bomb) { _root.tnt._x = _x; _root.tnt._y = _y; _root.tnt._visible = true; _root.bomb = false; } } instance bld of movieClip 1834 { onClipEvent (enterFrame) { _parent.speed = 0; } } instance ball of movieClip 516 { onClipEvent (load) { _root.respawn = 0; } } instance of movieClip 1837 { onClipEvent (enterFrame) { if (_root.bomb) { this.gotoAndStop('bom'); } else { this.gotoAndStop(1); } } } } instance orangedude of movieClip 1844 { onClipEvent (load) { cooldown = 0; gunin = false; dead = false; atkn = false; scale = _xscale; jumpHeight = 12; grav = 0; dir = 0; gpow = 1; speed = 0; fric = 1; acc = 1; max = 8; crouchin = false; climbing = false; } onClipEvent (enterFrame) { --cooldown; if (speed >= 4) { this.stand.clip.gotoAndStop(2); } else { if (speed <= -4) { this.stand.clip.gotoAndStop(2); } else { this.stand.clip.gotoAndStop(1); } } if (dead == false) { if (atkn == false) { if (_root.ground.hitTest(_x, _y + 3, true)) { if (Key.isDown(89) or Key.isDown(82)) { if (cooldown <= 0) { crouchin = true; gunin = true; gotoAndStop(10); cooldown = 50; } } else { if (gunin == false) { if (_root.noclip == false) { if (Key.isDown(71)) { crch = true; crouchin = true; gotoAndStop(9); } if (crouchin) { if (crch) { if (Key.isDown(71) == false) { crch = false; crouchin = false; } } } } } } } else { gunin = false; crouchin = false; } } } else { crouchin = false; } if (grav >= 20) { grav = 20; } while (_root.ground.hitTest(_x, _y, true) or _root.box.hitTest(_x, _y, true)) { _y = _y - 1; grav = 0; hit_gr = false; } if (dead == false) { if (crouchin) { if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } _x = _x + speed; if (Key.isDown(72) == false and _root.pickupable) { if (Key.isDown(70) == false) { if (atkn == false) { if (crouchin == false) { if (climbing) { if (movinup == false and movindown == false) { this.gotoAndStop(4); } } else { if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { this.gotoAndStop(2); } else { this.gotoAndStop(3); } } if (speed >= -0.1 && speed <= 0.1) { speed = 0; } if (speed >= 0.1) { speed -= fric; } if (speed <= -0.1) { speed += fric; } } } } } if (speed <= -max) { speed = -max; } if (speed >= max) { speed = max; } if (Key.isDown(72) or _root.pickupable == false) { if (crouchin == false) { if (atkn == false) { dir = 0; speed += acc; _root.dir2 = 0; _xscale = scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } else { if (Key.isDown(70)) { if (crouchin == false) { if (atkn == false) { dir = 1; speed -= acc; _root.dir2 = 1; _xscale = -scale; } if (_root.ground.hitTest(_x, _y + 10, true) or _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { this.gotoAndStop(1); } } else { if (climbing) { this.gotoAndStop(5); } else { this.gotoAndStop(2); } } } } } } if (dead == false) { if (gunin == false) { if (_root.noclip == false) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { climbing = false; } if (_root.ladder.hitTest(_x, _y - 3, true)) { if (Key.isDown(84)) { if (atkn == false) { climbing = true; _y = _y - 5; grav = 0; this.gotoAndStop(6); movinup = true; } } else { movinup = false; } if (Key.isDown(71)) { if (atkn == false) { climbing = true; _y = _y + 5; grav = 0; this.gotoAndStop(6); movindown = true; } } else { movindown = false; } } else { movinup = false; if (Key.isDown(84) && _root.ground.hitTest(_x, _y + 10, true) or Key.isDown(84) && _root.box.hitTest(_x, _y + 3, true)) { if (atkn == false) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); } } } if (climbing == false) { if (_root.noclip == false) { grav += gpow; _y = _y + grav; } } } if (Key.isDown(84)) { if (_root.ladder.hitTest(_x, _y - 3, true) == false) { if (climbing) { _y = _y - 5; grav = -jumpHeight; this.gotoAndStop(2); climbing = false; } } } } if (_root.ground.hitTest(_x, _y + 10, true) == false and _root.box.hitTest(_x, _y + 3, true) == false) { atkn = false; if (climbing == false) { this.gotoAndStop(2); } } if (_root.ground.hitTest(_x, _y - _height, true)) { if (_root.noclip == false) { grav = 2; } else { _y = _y + 10; } } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; speed = 0; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; speed = 0; } } } } } movieClip 1847 { } movieClip 1850 { frame 1 { stop(); } instance of movieClip 1847 { onClipEvent (enterFrame) { if (_root.manneedspawn) { _parent.gotoAndPlay('manspawn'); } if (_root.dudeneedspawn) { _parent.gotoAndPlay('dudespawn'); } if (_root.greendudeneedspawn) { _parent.gotoAndPlay('greendudespawn'); } if (_root.orangedudeneedspawn) { _parent.gotoAndPlay('orangedudespawn'); } } } frame 2 { this.gotoAndPlay(1); } frame 3 { meh = new Array(1, 2, 3, 4); _root.spawnarea = meh[random(4)]; play(); } frame 4 { if (_root.spotfree == false and _root.spawnarea == 1) { prevFrame(); } if (_root.spotfree2 == false and _root.spawnarea == 2) { prevFrame(); } if (_root.spotfree3 == false and _root.spawnarea == 3) { prevFrame(); } if (_root.spotfree4 == false and _root.spawnarea == 4) { prevFrame(); } } frame 5 { if (_root.spawnarea == 1) { _root.man._y = _root.spot._y; _root.man._x = _root.spot._x; } if (_root.spawnarea == 2) { _root.man._y = _root.spot2._y; _root.man._x = _root.spot2._x; } if (_root.spawnarea == 3) { _root.man._y = _root.spot3._y; _root.man._x = _root.spot3._x; } if (_root.spawnarea == 4) { _root.man._y = _root.spot4._y; _root.man._x = _root.spot4._x; } _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _root.man.grav = 0; _root.man.dead = false; _root.man.realdead = false; _root.man.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.cm.xlocked = 'none'; _root.cm.ylocked = 'none'; _root.manhasbeenhit = false; _root.manneedspawn = false; this.gotoAndPlay(1); } frame 7 { meh = new Array(1, 2, 3, 4); _root.spawnarea = meh[random(4)]; play(); } frame 8 { if (_root.spotfree == false and _root.spawnarea == 1) { prevFrame(); } if (_root.spotfree2 == false and _root.spawnarea == 2) { prevFrame(); } if (_root.spotfree3 == false and _root.spawnarea == 3) { prevFrame(); } if (_root.spotfree4 == false and _root.spawnarea == 4) { prevFrame(); } } frame 9 { if (_root.spawnarea == 1) { _root.dude._y = _root.spot._y; _root.dude._x = _root.spot._x; } if (_root.spawnarea == 2) { _root.dude._y = _root.spot2._y; _root.dude._x = _root.spot2._x; } if (_root.spawnarea == 3) { _root.dude._y = _root.spot3._y; _root.dude._x = _root.spot3._x; } if (_root.spawnarea == 4) { _root.dude._y = _root.spot4._y; _root.dude._x = _root.spot4._x; } _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _root.dude.grav = 0; _root.dude.dead = false; _root.dude.realdead = false; _root.dude.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.cm.xlocked = 'none'; _root.cm.ylocked = 'none'; _root.dudehasbeenhit = false; _root.dudeneedspawn = false; this.gotoAndPlay(1); } frame 11 { meh = new Array(1, 2, 3, 4); _root.spawnarea = meh[random(4)]; play(); } frame 12 { if (_root.spotfree == false and _root.spawnarea == 1) { prevFrame(); } if (_root.spotfree2 == false and _root.spawnarea == 2) { prevFrame(); } if (_root.spotfree3 == false and _root.spawnarea == 3) { prevFrame(); } if (_root.spotfree4 == false and _root.spawnarea == 4) { prevFrame(); } } frame 13 { if (_root.spawnarea == 1) { _root.greendude._y = _root.spot._y; _root.greendude._x = _root.spot._x; } if (_root.spawnarea == 2) { _root.greendude._y = _root.spot2._y; _root.greendude._x = _root.spot2._x; } if (_root.spawnarea == 3) { _root.greendude._y = _root.spot3._y; _root.greendude._x = _root.spot3._x; } if (_root.spawnarea == 4) { _root.greendude._y = _root.spot4._y; _root.greendude._x = _root.spot4._x; } _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _root.greendude.grav = 0; _root.greendude.dead = false; _root.greendude.realdead = false; _root.greendude.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.cm.xlocked = 'none'; _root.cm.ylocked = 'none'; _root.greendudehasbeenhit = false; _root.greendudeneedspawn = false; this.gotoAndPlay(1); } frame 15 { meh = new Array(1, 2, 3, 4); _root.spawnarea = meh[random(4)]; play(); } frame 16 { if (_root.spotfree == false and _root.spawnarea == 1) { prevFrame(); } if (_root.spotfree2 == false and _root.spawnarea == 2) { prevFrame(); } if (_root.spotfree3 == false and _root.spawnarea == 3) { prevFrame(); } if (_root.spotfree4 == false and _root.spawnarea == 4) { prevFrame(); } } frame 17 { if (_root.spawnarea == 1) { _root.orangedude._y = _root.spot._y; _root.orangedude._x = _root.spot._x; } if (_root.spawnarea == 2) { _root.orangedude._y = _root.spot2._y; _root.orangedude._x = _root.spot2._x; } if (_root.spawnarea == 3) { _root.orangedude._y = _root.spot3._y; _root.orangedude._x = _root.spot3._x; } if (_root.spawnarea == 4) { _root.orangedude._y = _root.spot4._y; _root.orangedude._x = _root.spot4._x; } _root.blud._alpha = 0; _root.invince = 20; _root.life.gotoAndPlay(1); _root.orangedude.grav = 0; _root.orangedude.dead = false; _root.orangedude.realdead = false; _root.orangedude.atkn = false; _root.health = _root.maxhealth; _root.hitsomethingdeadly = false; _root.cm.xlocked = 'none'; _root.cm.ylocked = 'none'; _root.orangedudehasbeenhit = false; _root.orangedudeneedspawn = false; this.gotoAndPlay(1); } } movieClip 1864 { } instance of movieClip 1864 { onClipEvent (enterFrame) { if (_root.multiplayers == 2) { this.gotoAndStop(1); } if (_root.multiplayers == 3) { this.gotoAndStop(2); } if (_root.multiplayers == 4) { this.gotoAndStop(3); } } } movieClip 1866 { } movieClip 1867 { frame 1 { stop(); } instance of movieClip 1866 { onClipEvent (enterFrame) { _root.orangedude._x = 150; _root.orangedude._y = -300; _root.greendude._x = 400; _root.greendude._y = -300; } } frame 2 { stop(); } instance of movieClip 1866 { onClipEvent (enterFrame) { _root.orangedude._x = 150; _root.orangedude._y = -300; } } frame 3 { stop(); } } instance of movieClip 1867 { onClipEvent (load) { if (_root.multiplayers == 2) { this.gotoAndStop(1); } if (_root.multiplayers == 3) { this.gotoAndStop(2); } if (_root.multiplayers == 4) { this.gotoAndStop(3); } } } movieClip 1870 { frame 43 { stop(); } } instance mankillcount of movieClip 1870 { onClipEvent (enterFrame) { if (_root.mankills <= 1) { this.textbox = _root.mankills + ' kill'; } else { this.textbox = _root.mankills + ' kills'; } } } instance dudekillcount of movieClip 1870 { onClipEvent (enterFrame) { if (_root.dudekills <= 1) { this.textbox = _root.dudekills + ' kill'; } else { this.textbox = _root.dudekills + ' kills'; } } } instance greendudekillcount of movieClip 1870 { onClipEvent (enterFrame) { if (_root.greendudekills <= 1) { this.textbox = _root.greendudekills + ' kill'; } else { this.textbox = _root.greendudekills + ' kills'; } } } instance orangedudekillcount of movieClip 1870 { onClipEvent (enterFrame) { if (_root.orangedudekills <= 1) { this.textbox = _root.orangedudekills + ' kill'; } else { this.textbox = _root.orangedudekills + ' kills'; } } } movieClip 1878 { } movieClip 1880 { } movieClip 1881 { frame 101 { if (_root.multiplayergamefinished == false) { gotoAndStop(1); } else { _root.endscene = false; _root.gotoAndStop(2); } } } instance of movieClip 1881 { onClipEvent (enterFrame) { if (_root.whowon == 1) { this.textdisplay.gotoAndStop(4); } if (_root.whowon == 2) { this.textdisplay.gotoAndStop(5); } if (_root.whowon == 3) { this.textdisplay.gotoAndStop(6); } if (_root.whowon == 4) { this.textdisplay.gotoAndStop(7); } if (_root.multiplayergamefinished == false) { if (_root.mankills >= _root.killstowin) { _root.whowon = 1; this.gotoAndPlay(1); _root.multiplayergamefinished = true; } if (_root.dudekills >= _root.killstowin) { _root.whowon = 2; this.gotoAndPlay(1); _root.multiplayergamefinished = true; } if (_root.greendudekills >= _root.killstowin) { _root.whowon = 3; this.gotoAndPlay(1); _root.multiplayergamefinished = true; } if (_root.orangedudekills >= _root.killstowin) { _root.whowon = 4; this.gotoAndPlay(1); _root.multiplayergamefinished = true; } if (_root.multiplayers == 2) { _root.killstowin = 15; this.textdisplay.gotoAndStop(1); } if (_root.multiplayers == 3) { _root.killstowin = 20; this.textdisplay.gotoAndStop(2); } if (_root.multiplayers == 4) { _root.killstowin = 25; this.textdisplay.gotoAndStop(3); } } } } instance fullf of movieClip 880 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (we <= 5) { wimer -= 1; if (wimer <= 0) { if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; we += 0.5; wimer = t; } } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 5; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(4); } } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(5); } } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (gib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { gib = _root.nextgib; front = Math.random() * 20 + 80; spinin = true; spd = 0; gravity = 5; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { rot = Math.random() * 180 - 90; } else { if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance ebulet of movieClip 950 { onClipEvent (enterFrame) { timer -= 1; if (timer <= 0) { this.removeMovieClip(); } if (this.hit.hitTest(_root.man.hit)) { if (_root.invince <= 1) { _root.nextgib = 1; _root.man.atkn = true; _root.man.dead = true; _root.man.gotoAndStop(7); this.removeMovieClip(); } } } onClipEvent (load) { timer = 18; blown = false; start = true; spd = 15; sp = 25; } onClipEvent (enterFrame) { if (start == true) { if (_rotation > 180) { _y = _y + sp * Math.cos(0.0174532925199433 * _rotation); _x = _x - sp * Math.sin(0.0174532925199433 * _rotation); start = false; } else { _y = _y - sp * Math.cos(0.0174532925199433 * _rotation); _x = _x + sp * Math.sin(0.0174532925199433 * _rotation); start = false; } } } onClipEvent (load) { rx = _root.man._x; ry = _root.man._y - 20; cx = this._x; cy = this._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433 + 90; _rotation = angle - 5 + Math.random() * 10; } onClipEvent (enterFrame) { if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } instance gunkill of movieClip 952 { onClipEvent (load) { _visible = false; } } instance fullfire of movieClip 967 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } onClipEvent (enterFrame) { while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (_root.nextgib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { front = Math.random() * 20 + 80; spinin = true; spd = 0; } onClipEvent (enterFrame) { timer -= 1; if (this._y >= 1500) { this.removeMovieClip(); } } onClipEvent (load) { if (_root.man.dir == 0) { _xscale = 100; } else { _xscale = -100; } this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } movieClip 1889 { frame 1 { meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 1900 { frame 1 { stop(); meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 1901 { frame 1 { if (_root.nextgib == 2) { gotoAndStop(6); } stop(); } frame 2 { _parent.playr.gotoAndPlay(2); } frame 3 { _parent.playr.gotoAndPlay(2); } frame 4 { _parent.playr.gotoAndPlay(2); } frame 5 { _parent.playr.gotoAndPlay(2); } } movieClip 1902 { frame 250 { this.removeMovieClip(); stop(); } } instance fullnogore of movieClip 1902 { onClipEvent (enterFrame) { if (we <= 5) { wimer -= 1; if (wimer <= 0) { if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; we += 0.5; wimer = t; } } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(4); } } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(5); } } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (gib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { gib = _root.nextgib; front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_x >= _root.man._x + _root.dupeangletest) { if (_root.shotgundeath) { rot = 60 + Math.random() * 30; } else { rot = Math.random() * 90; } } else { if (_x <= _root.man._x - _root.dupeangletest) { if (_root.shotgundeath) { rot = -60 - Math.random() * 30; } else { rot = -Math.random() * 90; } } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance fullnogoref of movieClip 1902 { onClipEvent (enterFrame) { if (we <= 5) { wimer -= 1; if (wimer <= 0) { if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; we += 0.5; wimer = t; } } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(4); } } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } else { _rotation = -front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(5); } } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (gib == 2) { this.bob.gotoAndStop(6); } else { this.bob.gotoAndStop(1); } spinin = true; } } onClipEvent (load) { gib = _root.nextgib; front = Math.random() * 20 + 80; spinin = true; spd = 0; gravity = 5; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; if (nextgib == 1) { rot = Math.random() * 180 - 90; } else { if (_x >= _root.man._x + _root.dupeangletest) { rot = Math.random() * 90; } else { if (_x <= _root.man._x - _root.dupeangletest) { rot = -(Math.random() * 90); } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance blu of movieClip 990 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha >= 100) { _alpha = 100; } if (_alpha <= 0) { _alpha = 0; } this.swapDepths(_root.hitCoun + 490); if (_root.man.realdead) { _alpha = _alpha + 5; } else { _alpha = _alpha - 20; } _x = _root.c._x; _y = _root.c._y; } } instance of movieClip 1013 { onClipEvent (enterFrame) { _x = _root.cm._x; _y = _root.cm._y; } } button 1904 { on (keyPress 'n') { if (_root.noclip) { _root.noclip = false; } else { _root.noclip = true; } } } instance of movieClip 1023 { onClipEvent (enterFrame) { this.swapDepths(_root.hitCoun + 700); if (_root.remover) { this.gotoAndPlay(1); } _x = _root.cm._x; _y = _root.cm._y; } } instance blup of movieClip 1040 { onClipEvent (enterFrame) { this.swapDepths(_root.hitCoun + 500); if (_root.lives <= -1) { _visible = true; } else { _visible = false; } _x = _root.cm._x; _y = _root.cm._y; } } instance flsh of movieClip 1045 { onClipEvent (load) { this.gotoAndStop('edn'); } onClipEvent (enterFrame) { this.swapDepths(_root.hitCoun + 2000); _x = _root.cm._x; _y = _root.cm._y; } } movieClip 1910 { frame 1 { meh = new Array(2, 3, 4, 5, 6); gotoAndStop(meh[random(5)]); } } movieClip 1911 { frame 250 { this.removeMovieClip(); stop(); } } instance chunk of movieClip 1911 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (spilt == false) { if (_root.ground.hitTest(_x, _y, true)) { this.playr.gotoAndPlay(2); if (_root.gore == 'full') { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; } spilt = true; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { spinin = true; } } onClipEvent (load) { spilt = false; spinin = true; spd = 10 + Math.random() * 10; gravity = 0; constant_rotation = Math.random() * 40 - 20; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { if (_root.gore == 'full') { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; t += 0.5; timer = t; } } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = Math.random() * 360; rot = Math.random() * 180 - 90; } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } instance full of movieClip 880 { onClipEvent (enterFrame) { if (_root.remover) { this.removeMovieClip(); } if (we <= 5) { wimer -= 1; if (wimer <= 0) { ++_root.litCoun; duplicateMovieClip(_root.pool, 'hitne' + _root.litCoun, _root.litCoun); _root['hitne' + _root.litCoun]._x = _x; _root['hitne' + _root.litCoun]._y = _y; we += 0.5; wimer = t; } } if (_root.ground.hitTest(_x, _y - _height, true)) { gravity = 15; } else { for (;;) { if (!(_root.ground.hitTest(_x + _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x + _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x - 1; spd = -spd; } for (;;) { if (!(_root.ground.hitTest(_x - _width / 2, _y - _height / 2, true) || _root.ground.hitTest(_x - _width / 2, _y - (_height / 6) * 4, true))) break; _x = _x + 1; spd = -spd; } } } onClipEvent (enterFrame) { if (_root.ground.hitTest(_x, _y, true)) { if (_rotation >= 0 and _rotation <= 180) { _rotation = front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(5); } else { this.bob.gotoAndStop(4); } } else { if (gib == 3) { if (scay == 1) { this.bob.gotoAndStop(9); } else { this.bob.gotoAndStop(8); } } else { if (scay == 1) { this.bob.gotoAndStop(3); } else { this.bob.gotoAndStop(2); } } } } else { _rotation = -front; if (gib == 2) { if (scay == 1) { this.bob.gotoAndStop(4); } else { this.bob.gotoAndStop(5); } } else { if (gib == 3) { if (scay == 1) { this.bob.gotoAndStop(8); } else { this.bob.gotoAndStop(9); } } else { if (scay == 1) { this.bob.gotoAndStop(2); } else { this.bob.gotoAndStop(3); } } } } } while (_root.ground.hitTest(_x, _y, true)) { spinin = false; _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 5, true) == false) { if (gib == 2) { this.bob.gotoAndStop(6); } else { if (gib == 3) { this.bob.gotoAndStop(7); } else { this.bob.gotoAndStop(1); } } spinin = true; } } onClipEvent (load) { gib = _root.nextgib; front = Math.random() * 20 + 80; spinin = true; spd = _root.low + Math.random() * _root.high; gravity = 0; constant_rotation = Math.random() * 20 - 10; } onClipEvent (enterFrame) { timer -= 1; if (spinin) { if (timer <= 0) { ++_root.hitCoun; duplicateMovieClip(_root.bld, 'hitne' + _root.hitCoun, _root.hitCoun); _root['hitne' + _root.hitCoun]._x = _x; _root['hitne' + _root.hitCoun]._y = _y; timer = t; } _rotation = _rotation + constant_rotation; this._y += gravity; } if (this._y >= 1500) { this.removeMovieClip(); } ++this._y; spd -= 0.5; gravity += 0.5; if (spd <= 0) { spd = 0; } if (gravity >= 14) { gravity = 15; } } onClipEvent (load) { _rotation = 0; if (nextgib == 1) { if (_root.morex) { rot = Math.random() * 90; } else { rot = -Math.random() * 90; } } else { if (_x >= _root.man._x + _root.dupeangletest) { if (_root.shotgundeath) { rot = 60 + Math.random() * 30; } else { rot = Math.random() * 90; } } else { if (_x <= _root.man._x - _root.dupeangletest) { if (_root.shotgundeath) { rot = -60 - Math.random() * 30; } else { rot = -Math.random() * 90; } } else { rot = Math.random() * 180 - 90; } } } } onClipEvent (load) { this._x = _root.gun._x; this._y = _root.gun._y; } onClipEvent (enterFrame) { if (rot > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * rot); _x = _x - spd * Math.sin(0.0174532925199433 * rot); } else { _y = _y - spd * Math.cos(0.0174532925199433 * rot); _x = _x + spd * Math.sin(0.0174532925199433 * rot); } } } frame 54 { stopAllSounds(); } movieClip 1913 { } movieClip 1915 { } movieClip 1916 { } movieClip 1919 { } movieClip 1935 { frame 61 { _root.gotoAndStop(2); } } frame 55 { stopAllSounds(); stop(); } movieClip 1938 { } movieClip 1940 { } movieClip 1942 { } movieClip 1944 { } movieClip 1946 { } movieClip 1948 { } movieClip 1950 { } movieClip 1952 { } movieClip 1954 { } movieClip 1956 { } movieClip 1958 { } movieClip 1959 { } movieClip 1961 { } movieClip 1963 { } movieClip 1965 { } movieClip 1968 { } movieClip 1969 { frame 1 { more_btn.onRelease = function () { getURL('http://www.funny-games.biz/main.html', '_blank'); }; } frame 200 { _root.gotoAndStop('logo'); } } frame 56 { stop(); }




http://swfchan.com/27/132482/info.shtml
Created: 19/2 -2019 03:30:33 Last modified: 19/2 -2019 03:30:33 Server time: 03/05 -2024 10:31:47