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

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

Zombie Slayer.swf

This is the info page for
Flash #23131

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


Text
0 %

Please be patient while the game is loading. Links will open in a new window.

Left-Click
to attack

Aim

Change Weapons

6

5

4

3

2

1

Move
Left

Move
Right

Jump

D

A

W

Options

Options

Options

By Aaron Geisler

By Aaron Geisler

By Aaron Geisler

Difficulty

Hard

Hard

Medium

Medium

Easy

Easy

Begin

Begin

Begin

Level 3 Clearance
Required

Graphics Options

Main Menu

Main Menu

Main Menu

Debris

Reduced

Reduced

Full

Full

Bullet Casings

Translucency

Video Quality

Particles

None

None

ActionScript [AS1/AS2]

Frame 3
_root.weapondisplaytemp.active = false; _root.weapondisplaytemp._visible = false; weapondisplays = 0; while (weapondisplays < 6) { _root.weapondisplaytemp.duplicateMovieClip("weapondisplay" + weapondisplays, 1000 + weapondisplays); _root["weapondisplay" + weapondisplays].active = true; _root["weapondisplay" + weapondisplays]._visible = false; _root["weapondisplay" + weapondisplays]._x = 290 + (weapondisplays * 50); _root["weapondisplay" + weapondisplays]._y = 10; _root["weapondisplay" + weapondisplays].frame = weapondisplays; weapondisplays = weapondisplays + 1; } stop();
Instance of Symbol 141 MovieClip "weapondisplaytemp" in Frame 3
onClipEvent (enterFrame) { if (this.active == true) { if ((_root.game0.inmap == true) && (_root.game0.cutscene == false)) { this._visible = true; gotoAndPlay(this.frame + 1); if (this.frame == 0) { if (_root.game0.player0.hasshovel == true) { if (_root.game0.player0.weapon == _root.game0.shovelnum) { this._alpha = 100; } else { this._alpha = 50; } } else { this._alpha = 0; } } if (this.frame == 1) { if ((_root.game0.player0.haspistol == true) && (_root.game0.player0.pistolammo > 0)) { if (_root.game0.player0.weapon == _root.game0.pistolnum) { this._alpha = 100; } else { this._alpha = 50; } } else { this._alpha = 0; } } if (this.frame == 2) { if ((_root.game0.player0.hasrifle == true) && (_root.game0.player0.rifleammo > 0)) { if (_root.game0.player0.weapon == _root.game0.riflenum) { this._alpha = 100; } else { this._alpha = 50; } } else { this._alpha = 0; } } if (this.frame == 3) { if ((_root.game0.player0.hasSMG == true) && (_root.game0.player0.SMGammo > 0)) { if (_root.game0.player0.weapon == _root.game0.SMGnum) { this._alpha = 100; } else { this._alpha = 50; } } else { this._alpha = 0; } } if (this.frame == 4) { if ((_root.game0.player0.hasshotgun == true) && (_root.game0.player0.shotgunammo > 0)) { if (_root.game0.player0.weapon == _root.game0.shotgunnum) { this._alpha = 100; } else { this._alpha = 50; } } else { this._alpha = 0; } } if (this.frame == 5) { if (_root.game0.player0.grenadeammo > 0) { if (_root.game0.player0.weapon == _root.game0.grenadenum) { this._alpha = 100; } else { this._alpha = 50; } } else { this._alpha = 0; } } } else { this._visible = false; } } }
Instance of Symbol 143 MovieClip "healthbar" in Frame 3
onClipEvent (enterFrame) { if ((_root.game0.inmap == true) && (_root.game0.cutscene == false)) { this._visible = true; this._xscale = ((_root.game0.playerhealth - _root.game0.player0.damage) / _root.game0.playerhealth) * 100; } else { this._visible = false; } }
Instance of Symbol 145 MovieClip "ammodisplay" in Frame 3
onClipEvent (enterFrame) { if ((_root.game0.inmap == true) && (_root.game0.cutscene == false)) { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 147 MovieClip "healthdisplay" in Frame 3
onClipEvent (enterFrame) { if ((_root.game0.inmap == true) && (_root.game0.cutscene == false)) { this._visible = true; } else { this._visible = false; } }
Symbol 46 MovieClip [Defaults] Frame 1
#initclip 26 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclip
Symbol 47 MovieClip [UIObjectExtensions] Frame 1
#initclip 27 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclip
Symbol 48 MovieClip [UIObject] Frame 1
#initclip 28 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();
Symbol 51 Button
on (keyPress "<Tab>") { this.tabHandler(); }
Symbol 52 MovieClip Frame 1
#initclip 29 Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } #endinitclip
Symbol 53 MovieClip [FocusRect] Frame 1
#initclip 30 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclip
Symbol 54 MovieClip [FocusManager] Frame 1
#initclip 31 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();
Symbol 55 MovieClip [UIComponentExtensions] Frame 1
#initclip 32 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclip
Symbol 56 MovieClip [UIComponent] Frame 1
#initclip 33 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();
Symbol 57 MovieClip [Border] Frame 1
#initclip 34 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();
Symbol 58 MovieClip [RectBorder] Frame 1
#initclip 35 mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass("RectBorder", mx.skins.halo.RectBorder); #endinitclip stop();
Symbol 59 MovieClip [View] Frame 1
#initclip 36 Object.registerClass("View", mx.core.View); #endinitclip stop();
Symbol 60 MovieClip [Loader] Frame 1
#initclip 37 Object.registerClass("Loader", mx.controls.Loader); #endinitclip stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 98 Button
on (release) { url = "http://www.playnow3dgames.com/index.php?refgame=cannibalcontrol"; getURL (url, "_blank", "POST"); }
Symbol 103 Button
on (release) { _root.bulletcasingquality = 1; _root.particlequality = 0; _root.debrisquality = 1; _root.graphicsquality = 1; _root.particlealpha = 1; _root.difficulty = 0; _root.gotoAndPlay(2); }
Symbol 104 MovieClip Frame 1
function setPct(_PCT) { if (isNaN(_PCT)) { _PCT = 0; } _PCT = Math.round(_PCT); if (_PCT < 0) { _PCT = 0; } if (_PCT > 100) { _PCT = 100; } bar_mc.gotoAndStop(1 + _PCT); pct_txt.text = _PCT + " %"; } function flashserve() { var RESPONSE = new LoadVars(); RESPONSE.onLoad = function (success) { if (success) { if (RESPONSE.STATUS == "OK") { PREROLL_SERVER = RESPONSE.SERVER; PREROLL_AD = RESPONSE.AD; if (PREROLL_AD != "") { ADURL = (("http://" + PREROLL_SERVER) + "/") + PREROLL_AD; preroll_loader.scaleContent = false; preroll_loader.contentPath = ADURL; } } } }; var _local1 = new LoadVars(); _local1.GAMEID = "zombieslayer"; _local1.SITEID = ""; _local1.sendAndLoad("http://flash.playnow3dgames.com/gameplay.php", RESPONSE, "POST"); } _root.stop(); PREROLLTIMER = 0; PREROLLTIME = 240; flashserve();
Instance of Symbol 60 MovieClip [Loader] "preroll_loader" in Symbol 104 MovieClip Frame 1
//component parameters onClipEvent (construct) { autoLoad = true; contentPath = ""; scaleContent = true; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 104 MovieClip Frame 2
_root.stop(); PREROLLTIMER++; PCT1 = _root.getBytesLoaded() / _root.getBytesTotal(); PCT2 = PREROLLTIMER / PREROLLTIME; PCT = Math.min(PCT1, PCT2); if (PCT < 1) { setPct(Math.round(PCT * 100)); } else { setPct(100); gotoAndStop (4); }
Symbol 104 MovieClip Frame 3
gotoAndPlay (2);
Symbol 104 MovieClip Frame 4
stop();
Symbol 40 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip { var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled; function UIObject () { super(); constructObject(); } function get width() { return(_width); } function get height() { return(_height); } function get left() { return(_x); } function get x() { return(_x); } function get top() { return(_y); } function get y() { return(_y); } function get right() { return(_parent.width - (_x + width)); } function get bottom() { return(_parent.height - (_y + height)); } function getMinHeight(Void) { return(_minHeight); } function setMinHeight(h) { _minHeight = h; } function get minHeight() { return(getMinHeight()); } function set minHeight(h) { setMinHeight(h); //return(minHeight); } function getMinWidth(Void) { return(_minWidth); } function setMinWidth(w) { _minWidth = w; } function get minWidth() { return(getMinWidth()); } function set minWidth(w) { setMinWidth(w); //return(minWidth); } function setVisible(x, noEvent) { if (x != _visible) { _visible = x; if (noEvent != true) { dispatchEvent({type:(x ? "reveal" : "hide")}); } } } function get visible() { return(_visible); } function set visible(x) { setVisible(x, false); //return(visible); } function get scaleX() { return(_xscale); } function set scaleX(x) { _xscale = x; //return(scaleX); } function get scaleY() { return(_yscale); } function set scaleY(y) { _yscale = y; //return(scaleY); } function doLater(obj, fn) { if (methodTable == undefined) { methodTable = new Array(); } methodTable.push({obj:obj, fn:fn}); onEnterFrame = doLaterDispatcher; } function doLaterDispatcher(Void) { delete onEnterFrame; if (invalidateFlag) { redraw(); } var _local3 = methodTable; methodTable = new Array(); if (_local3.length > 0) { var _local2; while (_local2 = _local3.shift() , _local2 != undefined) { _local2.obj[_local2.fn](); } } } function cancelAllDoLaters(Void) { delete onEnterFrame; methodTable = new Array(); } function invalidate(Void) { invalidateFlag = true; onEnterFrame = doLaterDispatcher; } function invalidateStyle(Void) { invalidate(); } function redraw(bAlways) { if (invalidateFlag || (bAlways)) { invalidateFlag = false; var _local2; for (_local2 in tfList) { tfList[_local2].draw(); } draw(); dispatchEvent({type:"draw"}); } } function draw(Void) { } function move(x, y, noEvent) { var _local3 = _x; var _local2 = _y; _x = x; _y = y; if (noEvent != true) { dispatchEvent({type:"move", oldX:_local3, oldY:_local2}); } } function setSize(w, h, noEvent) { var _local2 = __width; var _local3 = __height; __width = w; __height = h; size(); if (noEvent != true) { dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3}); } } function size(Void) { _width = __width; _height = __height; } function drawRect(x1, y1, x2, y2) { moveTo(x1, y1); lineTo(x2, y1); lineTo(x2, y2); lineTo(x1, y2); lineTo(x1, y1); } function createLabel(name, depth, text) { createTextField(name, depth, 0, 0, 0, 0); var _local2 = this[name]; _local2._color = textColorList; _local2._visible = false; _local2.__text = text; if (tfList == undefined) { tfList = new Object(); } tfList[name] = _local2; _local2.invalidateStyle(); invalidate(); _local2.styleName = this; return(_local2); } function createObject(linkageName, id, depth, initobj) { return(attachMovie(linkageName, id, depth, initobj)); } function createClassObject(className, id, depth, initobj) { var _local3 = className.symbolName == undefined; if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className); } var _local4 = createObject(className.symbolOwner.symbolName, id, depth, initobj); if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return(_local4); } function createEmptyObject(id, depth) { return(createClassObject(mx.core.UIObject, id, depth)); } function destroyObject(id) { var _local2 = this[id]; if (_local2.getDepth() < 0) { var _local4 = buildDepthTable(); var _local5 = findNextAvailableDepth(0, _local4, "up"); var _local3 = _local5; _local2.swapDepths(_local3); } _local2.removeMovieClip(); delete this[id]; } function getSkinIDName(tag) { return(idNames[tag]); } function setSkin(tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return(createObject(linkageName, getSkinIDName(tag), tag, initObj)); } function createSkin(tag) { var _local2 = getSkinIDName(tag); createEmptyObject(_local2, tag); return(this[_local2]); } function createChildren(Void) { } function _createChildren(Void) { createChildren(); childrenCreated = true; } function constructObject(Void) { if (_name == undefined) { return(undefined); } init(); _createChildren(); createAccessibilityImplementation(); _endInit(); if (validateNow) { redraw(true); } else { invalidate(); } } function initFromClipParameters(Void) { var _local4 = false; var _local2; for (_local2 in clipParameters) { if (hasOwnProperty(_local2)) { _local4 = true; this["def_" + _local2] = this[_local2]; delete this[_local2]; } } if (_local4) { for (_local2 in clipParameters) { var _local3 = this["def_" + _local2]; if (_local3 != undefined) { this[_local2] = _local3; } } } } function init(Void) { __width = _width; __height = _height; if (initProperties == undefined) { initFromClipParameters(); } else { initProperties(); } if (_global.cascadingStyles == true) { stylecache = new Object(); } } function getClassStyleDeclaration(Void) { var _local4 = this; var _local3 = className; while (_local3 != undefined) { if (ignoreClassStyleDeclaration[_local3] == undefined) { if (_global.styles[_local3] != undefined) { return(_global.styles[_local3]); } } _local4 = _local4.__proto__; _local3 = _local4.className; } } function setColor(color) { } function __getTextFormat(tf, bAll) { var _local8 = stylecache.tf; if (_local8 != undefined) { var _local3; for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { tf[_local3] = _local8[_local3]; } } } return(false); } var _local6 = false; for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { var _local5 = _tf[_local3]; if (_local5 != undefined) { tf[_local3] = _local5; } else if ((_local3 == "font") && (fontFamily != undefined)) { tf[_local3] = fontFamily; } else if ((_local3 == "size") && (fontSize != undefined)) { tf[_local3] = fontSize; } else if ((_local3 == "color") && (color != undefined)) { tf[_local3] = color; } else if ((_local3 == "leftMargin") && (marginLeft != undefined)) { tf[_local3] = marginLeft; } else if ((_local3 == "rightMargin") && (marginRight != undefined)) { tf[_local3] = marginRight; } else if ((_local3 == "italic") && (fontStyle != undefined)) { tf[_local3] = fontStyle == _local3; } else if ((_local3 == "bold") && (fontWeight != undefined)) { tf[_local3] = fontWeight == _local3; } else if ((_local3 == "align") && (textAlign != undefined)) { tf[_local3] = textAlign; } else if ((_local3 == "indent") && (textIndent != undefined)) { tf[_local3] = textIndent; } else if ((_local3 == "underline") && (textDecoration != undefined)) { tf[_local3] = textDecoration == _local3; } else if ((_local3 == "embedFonts") && (embedFonts != undefined)) { tf[_local3] = embedFonts; } else { _local6 = true; } } } } if (_local6) { var _local9 = styleName; if (_local9 != undefined) { if (typeof(_local9) != "string") { _local6 = _local9.__getTextFormat(tf, true, this); } else if (_global.styles[_local9] != undefined) { _local6 = _global.styles[_local9].__getTextFormat(tf, true, this); } } } if (_local6) { var _local10 = getClassStyleDeclaration(); if (_local10 != undefined) { _local6 = _local10.__getTextFormat(tf, true, this); } } if (_local6) { if (_global.cascadingStyles) { if (_parent != undefined) { _local6 = _parent.__getTextFormat(tf, false); } } } if (_local6) { _local6 = _global.style.__getTextFormat(tf, true, this); } return(_local6); } function _getTextFormat(Void) { var _local2 = stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); __getTextFormat(_local2, true); stylecache.tf = _local2; if (enabled == false) { var _local3 = getStyle("disabledColor"); _local2.color = _local3; } return(_local2); } function getStyleName(Void) { var _local2 = styleName; if (_local2 != undefined) { if (typeof(_local2) != "string") { return(_local2.getStyleName()); } return(_local2); } if (_parent != undefined) { return(_parent.getStyleName()); } return(undefined); } function getStyle(styleProp) { var _local3; _global.getStyleCounter++; if (this[styleProp] != undefined) { return(this[styleProp]); } var _local6 = styleName; if (_local6 != undefined) { if (typeof(_local6) != "string") { _local3 = _local6.getStyle(styleProp); } else { var _local7 = _global.styles[_local6]; _local3 = _local7.getStyle(styleProp); } } if (_local3 != undefined) { return(_local3); } var _local7 = getClassStyleDeclaration(); if (_local7 != undefined) { _local3 = _local7[styleProp]; } if (_local3 != undefined) { return(_local3); } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) { var _local5 = stylecache; if (_local5 != undefined) { if (_local5[styleProp] != undefined) { return(_local5[styleProp]); } } if (_parent != undefined) { _local3 = _parent.getStyle(styleProp); } else { _local3 = _global.style[styleProp]; } if (_local5 != undefined) { _local5[styleProp] = _local3; } return(_local3); } } if (_local3 == undefined) { _local3 = _global.style[styleProp]; } return(_local3); } static function mergeClipParameters(o, p) { for (var _local3 in p) { o[_local3] = p[_local3]; } return(true); } static var symbolName = "UIObject"; static var symbolOwner = mx.core.UIObject; static var version = "2.0.2.126"; static var textColorList = {color:1, disabledColor:1}; var invalidateFlag = false; var lineWidth = 1; var lineColor = 0; var tabEnabled = false; var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; }
Symbol 41 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject { var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled; function UIComponent () { super(); } function get width() { return(__width); } function get height() { return(__height); } function setVisible(x, noEvent) { super.setVisible(x, noEvent); } function enabledChanged(id, oldValue, newValue) { setEnabled(newValue); invalidate(); delete stylecache.tf; return(newValue); } function setEnabled(enabled) { invalidate(); } function getFocus() { var selFocus = Selection.getFocus(); return(((selFocus === null) ? null : (eval (selFocus)))); } function setFocus() { Selection.setFocus(this); } function getFocusManager() { var _local2 = this; while (_local2 != undefined) { if (_local2.focusManager != undefined) { return(_local2.focusManager); } _local2 = _local2._parent; } return(undefined); } function onKillFocus(newFocus) { removeEventListener("keyDown", this); removeEventListener("keyUp", this); dispatchEvent({type:"focusOut"}); drawFocus(false); } function onSetFocus(oldFocus) { addEventListener("keyDown", this); addEventListener("keyUp", this); dispatchEvent({type:"focusIn"}); if (getFocusManager().bDrawFocus != false) { drawFocus(true); } } function findFocusInChildren(o) { if (o.focusTextField != undefined) { return(o.focusTextField); } if (o.tabEnabled == true) { return(o); } return(undefined); } function findFocusFromObject(o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return(undefined); } if (o._parent.tabEnabled == true) { o = o._parent; } else if (o._parent.tabChildren) { o = findFocusInChildren(o._parent); } else { o = findFocusFromObject(o._parent); } } return(o); } function pressFocus() { var _local3 = findFocusFromObject(this); var _local2 = getFocus(); if (_local3 != _local2) { _local2.drawFocus(false); if (getFocusManager().bDrawFocus != false) { _local3.drawFocus(true); } } } function releaseFocus() { var _local2 = findFocusFromObject(this); if (_local2 != getFocus()) { _local2.setFocus(); } } function isParent(o) { while (o != undefined) { if (o == this) { return(true); } o = o._parent; } return(false); } function size() { } function init() { super.init(); _xscale = 100; _yscale = 100; _focusrect = _global.useFocusRect == false; watch("enabled", enabledChanged); if (enabled == false) { setEnabled(false); } } function dispatchValueChangedEvent(value) { dispatchEvent({type:"valueChanged", value:value}); } static var symbolName = "UIComponent"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.126"; static var kStretch = 5000; var focusEnabled = true; var tabEnabled = true; var origBorderStyles = {themeColor:16711680}; var clipParameters = {}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); }
Symbol 42 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent { var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater; function View () { super(); } function init() { super.init(); tabChildren = true; tabEnabled = false; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function size() { border_mc.move(0, 0); border_mc.setSize(__get__width(), __get__height()); doLayout(); } function draw() { size(); } function get numChildren() { var _local3 = childNameBase; var _local2 = 0; while (true) { if (this[_local3 + _local2] == undefined) { return(_local2); } _local2++; } } function get tabIndex() { return((tabEnabled ? (__tabIndex) : undefined)); } function addLayoutObject(object) { } function createChild(className, instanceName, initProps) { if (depth == undefined) { depth = 1; } var _local2; if (typeof(className) == "string") { _local2 = createObject(className, instanceName, depth++, initProps); } else { _local2 = createClassObject(className, instanceName, depth++, initProps); } if (_local2 == undefined) { _local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps); } else { this[childNameBase + numChildren] = _local2; _local2._complete = true; childLoaded(_local2); } addLayoutObject(_local2); return(_local2); } function getChildAt(childIndex) { return(this[childNameBase + childIndex]); } function destroyChildAt(childIndex) { if (!((childIndex >= 0) && (childIndex < numChildren))) { return(undefined); } var _local4 = childNameBase + childIndex; var _local6 = numChildren; var _local3; for (_local3 in this) { if (_local3 == _local4) { _local4 = ""; destroyObject(_local3); break; } } var _local2 = Number(childIndex); while (_local2 < (_local6 - 1)) { this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)]; _local2++; } delete this[childNameBase + (_local6 - 1)]; depth--; } function initLayout() { if (!hasBeenLayedOut) { doLayout(); } } function doLayout() { hasBeenLayedOut = true; } function createChildren() { if (border_mc == undefined) { border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this}); } doLater(this, "initLayout"); } function convertToUIObject(obj) { } function childLoaded(obj) { convertToUIObject(obj); } static function extension() { mx.core.ExternalContent.enableExternalContent(); } static var symbolName = "View"; static var symbolOwner = mx.core.View; static var version = "2.0.2.126"; var className = "View"; static var childNameBase = "_child"; var hasBeenLayedOut = false; var _loadExternalClass = "UIComponent"; }
Symbol 43 MovieClip [__Packages.mx.controls.Loader] Frame 0
class mx.controls.Loader extends mx.core.View { var _origWidth, _origHeight, __width, livePreview, __height, createTextField, contentHolder, childrenCreated, destroyChildAt, createChild, border_mc; function Loader () { super(); } function init() { super.init(); } function setSize(w, h, noEvent) { _origWidth = w; _origHeight = h; super.setSize(w, h, noEvent); if (_global.isLivePreview) { livePreview._width = __width - 1; livePreview._height = __height - 1; } } function draw() { size(); } function size() { super.size(); if (__scaleContent) { doScaleContent(); } else { doScaleLoader(); } } function createChildren() { super.createChildren(); if (_global.isLivePreview) { createTextField("livePreview", -1000, 0, 0, 99, 99); livePreview.text = "mx.controls.Loader"; livePreview.border = true; } if (__autoLoad) { load(); } } function getAutoLoad() { return(__autoLoad); } function get autoLoad() { return(getAutoLoad()); } function setAutoLoad(b) { if (__autoLoad != b) { __autoLoad = b; if (__autoLoad && (!this[mx.core.View.childNameBase + 0]._complete)) { load(); } } } function set autoLoad(b) { setAutoLoad(b); //return(autoLoad); } function getBytesLoaded() { return(__bytesLoaded); } function get bytesLoaded() { return(getBytesLoaded()); } function getBytesTotal() { return(__bytesTotal); } function get bytesTotal() { return(getBytesTotal()); } function getContent() { return(contentHolder); } function get content() { return(getContent()); } function getContentPath() { return(__contentPath); } function get contentPath() { return(getContentPath()); } function setContentPath(url) { if (__contentPath != url) { __contentPath = url; if (childrenCreated) { if (__autoLoad) { load(); } } } } function set contentPath(c) { setContentPath(c); //return(contentPath); } function getPercentLoaded() { var _local2 = 100 * (__bytesLoaded / __bytesTotal); if (isNaN(_local2)) { _local2 = 0; } return(_local2); } function get percentLoaded() { return(getPercentLoaded()); } function get scaleContent() { return(getScaleContent()); } function getScaleContent() { return(__scaleContent); } function setScaleContent(b) { if (__scaleContent != b) { __scaleContent = b; if (__scaleContent) { doScaleContent(); } else { doScaleLoader(); } } } function set scaleContent(b) { setScaleContent(b); //return(scaleContent); } function load(url) { if (url != undefined) { __contentPath = url; } if (this[mx.core.View.childNameBase + 0] != undefined) { if (this[mx.core.View.childNameBase + 0]._complete) { setSize(_origWidth, _origHeight); } destroyChildAt(0); } if ((__contentPath == undefined) || (__contentPath == "")) { return(undefined); } createChild(__contentPath, "contentHolder"); } function childLoaded(obj) { super.childLoaded(obj); obj._rotation = 0; _origWidth = __width; _origHeight = __height; if (__scaleContent) { doScaleContent(); } else { doScaleLoader(); } } function dispatchEvent(obj) { if ((obj.type == "progress") || (obj.type == "complete")) { obj.target = this; __bytesTotal = obj.total; __bytesLoaded = obj.current; } super.dispatchEvent(obj); } function doScaleContent() { if (!this[mx.core.View.childNameBase + 0]._complete) { return(undefined); } unScaleContent(); var _local2 = border_mc.__get__borderMetrics(); var _local7 = (_origWidth - _local2.left) - _local2.right; var _local6 = (_origHeight - _local2.top) - _local2.bottom; var _local9 = _local2.left; var _local8 = _local2.top; var _local5 = _local7 / contentHolder._width; var _local3 = _local6 / contentHolder._height; var _local4; if (_local5 > _local3) { _local9 = _local2.left + Math.floor((_local7 - (contentHolder._width * _local3)) / 2); _local4 = _local3; } else { _local8 = _local2.top + Math.floor((_local6 - (contentHolder._height * _local5)) / 2); _local4 = _local5; } _local4 = _local4 * 100; contentHolder._xscale = (contentHolder._yscale = _local4); contentHolder._x = _local9; contentHolder._y = _local8; if ((__width != _origWidth) || (__height != _origHeight)) { setSize(_origWidth, _origHeight); } } function doScaleLoader() { if (!this[mx.core.View.childNameBase + 0]._complete) { return(undefined); } unScaleContent(); var _local2 = border_mc.__get__borderMetrics(); var _local4 = (contentHolder._width + _local2.left) + _local2.right; var _local3 = (contentHolder._height + _local2.top) + _local2.bottom; if ((__width != _local4) || (__height != _local3)) { setSize(_local4, _local3); } contentHolder._x = _local2.left; contentHolder._y = _local2.top; } function unScaleContent() { contentHolder._xscale = (contentHolder._yscale = 100); contentHolder._x = (contentHolder._y = 0); } static var symbolName = "Loader"; static var symbolOwner = mx.controls.Loader; static var version = "2.0.2.126"; var className = "Loader"; var clipParameters = {autoLoad:1, scaleContent:1, contentPath:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Loader.prototype.clipParameters, mx.core.View.prototype.clipParameters); var __autoLoad = true; var __bytesLoaded = undefined; var __bytesTotal = undefined; var __contentPath = undefined; var __scaleContent = true; }
Symbol 61 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip { var _visible, _x, _y, _width, _height; function SkinElement () { super(); } static function registerElement(name, className) { Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className))); _global.skinRegistry[name] = true; } function __set__visible(visible) { _visible = visible; } function move(x, y) { _x = x; _y = y; } function setSize(w, h) { _width = w; _height = h; } }
Symbol 62 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles { function CSSTextStyles () { } static function addTextStyles(o, bColor) { o.addProperty("textAlign", function () { return(this._tf.align); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty("fontWeight", function () { return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == "bold"; }); if (bColor) { o.addProperty("color", function () { return(this._tf.color); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty("fontFamily", function () { return(this._tf.font); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty("textIndent", function () { return(this._tf.indent); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty("fontStyle", function () { return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == "italic"; }); o.addProperty("marginLeft", function () { return(this._tf.leftMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty("marginRight", function () { return(this._tf.rightMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty("fontSize", function () { return(this._tf.size); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty("textDecoration", function () { return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == "underline"; }); o.addProperty("embedFonts", function () { return(this._tf.embedFonts); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); } }
Symbol 63 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager { function StyleManager () { } static function registerInheritingStyle(styleName) { inheritingStyles[styleName] = true; } static function isInheritingStyle(styleName) { return(inheritingStyles[styleName] == true); } static function registerColorStyle(styleName) { colorStyles[styleName] = true; } static function isColorStyle(styleName) { return(colorStyles[styleName] == true); } static function registerColorName(colorName, colorValue) { colorNames[colorName] = colorValue; } static function isColorName(colorName) { return(colorNames[colorName] != undefined); } static function getColorName(colorName) { return(colorNames[colorName]); } static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true}; static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true}; static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344}; static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false}; static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true}; }
Symbol 64 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration { var _tf; function CSSStyleDeclaration () { } function __getTextFormat(tf, bAll) { var _local5 = false; if (_tf != undefined) { var _local2; for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) { if (tf[_local2] == undefined) { var _local3 = _tf[_local2]; if (_local3 != undefined) { tf[_local2] = _local3; } else { _local5 = true; } } } } } else { _local5 = true; } return(_local5); } function getStyle(styleProp) { var _local2 = this[styleProp]; var _local3 = mx.styles.StyleManager.getColorName(_local2); return(((_local3 == undefined) ? (_local2) : (_local3))); } static function classConstruct() { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return(true); } static var classConstructed = classConstruct(); static var CSSTextStylesDependency = mx.styles.CSSTextStyles; }
Symbol 65 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject { function Border () { super(); } function init(Void) { super.init(); } static var symbolName = "Border"; static var symbolOwner = mx.skins.Border; var className = "Border"; var tagBorder = 0; var idNames = new Array("border_mc"); }
Symbol 66 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border { var __width, __height, offset, __borderMetrics; function RectBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function draw(Void) { size(); } function getBorderMetrics(Void) { var _local2 = offset; if (__borderMetrics == undefined) { __borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2}; } else { __borderMetrics.left = _local2; __borderMetrics.top = _local2; __borderMetrics.right = _local2; __borderMetrics.bottom = _local2; } return(__borderMetrics); } function get borderMetrics() { return(getBorderMetrics()); } function drawBorder(Void) { } function size(Void) { drawBorder(); } function setColor(Void) { drawBorder(); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.RectBorder; static var version = "2.0.2.126"; var className = "RectBorder"; var borderStyleName = "borderStyle"; var borderColorName = "borderColor"; var shadowColorName = "shadowColor"; var highlightColorName = "highlightColor"; var buttonColorName = "buttonColor"; var backgroundColorName = "backgroundColor"; }
Symbol 67 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager { var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth; function DepthManager () { MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = createChildAtDepth; MovieClip.prototype.setDepthTo = setDepthTo; MovieClip.prototype.setDepthAbove = setDepthAbove; MovieClip.prototype.setDepthBelow = setDepthBelow; MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth; MovieClip.prototype.shuffleDepths = shuffleDepths; MovieClip.prototype.getDepthByFlag = getDepthByFlag; MovieClip.prototype.buildDepthTable = buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1); _global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1); _global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1); _global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1); } static function sortFunction(a, b) { if (a.getDepth() > b.getDepth()) { return(1); } return(-1); } static function test(depth) { if (depth == reservedDepth) { return(false); } return(true); } static function createClassObjectAtDepth(className, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createClassChildAtDepth(className, kTopmost, initObj); break; case kTooltip : _local1 = holder.createClassChildAtDepth(className, kTop, initObj); break; } return(_local1); } static function createObjectAtDepth(linkageName, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj); break; case kTooltip : _local1 = holder.createChildAtDepth(linkageName, kTop, initObj); break; } return(_local1); } function createClassChildAtDepth(className, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function createChildAtDepth(linkageName, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function setDepthTo(depthFlag) { var _local2 = _parent.buildDepthTable(); var _local3 = _parent.getDepthByFlag(depthFlag, _local2); if (_local2[_local3] != undefined) { shuffleDepths(this, _local3, _local2, undefined); } else { swapDepths(_local3); } if (depthFlag == kTopmost) { _topmost = true; } else { delete _topmost; } } function setDepthAbove(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local2 = targetInstance.getDepth() + 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local2] != undefined) && (getDepth() < _local2)) { _local2 = _local2 - 1; } if (_local2 > highestDepth) { _local2 = highestDepth; } if (_local2 == highestDepth) { _parent.shuffleDepths(this, _local2, _local3, "down"); } else if (_local3[_local2] != undefined) { _parent.shuffleDepths(this, _local2, _local3, undefined); } else { swapDepths(_local2); } } function setDepthBelow(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local6 = targetInstance.getDepth() - 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local6] != undefined) && (getDepth() > _local6)) { _local6 = _local6 + 1; } var _local4 = lowestDepth + numberOfAuthortimeLayers; var _local5; for (_local5 in _local3) { var _local2 = _local3[_local5]; if (_local2._parent != undefined) { _local4 = Math.min(_local4, _local2.getDepth()); } } if (_local6 < _local4) { _local6 = _local4; } if (_local6 == _local4) { _parent.shuffleDepths(this, _local6, _local3, "up"); } else if (_local3[_local6] != undefined) { _parent.shuffleDepths(this, _local6, _local3, undefined); } else { swapDepths(_local6); } } function findNextAvailableDepth(targetDepth, depthTable, direction) { var _local5 = lowestDepth + numberOfAuthortimeLayers; if (targetDepth < _local5) { targetDepth = _local5; } if (depthTable[targetDepth] == undefined) { return(targetDepth); } var _local2 = targetDepth; var _local1 = targetDepth; if (direction == "down") { while (depthTable[_local1] != undefined) { _local1--; } return(_local1); } while (depthTable[_local2] != undefined) { _local2++; } return(_local2); } function shuffleDepths(subject, targetDepth, depthTable, direction) { var _local9 = lowestDepth + numberOfAuthortimeLayers; var _local8 = _local9; var _local5; for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local9 = Math.min(_local9, _local7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = "up"; } else { direction = "down"; } } var _local1 = new Array(); for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local1.push(_local7); } } _local1.sort(sortFunction); if (direction == "up") { var _local3; var _local11; do { if (_local1.length <= 0) { break; } _local3 = _local1.pop(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } _local11 = subject.getDepth(); _local3 = _local1.pop(); var _local4 = _local3.getDepth(); if (_local11 > (_local4 + 1)) { if (_local4 >= 0) { subject.swapDepths(_local4 + 1); } else if ((_local11 > _local8) && (_local4 < _local8)) { subject.swapDepths(_local8); } } subject.swapDepths(_local3); } while (_local4 != targetDepth); } else if (direction == "down") { var _local3; do { if (_local1.length <= 0) { break; } _local3 = _local1.shift(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } var _local11 = _local3.getDepth(); _local3 = _local1.shift(); var _local4 = _local3.getDepth(); if ((_local11 < (_local4 - 1)) && (_local4 > 0)) { subject.swapDepths(_local4 - 1); } subject.swapDepths(_local3); } while (_local4 != targetDepth); } } function getDepthByFlag(depthFlag, depthTable) { var _local2 = 0; if ((depthFlag == kTop) || (depthFlag == kNotopmost)) { var _local5 = 0; var _local7 = false; var _local8; for (_local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { if (!_local9._topmost) { _local2 = Math.max(_local2, _local9.getDepth()); } else if (!_local7) { _local5 = _local9.getDepth(); _local7 = true; } else { _local5 = Math.min(_local5, _local9.getDepth()); } } } } _local2 = _local2 + 20; if (_local7) { if (_local2 >= _local5) { _local2 = _local5 - 1; } } } else if (depthFlag == kBottom) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.min(_local2, _local9.getDepth()); } } } _local2 = _local2 - 20; } else if (depthFlag == kTopmost) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.max(_local2, _local9.getDepth()); } } } _local2 = _local2 + 100; } if (_local2 >= highestDepth) { _local2 = highestDepth; } var _local6 = lowestDepth + numberOfAuthortimeLayers; for (var _local9 in depthTable) { var _local4 = depthTable[_local9]; if (_local4._parent != undefined) { _local6 = Math.min(_local6, _local4.getDepth()); } } if (_local2 <= _local6) { _local2 = _local6; } return(_local2); } function buildDepthTable(Void) { var _local5 = new Array(); var _local4; for (_local4 in this) { var _local2 = this[_local4]; var _local3 = typeof(_local2); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) { if (_local2._parent == this) { _local5[_local2.getDepth()] = _local2; } } } return(_local5); } static var reservedDepth = 1048575; static var highestDepth = 1048574; static var lowestDepth = -16383; static var numberOfAuthortimeLayers = 383; static var kCursor = 101; static var kTooltip = 102; static var kTop = 201; static var kBottom = 202; static var kTopmost = 203; static var kNotopmost = 204; static var holder = _root.createEmptyMovieClip("reserved", reservedDepth); static var __depthManager = new mx.managers.DepthManager(); }
Symbol 68 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 69 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher { var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener; function UIEventDispatcher () { super(); } static function addKeyEvents(obj) { if (obj.keyHandler == undefined) { var _local1 = (obj.keyHandler = new Object()); _local1.owner = obj; _local1.onKeyDown = _fEventDispatcher.onKeyDown; _local1.onKeyUp = _fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); } static function removeKeyEvents(obj) { Key.removeListener(obj.keyHandler); } static function addLoadEvents(obj) { if (obj.onLoad == undefined) { obj.onLoad = _fEventDispatcher.onLoad; obj.onUnload = _fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, "onLoad"); } } } static function removeLoadEvents(obj) { delete obj.onLoad; delete obj.onUnload; } static function initialize(obj) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = _fEventDispatcher.__addEventListener; obj.__origAddEventListener = _fEventDispatcher.addEventListener; obj.removeEventListener = _fEventDispatcher.removeEventListener; obj.dispatchEvent = _fEventDispatcher.dispatchEvent; obj.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(mx.events.EventDispatcher, eventObj); dispatchQueue(this, eventObj); } function onKeyDown(Void) { owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onKeyUp(Void) { owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onLoad(Void) { if (__sentLoadEvent != true) { dispatchEvent({type:"load"}); } __sentLoadEvent = true; } function onUnload(Void) { dispatchEvent({type:"unload"}); } function __addEventListener(event, handler) { __origAddEventListener(event, handler); var _local3 = lowLevelEvents; for (var _local5 in _local3) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local2 = _local3[_local5][0]; mx.events.UIEventDispatcher[_local2](this); } } } function removeEventListener(event, handler) { var _local6 = "__q_" + event; mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler); if (this[_local6].length == 0) { var _local2 = lowLevelEvents; for (var _local5 in _local2) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local3 = _local2[_local5][1]; mx.events.UIEventDispatcher[_local2[_local5][1]](this); } } } } static var keyEvents = {keyDown:1, keyUp:1}; static var loadEvents = {load:1, unload:1}; static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]}; static var _fEventDispatcher = undefined; }
Symbol 70 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent { var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded; function ExternalContent () { } function loadExternal(url, placeholderClassName, instanceName, depth, initProps) { var _local2; _local2 = createObject(placeholderClassName, instanceName, depth, initProps); this[mx.core.View.childNameBase + numChildren] = _local2; if (prepList == undefined) { prepList = new Object(); } prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps}; prepareToLoadMovie(_local2); return(_local2); } function prepareToLoadMovie(obj) { obj.unloadMovie(); doLater(this, "waitForUnload"); } function waitForUnload() { var _local3; for (_local3 in prepList) { var _local2 = prepList[_local3]; if (_local2.obj.getBytesTotal() == 0) { if (loadList == undefined) { loadList = new Object(); } loadList[_local3] = _local2; _local2.obj.loadMovie(_local2.url); delete prepList[_local3]; doLater(this, "checkLoadProgress"); } else { doLater(this, "waitForUnload"); } } } function checkLoadProgress() { var _local8 = false; var _local3; for (_local3 in loadList) { var _local2 = loadList[_local3]; _local2.loaded = _local2.obj.getBytesLoaded(); _local2.total = _local2.obj.getBytesTotal(); if (_local2.total > 0) { _local2.obj._visible = false; dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total}); if (_local2.loaded == _local2.total) { if (loadedList == undefined) { loadedList = new Object(); } loadedList[_local3] = _local2; delete loadList[_local3]; doLater(this, "contentLoaded"); } } else if (_local2.total == -1) { if (_local2.failedOnce != undefined) { _local2.failedOnce++; if (_local2.failedOnce > 3) { dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total}); delete loadList[_local3]; } } else { _local2.failedOnce = 0; } } _local8 = true; } if (_local8) { doLater(this, "checkLoadProgress"); } } function contentLoaded() { var _local4; for (_local4 in loadedList) { var _local2 = loadedList[_local4]; _local2.obj._visible = true; _local2.obj._complete = true; var _local3; for (_local3 in _local2.initProps) { _local2.obj[_local3] = _local2.initProps[_local3]; } childLoaded(_local2.obj); dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total}); delete loadedList[_local4]; } } function convertToUIObject(obj) { if (obj.setSize == undefined) { var _local2 = mx.core.UIObject.prototype; obj.addProperty("width", _local2.__get__width, null); obj.addProperty("height", _local2.__get__height, null); obj.addProperty("left", _local2.__get__left, null); obj.addProperty("x", _local2.__get__x, null); obj.addProperty("top", _local2.__get__top, null); obj.addProperty("y", _local2.__get__y, null); obj.addProperty("right", _local2.__get__right, null); obj.addProperty("bottom", _local2.__get__bottom, null); obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible); obj.move = mx.core.UIObject.prototype.move; obj.setSize = mx.core.UIObject.prototype.setSize; obj.size = mx.core.UIObject.prototype.size; mx.events.UIEventDispatcher.initialize(obj); } } static function enableExternalContent() { } static function classConstruct() { var _local1 = mx.core.View.prototype; var _local2 = mx.core.ExternalContent.prototype; _local1.loadExternal = _local2.loadExternal; _local1.prepareToLoadMovie = _local2.prepareToLoadMovie; _local1.waitForUnload = _local2.waitForUnload; _local1.checkLoadProgress = _local2.checkLoadProgress; _local1.contentLoaded = _local2.contentLoaded; _local1.convertToUIObject = _local2.convertToUIObject; return(true); } static var classConstructed = classConstruct(); static var ViewDependency = mx.core.View; }
Symbol 71 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement { var getStyle, _color, onEnterFrame; function ColoredSkinElement () { } function setColor(c) { if (c != undefined) { var _local2 = new Color(this); _local2.setRGB(c); } } function draw(Void) { setColor(getStyle(_color)); onEnterFrame = undefined; } function invalidateStyle(Void) { onEnterFrame = draw; } static function setColorStyle(p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mixins.setColor; p.invalidateStyle = mixins.invalidateStyle; p.draw = mixins.draw; p.setColor(p.getStyle(colorStyle)); } static var mixins = new mx.skins.ColoredSkinElement(); }
Symbol 72 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions { function UIObjectExtensions () { } static function addGeometry(tf, ui) { tf.addProperty("width", ui.__get__width, null); tf.addProperty("height", ui.__get__height, null); tf.addProperty("left", ui.__get__left, null); tf.addProperty("x", ui.__get__x, null); tf.addProperty("top", ui.__get__top, null); tf.addProperty("y", ui.__get__y, null); tf.addProperty("right", ui.__get__right, null); tf.addProperty("bottom", ui.__get__bottom, null); tf.addProperty("visible", ui.__get__visible, ui.__set__visible); } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; var _local6 = mx.core.UIObject.prototype; var _local9 = mx.skins.SkinElement.prototype; addGeometry(_local9, _local6); mx.events.UIEventDispatcher.initialize(_local6); var _local13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(_local6); var _local5 = MovieClip.prototype; _local5.getTopLevel = _local6.getTopLevel; _local5.createLabel = _local6.createLabel; _local5.createObject = _local6.createObject; _local5.createClassObject = _local6.createClassObject; _local5.createEmptyObject = _local6.createEmptyObject; _local5.destroyObject = _local6.destroyObject; _global.ASSetPropFlags(_local5, "getTopLevel", 1); _global.ASSetPropFlags(_local5, "createLabel", 1); _global.ASSetPropFlags(_local5, "createObject", 1); _global.ASSetPropFlags(_local5, "createClassObject", 1); _global.ASSetPropFlags(_local5, "createEmptyObject", 1); _global.ASSetPropFlags(_local5, "destroyObject", 1); _local5.__getTextFormat = _local6.__getTextFormat; _local5._getTextFormat = _local6._getTextFormat; _local5.getStyleName = _local6.getStyleName; _local5.getStyle = _local6.getStyle; _global.ASSetPropFlags(_local5, "__getTextFormat", 1); _global.ASSetPropFlags(_local5, "_getTextFormat", 1); _global.ASSetPropFlags(_local5, "getStyleName", 1); _global.ASSetPropFlags(_local5, "getStyle", 1); var _local7 = TextField.prototype; addGeometry(_local7, _local6); _local7.addProperty("enabled", function () { return(this.__enabled); }, function (x) { this.__enabled = x; this.invalidateStyle(); }); _local7.move = _local9.move; _local7.setSize = _local9.setSize; _local7.invalidateStyle = function () { this.invalidateFlag = true; }; _local7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var _local2 = this._getTextFormat(); this.setTextFormat(_local2); this.setNewTextFormat(_local2); this.embedFonts = _local2.embedFonts == true; if (this.__text != undefined) { if (this.text == "") { this.text = this.__text; } delete this.__text; } this._visible = true; } }; _local7.setColor = function (color) { this.textColor = color; }; _local7.getStyle = _local5.getStyle; _local7.__getTextFormat = _local6.__getTextFormat; _local7.setValue = function (v) { this.text = v; }; _local7.getValue = function () { return(this.text); }; _local7.addProperty("value", function () { return(this.getValue()); }, function (v) { this.setValue(v); }); _local7._getTextFormat = function () { var _local2 = this.stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); this.__getTextFormat(_local2); this.stylecache.tf = _local2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var _local4 = this.getTextFormat(); this.enabledColor = _local4.color; } var _local3 = this.getStyle("disabledColor"); _local2.color = _local3; } else if (this.enabledColor != undefined) { if (_local2.color == undefined) { _local2.color = this.enabledColor; } } return(_local2); }; _local7.getPreferredWidth = function () { this.draw(); return(this.textWidth + 4); }; _local7.getPreferredHeight = function () { this.draw(); return(this.textHeight + 4); }; TextFormat.prototype.getTextExtent2 = function (s) { var _local3 = _root._getTextExtent; if (_local3 == undefined) { _root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100); _local3 = _root._getTextExtent; _local3._visible = false; } _root._getTextExtent.text = s; var _local4 = this.align; this.align = "left"; _root._getTextExtent.setTextFormat(this); this.align = _local4; return({width:_local3.textWidth, height:_local3.textHeight}); }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var _local4 = _root; while (_local4._parent != undefined) { _local4 = _local4._parent; } _local4.addProperty("width", function () { return(Stage.width); }, null); _local4.addProperty("height", function () { return(Stage.height); }, null); _global.ASSetPropFlags(_local4, "width", 1); _global.ASSetPropFlags(_local4, "height", 1); return(true); } static var bExtended = false; static var UIObjectExtended = Extensions(); static var UIObjectDependency = mx.core.UIObject; static var SkinElementDependency = mx.skins.SkinElement; static var CSSTextStylesDependency = mx.styles.CSSTextStyles; static var UIEventDispatcherDependency = mx.events.UIEventDispatcher; }
Symbol 73 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults { var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill; function Defaults () { } static function setThemeDefaults() { var _local2 = _global.style; _local2.themeColor = 8453965 /* 0x80FF4D */; _local2.disabledColor = 8684164 /* 0x848284 */; _local2.modalTransparency = 0; _local2.filled = true; _local2.stroked = true; _local2.strokeWidth = 1; _local2.strokeColor = 0; _local2.fillColor = 16777215 /* 0xFFFFFF */; _local2.repeatInterval = 35; _local2.repeatDelay = 500; _local2.fontFamily = "_sans"; _local2.fontSize = 12; _local2.selectionColor = 13500353 /* 0xCDFFC1 */; _local2.rollOverColor = 14942166 /* 0xE3FFD6 */; _local2.useRollOver = true; _local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDuration = 200; _local2.openDuration = 250; _local2.borderStyle = "inset"; _local2.color = 734012 /* 0x0B333C */; _local2.textSelectedColor = 24371; _local2.textRollOverColor = 2831164 /* 0x2B333C */; _local2.textDisabledColor = 16777215 /* 0xFFFFFF */; _local2.vGridLines = true; _local2.hGridLines = false; _local2.vGridLineColor = 6710886 /* 0x666666 */; _local2.hGridLineColor = 6710886 /* 0x666666 */; _local2.headerColor = 15395562 /* 0xEAEAEA */; _local2.indentation = 17; _local2.folderOpenIcon = "TreeFolderOpen"; _local2.folderClosedIcon = "TreeFolderClosed"; _local2.defaultLeafIcon = "TreeNodeIcon"; _local2.disclosureOpenIcon = "TreeDisclosureOpen"; _local2.disclosureClosedIcon = "TreeDisclosureClosed"; _local2.popupDuration = 150; _local2.todayColor = 6710886 /* 0x666666 */; _local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration()); _local2.backgroundColor = 16777215 /* 0xFFFFFF */; _local2.borderColor = 13290186 /* 0xCACACA */; _local2.borderStyle = "inset"; _local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration()); _local2.borderStyle = "inset"; _local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration()); _local2.textAlign = "center"; _local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration()); _local2.borderColor = 14015965 /* 0xD5DDDD */; _local2.buttonColor = 7305079 /* 0x6F7777 */; _local2.shadowColor = 15658734 /* 0xEEEEEE */; _local2.highlightColor = 12897484 /* 0xC4CCCC */; _local2.shadowCapColor = 14015965 /* 0xD5DDDD */; _local2.borderCapColor = 9542041 /* 0x919999 */; var _local4 = new Object(); _local4.borderColor = 16711680 /* 0xFF0000 */; _local4.buttonColor = 16711680 /* 0xFF0000 */; _local4.shadowColor = 16711680 /* 0xFF0000 */; _local4.highlightColor = 16711680 /* 0xFF0000 */; _local4.shadowCapColor = 16711680 /* 0xFF0000 */; _local4.borderCapColor = 16711680 /* 0xFF0000 */; mx.core.UIComponent.prototype.origBorderStyles = _local4; var _local3; _local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration()); _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderStyle = "inset"; _global.styles.TextArea = _global.styles.TextInput; _local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "default"; _local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "alert"; _local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "inset"; _local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "none"; _local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration()); _local3.color = 11187123 /* 0xAAB3B3 */; _local3.fontWeight = "bold"; _local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = "11"; _local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "solid"; _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderColor = 9081738 /* 0x8A938A */; _local3.headerHeight = 22; _local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1))); _local3.verticalGap = -1; _local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration()); _local3.borderColor = 9542041 /* 0x919999 */; _local3.headerColor = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 10; _local3.textAlign = "right"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = 11; _local3.textAlign = "center"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration()); _local3.color = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 12; _local3.fontWeight = "bold"; _local3.textAlign = "center"; } function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof(r) == "object") { var _local18 = r.br; var _local16 = r.bl; var _local15 = r.tl; var _local10 = r.tr; } else { var _local10 = r; var _local15 = _local10; var _local16 = _local15; var _local18 = _local16; } if (typeof(c) == "object") { if (typeof(alpha) != "object") { var _local9 = [alpha, alpha]; } else { var _local9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var _local14 = h * 0.7; if (typeof(rot) != "object") { var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */}; } else { var _local11 = rot; } if (gradient == "radial") { beginGradientFill("radial", c, _local9, ratios, _local11); } else { beginGradientFill("linear", c, _local9, ratios, _local11); } } else if (c != undefined) { beginFill(c, alpha); } r = _local18; var _local13 = r - (r * 0.707106781186547); var _local12 = r - (r * 0.414213562373095); moveTo(x + w, (y + h) - r); lineTo(x + w, (y + h) - r); curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13); curveTo((x + w) - _local12, y + h, (x + w) - r, y + h); r = _local16; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x + r, y + h); curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13); curveTo(x, (y + h) - _local12, x, (y + h) - r); r = _local15; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x, y + r); curveTo(x, y + _local12, x + _local13, y + _local13); curveTo(x + _local12, y, x + r, y); r = _local10; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo((x + w) - r, y); curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13); curveTo(x + w, y + _local12, x + w, y + r); lineTo(x + w, (y + h) - r); if (c != undefined) { endFill(); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; static var UIObjectDependency = mx.core.UIObject; }
Symbol 74 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent { static var emphasizedStyleDeclaration; var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle; function SimpleButton () { super(); } function init(Void) { super.init(); if (preset == undefined) { boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } useHandCursor = false; } function createChildren(Void) { if (preset != undefined) { var _local2 = this[idNames[preset]]; this[refNames[preset]] = _local2; skinName = _local2; if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } initializing = false; } else if (__state == true) { setStateVar(true); } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } } } function setIcon(tag, linkageName) { return(setSkin(tag + 8, linkageName)); } function changeIcon(tag, linkageName) { linkLength = linkageName.length; var _local2 = stateNames[tag] + "Icon"; this[_local2] = linkageName; this[idNames[tag + 8]] = _local2; setStateVar(getState()); } function changeSkin(tag, linkageName) { var _local2 = stateNames[tag] + "Skin"; this[_local2] = linkageName; this[idNames[tag]] = _local2; setStateVar(getState()); } function viewIcon(varName) { var _local4 = varName + "Icon"; var _local3 = this[_local4]; if (typeof(_local3) == "string") { var _local5 = _local3; if (__emphasized) { if (this[_local3 + "Emphasized"].length > 0) { _local3 = _local3 + "Emphasized"; } } if (this[_local3].length == 0) { return(undefined); } _local3 = setIcon(tagMap[_local5], this[_local3]); if ((_local3 == undefined) && (_global.isLivePreview)) { _local3 = setIcon(0, "ButtonIcon"); } this[_local4] = _local3; } iconName._visible = false; iconName = _local3; iconName._visible = true; } function removeIcons() { var _local3 = 0; while (_local3 < 2) { var _local2 = 8; while (_local2 < 16) { destroyObject(idNames[_local2]); this[stateNames[_local2 - 8] + "Icon"] = ""; _local2++; } _local3++; } refresh(); } function setSkin(tag, linkageName, initobj) { var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this}))); calcSize(tag, _local3); return(_local3); } function calcSize(Void) { __width = _width; __height = _height; } function viewSkin(varName, initObj) { var _local3 = varName + "Skin"; var _local2 = this[_local3]; if (typeof(_local2) == "string") { var _local4 = _local2; if (__emphasized) { if (this[_local2 + "Emphasized"].length > 0) { _local2 = _local2 + "Emphasized"; } } if (this[_local2].length == 0) { return(undefined); } _local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this}))); this[_local3] = _local2; } skinName._visible = false; skinName = _local2; skinName._visible = true; } function showEmphasized(e) { if (e && (!__emphatic)) { if (emphasizedStyleDeclaration != undefined) { __emphaticStyleName = styleName; styleName = emphasizedStyleDeclaration; } __emphatic = true; } else { if (__emphatic) { styleName = __emphaticStyleName; } __emphatic = false; } } function refresh(Void) { var _local2 = getState(); if (enabled == false) { viewIcon("disabled"); viewSkin("disabled"); } else { viewSkin(phase); viewIcon(phase); } setView(phase == "down"); iconName.enabled = enabled; } function setView(offset) { if (iconName == undefined) { return(undefined); } var _local2 = (offset ? (btnOffset) : 0); iconName._x = ((__width - iconName._width) / 2) + _local2; iconName._y = ((__height - iconName._height) / 2) + _local2; } function setStateVar(state) { if (state) { if (trueOverSkin.length == 0) { rolloverSkin = tus; } else { rolloverSkin = trs; } if (trueOverIcon.length == 0) { rolloverIcon = tui; } else { rolloverIcon = tri; } upSkin = tus; downSkin = tds; disabledSkin = dts; upIcon = tui; downIcon = tdi; disabledIcon = dti; } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } else { rolloverSkin = frs; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } else { rolloverIcon = fri; } upSkin = fus; downSkin = fds; disabledSkin = dfs; upIcon = fui; downIcon = fdi; disabledIcon = dfi; } __state = state; } function setState(state) { if (state != __state) { setStateVar(state); invalidate(); } } function size(Void) { refresh(); } function draw(Void) { if (initializing) { initializing = false; skinName.visible = true; iconName.visible = true; } size(); } function getState(Void) { return(__state); } function setToggle(val) { __toggle = val; if (__toggle == false) { setState(false); } } function getToggle(Void) { return(__toggle); } function set toggle(val) { setToggle(val); //return(toggle); } function get toggle() { return(getToggle()); } function set value(val) { setSelected(val); //return(value); } function get value() { return(getSelected()); } function set selected(val) { setSelected(val); //return(selected); } function get selected() { return(getSelected()); } function setSelected(val) { if (__toggle) { setState(val); } else { setState((initializing ? (val) : (__state))); } } function getSelected() { return(__state); } function setEnabled(val) { if (enabled != val) { super.setEnabled(val); invalidate(); } } function onPress(Void) { pressFocus(); phase = "down"; refresh(); dispatchEvent({type:"buttonDown"}); if (autoRepeat) { interval = setInterval(this, "onPressDelay", getStyle("repeatDelay")); } } function onPressDelay(Void) { dispatchEvent({type:"buttonDown"}); if (autoRepeat) { clearInterval(interval); interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval")); } } function onPressRepeat(Void) { dispatchEvent({type:"buttonDown"}); updateAfterEvent(); } function onRelease(Void) { releaseFocus(); phase = "rollover"; if (interval != undefined) { clearInterval(interval); delete interval; } if (getToggle()) { setState(!getState()); } else { refresh(); } dispatchEvent({type:"click"}); } function onDragOut(Void) { phase = "up"; refresh(); dispatchEvent({type:"buttonDragOut"}); } function onDragOver(Void) { if (phase != "up") { onPress(); return(undefined); } phase = "down"; refresh(); } function onReleaseOutside(Void) { releaseFocus(); phase = "up"; if (interval != undefined) { clearInterval(interval); delete interval; } } function onRollOver(Void) { phase = "rollover"; refresh(); } function onRollOut(Void) { phase = "up"; refresh(); } function getLabel(Void) { return(fui.text); } function setLabel(val) { if (typeof(fui) == "string") { createLabel("fui", 8, val); fui.styleName = this; } else { fui.text = val; } var _local4 = fui._getTextFormat(); var _local2 = _local4.getTextExtent2(val); fui._width = _local2.width + 5; fui._height = _local2.height + 5; iconName = fui; setView(__state); } function get emphasized() { return(__emphasized); } function set emphasized(val) { __emphasized = val; var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]] = stateNames[_local2] + "Skin"; if (typeof(this[idNames[_local2 + 8]]) == "movieclip") { this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon"; } _local2++; } showEmphasized(__emphasized); setStateVar(__state); invalidateStyle(); //return(emphasized); } function keyDown(e) { if (e.code == 32) { onPress(); } } function keyUp(e) { if (e.code == 32) { onRelease(); } } function onKillFocus(newFocus) { super.onKillFocus(); if (phase != "up") { phase = "up"; refresh(); } } static var symbolName = "SimpleButton"; static var symbolOwner = mx.controls.SimpleButton; static var version = "2.0.2.126"; var className = "SimpleButton"; var style3dInset = 4; var btnOffset = 1; var __toggle = false; var __state = false; var __emphasized = false; var __emphatic = false; static var falseUp = 0; static var falseDown = 1; static var falseOver = 2; static var falseDisabled = 3; static var trueUp = 4; static var trueDown = 5; static var trueOver = 6; static var trueDisabled = 7; var falseUpSkin = "SimpleButtonUp"; var falseDownSkin = "SimpleButtonIn"; var falseOverSkin = ""; var falseDisabledSkin = "SimpleButtonUp"; var trueUpSkin = "SimpleButtonIn"; var trueDownSkin = ""; var trueOverSkin = ""; var trueDisabledSkin = "SimpleButtonIn"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var phase = "up"; var fui = "falseUpIcon"; var fus = "falseUpSkin"; var fdi = "falseDownIcon"; var fds = "falseDownSkin"; var frs = "falseOverSkin"; var fri = "falseOverIcon"; var dfi = "falseDisabledIcon"; var dfs = "falseDisabledSkin"; var tui = "trueUpIcon"; var tus = "trueUpSkin"; var tdi = "trueDownIcon"; var tds = "trueDownSkin"; var trs = "trueOverSkin"; var tri = "trueOverIcon"; var dts = "trueDisabledSkin"; var dti = "trueDisabledIcon"; var rolloverSkin = mx.controls.SimpleButton.prototype.frs; var rolloverIcon = mx.controls.SimpleButton.prototype.fri; var upSkin = mx.controls.SimpleButton.prototype.fus; var downSkin = mx.controls.SimpleButton.prototype.fds; var disabledSkin = mx.controls.SimpleButton.prototype.dfs; var upIcon = mx.controls.SimpleButton.prototype.fui; var downIcon = mx.controls.SimpleButton.prototype.fdi; var disabledIcon = mx.controls.SimpleButton.prototype.dfi; var initializing = true; var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"]; var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"]; var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"]; var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7}; }
Symbol 75 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager { static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent; function SystemManager () { } static function init(Void) { if (_initialized == false) { _initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); _xAddEventListener = addEventListener; addEventListener = __addEventListener; _xRemoveEventListener = removeEventListener; removeEventListener = __removeEventListener; } } static function addFocusManager(f) { form = f; f.focusManager.activate(); } static function removeFocusManager(f) { } static function onMouseDown(Void) { var _local1 = form; _local1.focusManager._onMouseDown(); } static function onResize(Void) { var _local7 = Stage.width; var _local6 = Stage.height; var _local9 = _global.origWidth; var _local8 = _global.origHeight; var _local3 = Stage.align; var _local5 = (_local9 - _local7) / 2; var _local4 = (_local8 - _local6) / 2; if (_local3 == "T") { _local4 = 0; } else if (_local3 == "B") { _local4 = _local8 - _local6; } else if (_local3 == "L") { _local5 = 0; } else if (_local3 == "R") { _local5 = _local9 - _local7; } else if (_local3 == "LT") { _local4 = 0; _local5 = 0; } else if (_local3 == "TR") { _local4 = 0; _local5 = _local9 - _local7; } else if (_local3 == "LB") { _local4 = _local8 - _local6; _local5 = 0; } else if (_local3 == "RB") { _local4 = _local8 - _local6; _local5 = _local9 - _local7; } if (__screen == undefined) { __screen = new Object(); } __screen.x = _local5; __screen.y = _local4; __screen.width = _local7; __screen.height = _local6; _root.focusManager.relocate(); dispatchEvent({type:"resize"}); } static function get screen() { init(); if (__screen == undefined) { onResize(); } return(__screen); } static var _initialized = false; static var idleFrames = 0; static var isMouseDown = false; static var forms = new Array(); }
Symbol 76 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent { var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject; function FocusManager () { super(); } function get defaultPushButton() { return(__defaultPushButton); } function set defaultPushButton(x) { if (x != __defaultPushButton) { __defaultPushButton.__set__emphasized(false); __defaultPushButton = x; defPushButton = x; x.__set__emphasized(true); } //return(defaultPushButton); } function getMaxTabIndex(o) { var _local3 = 0; var _local6; for (_local6 in o) { var _local2 = o[_local6]; if (_local2._parent == o) { if (_local2.tabIndex != undefined) { if (_local2.tabIndex > _local3) { _local3 = _local2.tabIndex; } } if (_local2.tabChildren == true) { var _local4 = getMaxTabIndex(_local2); if (_local4 > _local3) { _local3 = _local4; } } } } return(_local3); } function getNextTabIndex(Void) { return(getMaxTabIndex(form) + 1); } function get nextTabIndex() { return(getNextTabIndex()); } function relocate(Void) { var _local2 = mx.managers.SystemManager.__get__screen(); move(_local2.x - 1, _local2.y - 1); } function init(Void) { super.init(); tabEnabled = false; _width = (_height = 1); _x = (_y = -1); _alpha = 0; _parent.focusManager = this; _parent.tabChildren = true; _parent.tabEnabled = false; form = _parent; _parent.addEventListener("hide", this); _parent.addEventListener("reveal", this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(form); tabCapture.tabIndex = 0; watch("enabled", enabledChanged); Selection.addListener(this); lastMouse = new Object(); _global.ASSetPropFlags(_parent, "focusManager", 1); _global.ASSetPropFlags(_parent, "tabChildren", 1); _global.ASSetPropFlags(_parent, "tabEnabled", 1); } function enabledChanged(id, oldValue, newValue) { _visible = newValue; return(newValue); } function activate(Void) { Key.addListener(this); activated = (_visible = true); if (lastFocus != undefined) { bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { doLater(this, "restoreFocus"); } } } function deactivate(Void) { Key.removeListener(this); activated = (_visible = false); var _local2 = getSelectionFocus(); var _local3 = getActualFocus(_local2); if (isOurFocus(_local3)) { lastSelFocus = _local2; lastFocus = _local3; } cancelAllDoLaters(); } function isOurFocus(o) { if (o.focusManager == this) { return(true); } while (o != undefined) { if (o.focusManager != undefined) { return(false); } if (o._parent == _parent) { return(true); } o = o._parent; } return(false); } function onSetFocus(o, n) { if (n == null) { if (activated) { bNeedFocus = true; } } else { var _local2 = getFocus(); if (isOurFocus(_local2)) { bNeedFocus = false; lastFocus = _local2; lastSelFocus = n; } } } function restoreFocus(Void) { var _local2 = lastSelFocus.hscroll; if (_local2 != undefined) { var _local5 = lastSelFocus.scroll; var _local4 = lastSelFocus.background; } lastFocus.setFocus(); var _local3 = Selection; Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex); if (_local2 != undefined) { lastSelFocus.scroll = _local5; lastSelFocus.hscroll = _local2; lastSelFocus.background = _local4; } } function onUnload(Void) { mx.managers.SystemManager.removeFocusManager(form); } function setFocus(o) { if (o == null) { Selection.setFocus(null); } else if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } function getActualFocus(o) { var _local1 = o._parent; while (_local1 != undefined) { if (_local1.focusTextField != undefined) { while (_local1.focusTextField != undefined) { o = _local1; _local1 = _local1._parent; if (_local1 == undefined) { return(undefined); } if (_local1.focusTextField == undefined) { return(o); } } } if (_local1.tabEnabled != true) { return(o); } o = _local1; _local1 = o._parent; } return(undefined); } function getSelectionFocus() { var m = Selection.getFocus(); var o = eval (m); return(o); } function getFocus(Void) { var _local2 = getSelectionFocus(); return(getActualFocus(_local2)); } function walkTree(p, index, groupName, dir, lookup, firstChild) { var _local5 = true; var _local11; for (_local11 in p) { var _local2 = p[_local11]; if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_local2 != _lastTarget) { if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) { continue; } if ((_local2 instanceof TextField) && (_local2.selectable == false)) { continue; } if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) { if (firstChild) { _firstNode = _local2; firstChild = false; } } if (_nextIsNext == true) { if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) { _nextNode = _local2; } } if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) { if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) { } else { _lastx = _local2; } } } else { _prevNode = _lastx; _needPrev = false; _nextIsNext = true; } if (_local2.tabIndex != undefined) { if (_local2.tabIndex == index) { if (_foundList[_local2._name] == undefined) { if (_needPrev) { _prevObj = _local2; _needPrev = false; } _nextObj = _local2; } } if (dir && (_local2.tabIndex > index)) { if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) { _nextObj = _local2; } } else if ((!dir) && (_local2.tabIndex < index)) { if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) { _prevObj = _local2; } } if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) { _firstObj = _local2; } if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) { _lastObj = _local2; } } if (_local2.tabChildren) { getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) { if (_local2 == _lastTarget) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_prevNode == undefined) { var _local3 = _lastx; var _local7 = false; while (_local3 != undefined) { if (_local3 == _local2) { _local7 = true; break; } _local3 = _local3._parent; } if (_local7 == false) { _prevNode = _lastx; } } _needPrev = false; if (_nextNode == undefined) { _nextIsNext = true; } } else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } } _lastNode = _lastx; if (lookup) { if (p._parent != undefined) { if (p != _parent) { if ((_prevNode == undefined) && (dir)) { _needPrev = true; } else if ((_nextNode == undefined) && (!dir)) { _nextIsNext = false; } _lastTarget = _lastTarget._parent; getTabCandidate(p._parent, index, groupName, dir, true); } } } } function getTabCandidate(o, index, groupName, dir, firstChild) { var _local2; var _local3 = true; if (o == _parent) { _local2 = o; _local3 = false; } else { _local2 = o._parent; if (_local2 == undefined) { _local2 = o; _local3 = false; } } walkTree(_local2, index, groupName, dir, _local3, firstChild); } function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) { walkTree(o, index, groupName, dir, false, firstChild); } function getFocusManagerFromObject(o) { while (o != undefined) { if (o.focusManager != undefined) { return(o.focusManager); } o = o._parent; } return(undefined); } function tabHandler(Void) { bDrawFocus = true; var _local5 = getSelectionFocus(); var _local4 = getActualFocus(_local5); if (_local4 != _local5) { _local5 = _local4; } if (getFocusManagerFromObject(_local5) != this) { _local5 == undefined; } if (_local5 == undefined) { _local5 = form; } else if (_local5.tabIndex != undefined) { if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) { _foundList = new Object(); _foundList.tabIndex = _local5.tabIndex; } _foundList[_local5._name] = _local5; } var _local3 = Key.isDown(16) != true; _searchKey = getTimer(); _needPrev = true; _nextIsNext = false; _lastx = undefined; _firstNode = undefined; _lastNode = undefined; _nextNode = undefined; _prevNode = undefined; _firstObj = undefined; _lastObj = undefined; _nextObj = undefined; _prevObj = undefined; _lastTarget = _local5; var _local6 = _local5; getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true); var _local2; if (_local3) { if (_nextObj != undefined) { _local2 = _nextObj; } else { _local2 = _firstObj; } } else if (_prevObj != undefined) { _local2 = _prevObj; } else { _local2 = _lastObj; } if (_local2.tabIndex != _local5.tabIndex) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; _foundList[_local2._name] = _local2; } else { if (_foundList == undefined) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; } _foundList[_local2._name] = _local2; } if (_local2 == undefined) { if (_local3 == false) { if (_nextNode != undefined) { _local2 = _nextNode; } else { _local2 = _firstNode; } } else if ((_prevNode == undefined) || (_local5 == form)) { _local2 = _lastNode; } else { _local2 = _prevNode; } } if (_local2 == undefined) { return(undefined); } lastTabFocus = _local2; setFocus(_local2); if (_local2.emphasized != undefined) { if (defPushButton != undefined) { _local5 = defPushButton; defPushButton = _local2; _local5.emphasized = false; _local2.emphasized = true; } } else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) { _local5 = defPushButton; defPushButton = __defaultPushButton; _local5.emphasized = false; __defaultPushButton.__set__emphasized(true); } } function onKeyDown(Void) { mx.managers.SystemManager.idleFrames = 0; if (defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (defaultPushButton != undefined) { doLater(this, "sendDefaultPushButtonEvent"); } } } } function sendDefaultPushButtonEvent(Void) { defPushButton.dispatchEvent({type:"click"}); } function getMousedComponentFromChildren(x, y, o) { for (var _local7 in o) { var _local2 = o[_local7]; if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) { _local2._searchKey = _searchKey; if (_local2.hitTest(x, y, true)) { if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) { return(_local2); } var _local3 = getMousedComponentFromChildren(x, y, _local2); if (_local3 != undefined) { return(_local3); } return(_local2); } } } return(undefined); } function mouseActivate(Void) { if (!bNeedFocus) { return(undefined); } _searchKey = getTimer(); var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form); if (_local2 instanceof mx.core.UIComponent) { return(undefined); } _local2 = findFocusFromObject(_local2); if (_local2 == lastFocus) { return(undefined); } if (_local2 == undefined) { doLater(this, "restoreFocus"); return(undefined); } var _local3 = _local2.hscroll; if (_local3 != undefined) { var _local6 = _local2.scroll; var _local5 = _local2.background; } setFocus(_local2); var _local4 = Selection; Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex); if (_local3 != undefined) { _local2.scroll = _local6; _local2.hscroll = _local3; _local2.background = _local5; } } function _onMouseDown(Void) { bDrawFocus = false; if (lastFocus != undefined) { lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var _local3 = Selection; _local3.lastBeginIndex = Selection.getBeginIndex(); _local3.lastEndIndex = Selection.getEndIndex(); lastMouse.x = _root._xmouse; lastMouse.y = _root._ymouse; _root.localToGlobal(lastMouse); } function onMouseUp(Void) { if (_visible) { doLater(this, "mouseActivate"); } } function handleEvent(e) { if (e.type == "reveal") { mx.managers.SystemManager.activate(form); } else { mx.managers.SystemManager.deactivate(form); } } static function enableFocusManagement() { if (!initialized) { initialized = true; Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } } } static var symbolName = "FocusManager"; static var symbolOwner = mx.managers.FocusManager; static var version = "2.0.2.126"; var className = "FocusManager"; var bNeedFocus = false; var bDrawFocus = false; var defaultPushButtonEnabled = true; var activated = true; static var initialized = false; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 77 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement { var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible; function FocusRect () { super(); boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function draw(o) { o.adjustFocusRect(); } function setSize(w, h, r, a, rectCol) { _xscale = (_yscale = 100); clear(); if (typeof(r) == "object") { r.br = ((r.br > 2) ? (r.br - 2) : 0); r.bl = ((r.bl > 2) ? (r.bl - 2) : 0); r.tr = ((r.tr > 2) ? (r.tr - 2) : 0); r.tl = ((r.tl > 2) ? (r.tl - 2) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); r.br = ((r.br > 1) ? (r.br + 1) : 0); r.bl = ((r.bl > 1) ? (r.bl + 1) : 0); r.tr = ((r.tr > 1) ? (r.tr + 1) : 0); r.tl = ((r.tl > 1) ? (r.tl + 1) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(1, 1, w - 2, h - 2, r); r.br = ((r.br > 1) ? (r.br - 1) : 0); r.bl = ((r.bl > 1) ? (r.bl - 1) : 0); r.tr = ((r.tr > 1) ? (r.tr - 1) : 0); r.tl = ((r.tl > 1) ? (r.tl - 1) : 0); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); } else { var _local5; if (r != 0) { _local5 = r - 2; } else { _local5 = 0; } beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); beginFill(rectCol, a * 0.3); if (r != 0) { _local5 = r - 2; r = r - 1; } else { _local5 = 0; r = 0; } drawRoundRect(1, 1, w - 2, h - 2, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); } } function handleEvent(e) { if (e.type == "unload") { _visible = true; } else if (e.type == "resize") { e.target.adjustFocusRect(); } else if (e.type == "move") { e.target.adjustFocusRect(); } } static function classConstruct() { mx.core.UIComponent.prototype.drawFocus = function (focused) { var _local2 = this._parent.focus_mc; if (!focused) { _local2._visible = false; this.removeEventListener("unload", _local2); this.removeEventListener("move", _local2); this.removeEventListener("resize", _local2); } else { if (_local2 == undefined) { _local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop); _local2.tabEnabled = false; this._parent.focus_mc = _local2; } else { _local2._visible = true; } _local2.draw(this); if (_local2.getDepth() < this.getDepth()) { _local2.setDepthAbove(this); } this.addEventListener("unload", _local2); this.addEventListener("move", _local2); this.addEventListener("resize", _local2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var DefaultsDependency = mx.skins.halo.Defaults; static var UIComponentDependency = mx.core.UIComponent; }
Symbol 78 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows { function OverlappedWindows () { } static function checkIdle(Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({type:"idle"}); } else { mx.managers.SystemManager.idleFrames++; } } static function __addEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); } static function __removeEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } } static function onMouseDown(Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var _local5 = _root; var _local3; var _local8 = _root._xmouse; var _local7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var _local6 = mx.managers.SystemManager.forms.length; var _local4; _local4 = 0; while (_local4 < _local6) { var _local2 = mx.managers.SystemManager.forms[_local4]; if (_local2._visible) { if (_local2.hitTest(_local8, _local7)) { if (_local3 == undefined) { _local3 = _local2.getDepth(); _local5 = _local2; } else if (_local3 < _local2.getDepth()) { _local3 = _local2.getDepth(); _local5 = _local2; } } } _local4++; } if (_local5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(_local5); } } } var _local9 = mx.managers.SystemManager.form; _local9.focusManager._onMouseDown(); } static function onMouseMove(Void) { mx.managers.SystemManager.idleFrames = 0; } static function onMouseUp(Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; } static function activate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) { var _local1 = mx.managers.SystemManager.form; _local1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); } static function deactivate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) { var _local5 = mx.managers.SystemManager.form; _local5.focusManager.deactivate(); var _local3 = mx.managers.SystemManager.forms.length; var _local1; var _local2; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { _local1 = _local1 + 1; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } mx.managers.SystemManager.form = _local2; break; } if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } _local5 = mx.managers.SystemManager.form; _local5.focusManager.activate(); } } } static function addFocusManager(f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); } static function removeFocusManager(f) { var _local3 = mx.managers.SystemManager.forms.length; var _local1; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(_local1, 1); return(undefined); } _local1++; } } static function enableOverlappedWindows() { if (!initialized) { initialized = true; mx.managers.SystemManager.checkIdle = checkIdle; mx.managers.SystemManager.__addEventListener = __addEventListener; mx.managers.SystemManager.__removeEventListener = __removeEventListener; mx.managers.SystemManager.onMouseDown = onMouseDown; mx.managers.SystemManager.onMouseMove = onMouseMove; mx.managers.SystemManager.onMouseUp = onMouseUp; mx.managers.SystemManager.activate = activate; mx.managers.SystemManager.deactivate = deactivate; mx.managers.SystemManager.addFocusManager = addFocusManager; mx.managers.SystemManager.removeFocusManager = removeFocusManager; } } static var initialized = false; static var SystemManagerDependency = mx.managers.SystemManager; }
Symbol 79 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle { var styleName, stylecache, _color, setColor, invalidateStyle; function CSSSetStyle () { } function _setStyle(styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == "color") { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } } _level0.changeTextStyleInChildren(styleProp); return(undefined); } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local7 = mx.styles.StyleManager.colorNames.haloBlue; var _local6 = mx.styles.StyleManager.colorNames.haloGreen; var _local8 = mx.styles.StyleManager.colorNames.haloOrange; var _local4 = {}; _local4[_local7] = 12188666 /* 0xB9FBFA */; _local4[_local6] = 13500353 /* 0xCDFFC1 */; _local4[_local8] = 16766319 /* 0xFFD56F */; var _local5 = {}; _local5[_local7] = 13958653 /* 0xD4FDFD */; _local5[_local6] = 14942166 /* 0xE3FFD6 */; _local5[_local8] = 16772787 /* 0xFFEEB3 */; var _local9 = _local4[newValue]; var _local10 = _local5[newValue]; if (_local9 == undefined) { _local9 = newValue; } if (_local10 == undefined) { _local10 = newValue; } setStyle("selectionColor", _local9); setStyle("rollOverColor", _local10); } _level0.changeColorStyleInChildren(styleName, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } _level0.notifyStyleChangeInChildren(styleName, styleProp, newValue); } } function changeTextStyleInChildren(styleProp) { var _local4 = getTimer(); var _local5; for (_local5 in this) { var _local2 = this[_local5]; if (_local2._parent == this) { if (_local2.searchKey != _local4) { if (_local2.stylecache != undefined) { delete _local2.stylecache.tf; delete _local2.stylecache[styleProp]; } _local2.invalidateStyle(styleProp); _local2.changeTextStyleInChildren(styleProp); _local2.searchKey = _local4; } } } } function changeColorStyleInChildren(sheetName, colorStyle, newValue) { var _local6 = getTimer(); var _local7; for (_local7 in this) { var _local2 = this[_local7]; if (_local2._parent == this) { if (_local2.searchKey != _local6) { if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) { if (_local2.stylecache != undefined) { delete _local2.stylecache[colorStyle]; } if (typeof(_local2._color) == "string") { if (_local2._color == colorStyle) { var _local4 = _local2.getStyle(colorStyle); if (colorStyle == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = _local4; } } _local2.setColor(_local4); } } else if (_local2._color[colorStyle] != undefined) { if (typeof(_local2) != "movieclip") { _local2._parent.invalidateStyle(); } else { _local2.invalidateStyle(colorStyle); } } } _local2.changeColorStyleInChildren(sheetName, colorStyle, newValue); _local2.searchKey = _local6; } } } } function notifyStyleChangeInChildren(sheetName, styleProp, newValue) { var _local5 = getTimer(); var _local6; for (_local6 in this) { var _local2 = this[_local6]; if (_local2._parent == this) { if (_local2.searchKey != _local5) { if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) { if (_local2.stylecache != undefined) { delete _local2.stylecache[styleProp]; delete _local2.stylecache.tf; } delete _local2.enabledColor; _local2.invalidateStyle(styleProp); } _local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); _local2.searchKey = _local5; } } } } function setStyle(styleProp, newValue) { if (stylecache != undefined) { delete stylecache[styleProp]; delete stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local10 = mx.styles.StyleManager.colorNames.haloBlue; var _local9 = mx.styles.StyleManager.colorNames.haloGreen; var _local11 = mx.styles.StyleManager.colorNames.haloOrange; var _local6 = {}; _local6[_local10] = 12188666 /* 0xB9FBFA */; _local6[_local9] = 13500353 /* 0xCDFFC1 */; _local6[_local11] = 16766319 /* 0xFFD56F */; var _local7 = {}; _local7[_local10] = 13958653 /* 0xD4FDFD */; _local7[_local9] = 14942166 /* 0xE3FFD6 */; _local7[_local11] = 16772787 /* 0xFFEEB3 */; var _local12 = _local6[newValue]; var _local13 = _local7[newValue]; if (_local12 == undefined) { _local12 = newValue; } if (_local13 == undefined) { _local13 = newValue; } setStyle("selectionColor", _local12); setStyle("rollOverColor", _local13); } if (typeof(_color) == "string") { if (_color == styleProp) { if (styleProp == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = newValue; } } setColor(newValue); } } else if (_color[styleProp] != undefined) { invalidateStyle(styleProp); } changeColorStyleInChildren(undefined, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) { var _local8; var _local5 = newValue; if (styleProp == "styleName") { _local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5)); _local5 = _local8.themeColor; if (_local5 != undefined) { _local8.rollOverColor = (_local8.selectionColor = _local5); } } notifyStyleChangeInChildren(undefined, styleProp, newValue); } } static function enableRunTimeCSS() { } static function classConstruct() { var _local2 = MovieClip.prototype; var _local3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle; _local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren; _local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren; _local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren; _local2.setStyle = _local3.setStyle; _global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1); _global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1); _global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1); _global.ASSetPropFlags(_local2, "setStyle", 1); var _local4 = TextField.prototype; _local4.setStyle = _local2.setStyle; _local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; }
Symbol 80 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions { function UIComponentExtensions () { } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if (this.getFocusManager().bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); } static var bExtended = false; static var UIComponentExtended = Extensions(); static var UIComponentDependency = mx.core.UIComponent; static var FocusManagerDependency = mx.managers.FocusManager; static var OverlappedWindowsDependency = mx.managers.OverlappedWindows; }
Symbol 81 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder { var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill; function RectBorder () { super(); } function init(Void) { borderWidths.default = 3; super.init(); } function getBorderMetrics(Void) { if (offset == undefined) { var _local3 = getStyle(borderStyleName); offset = borderWidths[_local3]; } if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) { __borderMetrics = {left:3, top:1, right:3, bottom:3}; return(__borderMetrics); } return(super.getBorderMetrics()); } function drawBorder(Void) { var _local6 = _global.styles[className]; if (_local6 == undefined) { _local6 = _global.styles.RectBorder; } var _local5 = getStyle(borderStyleName); var _local7 = getStyle(borderColorName); if (_local7 == undefined) { _local7 = _local6[borderColorName]; } var _local8 = getStyle(backgroundColorName); if (_local8 == undefined) { _local8 = _local6[backgroundColorName]; } var _local16 = getStyle("backgroundImage"); if (_local5 != "none") { var _local14 = getStyle(shadowColorName); if (_local14 == undefined) { _local14 = _local6[shadowColorName]; } var _local13 = getStyle(highlightColorName); if (_local13 == undefined) { _local13 = _local6[highlightColorName]; } var _local12 = getStyle(buttonColorName); if (_local12 == undefined) { _local12 = _local6[buttonColorName]; } var _local11 = getStyle(borderCapColorName); if (_local11 == undefined) { _local11 = _local6[borderCapColorName]; } var _local10 = getStyle(shadowCapColorName); if (_local10 == undefined) { _local10 = _local6[shadowCapColorName]; } } offset = borderWidths[_local5]; var _local9 = offset; var _local3 = __get__width(); var _local4 = __get__height(); clear(); _color = undefined; if (_local5 == "none") { } else if (_local5 == "inset") { _color = colorList; draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10); } else if (_local5 == "outset") { _color = colorList; draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10); } else if (_local5 == "alert") { var _local15 = getStyle("themeColor"); drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100); } else if (_local5 == "default") { drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial"); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100); } else if (_local5 == "dropDown") { drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear"); drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100); } else if (_local5 == "menuBorder") { var _local15 = getStyle("themeColor"); drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10); drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear"); drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50); drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100); } else if (_local5 == "comboNonEdit") { } else { beginFill(_local7); drawRect(0, 0, _local3, _local4); drawRect(1, 1, _local3 - 1, _local4 - 1); endFill(); _color = borderColorName; } if (_local8 != undefined) { beginFill(_local8); drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9); endFill(); } } function draw3dBorder(c1, c2, c3, c4, c5, c6) { var _local3 = __get__width(); var _local2 = __get__height(); beginFill(c1); drawRect(0, 0, _local3, _local2); drawRect(1, 0, _local3 - 1, _local2); endFill(); beginFill(c2); drawRect(1, 0, _local3 - 1, 1); endFill(); beginFill(c3); drawRect(1, _local2 - 1, _local3 - 1, _local2); endFill(); beginFill(c4); drawRect(1, 1, _local3 - 1, 2); endFill(); beginFill(c5); drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1); endFill(); beginFill(c6); drawRect(1, 2, _local3 - 1, _local2 - 2); drawRect(2, 2, _local3 - 2, _local2 - 2); endFill(); } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return(true); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.halo.RectBorder; static var version = "2.0.2.126"; var borderCapColorName = "borderCapColor"; var shadowCapColorName = "shadowCapColor"; var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0}; var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2}; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 112 Button
on (release) { url = "http://www.playnow3dgames.com/index.php?refgame=zombieslayer"; getURL (url, "_blank", "POST"); }
Symbol 114 MovieClip Frame 1
_parent.stop();
Symbol 114 MovieClip Frame 100
stop(); _parent.play();
Symbol 118 Button
on (release) { url = "http://www.playnow3dgames.com/gamesforyoursite.php?refgame=zombieslayer"; getURL (url, "_blank", "POST"); }
Symbol 122 Button
on (release) { url = "http://www.playnow3dgames.com/index.php?refgame=zombieslayer"; getURL (url, "_blank", "POST"); }
Symbol 126 Button
on (release) { url = "http://www.playnow3dgames.com/index.php?refgame=zombieslayer"; getURL (url, "_blank", "POST"); }
Symbol 179 Button
on (release) { gotoAndPlay ("optionsscreen"); }
Symbol 185 Button
on (release) { playphysics = true; }
Symbol 189 Button
on (release) { _root.difficulty = 2; }
Symbol 192 Button
on (release) { _root.difficulty = 1; }
Symbol 195 Button
on (release) { _root.difficulty = 0; }
Symbol 201 Button
on (release) { wait = 0; gotoAndPlay ("game"); }
Symbol 374 Button
on (release) { gotoAndPlay ("menuscreen"); }
Symbol 378 Button
on (release) { _root.debrisquality = 1; }
Symbol 381 Button
on (release) { _root.debrisquality = 0; }
Symbol 388 Button
on (release) { _root.graphicsquality = 2; }
Symbol 389 Button
on (release) { _root.graphicsquality = 1; }
Symbol 390 Button
on (release) { _root.graphicsquality = 0; }
Symbol 391 Button
on (release) { _root.particlealpha = 1; }
Symbol 392 Button
on (release) { _root.particlealpha = 0; }
Symbol 393 Button
on (release) { _root.particlequality = 1; }
Symbol 394 Button
on (release) { _root.particlequality = 0; }
Symbol 395 Button
on (release) { _root.bulletcasingquality = 2; }
Symbol 396 Button
on (release) { _root.bulletcasingquality = 1; }
Symbol 397 Button
on (release) { _root.bulletcasingquality = 0; }
Symbol 399 MovieClip Frame 1
stop(); playphysics = false; messagetext = ""; _root.game0.cursor._visible = false; Mouse.show(); wait = -5; this.onEnterFrame = function () { if (_root.difficulty == 0) { difficultyselection._x = difficultybutton0._x; difficultyselection._y = difficultybutton0._y; } if (_root.difficulty == 1) { difficultyselection._x = difficultybutton1._x; difficultyselection._y = difficultybutton1._y; } if (_root.difficulty == 2) { difficultyselection._x = difficultybutton2._x; difficultyselection._y = difficultybutton2._y; } };
Symbol 399 MovieClip Frame 2
function pointcollide(pointx, pointy, boxx1, boxy1, boxx2, boxy2) { if ((((pointx > boxx1) && (pointx < boxx2)) && (pointy > boxy1)) && (pointy < boxy2)) { return(true); } return(false); } function rectcollide(box1x1, box1y1, box1x2, box1y2, box2x1, box2y1, box2x2, box2y2) { var _local2 = false; var _local1 = false; if (box1x2 > box1x1) { var _local7 = box1x1; var _local4 = box1x2; } else { var _local7 = box1x2; var _local4 = box1x1; } if (box1y2 > box1y1) { var _local5 = box1y1; var _local3 = box1y2; } else { var _local5 = box1y2; var _local3 = box1y1; } if (box2x2 > box2x1) { var _local10 = box2x1; var _local8 = box2x2; } else { var _local10 = box2x2; var _local8 = box2x1; } if (box2y2 > box2y1) { var _local9 = box2y1; var _local6 = box2y2; } else { var _local9 = box2y2; var _local6 = box2y1; } if ((_local7 >= _local10) && (_local7 <= _local8)) { _local2 = true; } else if ((_local4 >= _local10) && (_local4 <= _local8)) { _local2 = true; } else if ((_local10 >= _local7) && (_local10 <= _local4)) { _local2 = true; } else if ((_local8 >= _local7) && (_local8 <= _local4)) { _local2 = true; } if ((_local5 >= _local9) && (_local5 <= _local6)) { _local1 = true; } else if ((_local3 >= _local9) && (_local3 <= _local6)) { _local1 = true; } else if ((_local9 >= _local5) && (_local9 <= _local3)) { _local1 = true; } else if ((_local6 >= _local5) && (_local6 <= _local3)) { _local1 = true; } if ((_local2 == true) && (_local1 == true)) { return(true); } return(false); } function physicspush(x, y, radius, pushdirection, power) { var _local4 = power; var _local3 = 0; var _local2 = 0; var _local10 = 0; var _local11 = 0; var _local5 = 0; if (_local4 > maxdelta) { _local4 = maxdelta; } _local3 = 0; while (_local3 < ropes) { if (_root.game0["rope" + _local3].active == true) { _local10 = 0; _local11 = 0; _local2 = _root.game0["rope" + _local3].firstpnum; while (_local2 < (_root.game0["rope" + _local3].firstpnum + _root.game0["rope" + _local3].segments)) { _local10 = _local10 + px[_local2]; _local11 = _local11 + py[_local2]; _local2 = _local2 + 1; } _local10 = _local10 / _root.game0["rope" + _local3].segments; _local11 = _local11 / _root.game0["rope" + _local3].segments; if (approxdistance(x, y, _local10, _local11) <= ((radius + safetydistance) + _root.game0["rope" + _local3].maxlength)) { if (_root.game0["rope" + _local3].atrest == false) { _local2 = _root.game0["rope" + _local3].firstpnum; while (_local2 < (_root.game0["rope" + _local3].firstpnum + _root.game0["rope" + _local3].segments)) { _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } _root.game0["rope" + _local3].restcounter = 0; _root.game0["rope" + _local3].atrest = false; _local2 = _root.game0["rope" + _local3].firstpnum; while (_local2 < (_root.game0["rope" + _local3].firstpnum + _root.game0["rope" + _local3].segments)) { pactive[_local2] = true; _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local3 = 0; while (_local3 < ragdolls) { if (_root.game0["ragdoll" + _local3].active == true) { _local10 = (px[_root.game0["ragdoll" + _local3].firstpnum + 4] + px[_root.game0["ragdoll" + _local3].firstpnum + 5]) * 0.5; _local11 = (py[_root.game0["ragdoll" + _local3].firstpnum + 4] + py[_root.game0["ragdoll" + _local3].firstpnum + 5]) * 0.5; if (approxdistance(x, y, _local10, _local11) <= ((radius + safetydistance) + (ragdollheight * 2))) { if (_root.game0["ragdoll" + _local3].atrest == false) { _local2 = _root.game0["ragdoll" + _local3].firstpnum; while (_local2 < (_root.game0["ragdoll" + _local3].firstpnum + 14)) { _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } _root.game0["ragdoll" + _local3].restcounter = 0; wateraffectoractive[_root.game0["ragdoll" + _local3].wateraffectornum] = true; _root.game0["ragdoll" + _local3].atrest = false; _local2 = _root.game0["ragdoll" + _local3].firstpnum; while (_local2 < (_root.game0["ragdoll" + _local3].firstpnum + 14)) { pactive[_local2] = true; _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local3 = 0; while (_local3 < boxes) { if (_root.game0["box" + _local3].active == true) { _local10 = (px[_root.game0["box" + _local3].firstpnum] + px[_root.game0["box" + _local3].firstpnum + 2]) * 0.5; _local11 = (py[_root.game0["box" + _local3].firstpnum] + py[_root.game0["box" + _local3].firstpnum + 2]) * 0.5; if (approxdistance(x, y, _local10, _local11) <= ((radius + safetydistance) + _root.game0["box" + _local3].sidelength)) { if (_root.game0["box" + _local3].atrest == false) { _local2 = _root.game0["box" + _local3].firstpnum; while (_local2 < (_root.game0["box" + _local3].firstpnum + 4)) { _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } wateraffectoractive[_root.game0["box" + _local3].wateraffectornum] = true; _root.game0["box" + _local3].restcounter = 0; _root.game0["box" + _local3].atrest = false; _local2 = _root.game0["box" + _local3].firstpnum; while (_local2 < (_root.game0["box" + _local3].firstpnum + 4)) { pactive[_local2] = true; _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local3 = 0; while (_local3 < lines) { if (_root.game0["line" + _local3].active == true) { _local10 = (px[_root.game0["line" + _local3].firstpnum] + px[_root.game0["line" + _local3].firstpnum + 1]) * 0.5; _local11 = (py[_root.game0["line" + _local3].firstpnum] + py[_root.game0["line" + _local3].firstpnum + 1]) * 0.5; if (approxdistance(x, y, _local10, _local11) <= ((radius + safetydistance) + _root.game0["line" + _local3].linelength)) { if (_root.game0["line" + _local3].atrest == false) { _local2 = _root.game0["line" + _local3].firstpnum; while (_local2 < (_root.game0["line" + _local3].firstpnum + 2)) { _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } _root.game0["line" + _local3].restcounter = 0; _root.game0["line" + _local3].atrest = false; _local2 = _root.game0["line" + _local3].firstpnum; while (_local2 < (_root.game0["line" + _local3].firstpnum + 2)) { pactive[_local2] = true; _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local3 = 0; while (_local3 < points) { if (_root.game0["point" + _local3].active == true) { _local10 = px[_root.game0["point" + _local3].firstpnum]; _local11 = py[_root.game0["point" + _local3].firstpnum]; if (approxdistance(x, y, _local10, _local11) <= (radius + safetydistance)) { if (_root.game0["point" + _local3].atrest == false) { _local2 = _root.game0["point" + _local3].firstpnum; while (_local2 < (_root.game0["point" + _local3].firstpnum + 1)) { _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } _root.game0["point" + _local3].restcounter = 0; _root.game0["point" + _local3].atrest = false; _local2 = _root.game0["point" + _local3].firstpnum; while (_local2 < (_root.game0["point" + _local3].firstpnum + 1)) { pactive[_local2] = true; _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local3 = 0; while (_local3 < objectlines) { if (_root.game0["objectline" + _local3].active == true) { _local10 = (px[_root.game0["objectline" + _local3].firstpnum] + px[_root.game0["objectline" + _local3].firstpnum + 1]) * 0.5; _local11 = (py[_root.game0["objectline" + _local3].firstpnum] + py[_root.game0["objectline" + _local3].firstpnum + 1]) * 0.5; if (approxdistance(x, y, _local10, _local11) <= ((radius + safetydistance) + _root.game0["objectline" + _local3].yheight)) { _local2 = _root.game0["objectline" + _local3].firstpnum; while (_local2 < (_root.game0["objectline" + _local3].firstpnum + 2)) { _local5 = approxdistance(x, y, px[_local2], py[_local2]); if (_local5 < radius) { px[_local2] = px[_local2] + vectorx(pushdirection, _local4); py[_local2] = py[_local2] + vectory(pushdirection, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } } function physicsexplosion(x, y, radius, power) { var _local7 = 0; var _local6 = 0; var _local4 = 0; var _local3 = 0; var _local2 = 0; var _local11 = 0; var _local12 = 0; var _local13 = 0; _local3 = 0; while (_local3 < ropes) { if (_root.game0["rope" + _local3].active == true) { _local11 = 0; _local12 = 0; _local2 = _root.game0["rope" + _local3].firstpnum; while (_local2 < (_root.game0["rope" + _local3].firstpnum + _root.game0["rope" + _local3].segments)) { _local11 = _local11 + px[_local2]; _local12 = _local12 + py[_local2]; _local2 = _local2 + 1; } _local11 = _local11 / _root.game0["rope" + _local3].segments; _local12 = _local12 / _root.game0["rope" + _local3].segments; if (approxdistance(x, y, _local11, _local12) <= ((radius + safetydistance) + _root.game0["rope" + _local3].maxlength)) { if (_root.game0["rope" + _local3].atrest == false) { _local2 = _root.game0["rope" + _local3].firstpnum; while (_local2 < (_root.game0["rope" + _local3].firstpnum + _root.game0["rope" + _local3].segments)) { _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } _root.game0["rope" + _local3].restcounter = 0; _root.game0["rope" + _local3].atrest = false; _local2 = _root.game0["rope" + _local3].firstpnum; while (_local2 < (_root.game0["rope" + _local3].firstpnum + _root.game0["rope" + _local3].segments)) { pactive[_local2] = true; _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local7 = 0; _local6 = 0; _local3 = 0; while (_local3 < ragdolls) { if (_root.game0["ragdoll" + _local3].active == true) { _local11 = (px[_root.game0["ragdoll" + _local3].firstpnum + 4] + px[_root.game0["ragdoll" + _local3].firstpnum + 5]) * 0.5; _local12 = (py[_root.game0["ragdoll" + _local3].firstpnum + 4] + py[_root.game0["ragdoll" + _local3].firstpnum + 5]) * 0.5; if (approxdistance(x, y, _local11, _local12) <= ((radius + safetydistance) + (ragdollheight * 2))) { if (_root.game0["ragdoll" + _local3].atrest == false) { _local2 = _root.game0["ragdoll" + _local3].firstpnum; while (_local2 < (_root.game0["ragdoll" + _local3].firstpnum + 14)) { _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } wateraffectoractive[_root.game0["ragdoll" + _local3].wateraffectornum] = true; _root.game0["ragdoll" + _local3].restcounter = 0; _root.game0["ragdoll" + _local3].atrest = false; _local2 = _root.game0["ragdoll" + _local3].firstpnum; while (_local2 < (_root.game0["ragdoll" + _local3].firstpnum + 14)) { pactive[_local2] = true; _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local7 = 0; _local6 = 0; _local3 = 0; while (_local3 < boxes) { if (_root.game0["box" + _local3].active == true) { _local11 = (px[_root.game0["box" + _local3].firstpnum] + px[_root.game0["box" + _local3].firstpnum + 2]) * 0.5; _local12 = (py[_root.game0["box" + _local3].firstpnum] + py[_root.game0["box" + _local3].firstpnum + 2]) * 0.5; if (approxdistance(x, y, _local11, _local12) <= ((radius + safetydistance) + _root.game0["box" + _local3].sidelength)) { if (_root.game0["box" + _local3].atrest == false) { _local2 = _root.game0["box" + _local3].firstpnum; while (_local2 < (_root.game0["box" + _local3].firstpnum + 4)) { _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } wateraffectoractive[_root.game0["box" + _local3].wateraffectornum] = true; _root.game0["box" + _local3].restcounter = 0; _root.game0["box" + _local3].atrest = false; _local2 = _root.game0["box" + _local3].firstpnum; while (_local2 < (_root.game0["box" + _local3].firstpnum + 4)) { pactive[_local2] = true; _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local7 = 0; _local6 = 0; _local3 = 0; while (_local3 < lines) { if (_root.game0["line" + _local3].active == true) { _local11 = (px[_root.game0["line" + _local3].firstpnum] + px[_root.game0["line" + _local3].firstpnum + 1]) * 0.5; _local12 = (py[_root.game0["line" + _local3].firstpnum] + py[_root.game0["line" + _local3].firstpnum + 1]) * 0.5; if (approxdistance(x, y, _local11, _local12) <= ((radius + safetydistance) + _root.game0["line" + _local3].linelength)) { if (_root.game0["line" + _local3].atrest == false) { _local2 = _root.game0["line" + _local3].firstpnum; while (_local2 < (_root.game0["line" + _local3].firstpnum + 2)) { _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } _root.game0["line" + _local3].restcounter = 0; _root.game0["line" + _local3].atrest = false; _local2 = _root.game0["line" + _local3].firstpnum; while (_local2 < (_root.game0["line" + _local3].firstpnum + 2)) { pactive[_local2] = true; _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local7 = 0; _local6 = 0; _local3 = 0; while (_local3 < points) { if (_root.game0["point" + _local3].active == true) { _local11 = px[_root.game0["point" + _local3].firstpnum]; _local12 = py[_root.game0["point" + _local3].firstpnum]; if (approxdistance(x, y, _local11, _local12) <= (radius + safetydistance)) { if (_root.game0["point" + _local3].atrest == false) { _local2 = _root.game0["point" + _local3].firstpnum; while (_local2 < (_root.game0["point" + _local3].firstpnum + 1)) { _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } _root.game0["point" + _local3].restcounter = 0; _root.game0["point" + _local3].atrest = false; _local2 = _root.game0["point" + _local3].firstpnum; while (_local2 < (_root.game0["point" + _local3].firstpnum + 1)) { pactive[_local2] = true; _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } _local7 = 0; _local6 = 0; _local3 = 0; while (_local3 < objectlines) { if (_root.game0["objectline" + _local3].active == true) { _local11 = (px[_root.game0["objectline" + _local3].firstpnum] + px[_root.game0["objectline" + _local3].firstpnum + 1]) * 0.5; _local12 = (py[_root.game0["objectline" + _local3].firstpnum] + py[_root.game0["objectline" + _local3].firstpnum + 1]) * 0.5; if (approxdistance(x, y, _local11, _local12) <= ((radius + safetydistance) + _root.game0["objectline" + _local3].yheight)) { _local2 = _root.game0["objectline" + _local3].firstpnum; while (_local2 < (_root.game0["objectline" + _local3].firstpnum + 2)) { _local7 = approxdistance(x, y, px[_local2], py[_local2]); if (_local7 < radius) { _local6 = directiontopoint(x, y, px[_local2], py[_local2]); _local4 = ((radius - _local7) / radius) * power; if (_local4 > maxdelta) { _local4 = maxdelta; } px[_local2] = px[_local2] + vectorx(_local6, _local4); py[_local2] = py[_local2] + vectory(_local6, _local4); } _local2 = _local2 + 1; } } } _local3 = _local3 + 1; } } function segmentcollide(x1, y1, x2, y2) { var _local3 = 0; var _local2 = 0; while (_local2 < collisionlines) { if (_root.game0["collisionline" + _local2].active == true) { if (rectcollide(x1, y1, x2, y2, _root.game0["collisionline" + _local2].x1, _root.game0["collisionline" + _local2].y1, _root.game0["collisionline" + _local2].x2, _root.game0["collisionline" + _local2].y2) == true) { possiblelinenum[_local3] = _local2; _local3 = _local3 + 1; } } _local2 = _local2 + 1; } lowestdistance = 10000; _local2 = 0; while (_local2 < _local3) { if (linecollide(x1, y1, x2, y2, _root.game0["collisionline" + possiblelinenum[_local2]].x1, _root.game0["collisionline" + possiblelinenum[_local2]].y1, _root.game0["collisionline" + possiblelinenum[_local2]].x2, _root.game0["collisionline" + possiblelinenum[_local2]].y2, _root.game0["collisionline" + possiblelinenum[_local2]].slope) == true) { tempdistance = approxdistance(cx, cy, x1, y1); if (tempdistance < lowestdistance) { lowestdistance = tempdistance; bestcx = cx; bestcy = cy; bestsurfacedirection = surfacedirection; } } _local2 = _local2 + 1; } if (lowestdistance < 10000) { return(true); } return(false); } function pcollisions2(pnum) { var _local5 = 10000; var _local3 = 0; var _local4 = 0; var _local10 = 0; var _local7 = 0; var _local8 = 0; var _local6 = 0; var _local9 = 0; var _local11 = 0; while (_local3 < possiblelines) { if (linecollide(psx[pnum], psy[pnum], px[pnum], py[pnum], _root.game0["collisionline" + possiblelinenum[_local3]].x1, _root.game0["collisionline" + possiblelinenum[_local3]].y1, _root.game0["collisionline" + possiblelinenum[_local3]].x2, _root.game0["collisionline" + possiblelinenum[_local3]].y2, _root.game0["collisionline" + possiblelinenum[_local3]].slope) == true) { _local4 = approxdistance(cx, cy, psx[pnum], psy[pnum]); if (_local4 < _local5) { _local5 = _local4; bestcx = cx; bestcy = cy; bestsurfacedirection = surfacedirection; } } _local3 = _local3 + 1; } if (_local5 < 10000) { _local10 = directiontopoint(psx[pnum], psy[pnum], bestcx, bestcy); _local7 = approxdistance(px[pnum], py[pnum], plx[pnum], ply[pnum]) * pf[pnum]; _local8 = approxdistance(px[pnum], py[pnum], bestcx, bestcy) * pf[pnum]; _local7 = _local7 - _local8; _local6 = Math.abs(finddirection(bestsurfacedirection, _local10)); if (_local6 > 90) { _local6 = correctdirection(bestsurfacedirection + 180); } else { _local6 = bestsurfacedirection; } _local11 = (90 - Math.abs(finddirection(_local6, _local10))) / 90; _local8 = Math.abs(_local8 * _local11) + 0.001; _local7 = Math.abs(_local7 * _local11) + 0.001; _local9 = Math.abs(finddirection(bestsurfacedirection + 90, _local10)); if (_local9 < 90) { _local9 = correctdirection(bestsurfacedirection - 90); } else { _local9 = correctdirection(bestsurfacedirection + 90); } psx[pnum] = bestcx + vectorx(_local9, 1); psy[pnum] = bestcy + vectory(_local9, 1); px[pnum] = psx[pnum] + vectorx(_local6, _local8); py[pnum] = psy[pnum] + vectory(_local6, _local8); plx[pnum] = psx[pnum] - vectorx(_local6, _local7); ply[pnum] = psy[pnum] - vectory(_local6, _local7); } else { psy[pnum] = py[pnum]; psx[pnum] = px[pnum]; } } function pcollisions(pnum) { var _local6 = 0; var _local5 = 10000; var _local2 = 0; var _local4 = 0; var _local9 = 0; var _local11 = 0; var _local10 = 0; var _local8 = 0; var _local7 = 0; while (_local2 < possiblelines) { if (linecollide(psx[pnum], psy[pnum], px[pnum], py[pnum], _root.game0["collisionline" + possiblelinenum[_local2]].x1, _root.game0["collisionline" + possiblelinenum[_local2]].y1, _root.game0["collisionline" + possiblelinenum[_local2]].x2, _root.game0["collisionline" + possiblelinenum[_local2]].y2, _root.game0["collisionline" + possiblelinenum[_local2]].slope) == true) { _local4 = approxdistance(cx, cy, psx[pnum], psy[pnum]); if (_local4 < _local5) { _local5 = _local4; bestcx = cx; bestcy = cy; bestsurfacedirection = surfacedirection; } } _local2 = _local2 + 1; } if (_local5 < 10000) { _local9 = directiontopoint(psx[pnum], psy[pnum], bestcx, bestcy); _local11 = approxdistance(px[pnum], py[pnum], plx[pnum], ply[pnum]) * pf[pnum]; _local10 = approxdistance(px[pnum], py[pnum], bestcx, bestcy) * pf[pnum]; _local8 = correctdirection((bestsurfacedirection + finddirection(bestsurfacedirection + 90, _local9)) + 270); _local7 = Math.abs(finddirection(bestsurfacedirection + 90, _local9)); if (_local7 < 90) { _local7 = correctdirection(bestsurfacedirection - 90); } else { _local7 = correctdirection(bestsurfacedirection + 90); } psx[pnum] = bestcx + vectorx(_local7, safetydisplacement); psy[pnum] = bestcy + vectory(_local7, safetydisplacement); px[pnum] = psx[pnum] + vectorx(_local8, _local10); py[pnum] = psy[pnum] + vectory(_local8, _local10); plx[pnum] = px[pnum] - vectorx(_local8, _local11); ply[pnum] = py[pnum] - vectory(_local8, _local11); _local6 = 1; } else { psy[pnum] = py[pnum]; psx[pnum] = px[pnum]; } _local2 = 0; while (_local2 < objectlines) { if (_root.game0["objectline" + _local2].active == true) { if (pointcollide(px[pnum], py[pnum], _root.game0["objectline" + _local2]._x - (_root.game0["objectline" + _local2].xwidth * 0.5), _root.game0["objectline" + _local2]._y, _root.game0["objectline" + _local2]._x + (_root.game0["objectline" + _local2].xwidth * 0.5), _root.game0["objectline" + _local2]._y + _root.game0["objectline" + _local2].yheight) == true) { _local6 = 2; px[pnum] = px[pnum] + (_root.game0["objectline" + _local2].dx * characterpushratio); py[pnum] = py[pnum] + (_root.game0["objectline" + _local2].dy * characterpushratio); } } _local2 = _local2 + 1; } return(_local6); } function pphysics(pnum, checkliquid) { var _local3 = 1; var _local4 = 0; var _local5 = 0; var _local7 = px[pnum]; var _local6 = py[pnum]; _local4 = px[pnum] - plx[pnum]; _local5 = (py[pnum] - ply[pnum]) + pg[pnum]; if (checkliquid == true) { d = 0; while (d < waterpools) { if (_root.game0["waterpool" + d].active == true) { if ((((px[pnum] > _root.game0["waterpool" + d]._x) && (px[pnum] < (_root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth))) && (py[pnum] > _root.game0["waterpool" + d]._y)) && (py[pnum] < (_root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth))) { _local3 = _root.game0["waterpool" + d].ffactor; d = waterpools + 1; } } d = d + 1; } } _local4 = _local4 * (paf[pnum] * _local3); _local5 = _local5 * (paf[pnum] * _local3); if (Math.abs(_local4) > maxdelta) { if (_local4 > 0) { _local4 = maxdelta; } if (_local4 < 0) { _local4 = -maxdelta; } } if (Math.abs(_local5) > maxdelta) { if (_local5 > 0) { _local5 = maxdelta; } if (_local5 < 0) { _local5 = -maxdelta; } } px[pnum] = px[pnum] + _local4; py[pnum] = py[pnum] + _local5; plx[pnum] = _local7; ply[pnum] = _local6; } function verlet(pnum1, pnum2, distance) { var _local2 = px[pnum2] - px[pnum1]; var _local1 = py[pnum2] - py[pnum1]; var _local6 = tdistance[Math.round(Math.abs(_local2))][Math.round(Math.abs(_local1))]; var _local5 = 1; if (_local6 != 0) { _local5 = (0.5 * (_local6 - distance)) / _local6; } _local2 = _local2 * _local5; _local1 = _local1 * _local5; px[pnum1] = px[pnum1] + _local2; py[pnum1] = py[pnum1] + _local1; px[pnum2] = px[pnum2] - _local2; py[pnum2] = py[pnum2] - _local1; } function creategp(x, y, radius, gpdirection, speed, af, g, gptime, gpcolor, obeyquality) { if (obeyquality == true) { pchance = 0; if (_root.particlequality == 1) { pchance = Math.floor(Math.random() * 2); } } else { pchance = 0; } if (pchance == 0) { var _local3 = -1; var _local4 = 0; while (_local4 <= gps) { if (_root.game0["gp" + _local4].active == false) { _local3 = _local4; _local4 = gps + 1; } _local4 = _local4 + 1; } if (_local3 > -1) { _root.game0["gp" + _local3]._x = x; _root.game0["gp" + _local3]._y = y; _root.game0["gp" + _local3].radius = radius; _root.game0["gp" + _local3]._visible = true; _root.game0["gp" + _local3].active = true; _root.game0["gp" + _local3].gpcolor = gpcolor; _root.game0["gp" + _local3].gptime = gptime; _root.game0["gp" + _local3].gpstarttime = gptime; _root.game0["gp" + _local3].af = af; _root.game0["gp" + _local3].g = g; _root.game0["gp" + _local3].vs = vectory(gpdirection, speed); _root.game0["gp" + _local3].hs = vectorx(gpdirection, speed); _root.game0["gp" + _local3].clear(); _root.game0["gp" + _local3].lineStyle(1, 0, 0); _root.game0["gp" + _local3].beginFill(_root.game0["gp" + _local3].gpcolor, (_root.game0["gp" + _local3].gptime / _root.game0["gp" + _local3].gpstarttime) * 100); _root.game0["gp" + _local3].moveTo(0, (-_root.game0["gp" + _local3].radius) * 0.7); _root.game0["gp" + _local3].curveTo(_root.game0["gp" + _local3].radius * 0.7, (-_root.game0["gp" + _local3].radius) * 0.7, _root.game0["gp" + _local3].radius * 0.7, 0); _root.game0["gp" + _local3].curveTo(_root.game0["gp" + _local3].radius * 0.7, _root.game0["gp" + _local3].radius * 0.7, 0, _root.game0["gp" + _local3].radius * 0.7); _root.game0["gp" + _local3].curveTo((-_root.game0["gp" + _local3].radius) * 0.7, _root.game0["gp" + _local3].radius * 0.7, (-_root.game0["gp" + _local3].radius) * 0.7, 0); _root.game0["gp" + _local3].curveTo((-_root.game0["gp" + _local3].radius) * 0.7, (-_root.game0["gp" + _local3].radius) * 0.7, 0, (-_root.game0["gp" + _local3].radius) * 0.7); _root.game0["gp" + _local3].endFill(); _root.game0["gp" + _local3]._rotation = Math.random() * 360; } else { this.createEmptyMovieClip("gp" + gps, gpdepth + gps); _root.game0["gp" + gps]._x = x; _root.game0["gp" + gps]._y = y; _root.game0["gp" + gps].radius = radius; _root.game0["gp" + gps]._visible = true; _root.game0["gp" + gps].active = true; _root.game0["gp" + gps].gpcolor = gpcolor; _root.game0["gp" + gps].gptime = gptime; _root.game0["gp" + gps].gpstarttime = gptime; _root.game0["gp" + gps].af = af; _root.game0["gp" + gps].g = g; _root.game0["gp" + gps].vs = vectory(gpdirection, speed); _root.game0["gp" + gps].hs = vectorx(gpdirection, speed); _root.game0["gp" + gps].clear(); _root.game0["gp" + gps].lineStyle(1, 0, 0); _root.game0["gp" + gps].beginFill(_root.game0["gp" + gps].gpcolor, (_root.game0["gp" + gps].gptime / _root.game0["gp" + gps].gpstarttime) * 100); _root.game0["gp" + gps].moveTo(0, (-_root.game0["gp" + gps].radius) * 0.7); _root.game0["gp" + gps].curveTo(_root.game0["gp" + gps].radius * 0.7, (-_root.game0["gp" + gps].radius) * 0.7, _root.game0["gp" + gps].radius * 0.7, 0); _root.game0["gp" + gps].curveTo(_root.game0["gp" + gps].radius * 0.7, _root.game0["gp" + gps].radius * 0.7, 0, _root.game0["gp" + gps].radius * 0.7); _root.game0["gp" + gps].curveTo((-_root.game0["gp" + gps].radius) * 0.7, _root.game0["gp" + gps].radius * 0.7, (-_root.game0["gp" + gps].radius) * 0.7, 0); _root.game0["gp" + gps].curveTo((-_root.game0["gp" + gps].radius) * 0.7, (-_root.game0["gp" + gps].radius) * 0.7, 0, (-_root.game0["gp" + gps].radius) * 0.7); _root.game0["gp" + gps].endFill(); _root.game0["gp" + gps]._rotation = Math.random() * 360; gps = gps + 1; } } } function drawline(x1, y1, x2, y2, linecolor, linealpha) { var _local4 = -1; var _local3 = 0; while (_local3 < drawnlines) { if (_root.game0["drawnline" + _local3].active == false) { _local4 = _local3; _local3 = drawnlines + 1; } _local3 = _local3 + 1; } if (_local4 > -1) { _root.game0["drawnline" + _local4].active = true; _root.game0["drawnline" + _local4]._visible = true; _root.game0["drawnline" + _local4]._x = x1; _root.game0["drawnline" + _local4]._y = y1; _root.game0["drawnline" + _local4].clear(); _root.game0["drawnline" + _local4].lineStyle(1, linecolor, linealpha); _root.game0["drawnline" + _local4].lineTo(x2 - x1, y2 - y1); } else { this.createEmptyMovieClip("drawnline" + drawnlines, drawnlinedepth + drawnlines); _root.game0["drawnline" + drawnlines].active = true; _root.game0["drawnline" + drawnlines]._visible = true; _root.game0["drawnline" + drawnlines]._x = x1; _root.game0["drawnline" + drawnlines]._y = y1; _root.game0["drawnline" + drawnlines].clear(); _root.game0["drawnline" + drawnlines].lineStyle(1, linecolor, linealpha); _root.game0["drawnline" + drawnlines].lineTo(x2 - x1, y2 - y1); drawnlines = drawnlines + 1; } } function createpoint(x, y, af, g, f, notatrest, copiedp, ignorecollisions) { this.createEmptyMovieClip("point" + points, pointdepth + points); _root.game0["point" + points].restcounter = 0; if (notatrest == true) { _root.game0["point" + points].atrest = false; } else { _root.game0["point" + points].atrest = true; } _root.game0["point" + points].ignorecollisions = ignorecollisions; _root.game0["point" + points]._x = -1000; _root.game0["point" + points]._y = -1000; _root.game0["point" + points]._visible = true; _root.game0["point" + points].active = true; _root.game0["point" + points].firstpnum = ps; _root.game0["point" + points].bouncetype = false; createp(x, y, x, y, af, g, f, notatrest); if (copiedp > -1) { tempdx = px[copiedp] - plx[copiedp]; tempdy = py[copiedp] - ply[copiedp]; plx[ps - 1] = plx[ps - 1] - tempdx; ply[ps - 1] = ply[ps - 1] - tempdy; } points = points + 1; } function createobjectline(x, y, yheight, af, g, f) { this.createEmptyMovieClip("objectline" + objectlines, objectlinedepth + objectlines); _root.game0["objectline" + objectlines].xwidth = yheight * 0.25; _root.game0["objectline" + objectlines]._x = -1000; _root.game0["objectline" + objectlines]._y = -1000; _root.game0["objectline" + objectlines].dx = 0; _root.game0["objectline" + objectlines].dy = 0; _root.game0["objectline" + objectlines].yheight = yheight; _root.game0["objectline" + objectlines]._visible = true; _root.game0["objectline" + objectlines].active = true; _root.game0["objectline" + objectlines].firstpnum = ps; _root.game0["objectline" + objectlines].wateraffectornum = wateraffectors; createp(x, y + (yheight * 0.5), x, y, af, g, f, true); createp(x, y + (yheight * 0.5), x, y + yheight, af, g, f, true); createwateraffector(x, y + (yheight * 0.5), yheight * 0.5); objectlines = objectlines + 1; } function createline(x1, y1, x2, y2, af, g, f, notatrest, copiedp, ignorecollisions) { this.createEmptyMovieClip("line" + lines, linedepth + lines); _root.game0["line" + lines].restcounter = 0; if (notatrest == true) { _root.game0["line" + lines].atrest = false; } else { _root.game0["line" + lines].atrest = true; } _root.game0["line" + lines].ignorecollisions = ignorecollisions; _root.game0["line" + lines]._x = -1000; _root.game0["line" + lines]._y = -1000; _root.game0["line" + lines]._visible = true; _root.game0["line" + lines].active = true; _root.game0["line" + lines].linelength = approxdistance(x1, y1, x2, y2); _root.game0["line" + lines].firstpnum = ps; createp((x1 + x2) * 0.5, (y1 + y2) * 0.5, x1, y1, af, g, f, notatrest); createp((x1 + x2) * 0.5, (y1 + y2) * 0.5, x2, y2, af, g, f, notatrest); if (copiedp > -1) { tempdx = px[copiedp] - plx[copiedp]; tempdy = py[copiedp] - ply[copiedp]; var _local3 = ps - 2; while (_local3 < ps) { plx[_local3] = plx[_local3] - tempdx; ply[_local3] = ply[_local3] - tempdy; _local3 = _local3 + 1; } } lines = lines + 1; } function createbox(x, y, sidelength, af, g, f, notatrest, copiedp, ignorecollisions) { this.createEmptyMovieClip("box" + boxes, boxdepth + boxes); _root.game0["box" + boxes].restcounter = 0; if (notatrest == true) { _root.game0["box" + boxes].atrest = false; } else { _root.game0["box" + boxes].atrest = true; } _root.game0["box" + boxes].ignorecollisions = ignorecollisions; _root.game0["box" + boxes]._x = -1000; _root.game0["box" + boxes]._y = -1000; _root.game0["box" + boxes]._visible = true; _root.game0["box" + boxes].active = true; _root.game0["box" + boxes].sidelength = sidelength; _root.game0["box" + boxes].firstpnum = ps; _root.game0["box" + boxes].wateraffectornum = wateraffectors; createp(x, y, x - (sidelength * 0.5), y - (sidelength * 0.5), af, g, f, notatrest); createp(x, y, x + (sidelength * 0.5), y - (sidelength * 0.5), af, g, f, notatrest); createp(x, y, x + (sidelength * 0.5), y + (sidelength * 0.5), af, g, f, notatrest); createp(x, y, x - (sidelength * 0.5), y + (sidelength * 0.5), af, g, f, notatrest); createwateraffector(x, y, sidelength); if (copiedp > -1) { tempdx = px[copiedp] - plx[copiedp]; tempdy = py[copiedp] - ply[copiedp]; var _local3 = ps - 4; while (_local3 < ps) { plx[_local3] = plx[_local3] - tempdx; ply[_local3] = ply[_local3] - tempdy; _local3 = _local3 + 1; } } boxes = boxes + 1; } function createragdoll(x, y, af, g, f, notatrest, copiedp, ignorecollisions) { this.createEmptyMovieClip("ragdoll" + ragdolls, ragdolldepth + ragdolls); if (notatrest == true) { _root.game0["ragdoll" + ragdolls].atrest = false; } else { _root.game0["ragdoll" + ragdolls].atrest = true; } _root.game0["ragdoll" + ragdolls].ignorecollisions = ignorecollisions; _root.game0["ragdoll" + ragdolls].restcounter = 0; _root.game0["ragdoll" + ragdolls].deformed = false; _root.game0["ragdoll" + ragdolls]._x = -1000; _root.game0["ragdoll" + ragdolls]._y = -1000; _root.game0["ragdoll" + ragdolls]._visible = true; _root.game0["ragdoll" + ragdolls].active = true; _root.game0["ragdoll" + ragdolls].wateraffectornum = wateraffectors; _root.game0["ragdoll" + ragdolls].firstpnum = ps; createp(x, y + ragdollheight, x, y, af, g, f, notatrest); createp(x, y + ragdollheight, x, y + necklength, af, g, f, notatrest); createp(x, y + ragdollheight, x + vectorx(324, chestlength), (y + necklength) + vectory(324, chestlength), af, g, f, notatrest); createp(x, y + ragdollheight, x + vectorx(216, chestlength), (y + necklength) + vectory(216, chestlength), af, g, f, notatrest); createp(x, y + ragdollheight, x + vectorx(288, chestconstraint), (y + necklength) + vectory(288, chestconstraint), af, g, f, notatrest); createp(x, y + ragdollheight, x + vectorx(252, chestconstraint), (y + necklength) + vectory(252, chestconstraint), af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 2], py[ps - 2] + upperleglength, af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 2], py[ps - 2] + upperleglength, af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 2], py[ps - 2] + lowerleglength, af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 2], py[ps - 2] + lowerleglength, af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 8], py[ps - 8] + upperarmlength, af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 8], py[ps - 8] + upperarmlength, af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 2], py[ps - 2] + lowerarmlength, af, g, f, notatrest); createp(x, y + ragdollheight, px[ps - 2], py[ps - 2] + lowerarmlength, af, g, f, notatrest); createwateraffector(x, y + ragdollheight, ragdollheight); if (copiedp > -1) { tempdx = px[copiedp] - plx[copiedp]; tempdy = py[copiedp] - ply[copiedp]; var _local3 = ps - 14; while (_local3 < ps) { plx[_local3] = plx[_local3] - tempdx; ply[_local3] = ply[_local3] - tempdy; _local3 = _local3 + 1; } } ragdolls = ragdolls + 1; } function createwateraffector(x, y, radius) { wateraffectoractive[wateraffectors] = true; wateraffectorx[wateraffectors] = x; wateraffectory[wateraffectors] = y; wateraffectorly[wateraffectors] = y; wateraffectorradius[wateraffectors] = radius; wateraffectors = wateraffectors + 1; } function createp(sx, sy, x, y, af, g, f, active) { px[ps] = x; py[ps] = y; pg[ps] = g; paf[ps] = af; pf[ps] = f; plx[ps] = x; psx[ps] = sx; ply[ps] = y; psy[ps] = sy; pactive[ps] = active; ps = ps + 1; } function createcollisionline(x1, y1, x2, y2) { this.createEmptyMovieClip("collisionline" + collisionlines, collisionlinedepth + collisionlines); _root.game0["collisionline" + collisionlines]._x = x1; _root.game0["collisionline" + collisionlines]._y = y1; _root.game0["collisionline" + collisionlines]._visible = true; _root.game0["collisionline" + collisionlines].active = true; _root.game0["collisionline" + collisionlines].x1 = x1; _root.game0["collisionline" + collisionlines].y1 = y1; _root.game0["collisionline" + collisionlines].x2 = x2; _root.game0["collisionline" + collisionlines].y2 = y2; _root.game0["collisionline" + collisionlines].slope = directiontopoint(x1, y1, x2, y2); collisionlines = collisionlines + 1; } function linecollide(line1x1, line1y1, line1x2, line1y2, line2x1, line2y1, line2x2, line2y2, line2direction) { var _local3 = true; var _local2 = 0; var _local1 = 0; var _local6 = -1; var _local7 = -1; var _local5 = 0; var _local4 = 0; var _local13 = 0; var _local12 = 0; if ((line1x1 - line1x2) == 0) { _local6 = 1; } if ((line2x1 - line2x2) == 0) { _local7 = 1; } if ((line1y1 - line1y2) == 0) { _local6 = 0; } if ((line2y1 - line2y2) == 0) { _local7 = 0; } if ((_local6 + _local7) == -2) { _local5 = (line1y1 - line1y2) / (line1x1 - line1x2); _local4 = (line2y1 - line2y2) / (line2x1 - line2x2); if ((_local4 - _local5) != 0) { _local13 = ((-_local5) * line1x1) + line1y1; _local12 = ((-_local4) * line2x1) + line2y1; _local1 = ((_local13 * _local4) - (_local12 * _local5)) / (_local4 - _local5); _local2 = (_local12 - _local13) / (_local5 - _local4); } else { _local3 = false; } } else if (_local6 != _local7) { if ((_local6 != -1) && (_local7 != -1)) { if ((_local6 == 0) && (_local7 == 1)) { _local2 = line2x1; _local1 = line1y1; } if ((_local6 == 1) && (_local7 == 0)) { _local2 = line1x1; _local1 = line2y1; } } else if (_local6 == -1) { _local5 = (line1y1 - line1y2) / (line1x1 - line1x2); _local13 = ((-_local5) * line1x1) + line1y1; if (_local7 == 0) { _local1 = line2y1; _local2 = (_local1 - _local13) / _local5; } else { _local2 = line2x1; _local1 = (_local5 * _local2) + _local13; } } else { _local4 = (line2y1 - line2y2) / (line2x1 - line2x2); _local12 = ((-_local4) * line2x1) + line2y1; if (_local6 == 0) { _local1 = line1y1; _local2 = (_local1 - _local12) / _local4; } else { _local2 = line1x1; _local1 = (_local4 * _local2) + _local12; } } } else { _local3 = false; } if (line1x1 <= line1x2) { if ((_local2 < line1x1) || (_local2 > line1x2)) { _local3 = false; } } else if ((_local2 > line1x1) || (_local2 < line1x2)) { _local3 = false; } if (line1y1 < line1y2) { if ((_local1 < line1y1) || (_local1 > line1y2)) { _local3 = false; } } else if ((_local1 > line1y1) || (_local1 < line1y2)) { _local3 = false; } if (line2x1 <= line2x2) { if ((_local2 < line2x1) || (_local2 > line2x2)) { _local3 = false; } } else if ((_local2 > line2x1) || (_local2 < line2x2)) { _local3 = false; } if (line2y1 <= line2y2) { if ((_local1 < line2y1) || (_local1 > line2y2)) { _local3 = false; } } else if ((_local1 > line2y1) || (_local1 < line2y2)) { _local3 = false; } if (_local3 == true) { cx = _local2; cy = _local1; surfacedirection = line2direction; return(true); } return(false); } function correctdirection(tempdirection) { var _local1 = tempdirection; while ((_local1 < 0) || (_local1 >= 360)) { if (_local1 < 0) { _local1 = _local1 + 360; } if (_local1 >= 360) { _local1 = _local1 - 360; } } return(_local1); } function finddirection(d1, d2) { var _local1 = d1 - d2; if (_local1 < -180) { _local1 = _local1 + 360; } if (_local1 > 180) { _local1 = _local1 - 360; } return(_local1); } function vectorx2(dir, magnitude) { return(Math.cos(dir * degtorad) * magnitude); } function vectory2(dir, magnitude) { return((-Math.sin(dir * degtorad)) * magnitude); } function vectorx(dir, magnitude) { var _local1 = Math.round(dir); return(tcos[_local1] * magnitude); } function vectory(dir, magnitude) { var _local1 = Math.round(dir); return((-tsin[_local1]) * magnitude); } function blockdistance(x1, y1, x2, y2) { var _local2 = Math.abs(x1 - x2); var _local1 = Math.abs(y1 - y2); return(_local2 + _local1); } function approxdistance(x1, y1, x2, y2) { var _local1 = Math.abs(x1 - x2); var _local2 = Math.abs(y1 - y2); if (_local1 > _local2) { return((_local2 * 1.4) + (_local1 - _local2)); } if (_local2 > _local1) { return((_local1 * 1.4) + (_local2 - _local1)); } if (_local1 == _local2) { return(_local1 * 1.4); } } function approxdistance2(x1, y1, x2, y2) { var _local2 = Math.round(Math.abs(x1 - x2)); var _local1 = Math.round(Math.abs(y1 - y2)); return(tdistance[_local2][_local1]); } function directiontopoint(x1, y1, x2, y2) { if ((x1 != x2) && (y1 != y2)) { var _local7 = Math.abs(y2 - y1); var _local8 = Math.abs(x2 - x1); var _local5 = 0; var _local1 = 0; if (_local8 > _local7) { _local5 = _local7 / _local8; _local5 = Math.floor(_local5 * 100); _local1 = tdtp[_local5]; } else { _local5 = _local8 / _local7; _local5 = Math.floor(_local5 * 100); _local1 = 90 - tdtp[_local5]; } if ((y2 < y1) && (x2 < x1)) { _local1 = 180 - _local1; } if ((y2 > y1) && (x2 < x1)) { _local1 = 180 + _local1; } if ((y2 > y1) && (x2 > x1)) { _local1 = 360 - _local1; } } else { if ((x2 == x1) && (y2 == y1)) { var _local1 = 0; } if ((x2 == x1) && (y2 > y1)) { var _local1 = 270; } if ((x2 == x1) && (y2 < y1)) { var _local1 = 90; } if ((y2 == y1) && (x2 > x1)) { var _local1 = 0; } if ((y2 == y1) && (x2 < x1)) { var _local1 = 180; } } return(_local1); } function createwaterpool(x, y, width, depth, points, g, ffactor, windamount, windrandomnessfactor, color, alpha) { this.createEmptyMovieClip("waterpool" + waterpools, waterpooldepth + waterpools); _root.game0["waterpool" + waterpools].active = true; _root.game0["waterpool" + waterpools].alpha = alpha; _root.game0["waterpool" + waterpools].watercolor = color; _root.game0["waterpool" + waterpools].windamount = windamount; _root.game0["waterpool" + waterpools].xwidth = width; _root.game0["waterpool" + waterpools].depth = depth; _root.game0["waterpool" + waterpools].windrandomness = 1 / windrandomnessfactor; _root.game0["waterpool" + waterpools].g = g; _root.game0["waterpool" + waterpools].points = points; _root.game0["waterpool" + waterpools].pointwidth = width / points; _root.game0["waterpool" + waterpools]._x = x; _root.game0["waterpool" + waterpools]._y = y; _root.game0["waterpool" + waterpools].ffactor = ffactor; _root.game0["waterpool" + waterpools].waterpx = []; _root.game0["waterpool" + waterpools].waterpy = []; _root.game0["waterpool" + waterpools].waterpvs = []; j = 0; while (j < points) { _root.game0["waterpool" + waterpools].waterpx[j] = x + (_root.game0["waterpool" + waterpools].pointwidth * j); _root.game0["waterpool" + waterpools].waterpy[j] = y; _root.game0["waterpool" + waterpools].waterpvs[j] = 0; j = j + 1; } waterpools = waterpools + 1; } function findclosestp(x, y) { tempdistance = 0; lowestpnum = -1; lowestdistance = 10000; v = 0; while (v < ps) { if (pactive[v] == true) { tempdistance = approxdistance(x, y, px[v], py[v]); if (tempdistance < lowestdistance) { lowestdistance = tempdistance; lowestpnum = v; } } v = v + 1; } return(lowestpnum); } function createrope(x1, y1, attachedtoparticle1, locked1, x2, y2, attachedtoparticle2, locked2, segments, segmentlength, elastic, af, g, f, notatrest, copiedp, ignorecollisions) { this.createEmptyMovieClip("rope" + ropes, ropedepth + ropes); _root.game0["rope" + ropes].restcounter = 0; if (notatrest == true) { _root.game0["rope" + ropes].atrest = false; } else { _root.game0["rope" + ropes].atrest = true; } _root.game0["rope" + ropes]._x = (x1 + x2) * 0.5; _root.game0["rope" + ropes]._y = (y1 + y2) * 0.5; _root.game0["rope" + ropes]._visible = true; _root.game0["rope" + ropes].active = true; _root.game0["rope" + ropes].ignorecollisions = ignorecollisions; _root.game0["rope" + ropes].segmentlength = segmentlength; _root.game0["rope" + ropes].segments = segments; _root.game0["rope" + ropes].elastic = elastic; _root.game0["rope" + ropes].firstpnum = ps; _root.game0["rope" + ropes].maxlength = segments * segmentlength; _root.game0["rope" + ropes].attachedtoparticle1 = attachedtoparticle1; _root.game0["rope" + ropes].attachedtoparticle2 = attachedtoparticle2; _root.game0["rope" + ropes].locked1 = locked1; _root.game0["rope" + ropes].lockx1 = x1; _root.game0["rope" + ropes].locky1 = y1; _root.game0["rope" + ropes].locked2 = locked2; _root.game0["rope" + ropes].lockx2 = x2; _root.game0["rope" + ropes].locky2 = y2; tempdist = approxdistance(x1, y1, x2, y2) / segments; tempdir = directiontopoint(x1, y1, x2, y2); tempx = x1; tempy = y1; if (attachedtoparticle1 == true) { temppnum = findclosestp(x1, y1); _root.game0["rope" + ropes].attachedparticle1 = temppnum; if (temppnum > -1) { tempx = px[temppnum]; tempy = py[temppnum]; } } createp((x1 + x2) * 0.5, (y1 + y2) * 0.5, tempx, tempy, af, g, f, notatrest); c = 0; while (c < (segments - 2)) { createp((x1 + x2) * 0.5, (y1 + y2) * 0.5, px[ps - 1] + vectorx2(tempdir, tempdist), py[ps - 1] + vectory2(tempdir, tempdist), af, g, f, notatrest); c = c + 1; } tempx = x2; tempy = y2; if (attachedtoparticle2 == true) { temppnum = findclosestp(x2, y2); _root.game0["rope" + ropes].attachedparticle2 = temppnum; if (temppnum > -1) { tempx = px[temppnum]; tempy = py[temppnum]; } } createp((x1 + x2) * 0.5, (y1 + y2) * 0.5, tempx, tempy, af, g, f, true); if (copiedp > -1) { tempdx = px[copiedp] - plx[copiedp]; tempdy = py[copiedp] - ply[copiedp]; var c = (ps - segments); while (c < ps) { plx[c] = plx[c] - tempdx; ply[c] = ply[c] - tempdy; c = c + 1; } } ropes = ropes + 1; } function createbodyA() { _root.game0.bodyAtemp.duplicateMovieClip("bodyA" + bodyAs, bodyAdepth + bodyAs); _root.game0["bodyA" + bodyAs].active = true; _root.game0["bodyA" + bodyAs]._visible = true; _root.game0["bodyA" + bodyAs]._x = -100; _root.game0["bodyA" + bodyAs]._y = -100; _root.game0["bodyA" + bodyAs].frame = 0; bodyAs = bodyAs + 1; } function createbodyB() { _root.game0.bodyBtemp.duplicateMovieClip("bodyB" + bodyBs, bodyBdepth + bodyBs); _root.game0["bodyB" + bodyBs].active = true; _root.game0["bodyB" + bodyBs]._visible = true; _root.game0["bodyB" + bodyBs]._x = -100; _root.game0["bodyB" + bodyBs]._y = -100; _root.game0["bodyB" + bodyBs].frame = 0; bodyBs = bodyBs + 1; } function createbodyC() { _root.game0.bodyCtemp.duplicateMovieClip("bodyC" + bodyCs, bodyCdepth + bodyCs); _root.game0["bodyC" + bodyCs].active = true; _root.game0["bodyC" + bodyCs]._visible = true; _root.game0["bodyC" + bodyCs]._x = -100; _root.game0["bodyC" + bodyCs]._y = -100; _root.game0["bodyC" + bodyCs].frame = 0; bodyCs = bodyCs + 1; } function createbodyD() { _root.game0.bodyDtemp.duplicateMovieClip("bodyD" + bodyDs, bodyDdepth + bodyDs); _root.game0["bodyD" + bodyDs].active = true; _root.game0["bodyD" + bodyDs]._visible = true; _root.game0["bodyD" + bodyDs]._x = -100; _root.game0["bodyD" + bodyDs]._y = -100; _root.game0["bodyD" + bodyDs].frame = 0; bodyDs = bodyDs + 1; } function createtorso(frame) { _root.game0.torsotemp.duplicateMovieClip("torso" + torsos, torsodepth + torsos); _root.game0["torso" + torsos].active = true; _root.game0["torso" + torsos]._visible = true; _root.game0["torso" + torsos]._x = -100; _root.game0["torso" + torsos]._y = -100; _root.game0["torso" + torsos].frame = frame; torsos = torsos + 1; } function createupperleg(frame) { _root.game0.upperlegtemp.duplicateMovieClip("upperleg" + upperlegs, upperlegdepth + upperlegs); _root.game0["upperleg" + upperlegs].active = true; _root.game0["upperleg" + upperlegs]._visible = true; _root.game0["upperleg" + upperlegs]._x = -100; _root.game0["upperleg" + upperlegs]._y = -100; _root.game0["upperleg" + upperlegs].frame = frame; upperlegs = upperlegs + 1; } function createlowerleg(frame) { _root.game0.lowerlegtemp.duplicateMovieClip("lowerleg" + lowerlegs, lowerlegdepth + lowerlegs); _root.game0["lowerleg" + lowerlegs].active = true; _root.game0["lowerleg" + lowerlegs]._visible = true; _root.game0["lowerleg" + lowerlegs]._x = -100; _root.game0["lowerleg" + lowerlegs]._y = -100; _root.game0["lowerleg" + lowerlegs].frame = frame; lowerlegs = lowerlegs + 1; } function createupperarm(frame) { _root.game0.upperarmtemp.duplicateMovieClip("upperarm" + upperarms, upperarmdepth + upperarms); _root.game0["upperarm" + upperarms].active = true; _root.game0["upperarm" + upperarms]._visible = true; _root.game0["upperarm" + upperarms]._x = -100; _root.game0["upperarm" + upperarms]._y = -100; _root.game0["upperarm" + upperarms].frame = frame; upperarms = upperarms + 1; } function createlowerarm(frame) { _root.game0.lowerarmtemp.duplicateMovieClip("lowerarm" + lowerarms, lowerarmdepth + lowerarms); _root.game0["lowerarm" + lowerarms].active = true; _root.game0["lowerarm" + lowerarms]._visible = true; _root.game0["lowerarm" + lowerarms]._x = -100; _root.game0["lowerarm" + lowerarms]._y = -100; _root.game0["lowerarm" + lowerarms].frame = frame; lowerarms = lowerarms + 1; } function createhead(frame) { _root.game0.headtemp.duplicateMovieClip("head" + heads, headdepth + heads); _root.game0["head" + heads].active = true; _root.game0["head" + heads]._visible = true; _root.game0["head" + heads]._x = -100; _root.game0["head" + heads]._y = -100; _root.game0["head" + heads].frame = frame; heads = heads + 1; } function createlegA() { _root.game0.legAtemp.duplicateMovieClip("legA" + legAs, legAdepth + legAs); _root.game0["legA" + legAs].active = true; _root.game0["legA" + legAs]._visible = true; _root.game0["legA" + legAs]._x = -100; _root.game0["legA" + legAs]._y = -100; _root.game0["legA" + legAs].framerate = 1; _root.game0["legA" + legAs].frame = 0; legAs = legAs + 1; } function createlegB() { _root.game0.legBtemp.duplicateMovieClip("legB" + legBs, legBdepth + legBs); _root.game0["legB" + legBs].active = true; _root.game0["legB" + legBs]._visible = true; _root.game0["legB" + legBs]._x = -100; _root.game0["legB" + legBs]._y = -100; _root.game0["legB" + legBs].framerate = 1; _root.game0["legB" + legBs].frame = 0; legBs = legBs + 1; } function createlegC() { _root.game0.legCtemp.duplicateMovieClip("legC" + legCs, legCdepth + legCs); _root.game0["legC" + legCs].active = true; _root.game0["legC" + legCs]._visible = true; _root.game0["legC" + legCs]._x = -100; _root.game0["legC" + legCs]._y = -100; _root.game0["legC" + legCs].framerate = 1; _root.game0["legC" + legCs].frame = 0; legCs = legCs + 1; } function createlegD() { _root.game0.legDtemp.duplicateMovieClip("legD" + legDs, legDdepth + legDs); _root.game0["legD" + legDs].active = true; _root.game0["legD" + legDs]._visible = true; _root.game0["legD" + legDs]._x = -100; _root.game0["legD" + legDs]._y = -100; _root.game0["legD" + legDs].framerate = 1; _root.game0["legD" + legDs].frame = 0; legDs = legDs + 1; } function createenemyA(x, y, facedirection, patrolling, onfire) { this.createEmptyMovieClip("enemyA" + enemyAs, enemyAdepth + enemyAs); _root.game0["enemyA" + enemyAs].active = true; _root.game0["enemyA" + enemyAs].shootdelay = 0; _root.game0["enemyA" + enemyAs].onfire = onfire; _root.game0["enemyA" + enemyAs].damage = 0; _root.game0["enemyA" + enemyAs].framedelay = 0; _root.game0["enemyA" + enemyAs].slow = 0; _root.game0["enemyA" + enemyAs]._x = -1000; _root.game0["enemyA" + enemyAs]._y = -1000; _root.game0["enemyA" + enemyAs].lastnode = -1; _root.game0["enemyA" + enemyAs].hastarget = false; _root.game0["enemyA" + enemyAs].targetx = 0; _root.game0["enemyA" + enemyAs].targety = 0; _root.game0["enemyA" + enemyAs].movedelay = 0; _root.game0["enemyA" + enemyAs].movedirection = facedirection; _root.game0["enemyA" + enemyAs].patrolling = patrolling; _root.game0["enemyA" + enemyAs].facedirection = facedirection; _root.game0["enemyA" + enemyAs].objectlinenum = objectlines; createobjectline(x, y, ragdollheight * 2, enemyAaf, enemyAg, enemyAf); _root.game0["enemyA" + enemyAs].firstlegnum = legBs; createlegB(); createlegB(); _root.game0["legB" + _root.game0["enemyA" + enemyAs].firstlegnum].framerate = 0; _root.game0["legB" + (_root.game0["enemyA" + enemyAs].firstlegnum + 1)].framerate = 0; if (facedirection == 0) { _root.game0["legB" + _root.game0["enemyA" + enemyAs].firstlegnum].frame = 4; _root.game0["legB" + (_root.game0["enemyA" + enemyAs].firstlegnum + 1)].frame = 14; } else { _root.game0["legB" + _root.game0["enemyA" + enemyAs].firstlegnum].frame = 14; _root.game0["legB" + (_root.game0["enemyA" + enemyAs].firstlegnum + 1)].frame = 4; } _root.game0["enemyA" + enemyAs].bodynum = bodyBs; createbodyB(); enemyAs = enemyAs + 1; } function createenemyB(x, y, facedirection, patrolling, kamikaze) { this.createEmptyMovieClip("enemyB" + enemyBs, enemyBdepth + enemyBs); _root.game0["enemyB" + enemyBs].active = true; _root.game0["enemyB" + enemyBs].shootdelay = 0; _root.game0["enemyB" + enemyBs].damage = 0; _root.game0["enemyB" + enemyBs].framedelay = 0; _root.game0["enemyB" + enemyBs].slow = 0; _root.game0["enemyB" + enemyBs].kamikaze = kamikaze; _root.game0["enemyB" + enemyBs]._x = -1000; _root.game0["enemyB" + enemyBs]._y = -1000; _root.game0["enemyB" + enemyBs].lastnode = -1; _root.game0["enemyB" + enemyBs].hastarget = false; _root.game0["enemyB" + enemyBs].targetx = 0; _root.game0["enemyB" + enemyBs].targety = 0; _root.game0["enemyB" + enemyBs].movedelay = 0; _root.game0["enemyB" + enemyBs].movedirection = facedirection; _root.game0["enemyB" + enemyBs].patrolling = patrolling; _root.game0["enemyB" + enemyBs].facedirection = 0; _root.game0["enemyB" + enemyBs].objectlinenum = objectlines; createobjectline(x, y, ragdollheight * 2, enemyBaf, enemyBg, enemyBf); _root.game0["enemyB" + enemyBs].firstlegnum = legCs; createlegC(); createlegC(); _root.game0["legC" + _root.game0["enemyB" + enemyBs].firstlegnum].framerate = 0; _root.game0["legC" + (_root.game0["enemyB" + enemyBs].firstlegnum + 1)].framerate = 0; if (facedirection == 0) { _root.game0["legC" + _root.game0["enemyB" + enemyBs].firstlegnum].frame = 4; _root.game0["legC" + (_root.game0["enemyB" + enemyBs].firstlegnum + 1)].frame = 14; } else { _root.game0["legC" + _root.game0["enemyB" + enemyBs].firstlegnum].frame = 14; _root.game0["legC" + (_root.game0["enemyB" + enemyBs].firstlegnum + 1)].frame = 4; } _root.game0["enemyB" + enemyBs].bodynum = bodyCs; createbodyC(); enemyBs = enemyBs + 1; } function createenemyC(x, y, facedirection, patrolling) { this.createEmptyMovieClip("enemyC" + enemyCs, enemyCdepth + enemyCs); _root.game0["enemyC" + enemyCs].active = true; _root.game0["enemyC" + enemyCs].shootdelay = 0; _root.game0["enemyC" + enemyCs].damage = 0; _root.game0["enemyC" + enemyCs].framedelay = 0; _root.game0["enemyC" + enemyCs].slow = 0; _root.game0["enemyC" + enemyCs]._x = -1000; _root.game0["enemyC" + enemyCs]._y = -1000; _root.game0["enemyC" + enemyCs].lastnode = -1; _root.game0["enemyC" + enemyCs].hastarget = false; _root.game0["enemyC" + enemyCs].targetx = 0; _root.game0["enemyC" + enemyCs].targety = 0; _root.game0["enemyC" + enemyCs].movedelay = 0; _root.game0["enemyC" + enemyCs].movedirection = facedirection; _root.game0["enemyC" + enemyCs].patrolling = patrolling; _root.game0["enemyC" + enemyCs].facedirection = 0; _root.game0["enemyC" + enemyCs].objectlinenum = objectlines; createobjectline(x, y, ragdollheight * 2, enemyCaf, enemyCg, enemyCf); _root.game0["enemyC" + enemyCs].firstlegnum = legDs; createlegD(); createlegD(); _root.game0["legD" + _root.game0["enemyC" + enemyCs].firstlegnum].framerate = 0; _root.game0["legD" + (_root.game0["enemyC" + enemyCs].firstlegnum + 1)].framerate = 0; if (facedirection == 0) { _root.game0["legD" + _root.game0["enemyC" + enemyCs].firstlegnum].frame = 4; _root.game0["legD" + (_root.game0["enemyC" + enemyCs].firstlegnum + 1)].frame = 14; } else { _root.game0["legD" + _root.game0["enemyC" + enemyCs].firstlegnum].frame = 14; _root.game0["legD" + (_root.game0["enemyC" + enemyCs].firstlegnum + 1)].frame = 4; } _root.game0["enemyC" + enemyCs].bodynum = bodyDs; createbodyD(); enemyCs = enemyCs + 1; } function createplayer(x, y, facedirection) { cutscene = false; this.createEmptyMovieClip("player" + players, playerdepth + players); _root.game0["player" + players].active = true; _root.game0["player" + players].berserk = false; _root.game0["player" + players].berserkcounter = 0; _root.game0["player" + players].berserkamount = 0; _root.game0["player" + players].slow = 0; _root.game0["player" + players].shootdelay = 0; _root.game0["player" + players].damage = 0; _root.game0["player" + players].weapon = shovelnum; _root.game0["player" + players].framedelay = 0; _root.game0["player" + players].rifleammo = 0; _root.game0["player" + players].hasrifle = false; _root.game0["player" + players].pistolammo = 0; _root.game0["player" + players].haspistol = false; _root.game0["player" + players].grenadeammo = 0; _root.game0["player" + players].hasgrenade = true; _root.game0["player" + players].shotgunammo = 0; _root.game0["player" + players].hasshotgun = false; _root.game0["player" + players].SMGammo = 0; _root.game0["player" + players].hasSMG = false; _root.game0["player" + players].hasshovel = true; _root.game0["player" + players]._x = -2000; _root.game0["player" + players]._y = -2000; _root.game0["player" + players].bodynormal = 90; _root.game0["player" + players].bodyx = -2000; _root.game0["player" + players].bodyy = -2000; _root.game0["player" + players].jumpdelay = 0; _root.game0["player" + players].lookdirection = 0; _root.game0["player" + players].gundirection = 0; _root.game0["player" + players].walkdirection = facedirection; _root.game0["player" + players].facedirection = facedirection; _root.game0["player" + players].objectlinenum = objectlines; _root.game0["player" + players].gundirection = 0; _root.game0["player" + players].lookdirection = 0; _root.game0["player" + players].bodynormal = 90; createobjectline(x, y, ragdollheight * 2, playeraf, playerg, playerf); _root.game0["player" + players].firstlegnum = legAs; createlegA(); createlegA(); _root.game0["legA" + (_root.game0["player" + players].firstlegnum + 1)].framerate = 0; _root.game0["legA" + _root.game0["player" + players].firstlegnum].framerate = 0; if (facedirection == 0) { _root.game0["legA" + _root.game0["player" + players].firstlegnum].frame = 4; _root.game0["legA" + (_root.game0["player" + players].firstlegnum + 1)].frame = 14; } else { _root.game0["legA" + _root.game0["player" + players].firstlegnum].frame = 14; _root.game0["legA" + (_root.game0["player" + players].firstlegnum + 1)].frame = 4; } _root.game0["player" + players].bodynum = bodyAs; createbodyA(); players = players + 1; } function createturretbase(x, y, pointdirection) { _root.game0.turretbasetemp.duplicateMovieClip("turretbase" + turretbases, turretbasedepth + turretbases); _root.game0["turretbase" + turretbases].active = true; _root.game0["turretbase" + turretbases]._visible = true; _root.game0["turretbase" + turretbases]._x = x; _root.game0["turretbase" + turretbases]._y = y; _root.game0["turretbase" + turretbases].shootdelay = 0; _root.game0["turretbase" + turretbases].damage = 0; _root.game0["turretbase" + turretbases].targetdirection = pointdirection; _root.game0["turretbase" + turretbases].hastarget = false; _root.game0["turretbase" + turretbases].x1 = x + vectorx(correctdirection(pointdirection - 90), turretbaselength * 0.5); _root.game0["turretbase" + turretbases].x2 = x - vectorx(correctdirection(pointdirection - 90), turretbaselength * 0.5); _root.game0["turretbase" + turretbases].y1 = y + vectory(correctdirection(pointdirection - 90), turretbaselength * 0.5); _root.game0["turretbase" + turretbases].y2 = y - vectory(correctdirection(pointdirection - 90), turretbaselength * 0.5); _root.game0["turretbase" + turretbases].restdirection = pointdirection; _root.game0["turretbase" + turretbases].pointdirection = pointdirection; _root.game0["turretbase" + turretbases].barrelnum = turretbarrels; createturretbarrel(x, y, pointdirection); _root.game0["turretbase" + turretbases]._rotation = -pointdirection; turretbases = turretbases + 1; } function createturretbarrel(x, y, pointdirection) { _root.game0.turretbarreltemp.duplicateMovieClip("turretbarrel" + turretbarrels, turretbarreldepth + turretbarrels); _root.game0["turretbarrel" + turretbarrels].active = true; _root.game0["turretbarrel" + turretbarrels]._visible = true; _root.game0["turretbarrel" + turretbarrels]._x = x; _root.game0["turretbarrel" + turretbarrels]._y = y; _root.game0["turretbarrel" + turretbarrels]._rotation = -pointdirection; turretbarrels = turretbarrels + 1; } function stoprain() { z = 0; while (z < raindrops) { _root.game0["rain" + z].active = false; _root.game0["rain" + z]._visible = false; z = z + 1; } } function startrain() { rainfallsound.start(0, 100); z = 0; while (z < raindrops) { _root.game0["rain" + z].active = true; _root.game0["rain" + z]._visible = true; z = z + 1; } } function stopfog() { _root.game0.fog.active = false; _root.game0.fog._visible = false; } function startfog() { _root.game0.fog.active = true; _root.game0.fog._visible = true; _root.game0.fog._y = 230; _root.game0.fog._x = Math.random() * -100; _root.game0.fog._alpha = 20; } function startflash() { _root.game0.flash.active = true; _root.game0.flash._visible = true; _root.game0.flash._y = 0; _root.game0.flash._x = 0; _root.game0.flash._alpha = 100; } function startfade() { _root.game0.fade.active = true; _root.game0.fade._visible = true; _root.game0.fade._y = 0; _root.game0.fade._x = 0; _root.game0.fade._alpha = 100; } function startberserkscreen() { _root.game0.berserkscreen.active = true; _root.game0.berserkscreen._visible = true; _root.game0.berserkscreen._y = 0; _root.game0.berserkscreen._x = 0; _root.game0.berserkscreen._alpha = 0; _root.game0.berserkscreen.livetime = 0; berserksound.start(0, 1); } function dirtblast(x, y) { var _local1 = 0; while (_local1 < 6) { creategp(x, y, (Math.random() * 8) + 12, (Math.random() * 60) + 69, (Math.random() * 3) + 1, 0.96, 0.03, (Math.random() * 20) + 40, 7623990, true); _local1 = _local1 + 1; } } function berserksparks(x, y) { creategp(x, y + (Math.random() * 24), (Math.random() * 2) + 2, Math.random() * 360, Math.random() * 2, 1, 0, (Math.random() * 5) + 5, 65382, true); } function berserkpuff(x, y) { var _local1 = 0; while (_local1 < 4) { creategp(x, y + (Math.random() * 24), (Math.random() * 8) + 12, Math.random() * 360, Math.random() * 0.5, 0.995, -0.02, (Math.random() * 20) + 50, 65382, true); _local1 = _local1 + 1; } } function computerexplosion(x, y) { electricbuzzsound.start(0, 1); var _local1 = 0; while (_local1 < 7) { creategp(x, y, (Math.random() * 5) + 5, Math.random() * 360, Math.random() * 4, 0.99, 0.05, (Math.random() * 15) + 15, 16776960, true); _local1 = _local1 + 1; } _local1 = 0; while (_local1 < 7) { creategp(x, y, (Math.random() * 8) + 8, Math.random() * 360, Math.random(), 0.96, -0.08, (Math.random() * 50) + 50, 5066061, true); _local1 = _local1 + 1; } } function electricsparks(x, y) { var _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 2) + 2, Math.random() * 360, Math.random() * 4, 0.99, 0.05, (Math.random() * 10) + 10, 16776960, true); _local1 = _local1 + 1; } } function teleportsparks(x, y) { teleportsound.start(0, 1); var _local1 = 0; while (_local1 < 4) { creategp(x, y, (Math.random() * 4) + 8, Math.random() * 360, Math.random() * 2, 0.97, 0, (Math.random() * 15) + 15, 5658340, true); _local1 = _local1 + 1; } } function zombiefire(x, y) { creategp(x, y, (Math.random() * 4) + 8, Math.random() * 360, Math.random(), 0.95, -0.2, (Math.random() * 8) + 8, 3947580, true); creategp(x, y + 5, (Math.random() * 4) + 8, Math.random() * 360, Math.random() + 1, 0.9, -0.1, (Math.random() * 4) + 4, 16489988, true); } function crateexplosion(x, y) { smallcrashsound.start(0, 1); var _local1 = 0; while (_local1 < 5) { creategp(x, y, (Math.random() * 8) + 16, Math.random() * 360, Math.random() * 2, 0.975, -0.03, (Math.random() * 20) + 20, 11643546, true); _local1 = _local1 + 1; } } function barrelexplosion(x, y) { explosionsound.start(0, 1); var _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 6) + 16, Math.random() * 180, Math.random() * 3, 0.97, 0.03, (Math.random() * 30) + 30, 16744448, true); creategp(x, y, (Math.random() * 6) + 16, Math.random() * 180, Math.random() * 3, 0.97, 0.03, (Math.random() * 30) + 30, 16776960, true); _local1 = _local1 + 1; } } function grenadesmoke(x, y) { creategp(x, y, (Math.random() * 2) + 2, Math.random() * 360, Math.random() * 0.5, 1, -0.03, (Math.random() * 10) + 10, 10329501, true); } function debrisspark(x, y) { creategp(x, y, (Math.random() * 3) + 3, Math.random() * 360, Math.random() * 2, 1, 0, (Math.random() * 10) + 5, 16776960, true); } function jumpdust(x, y) { var _local1 = 0; while (_local1 < 4) { creategp(x, y, (Math.random() * 5) + 8, Math.random() * 360, Math.random(), 1, 0, (Math.random() * 15) + 15, 11643546, true); _local1 = _local1 + 1; } } function blooddrip(x, y) { creategp(x, y, (Math.random() * 2) + 2, (Math.random() * 90) + 45, Math.random(), 0.97, 0.05, (Math.random() * 10) + 30, 13644595, true); } function bloodspray(x, y, bloodps) { var _local4 = bloodps; if (_local4 > maxbloodps) { _local4 = maxbloodps; } var _local1 = 0; while (_local1 < _local4) { if (_local1 == 0) { creategp(x, y, (Math.random() * 4) + 4, Math.random() * 360, (Math.random() * 2) + 1, 0.97, 0.05, (Math.random() * 15) + 15, 13644595, false); } else { creategp(x, y, (Math.random() * 4) + 4, Math.random() * 360, (Math.random() * 2) + 1, 0.97, 0.05, (Math.random() * 15) + 15, 13644595, true); } _local1 = _local1 + 1; } } function fire(x, y) { creategp(x, y, (Math.random() * 5) + 10, Math.random() * 360, Math.random(), 0.95, -0.1, (Math.random() * 20) + 40, 3947580, false); creategp(x, y + 5, (Math.random() * 8) + 8, (Math.random() * 90) + 45, Math.random() + 1, 0.9, -0.05, (Math.random() * 10) + 10, 16489988, false); } function watersplash(x, y, color) { var _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 5) + 3, (Math.random() * 30) + 75, (Math.random() * 3) + 1, 0.96, 0.15, (Math.random() * 20) + 20, color, true); _local1 = _local1 + 1; } } function waterexplosion(x, y, color) { var _local1 = 0; while (_local1 < 5) { creategp(x, y, (Math.random() * 12) + 12, (Math.random() * 30) + 75, (Math.random() * 4) + 4, 0.96, 0.15, (Math.random() * 30) + 30, color, true); _local1 = _local1 + 1; } } function rifleimpact(x, y) { var _local1 = 0; while (_local1 < 2) { creategp(x, y, (Math.random() * 5) + 5, Math.random() * 360, (Math.random() * 5) + 3, 0.5, -0.15, (Math.random() * 15) + 10, impactsmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 6) + 6, 0, 0, 0, 0, 5, impactflashcolor, false); } function pistolimpact(x, y) { var _local1 = 0; while (_local1 < 1) { creategp(x, y, (Math.random() * 5) + 5, Math.random() * 360, (Math.random() * 5) + 3, 0.5, -0.15, (Math.random() * 15) + 10, impactsmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 5) + 5, 0, 0, 0, 0, 4, impactflashcolor, false); } function shotgunimpact(x, y) { var _local1 = 0; while (_local1 < 2) { creategp(x, y, (Math.random() * 5) + 5, Math.random() * 360, (Math.random() * 5) + 3, 0.5, -0.15, (Math.random() * 15) + 10, impactsmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 3) + 3, 0, 0, 0, 0, 2, impactflashcolor, false); } function SMGimpact(x, y) { var _local1 = 0; while (_local1 < 1) { creategp(x, y, (Math.random() * 5) + 5, Math.random() * 360, (Math.random() * 5) + 3, 0.5, -0.15, (Math.random() * 15) + 10, impactsmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 4) + 4, 0, 0, 0, 0, 3, impactflashcolor, false); } function shovelsmoke(x, y) { creategp(x, y, (Math.random() * 3) + 3, (Math.random() * 90) + 45, Math.random(), 1, -0.1, (Math.random() * 5) + 10, impactsmokecolor, true); } function shovelpuff(x, y) { var _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 3) + 3, Math.random() * 180, Math.random(), 1, -0.1, (Math.random() * 10) + 10, impactsmokecolor, true); _local1 = _local1 + 1; } } function shovelimpact(x, y) { creategp(x, y, (Math.random() * 5) + 5, Math.random() * 360, (Math.random() * 5) + 3, 0.5, -0.15, (Math.random() * 15) + 10, impactsmokecolor, true); creategp(x, y, (Math.random() * 2) + 2, Math.random() * 360, (Math.random() * 3) + 1, 1, 0, (Math.random() * 5) + 5, 16776960, true); } function turretimpact(x, y) { var _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 5) + 5, Math.random() * 360, (Math.random() * 5) + 3, 0.5, -0.15, (Math.random() * 15) + 10, impactsmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 4) + 4, 0, 0, 0, 0, 3, impactflashcolor, false); } function turretmuzzleflash(x, y, shootdirection) { turretsound.start(0, 1); var _local1 = 0; while (_local1 < 4) { creategp(x, y, (Math.random() * 8) + 8, correctdirection((shootdirection + (Math.random() * 50)) - 25), (Math.random() * 3) + 1, 0.9, -0.05, (Math.random() * 15) + 15, muzzlesmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 5) + 10, 0, 0, 0, 0, 3, muzzleflashcolor, false); } function riflemuzzleflash(x, y, shootdirection) { riflesound.start(0, 1); var _local1 = 0; while (_local1 < 2) { creategp(x, y, (Math.random() * 8) + 8, correctdirection((shootdirection + (Math.random() * 50)) - 25), (Math.random() * 3) + 1, 0.9, -0.05, (Math.random() * 15) + 15, muzzlesmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 8) + 8, 0, 0, 0, 0, 3, muzzleflashcolor, false); } function pistolmuzzleflash(x, y, shootdirection) { pistolsound.start(0, 1); var _local1 = 0; while (_local1 < 1) { creategp(x, y, (Math.random() * 8) + 8, correctdirection((shootdirection + (Math.random() * 50)) - 25), (Math.random() * 3) + 1, 0.9, -0.05, (Math.random() * 15) + 15, muzzlesmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 6) + 6, 0, 0, 0, 0, 3, muzzleflashcolor, false); } function shotgunmuzzleflash(x, y, shootdirection) { shotgunsound.start(0, 1); var _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 10) + 10, correctdirection((shootdirection + (Math.random() * 50)) - 25), (Math.random() * 3) + 1, 0.9, -0.05, (Math.random() * 15) + 15, muzzlesmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 8) + 8, 0, 0, 0, 0, 3, muzzleflashcolor, false); } function SMGmuzzleflash(x, y, shootdirection) { smgsound.start(0, 1); var _local1 = 0; while (_local1 < 1) { creategp(x, y, (Math.random() * 8) + 8, correctdirection((shootdirection + (Math.random() * 50)) - 25), (Math.random() * 3) + 1, 0.9, -0.05, (Math.random() * 15) + 15, muzzlesmokecolor, true); _local1 = _local1 + 1; } creategp(x, y, (Math.random() * 4) + 4, 0, 0, 0, 0, 3, muzzleflashcolor, false); } function turretexplosion(x, y) { turretsound2.start(0, 1); var _local1 = 0; while (_local1 < 5) { creategp(x, y, (Math.random() * 10) + 10, Math.random() * 360, (Math.random() * 1) + 1, 0.95, -0.05, (Math.random() * 20) + 20, explosionsmokecolor, true); _local1 = _local1 + 1; } } function kamikazeexplosion(x, y) { grenadesound.start(0, 1); var _local1 = 0; while (_local1 < 6) { creategp(x, y, (Math.random() * 12) + 16, Math.random() * 360, (Math.random() * 3) + 1, 0.92, -0.05, (Math.random() * 30) + 30, explosionsmokecolor, true); _local1 = _local1 + 1; } _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 10) + 10, Math.random() * 360, (Math.random() * 3) + 1, 0.95, 0, (Math.random() * 8) + 8, explosionflashcolor, true); _local1 = _local1 + 1; } _local1 = 0; while (_local1 < 4) { creategp(x, y, (Math.random() * 6) + 6, Math.random() * 360, (Math.random() * 3) + 2, 0.97, 0, (Math.random() * 10) + 10, 13644595, true); _local1 = _local1 + 1; } } function grenadeexplosion(x, y) { grenadesound.start(0, 1); var _local1 = 0; while (_local1 < 5) { creategp(x, y, (Math.random() * 8) + 16, Math.random() * 180, (Math.random() * 3) + 1, 0.92, -0.05, (Math.random() * 30) + 30, explosionsmokecolor, true); _local1 = _local1 + 1; } _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 8) + 8, (Math.random() * 90) + 45, (Math.random() * 3) + 1, 0.95, 0, (Math.random() * 8) + 8, explosionflashcolor, true); _local1 = _local1 + 1; } } function turrethit(x, y) { var _local1 = 0; while (_local1 < 3) { creategp(x, y, (Math.random() * 3) + 3, Math.random() * 360, (Math.random() * 4) + 4, 0.8, 0.25, (Math.random() * 8) + 8, 15829518, true); _local1 = _local1 + 1; } } function nuclearblast(x, y) { startflash(); explosionsound.start(0, 1); q = 0; while (q < 5) { creategp(x, y, (Math.random() * 10) + 20, (Math.random() * 20) + 80, Math.random() * 10, 0.91, -0.04, (Math.random() * 50) + 150, explosionsmokecolor, false); q = q + 1; } q = 0; while (q < 12) { creategp(x, y - 30, (Math.random() * 10) + 20, Math.random() * 360, Math.random() * 5, 0.92, -0.12, (Math.random() * 50) + 150, explosionsmokecolor, false); q = q + 1; } creategp(x, y, (Math.random() * 10) + 30, 0, 0, 0.92, -0.12, (Math.random() * 50) + 100, 16776960, false); q = 0; while (q < 6) { creategp(x, y, (Math.random() * 10) + 20, (Math.random() * 10) - 5, (Math.random() * 2) + 1, 0.97, 0, (Math.random() * 50) + 100, explosionsmokecolor, false); creategp(x, y, (Math.random() * 10) + 20, (Math.random() * 10) + 175, (Math.random() * 2) + 1, 0.97, 0, (Math.random() * 50) + 100, explosionsmokecolor, false); q = q + 1; } } function createfire(x, y, livetime) { var _local2 = -1; var _local1 = 0; while (_local1 < fires) { if (fireactive[_local1] == false) { _local2 = _local1; _local1 = fires + 1; } _local1 = _local1 + 1; } if (_local2 > -1) { firex[_local2] = x; firey[_local2] = y; firedelay[_local2] = 0; fireactive[_local2] = true; firelivetime[_local2] = 0; firemaxlivetime[_local2] = livetime; } else { firex[fires] = x; firey[fires] = y; firedelay[fires] = 0; fireactive[fires] = true; firelivetime[fires] = 0; firemaxlivetime[fires] = livetime; fires = fires + 1; } } function createhealth(x, y, fade) { _root.game0.healthtemp.duplicateMovieClip("health" + healths, healthdepth + healths); _root.game0["health" + healths].active = true; _root.game0["health" + healths]._visible = true; _root.game0["health" + healths].fade = fade; _root.game0["health" + healths]._x = -1000; _root.game0["health" + healths]._y = -1000; _root.game0["health" + healths].livetime = 0; _root.game0["health" + healths].boxnum = boxes; createbox(x, y, healthsidelength, pickupaf, pickupg, pickupf, fade, -1, false); healths = healths + 1; } function createshotgunammo(x, y, fade) { _root.game0.shotgunammotemp.duplicateMovieClip("shotgunammo" + shotgunammos, shotgunammodepth + shotgunammos); _root.game0["shotgunammo" + shotgunammos].active = true; _root.game0["shotgunammo" + shotgunammos]._visible = true; _root.game0["shotgunammo" + shotgunammos].fade = fade; _root.game0["shotgunammo" + shotgunammos]._x = -1000; _root.game0["shotgunammo" + shotgunammos]._y = -1000; _root.game0["shotgunammo" + shotgunammos].livetime = 0; _root.game0["shotgunammo" + shotgunammos].boxnum = boxes; createbox(x, y, shotgunammosidelength, pickupaf, pickupg, pickupf, fade, -1, false); shotgunammos = shotgunammos + 1; } function createSMGammo(x, y, fade) { _root.game0.SMGammotemp.duplicateMovieClip("SMGammo" + SMGammos, SMGammodepth + SMGammos); _root.game0["SMGammo" + SMGammos].active = true; _root.game0["SMGammo" + SMGammos]._visible = true; _root.game0["SMGammo" + SMGammos].fade = fade; _root.game0["SMGammo" + SMGammos]._x = -1000; _root.game0["SMGammo" + SMGammos]._y = -1000; _root.game0["SMGammo" + SMGammos].livetime = 0; _root.game0["SMGammo" + SMGammos].boxnum = boxes; createbox(x, y, SMGammosidelength, pickupaf, pickupg, pickupf, fade, -1, false); SMGammos = SMGammos + 1; } function createpistolammo(x, y, fade) { _root.game0.pistolammotemp.duplicateMovieClip("pistolammo" + pistolammos, pistolammodepth + pistolammos); _root.game0["pistolammo" + pistolammos].active = true; _root.game0["pistolammo" + pistolammos]._visible = true; _root.game0["pistolammo" + pistolammos].fade = fade; _root.game0["pistolammo" + pistolammos]._x = -1000; _root.game0["pistolammo" + pistolammos]._y = -1000; _root.game0["pistolammo" + pistolammos].livetime = 0; _root.game0["pistolammo" + pistolammos].boxnum = boxes; createbox(x, y, pistolammosidelength, pickupaf, pickupg, pickupf, fade, -1, false); pistolammos = pistolammos + 1; } function creategrenadeammo(x, y, fade) { _root.game0.grenadeammotemp.duplicateMovieClip("grenadeammo" + grenadeammos, grenadeammodepth + grenadeammos); _root.game0["grenadeammo" + grenadeammos].active = true; _root.game0["grenadeammo" + grenadeammos]._visible = true; _root.game0["grenadeammo" + grenadeammos].fade = fade; _root.game0["grenadeammo" + grenadeammos]._x = -1000; _root.game0["grenadeammo" + grenadeammos]._y = -1000; _root.game0["grenadeammo" + grenadeammos].livetime = 0; _root.game0["grenadeammo" + grenadeammos].boxnum = boxes; createbox(x, y, grenadeammosidelength, pickupaf, pickupg, pickupf, fade, -1, false); grenadeammos = grenadeammos + 1; } function createrifleammo(x, y, fade) { _root.game0.rifleammotemp.duplicateMovieClip("rifleammo" + rifleammos, rifleammodepth + rifleammos); _root.game0["rifleammo" + rifleammos].active = true; _root.game0["rifleammo" + rifleammos]._visible = true; _root.game0["rifleammo" + rifleammos].fade = fade; _root.game0["rifleammo" + rifleammos]._x = -1000; _root.game0["rifleammo" + rifleammos]._y = -1000; _root.game0["rifleammo" + rifleammos].livetime = 0; _root.game0["rifleammo" + rifleammos].boxnum = boxes; createbox(x, y, rifleammosidelength, pickupaf, pickupg, pickupf, fade, -1, false); rifleammos = rifleammos + 1; } function createrifle(x, y, facedirection, pointdirection, fade, copiedp) { _root.game0.rifletemp.duplicateMovieClip("rifle" + rifles, rifledepth + rifles); _root.game0["rifle" + rifles].active = true; _root.game0["rifle" + rifles]._visible = true; _root.game0["rifle" + rifles].fade = fade; _root.game0["rifle" + rifles].facedirection = facedirection; if (facedirection == 1) { _root.game0["rifle" + rifles]._xscale = -100; } _root.game0["rifle" + rifles]._x = -1000; _root.game0["rifle" + rifles]._y = -1000; _root.game0["rifle" + rifles].livetime = 0; _root.game0["rifle" + rifles].pointdirection = pointdirection; _root.game0["rifle" + rifles].linenum = lines; createline(x - vectorx(pointdirection, riflelength * 0.5), y - vectory(pointdirection, riflelength * 0.5), x + vectorx(pointdirection, riflelength * 0.5), y + vectory(pointdirection, riflelength * 0.5), weaponaf, weapong, weaponf, fade, copiedp, false); rifles = rifles + 1; } function createpistol(x, y, facedirection, pointdirection, fade, copiedp) { _root.game0.pistoltemp.duplicateMovieClip("pistol" + pistols, pistoldepth + pistols); _root.game0["pistol" + pistols].active = true; _root.game0["pistol" + pistols]._visible = true; _root.game0["pistol" + pistols].fade = fade; _root.game0["pistol" + pistols].facedirection = facedirection; if (facedirection == 1) { _root.game0["pistol" + pistols]._xscale = -100; } _root.game0["pistol" + pistols]._x = -1000; _root.game0["pistol" + pistols]._y = -1000; _root.game0["pistol" + pistols].livetime = 0; _root.game0["pistol" + pistols].pointdirection = pointdirection; _root.game0["pistol" + pistols].linenum = lines; createline(x - vectorx(pointdirection, pistollength * 0.5), y - vectory(pointdirection, pistollength * 0.5), x + vectorx(pointdirection, pistollength * 0.5), y + vectory(pointdirection, pistollength * 0.5), weaponaf, weapong, weaponf, fade, copiedp, false); pistols = pistols + 1; } function createshotgun(x, y, facedirection, pointdirection, fade, copiedp) { _root.game0.shotguntemp.duplicateMovieClip("shotgun" + shotguns, shotgundepth + shotguns); _root.game0["shotgun" + shotguns].active = true; _root.game0["shotgun" + shotguns]._visible = true; _root.game0["shotgun" + shotguns].fade = fade; _root.game0["shotgun" + shotguns].facedirection = facedirection; if (facedirection == 1) { _root.game0["shotgun" + shotguns]._xscale = -100; } _root.game0["shotgun" + shotguns]._x = -1000; _root.game0["shotgun" + shotguns]._y = -1000; _root.game0["shotgun" + shotguns].livetime = 0; _root.game0["shotgun" + shotguns].pointdirection = pointdirection; _root.game0["shotgun" + shotguns].linenum = lines; createline(x - vectorx(pointdirection, shotgunlength * 0.5), y - vectory(pointdirection, shotgunlength * 0.5), x + vectorx(pointdirection, shotgunlength * 0.5), y + vectory(pointdirection, shotgunlength * 0.5), weaponaf, weapong, weaponf, fade, copiedp, false); shotguns = shotguns + 1; } function createSMG(x, y, facedirection, pointdirection, fade, copiedp) { _root.game0.SMGtemp.duplicateMovieClip("SMG" + SMGs, SMGdepth + SMGs); _root.game0["SMG" + SMGs].active = true; _root.game0["SMG" + SMGs]._visible = true; _root.game0["SMG" + SMGs].fade = fade; _root.game0["SMG" + SMGs].facedirection = facedirection; if (facedirection == 1) { _root.game0["SMG" + SMGs]._xscale = -100; } _root.game0["SMG" + SMGs]._x = -1000; _root.game0["SMG" + SMGs]._y = -1000; _root.game0["SMG" + SMGs].livetime = 0; _root.game0["SMG" + SMGs].pointdirection = pointdirection; _root.game0["SMG" + SMGs].linenum = lines; createline(x - vectorx(pointdirection, SMGlength * 0.5), y - vectory(pointdirection, SMGlength * 0.5), x + vectorx(pointdirection, SMGlength * 0.5), y + vectory(pointdirection, SMGlength * 0.5), weaponaf, weapong, weaponf, fade, copiedp, false); SMGs = SMGs + 1; } function createshovel(x, y, facedirection, pointdirection, fade, copiedp) { _root.game0.shoveltemp.duplicateMovieClip("shovel" + shovels, shoveldepth + shovels); _root.game0["shovel" + shovels].active = true; _root.game0["shovel" + shovels]._visible = true; _root.game0["shovel" + shovels].fade = fade; _root.game0["shovel" + shovels].facedirection = facedirection; if (facedirection == 1) { _root.game0["shovel" + shovels]._xscale = -100; } _root.game0["shovel" + shovels]._x = -1000; _root.game0["shovel" + shovels]._y = -1000; _root.game0["shovel" + shovels].livetime = 0; _root.game0["shovel" + shovels].pointdirection = pointdirection; _root.game0["shovel" + shovels].linenum = lines; createline(x - vectorx(pointdirection, shovellength * 0.5), y - vectory(pointdirection, shovellength * 0.5), x + vectorx(pointdirection, shovellength * 0.5), y + vectory(pointdirection, shovellength * 0.5), weaponaf, weapong, weaponf, fade, copiedp, false); shovels = shovels + 1; } function createpointdebris(x, y, debrisframe) { dchance = 0; if (_root.debrisquality == 1) { dchance = Math.floor(Math.random() * 2); } if (dchance == 0) { _root.game0.pointdebristemp.duplicateMovieClip("pointdebris" + pointdebriss, pointdebrisdepth + pointdebriss); _root.game0["pointdebris" + pointdebriss].active = true; _root.game0["pointdebris" + pointdebriss]._visible = true; _root.game0["pointdebris" + pointdebriss]._x = -1000; _root.game0["pointdebris" + pointdebriss]._y = -1000; _root.game0["pointdebris" + pointdebriss].frame = debrisframe; _root.game0["pointdebris" + pointdebriss]._rotation = Math.random() * 360; _root.game0["pointdebris" + pointdebriss].livetime = 0; _root.game0["pointdebris" + pointdebriss].rotatespeed = Math.random() * pointdebrisrotatespeed; _root.game0["pointdebris" + pointdebriss].pointnum = points; createpoint(x, y, pointdebrisaf, pointdebrisg, pointdebrisf, true, -1, false); pointdebriss = pointdebriss + 1; } } function createlinedebris(x, y, debrisframe) { dchance = 0; if (_root.debrisquality == 1) { dchance = Math.floor(Math.random() * 2); } if (dchance == 0) { _root.game0.linedebristemp.duplicateMovieClip("linedebris" + linedebriss, linedebrisdepth + linedebriss); _root.game0["linedebris" + linedebriss].active = true; _root.game0["linedebris" + linedebriss]._visible = true; _root.game0["linedebris" + linedebriss]._x = -1000; _root.game0["linedebris" + linedebriss]._y = -1000; _root.game0["linedebris" + linedebriss].frame = debrisframe; _root.game0["linedebris" + linedebriss].livetime = 0; _root.game0["linedebris" + linedebriss].linenum = lines; createline(x - (linedebrislength * 0.5), y, x + (linedebrislength * 0.5), y, linedebrisaf, linedebrisg, linedebrisf, true, -1, false); linedebriss = linedebriss + 1; } } function createboxdebris(x, y, debrisframe) { dchance = 0; if (_root.debrisquality == 1) { dchance = Math.floor(Math.random() * 2); } if (dchance == 0) { _root.game0.boxdebristemp.duplicateMovieClip("boxdebris" + boxdebriss, boxdebrisdepth + boxdebriss); _root.game0["boxdebris" + boxdebriss].active = true; _root.game0["boxdebris" + boxdebriss]._visible = true; _root.game0["boxdebris" + boxdebriss]._x = -1000; _root.game0["boxdebris" + boxdebriss]._y = -1000; _root.game0["boxdebris" + boxdebriss].frame = debrisframe; _root.game0["boxdebris" + boxdebriss].livetime = 0; _root.game0["boxdebris" + boxdebriss].boxnum = boxes; createbox(x, y, boxdebrissidelength, boxdebrisaf, boxdebrisg, boxdebrisf, true, -1, false); boxdebriss = boxdebriss + 1; } } function createbulletcasing(x, y, size, movedirection, speed, rotatespeed, shellframe) { bcchance = bulletcasingquality; if (_root.bulletcasingquality == 1) { bcchance = Math.floor(Math.random() * 2); } if (bcchance == 0) { var _local3 = -1; var _local2 = 0; while (_local2 < bulletcasings) { if (_root.game0["bulletcasing" + _local2].active == false) { _local3 = _local2; _local2 = bulletcasings + 1; } _local2 = _local2 + 1; } if (_local3 > -1) { _root.game0["bulletcasing" + _local3].active = true; _root.game0["bulletcasing" + _local3]._visible = true; _root.game0["bulletcasing" + _local3]._alpha = 100; _root.game0["bulletcasing" + _local3].frame = shellframe; _root.game0["bulletcasing" + _local3].playedsounds = 0; _root.game0["bulletcasing" + _local3]._x = -1000; _root.game0["bulletcasing" + _local3]._y = -1000; _root.game0["bulletcasing" + _local3]._rotation = 0; _root.game0["bulletcasing" + _local3]._width = size; _root.game0["bulletcasing" + _local3]._rotation = Math.random() * 360; _root.game0["bulletcasing" + _local3].livetime = 0; _root.game0["bulletcasing" + _local3].rotatespeed = rotatespeed; _root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].ignorecollisions = false; _root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].restcounter = 0; _root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].atrest = false; _root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].active = true; _root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum]._visible = true; pactive[_root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].firstpnum] = true; plx[_root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].firstpnum] = x; ply[_root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].firstpnum] = y; psx[_root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].firstpnum] = x; psy[_root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].firstpnum] = y; px[_root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].firstpnum] = x + vectorx2(movedirection, speed); py[_root.game0["point" + _root.game0["bulletcasing" + _local3].pointnum].firstpnum] = y + vectory2(movedirection, speed); } else { _root.game0.bulletcasingtemp.duplicateMovieClip("bulletcasing" + bulletcasings, bulletcasingdepth + bulletcasings); _root.game0["bulletcasing" + bulletcasings].active = true; _root.game0["bulletcasing" + bulletcasings]._visible = true; _root.game0["bulletcasing" + bulletcasings]._x = -1000; _root.game0["bulletcasing" + bulletcasings]._y = -1000; _root.game0["bulletcasing" + bulletcasings].playedsounds = 0; _root.game0["bulletcasing" + bulletcasings].frame = shellframe; _root.game0["bulletcasing" + bulletcasings]._rotation = 0; _root.game0["bulletcasing" + bulletcasings]._width = size; _root.game0["bulletcasing" + bulletcasings]._rotation = Math.random() * 360; _root.game0["bulletcasing" + bulletcasings].livetime = 0; _root.game0["bulletcasing" + bulletcasings].rotatespeed = rotatespeed; _root.game0["bulletcasing" + bulletcasings].pointnum = points; createpoint(x, y, bulletcasingaf, bulletcasingg, bulletcasingf, true, -1, false); px[_root.game0["point" + _root.game0["bulletcasing" + bulletcasings].pointnum].firstpnum] = px[_root.game0["point" + _root.game0["bulletcasing" + bulletcasings].pointnum].firstpnum] + vectorx2(movedirection, speed); py[_root.game0["point" + _root.game0["bulletcasing" + bulletcasings].pointnum].firstpnum] = py[_root.game0["point" + _root.game0["bulletcasing" + bulletcasings].pointnum].firstpnum] + vectory2(movedirection, speed); bulletcasings = bulletcasings + 1; } } } function createcrow(x, y, facedirection, frame) { _root.game0.crowtemp.duplicateMovieClip("crow" + crows, crowdepth + crows); _root.game0["crow" + crows].active = true; _root.game0["crow" + crows]._visible = true; _root.game0["crow" + crows]._x = x; _root.game0["crow" + crows]._y = y; _root.game0["crow" + crows].hs = 0; _root.game0["crow" + crows].vs = 0; _root.game0["crow" + crows].hitzonenum = hitzones; createhitzone(_root.game0["crow" + crows]._x, _root.game0["crow" + crows]._y, crowradius); _root.game0["crow" + crows].facedirection = facedirection; if (facedirection == 1) { _root.game0["crow" + crows]._xscale = -100; } if (frame == 1) { if (facedirection == 0) { _root.game0["crow" + crows].hs = 5; } else { _root.game0["crow" + crows].hs = -5; } } _root.game0["crow" + crows].frame = frame; _root.game0["crow" + crows].wingnum = crowwings; createcrowwing(facedirection); crows = crows + 1; } function createcrowwing(facedirection) { _root.game0.crowwingtemp.duplicateMovieClip("crowwing" + crowwings, crowwingdepth + crowwings); _root.game0["crowwing" + crowwings].active = true; _root.game0["crowwing" + crowwings]._visible = true; _root.game0["crowwing" + crowwings]._x = -100; _root.game0["crowwing" + crowwings]._y = -100; _root.game0["crowwing" + crowwings]._yscale = 0; if (facedirection == 1) { _root.game0["crow" + crows]._xscale = -100; } _root.game0["crowwing" + crowwings].scalespeed = 20; crowwings = crowwings + 1; } function createrat(x, y, facedirection, scared) { _root.game0.rattemp.duplicateMovieClip("rat" + rats, ratdepth + rats); _root.game0["rat" + rats].active = true; _root.game0["rat" + rats]._visible = true; _root.game0["rat" + rats]._x = x; _root.game0["rat" + rats]._y = y; _root.game0["rat" + rats].frame = 0; _root.game0["rat" + rats].hitzonenum = hitzones; createhitzone(_root.game0["rat" + rats]._x, _root.game0["rat" + rats]._y, ratradius); _root.game0["rat" + rats].facedirection = facedirection; if (facedirection == 1) { _root.game0["rat" + rats]._xscale = -100; } _root.game0["rat" + rats].scared = scared; rats = rats + 1; } function countcorpses() { countedcorpses = 0; z = 0; while (z < corpses) { if (_root.game0["corpse" + z].active == true) { countedcorpses = countedcorpses + 1; } z = z + 1; } return(countedcorpses); } function createcorpse(x, y, fade, copiedp, type) { this.createEmptyMovieClip("corpse" + corpses, corpsedepth + corpses); if (type > 0) { _root.game0.player0.berserkamount = _root.game0.player0.berserkamount + killberserkamount; } _root.game0["corpse" + corpses].active = true; _root.game0["corpse" + corpses].type = type; _root.game0["corpse" + corpses]._x = x; _root.game0["corpse" + corpses]._y = y; _root.game0["corpse" + corpses].lastx = x; _root.game0["corpse" + corpses].lasty = y; _root.game0["corpse" + corpses].bloodtimer = 0; _root.game0["corpse" + corpses].fade = fade; _root.game0["corpse" + corpses].livetime = 0; _root.game0["corpse" + corpses].ragdollnum = ragdolls; createragdoll(x, y, corpseaf, corpseg, corpsef, fade, copiedp, false); _root.game0["corpse" + corpses].headnum = heads; _root.game0["corpse" + corpses].torsonum = torsos; _root.game0["corpse" + corpses].firstupperlegnum = upperlegs; _root.game0["corpse" + corpses].firstlowerarmnum = lowerarms; _root.game0["corpse" + corpses].firstupperarmnum = upperarms; _root.game0["corpse" + corpses].firstlowerlegnum = lowerlegs; _root.game0["corpse" + corpses].firstupperlegnum = upperlegs; createtorso(type); createhead(type); createupperleg(type); createupperleg(type); createlowerleg(type); createlowerleg(type); createupperarm(type); createupperarm(type); createlowerarm(type); createlowerarm(type); _root.game0["upperarm" + _root.game0["corpse" + corpses].firstupperarmnum]._xscale = -100; _root.game0["lowerarm" + _root.game0["corpse" + corpses].firstlowerarmnum]._xscale = -100; _root.game0["upperleg" + _root.game0["corpse" + corpses].firstupperlegnum]._xscale = -100; _root.game0["lowerleg" + _root.game0["corpse" + corpses].firstlowerlegnum]._xscale = -100; if (countcorpses() >= maxcorpses) { _root.game0["ragdoll" + _root.game0["corpse" + corpses].ragdollnum].deformed = true; } corpses = corpses + 1; } function createchain(x1, y1, attachedtoparticle1, locked1, x2, y2, attachedtoparticle2, locked2, ignorecollisions, type) { this.createEmptyMovieClip("chain" + chains, chaindepth + chains); _root.game0["chain" + chains].active = true; _root.game0["chain" + chains].type = type; _root.game0["chain" + chains]._x = -1000; _root.game0["chain" + chains]._y = -1000; _root.game0["chain" + chains].ropenum = ropes; chaindistance = approxdistance(x1, y1, x2, y2); segments = Math.round(chaindistance / chainsegmentlength); createrope(x1, y1, attachedtoparticle1, locked1, x2, y2, attachedtoparticle2, locked2, segments, chainsegmentlength, false, chainaf, chaing, chainf, true, -1, ignorecollisions); _root.game0["chain" + chains].linknum = links; alternatenum = 0; df = 0; while (df < (segments - 1)) { createlink((type * 2) + alternatenum); if (alternatenum == 0) { alternatenum = 1; } else { alternatenum = 0; } df = df + 1; } chains = chains + 1; } function createlink(frame) { _root.game0.linktemp.duplicateMovieClip("link" + links, linkdepth + links); _root.game0["link" + links].active = true; _root.game0["link" + links]._visible = true; _root.game0["link" + links]._x = -1000; _root.game0["link" + links]._y = -1000; _root.game0["link" + links].frame = frame; links = links + 1; } function createstring(x1, y1, attachedtoparticle1, locked1, x2, y2, attachedtoparticle2, locked2, ignorecollisions, color, alpha) { this.createEmptyMovieClip("string" + strings, stringdepth + strings); _root.game0["string" + strings].color = color; _root.game0["string" + strings].alpha = alpha; _root.game0["string" + strings].active = true; _root.game0["string" + strings]._x = -1000; _root.game0["string" + strings]._y = -1000; _root.game0["string" + strings].ropenum = ropes; stringdistance = approxdistance(x1, y1, x2, y2); segments = Math.round(stringdistance / stringsegmentlength); createrope(x1, y1, attachedtoparticle1, locked1, x2, y2, attachedtoparticle2, locked2, segments, stringsegmentlength, true, stringaf, stringg, stringf, true, -1, ignorecollisions); strings = strings + 1; } function createbarrel(x, y, frame) { _root.game0.barreltemp.duplicateMovieClip("barrel" + barrels, barreldepth + barrels); _root.game0["barrel" + barrels].active = true; _root.game0["barrel" + barrels]._visible = true; _root.game0["barrel" + barrels]._x = x; _root.game0["barrel" + barrels]._y = y; _root.game0["barrel" + barrels].frame = frame; _root.game0["barrel" + barrels].hitzonenum = hitzones; createhitzone(_root.game0["barrel" + barrels]._x, _root.game0["barrel" + barrels]._y + (barrelheight * 0.5), barrelradius); barrels = barrels + 1; } function createcrate(x, y, frame) { _root.game0.cratetemp.duplicateMovieClip("crate" + crates, cratedepth + crates); _root.game0["crate" + crates].active = true; _root.game0["crate" + crates]._visible = true; _root.game0["crate" + crates]._x = x; _root.game0["crate" + crates]._y = y; _root.game0["crate" + crates].frame = frame; _root.game0["crate" + crates].hitzonenum = hitzones; createhitzone(_root.game0["crate" + crates]._x, _root.game0["crate" + crates]._y + (crateheight * 0.5), crateradius); crates = crates + 1; } function createspinlight(x, y) { _root.game0.spinlighttemp.duplicateMovieClip("spinlight" + spinlights, spinlightdepth + spinlights); _root.game0["spinlight" + spinlights].active = true; _root.game0["spinlight" + spinlights]._visible = true; _root.game0["spinlight" + spinlights]._x = x; _root.game0["spinlight" + spinlights]._y = y; spinlights = spinlights + 1; } function createfloordoor(x, y) { _root.game0.floordoortemp.duplicateMovieClip("floordoor" + floordoors, floordoordepth + floordoors); _root.game0["floordoor" + floordoors].active = true; _root.game0["floordoor" + floordoors]._visible = true; _root.game0["floordoor" + floordoors]._x = x; _root.game0["floordoor" + floordoors]._y = y; floordoors = floordoors + 1; } function createwalldoor(x, y) { _root.game0.walldoortemp.duplicateMovieClip("walldoor" + walldoors, walldoordepth + walldoors); _root.game0["walldoor" + walldoors].active = true; _root.game0["walldoor" + walldoors]._visible = true; _root.game0["walldoor" + walldoors]._x = x; _root.game0["walldoor" + walldoors]._y = y; walldoors = walldoors + 1; } function createcity(x, y) { _root.game0.citytemp.duplicateMovieClip("city" + cities, citydepth + cities); _root.game0["city" + cities].active = true; _root.game0["city" + cities]._visible = true; _root.game0["city" + cities]._x = x; _root.game0["city" + cities]._y = y; _root.game0["city" + cities].frame = 0; cities = cities + 1; } function createcomputer(x, y) { _root.game0.computertemp.duplicateMovieClip("computer" + computers, computerdepth + computers); _root.game0["computer" + computers].active = true; _root.game0["computer" + computers]._visible = true; _root.game0["computer" + computers]._x = x; _root.game0["computer" + computers]._y = y; _root.game0["computer" + computers].frame = 0; _root.game0["computer" + computers].hitzonenum = hitzones; createhitzone(_root.game0["computer" + computers]._x, _root.game0["computer" + computers]._y + (computerheight * 0.5), computerradius); computers = computers + 1; } function createhitzone(x, y, radius) { hitzonex[hitzones] = x; hitzoney[hitzones] = y; hitzoneactive[hitzones] = false; hitzoneradius[hitzones] = radius; hitzones = hitzones + 1; } function createblast(x, y, radius, push, damage, side) { var _local2 = -1; var _local1 = 0; while (_local1 < blasts) { if (blastactive[_local1] == false) { _local2 = _local1; _local1 = blasts + 1; } _local1 = _local1 + 1; } if (_local2 > -1) { blastx[_local2] = x; blasty[_local2] = y; blastactive[_local2] = true; blastside[_local2] = side; blastdamage[_local2] = damage; blastpush[_local2] = push; blastradius[_local2] = radius; } else { blastx[blasts] = x; blasty[blasts] = y; blastactive[blasts] = true; blastside[blasts] = side; blastdamage[blasts] = damage; blastpush[blasts] = push; blastradius[blasts] = radius; blasts = blasts + 1; } } function createbullet(x, y, shootdirection, shootdistance, damage, side, color, alpha) { var _local2 = -1; var _local1 = 0; while (_local1 < bullets) { if (bulletactive[_local1] == false) { _local2 = _local1; _local1 = bullets + 1; } _local1 = _local1 + 1; } hitsomething = false; if (_local2 > -1) { bulletx2[_local2] = x + vectorx2(shootdirection, shootdistance); bullety2[_local2] = y + vectory2(shootdirection, shootdistance); if (segmentcollide(x, y, bulletx2[_local2], bullety2[_local2]) == true) { hitsomething = true; bulletx2[_local2] = bestcx; bullety2[_local2] = bestcy; } bulletactive[_local2] = true; bulletside[_local2] = side; bulletdamage[_local2] = damage; bulletx1[_local2] = x; bullety1[_local2] = y; drawline(bulletx1[_local2], bullety1[_local2], bulletx2[_local2], bullety2[_local2], color, alpha); } else { bulletx2[bullets] = x + vectorx2(shootdirection, shootdistance); bullety2[bullets] = y + vectory2(shootdirection, shootdistance); if (segmentcollide(x, y, bulletx2[bullets], bullety2[bullets]) == true) { hitsomething = true; bulletx2[bullets] = bestcx; bullety2[bullets] = bestcy; } bulletactive[bullets] = true; bulletx1[bullets] = x; bullety1[bullets] = y; bulletside[bullets] = side; bulletdamage[bullets] = damage; drawline(bulletx1[bullets], bullety1[bullets], bulletx2[bullets], bullety2[bullets], color, alpha); bullets = bullets + 1; } impactx = bestcx; impacty = bestcy; return(hitsomething); } function creategrenade(x, y, movedirection, speed, rotatespeed, side) { var _local3 = -1; var _local2 = 0; while (_local2 < grenades) { if (_root.game0["grenade" + _local2].active == false) { _local3 = _local2; _local2 = grenades + 1; } _local2 = _local2 + 1; } if (_local3 > -1) { _root.game0["grenade" + _local3].active = true; _root.game0["grenade" + _local3]._visible = true; _root.game0["grenade" + _local3]._alpha = 100; _root.game0["grenade" + _local3].side = side; _root.game0["grenade" + _local3].playedsounds = 0; _root.game0["grenade" + _local3]._x = -1000; _root.game0["grenade" + _local3]._y = -1000; _root.game0["grenade" + _local3]._rotation = Math.random() * 360; _root.game0["grenade" + _local3].livetime = 0; _root.game0["grenade" + _local3].rotatespeed = rotatespeed; _root.game0["point" + _root.game0["grenade" + _local3].pointnum].restcounter = 0; _root.game0["point" + _root.game0["grenade" + _local3].pointnum].atrest = false; _root.game0["point" + _root.game0["grenade" + _local3].pointnum].active = true; _root.game0["point" + _root.game0["grenade" + _local3].pointnum]._visible = true; _root.game0["point" + _root.game0["grenade" + _local3].pointnum].ignorecollisions = false; pactive[_root.game0["point" + _root.game0["grenade" + _local3].pointnum].firstpnum] = true; plx[_root.game0["point" + _root.game0["grenade" + _local3].pointnum].firstpnum] = x; ply[_root.game0["point" + _root.game0["grenade" + _local3].pointnum].firstpnum] = y; psx[_root.game0["point" + _root.game0["grenade" + _local3].pointnum].firstpnum] = x; psy[_root.game0["point" + _root.game0["grenade" + _local3].pointnum].firstpnum] = y; px[_root.game0["point" + _root.game0["grenade" + _local3].pointnum].firstpnum] = x + vectorx2(movedirection, speed); py[_root.game0["point" + _root.game0["grenade" + _local3].pointnum].firstpnum] = y + vectory2(movedirection, speed); } else { _root.game0.grenadetemp.duplicateMovieClip("grenade" + grenades, grenadedepth + grenades); _root.game0["grenade" + grenades].active = true; _root.game0["grenade" + grenades]._visible = true; _root.game0["grenade" + grenades].side = side; _root.game0["grenade" + grenades]._x = x; _root.game0["grenade" + grenades]._y = y; _root.game0["grenade" + grenades]._rotation = Math.random() * 360; _root.game0["grenade" + grenades].playedsounds = 0; _root.game0["grenade" + grenades].livetime = 0; _root.game0["grenade" + grenades].rotatespeed = rotatespeed; _root.game0["grenade" + grenades].pointnum = points; createpoint(x, y, grenadeaf, grenadeg, grenadef, true, -1, false); px[_root.game0["point" + _root.game0["grenade" + grenades].pointnum].firstpnum] = px[_root.game0["point" + _root.game0["grenade" + grenades].pointnum].firstpnum] + vectorx2(movedirection, speed); py[_root.game0["point" + _root.game0["grenade" + grenades].pointnum].firstpnum] = py[_root.game0["point" + _root.game0["grenade" + grenades].pointnum].firstpnum] + vectory2(movedirection, speed); grenades = grenades + 1; } } function bulletcollide(x1, y1, x2, y2, side) { objectdirection = directiontopoint(x1, y1, x2, y2); hit = false; hitdamage = []; hitx = []; hity = []; bulletdirection = []; hits = 0; t = 0; while (t < bullets) { if (bulletactive[t] == true) { if (bulletside[t] != side) { if (linecollide(bulletx1[t], bullety1[t], bulletx2[t], bullety2[t], x1, y1, x2, y2, objectdirection) == true) { hit = true; hitdamage[hits] = bulletdamage[t]; hity[hits] = cy; hitx[hits] = cx; bulletdirection[hits] = directiontopoint(bulletx1[t], bullety1[t], bulletx2[t], bullety2[t]); hits = hits + 1; } } } t = t + 1; } return(hit); } function spawnenemies(spawnx, spawny, spawndirection, type) { enemychance = 70; if (countenemies() < 3) { if (Math.floor(Math.random() * enemychance) == 0) { if (type == 0) { createenemyA(spawnx, spawny, spawndirection, true, false); } if (type == 1) { createenemyB(spawnx, spawny, spawndirection, true, false); } if (type == 2) { createenemyC(spawnx, spawny, spawndirection, true, false); } } } } function spawnpickups(spawnx, spawny) { itemchance = 300; if (countpickups() == 0) { if (Math.floor(Math.random() * itemchance) == 0) { item = []; if (_root.game0.player0.hasSMG == true) { item[0] = ((maxSMGammo - _root.game0.player0.SMGammo) / maxSMGammo) * 2; } else { item[0] = 0; } if (_root.game0.player0.hasrifle == true) { item[1] = ((maxrifleammo - _root.game0.player0.rifleammo) / maxrifleammo) * 2; } else { item[1] = 0; } if (_root.game0.player0.haspistol == true) { item[2] = ((maxpistolammo - _root.game0.player0.pistolammo) / maxpistolammo) * 2; } else { item[2] = 0; } if (_root.game0.player0.hasshotgun == true) { item[3] = ((maxshotgunammo - _root.game0.player0.shotgunammo) / maxshotgunammo) * 2; } else { item[3] = 0; } item[4] = (_root.game0.player0.damage / playerhealth) * 3; chance = -1; highestchance = 1; z = 0; while (z < 5) { if (item[z] > highestchance) { chance = z; highestchance = item[z]; } z = z + 1; } if (chance == 0) { createSMGammo(spawnx, spawny, true); } if (chance == 1) { createrifleammo(spawnx, spawny, true); } if (chance == 2) { createpistolammo(spawnx, spawny, true); } if (chance == 3) { createshotgunammo(spawnx, spawny, true); } if (chance == 4) { createhealth(spawnx, spawny, true); } if (chance != -1) { physicspush(spawnx, spawny, 16, Math.random() * 360, Math.random() * 1.5); teleportsparks(spawnx, spawny); } } } } function spawnweapons(spawnx, spawny) { spawnfacedirection = Math.floor(Math.random() * 2); spawnpointdirection = Math.random() * 360; weaponchance = 500; if (countweapons() == 0) { if (Math.floor(Math.random() * weaponchance) == 0) { chance = Math.floor(Math.random() * 5); if (chance == 0) { createpistol(spawnx, spawny, spawnfacedirection, spawnpointdirection, true, -1); } if (chance == 1) { createrifle(spawnx, spawny, spawnfacedirection, spawnpointdirection, true, -1); } if (chance == 2) { createshotgun(spawnx, spawny, spawnfacedirection, spawnpointdirection, true, -1); } if (chance == 3) { createSMG(spawnx, spawny, spawnfacedirection, spawnpointdirection, true, -1); } if (chance == 4) { creategrenadeammo(spawnx, spawny, true); } physicspush(spawnx, spawny, 16, Math.random() * 360, Math.random() * 1.5); teleportsparks(spawnx, spawny); } } } function createkillzone(x1, y1, x2, y2) { killzonex1[killzones] = x1; killzoney1[killzones] = y1; killzonex2[killzones] = x2; killzoney2[killzones] = y2; killzoneactive[killzones] = true; killzones = killzones + 1; } function createdamagezone(x1, y1, x2, y2, damage) { damagezonedamage[damagezones] = damage; damagezonex1[damagezones] = x1; damagezoney1[damagezones] = y1; damagezonex2[damagezones] = x2; damagezoney2[damagezones] = y2; damagezoneactive[damagezones] = true; damagezones = damagezones + 1; } function createwinzone(x1, y1, x2, y2) { winzonex1[winzones] = x1; winzoney1[winzones] = y1; winzonex2[winzones] = x2; winzoney2[winzones] = y2; winzoneactive[winzones] = true; winzones = winzones + 1; } function createnode(x, y) { nodex[nodes] = x; nodey[nodes] = y; nodeactive[nodes] = true; nodes = nodes + 1; } function countcorpses() { countedcorpses = 0; z = 0; while (z < corpses) { if (_root.game0["corpse" + z].active == true) { countedcorpses = countedcorpses + 1; } z = z + 1; } return(countedcorpses); } function countweapons() { weapons = 0; z = 0; while (z < rifles) { if (_root.game0["rifle" + z].active == true) { weapons = weapons + 1; } z = z + 1; } z = 0; while (z < shotguns) { if (_root.game0["shotgun" + z].active == true) { weapons = weapons + 1; } z = z + 1; } z = 0; while (z < pistols) { if (_root.game0["pistol" + z].active == true) { weapons = weapons + 1; } z = z + 1; } z = 0; while (z < SMGs) { if (_root.game0["SMG" + z].active == true) { weapons = weapons + 1; } z = z + 1; } z = 0; while (z < grenadeammos) { if (_root.game0["grenadeammo" + z].active == true) { weapons = weapons + 1; } z = z + 1; } return(weapons); } function countpickups() { pickups = 0; z = 0; while (z < rifleammos) { if (_root.game0["rifleammo" + z].active == true) { pickups = pickups + 1; } z = z + 1; } z = 0; while (z < shotgunammos) { if (_root.game0["shotgunammo" + z].active == true) { pickups = pickups + 1; } z = z + 1; } z = 0; while (z < pistolammos) { if (_root.game0["pistolammo" + z].active == true) { pickups = pickups + 1; } z = z + 1; } z = 0; while (z < SMGammos) { if (_root.game0["SMGammo" + z].active == true) { pickups = pickups + 1; } z = z + 1; } z = 0; while (z < grenadeammos) { if (_root.game0["grenadeammo" + z].active == true) { pickups = pickups + 1; } z = z + 1; } z = 0; while (z < healths) { if (_root.game0["health" + z].active == true) { pickups = pickups + 1; } z = z + 1; } return(pickups); } function countenemies() { enemies = 0; z = 0; while (z < enemyAs) { if (_root.game0["enemyA" + z].active == true) { enemies = enemies + 1; } z = z + 1; } z = 0; while (z < enemyBs) { if (_root.game0["enemyB" + z].active == true) { enemies = enemies + 1; } z = z + 1; } z = 0; while (z < enemyCs) { if (_root.game0["enemyC" + z].active == true) { enemies = enemies + 1; } z = z + 1; } return(enemies); } function checknode(x, y) { currentnode = -1; found = false; z = 0; while (z < nodes) { if (nodeactive[z] == true) { if (approxdistance(x, y, nodex[z], nodey[z]) < noderadius) { found = true; currentnode = z; z = nodes + 1; } } z = z + 1; } return(found); } function getplayerinfo() { playerweapon = _root.game0.player0.weapon; playerdamage = _root.game0.player0.damage; playerrifleammo = _root.game0.player0.rifleammo; playerhasrifle = _root.game0.player0.hasrifle; playerpistolammo = _root.game0.player0.pistolammo; playerhaspistol = _root.game0.player0.haspistol; playergrenadeammo = _root.game0.player0.grenadeammo; playerhasgrenade = _root.game0.player0.hasgrenade; playershotgunammo = _root.game0.player0.shotgunammo; playerhasshotgun = _root.game0.player0.hasshotgun; playerSMGammo = _root.game0.player0.SMGammo; playerhasSMG = _root.game0.player0.hasSMG; playerhasshovel = _root.game0.player0.hasshovel; } function restoreplayerinfo() { _root.game0.player0.weapon = playerweapon; _root.game0.player0.damage = playerdamage; _root.game0.player0.rifleammo = playerrifleammo; _root.game0.player0.hasrifle = playerhasrifle; _root.game0.player0.pistolammo = playerpistolammo; _root.game0.player0.haspistol = playerhaspistol; _root.game0.player0.grenadeammo = playergrenadeammo; _root.game0.player0.hasgrenade = playerhasgrenade; _root.game0.player0.shotgunammo = playershotgunammo; _root.game0.player0.hasshotgun = playerhasshotgun; _root.game0.player0.SMGammo = playerSMGammo; _root.game0.player0.hasSMG = playerhasSMG; _root.game0.player0.hasshovel = playerhasshovel; } function loadmap(mapnum) { wait = -5; isplayer = false; if (_root.game0.player0.active == true) { isplayer = true; getplayerinfo(); } resetvariables(); inmap = true; mapnumber = mapnum; bool1 = false; bool2 = false; bool3 = false; bool4 = false; bool5 = false; bool6 = false; counter1 = 0; counter2 = 0; counter3 = 0; counter4 = 0; counter5 = 0; counter6 = 0; _root.game0.backdrop.active = true; _root.game0.backdrop._visible = true; _root.game0.background.active = true; _root.game0.background._visible = true; _root.game0.foreground.active = true; _root.game0.foreground._visible = true; if (mapnum == 1) { startfog(); _root.game0.backdrop.frame = 0; _root.game0.background.frame = 0; _root.game0.foreground.frame = 0; createplayer(20, 208, 0); createcollisionline(-155, 244, 155, 268); createcollisionline(155, 268, 342, 245); createcollisionline(342, 245, 466, 264); createcollisionline(466, 264, 734, 248); messagetextdelay = 90; messagestring = "The Cemetary Gates"; } if (mapnum == 2) { startfog(); startfog(); _root.game0.backdrop.frame = 0; _root.game0.background.frame = 1; _root.game0.foreground.frame = 1; createplayer(20, 203, 0); createcollisionline(-210, 211, 210, 267); createcollisionline(210, 267, 420, 229); createcollisionline(420, 229, 780, 289); _root.game0.collisionline2.active = false; createcrow(610, 200, 1, 1); createcorpse(202, 210, true, -1, 0); _root.game0.ragdoll0.ignorecollisions = true; _root.game0.corpse0.fade = false; createchain(195, 161, false, true, 202, 220, true, false, true, 2); messagetextdelay = 90; messagestring = "Further Into the Cemetary"; } if (mapnum == 3) { startfog(); _root.game0.backdrop.frame = 0; _root.game0.background.frame = 2; _root.game0.foreground.frame = 2; createplayer(20, 203, 0); createcollisionline(-196, 223, 196, 267); createcollisionline(196, 267, 395, 248); createcollisionline(395, 248, 535, 267); createcollisionline(535, 267, 730, 228); createcrow(347, 167, 1, 0); messagetextdelay = 90; messagestring = "Mausoleum"; } if (mapnum == 4) { startfog(); _root.game0.backdrop.frame = 0; _root.game0.background.frame = 3; _root.game0.foreground.frame = 3; createplayer(20, 203, 0); createcollisionline(-184, 218, 184, 272); createcollisionline(184, 272, 417, 248); createcollisionline(417, 248, 473, 256); createcollisionline(473, 256, 488, 242); createcollisionline(488, 242, 800, 242); createcrow(339, 235, 1, 0); messagetextdelay = 90; messagestring = "Mansion Entrance"; } if (mapnum == 5) { _root.game0.backdrop.frame = 1; _root.game0.background.frame = 4; _root.game0.foreground.frame = 4; createplayer(20, 220, 0); createcollisionline(-200, 260, 305, 260); createcollisionline(305, 260, 425, 140); createcollisionline(425, 140, 800, 140); messagetextdelay = 90; messagestring = "The Mansion"; } if (mapnum == 6) { createcrate(194, 200, 0); _root.game0.backdrop.frame = 1; _root.game0.background.frame = 5; _root.game0.foreground.frame = 5; createplayer(20, 180, 0); createcollisionline(-200, 224, 800, 224); createfire(514, 210, 90000); createchain(418, 50, false, true, 450, 175, false, false, true, 1); createshotgun(194, 212, 0, 315, false, -1); messagetextdelay = 90; messagestring = "Further Into the Mansion"; } if (mapnum == 7) { _root.game0.backdrop.frame = 2; _root.game0.background.frame = 6; _root.game0.foreground.frame = 6; createrat(200, 150, 0, 0); createcollisionline(-200, 150, 800, 150); createchain(200, 0, false, true, 205, 115, false, false, true, 0); createbarrel(450, 130, 1); xposition = 50; yposition = -50; createlinedebris(xposition + 3, yposition + 10, 2); createboxdebris(xposition - 4, yposition + 8, 2); createpointdebris(xposition + 2, yposition + 23, 2); createpointdebris(xposition + 6, yposition + 16, 2); physicsexplosion(xposition, yposition, 50, 3); bigcrashsound.start(0, 1); i = 0; while (i < 7) { creategp(xposition - 20, yposition, (Math.random() * 10) + 15, (Math.random() * 40) + 250, (Math.random() * 3) + 1, 0.97, 0.08, (Math.random() * 40) + 40, 10263181, true); i = i + 1; } createplayer(50, -70, 0); messagetextdelay = 90; messagestring = "Sewers"; } if (mapnum == 8) { _root.game0.backdrop.frame = 2; _root.game0.background.frame = 7; _root.game0.foreground.frame = 7; createcollisionline(-200, 200, 182, 200); createcollisionline(182, 200, 224, 260); createcollisionline(224, 260, 375, 260); createcollisionline(375, 260, 417, 200); createcollisionline(417, 200, 800, 200); createwaterpool(190, 240, 220, 20, 24, 0.25, 0.9, 2, 0.05, 6982733, 40); createhitzone(300, 140, 20); createplayer(20, 160, 0); messagetextdelay = 90; messagestring = "Further Into the Sewers"; } if (mapnum == 9) { _root.game0.backdrop.frame = 2; _root.game0.background.frame = 9; _root.game0.foreground.frame = 9; createrat(250, 256, 1, 1); createcollisionline(-200, 256, 318, 256); createcollisionline(318, 256, 412, 192); createcollisionline(412, 192, 800, 192); createcollisionline(-20, 150, 60, 150); createcrate(500, 168, 0); creategrenadeammo(500, 180, false); createplayer(20, 220, 0); messagetextdelay = 90; messagestring = "Sewer Exit"; } if (mapnum == 10) { _root.game0.backdrop.frame = 3; _root.game0.background.frame = 10; _root.game0.foreground.frame = 10; startrain(); createcollisionline(-500, 250, 1100, 250); createcollisionline(233, 250, 264, 211); createcollisionline(264, 211, 310, 220); createcollisionline(310, 220, 330, 250); createplayer(20, 218, 0); messagestring = "City Streets"; hydrantspraysound.start(0, 500); } if (mapnum == 11) { _root.game0.backdrop.frame = 3; _root.game0.background.frame = 11; _root.game0.foreground.frame = 11; startrain(); createcollisionline(-500, 250, 1100, 250); createplayer(20, 218, 0); messagestring = "Lab Entrance"; createbarrel(120, 230, 0); createfire(298, 218, 90000); } if (mapnum == 12) { _root.game0.backdrop.frame = 4; _root.game0.background.frame = 12; _root.game0.foreground.frame = 12; createcollisionline(-500, 150, 1100, 150); createplayer(20, 118, 0); messagestring = "Lab"; createstring(450, -15, false, true, 350, -15, false, true, true, 0, 100); } if (mapnum == 13) { _root.game0.backdrop.frame = 4; _root.game0.background.frame = 13; _root.game0.foreground.frame = 13; createcollisionline(-500, 150, 1100, 150); createcollisionline(477, 0, 509.6, 54); createcollisionline(509.6, 54, 700, 54); createcollisionline(592, 0, 592, 150); createplayer(20, 118, 0); messagestring = "Further Into the Lab"; createfire(413, 139, 90000); createturretbase(555, 59, 270); createcrate(565, 125, 0); createSMG(560, 135, 0, 315, false, -1); createwalldoor(592, 54); } if (mapnum == 14) { _root.game0.backdrop.frame = 4; _root.game0.background.frame = 14; _root.game0.foreground.frame = 14; createcollisionline(-500, 150, 420, 150); createcollisionline(420, 150, 1200, 150); createcollisionline(300, 150, 300, 225); createcollisionline(420, 150, 420, 225); createcollisionline(300, 225, 420, 225); createplayer(20, 118, 0); messagestring = "???"; createcomputer(504, 126); createspinlight(323, 78); createfloordoor(296.4, 150); _root.game0.spinlight0._visible = false; createwaterpool(300, 175, 124, 50, 16, 0.15, 0.9, 1, 0.08, 1762862, 60); createdamagezone(300, 175, 420, 300, 5); } if (mapnum == 15) { _root.game0.backdrop.frame = 4; _root.game0.background.frame = 13; _root.game0.foreground.frame = 13; createcollisionline(-500, 150, 1100, 150); createfire(413, 139, 90000); createenemyC(-160, 118, 0, true, false); createenemyA(-120, 118, 0, true, false); createenemyC(-50, 118, 0, true, false); } if (mapnum == 16) { startrain(); _root.game0.backdrop.frame = 5; _root.game0.background.frame = 15; _root.game0.foreground.frame = 15; createcity(300, 250); } if (mapnum == 32) { debugmode = true; showphysicsobjects = true; _root.game0.backdrop.frame = 6; _root.game0.background.frame = 16; _root.game0.foreground.frame = 16; createcollisionline(4, -200, 4, 196); createcollisionline(4, 196, 104, 196); createcollisionline(104, 196, 104, 296); createcollisionline(104, 296, 204, 296); createcollisionline(204, 296, 204, 196); createcollisionline(204, 196, 304, 96); createcollisionline(304, 96, 504, 96); createcollisionline(504, 96, 596, -200); createcollisionline(4, 100, 154, 100); createcollisionline(4, 150, 154, 150); createcollisionline(154, 150, 154, 100); createwaterpool(104, 216, 100, 80, 16, 0.25, 0.9, 2, 0.05, 8156614, 50); createline(180, 50, 200, 75, 0.985, g, 0.8, false, -1, false); createragdoll(280, 50, 0.99, g, 0.6, false, -1, false); createpoint(380, 50, 0.98, g, 0.7, false, -1, false); createbox(480, 50, 24, 0.975, g, 0.5, false, -1, false); createrope(230, 50, false, true, 230, 120, false, false, 7, 10, true, 0.98, g, 0.3, false, -1, true); createrope(40, 50, false, false, 140, 50, false, false, 10, 10, false, 0.98, g, 0.5, false, -1, false); } if (isplayer == true) { restoreplayerinfo(); getplayerinfo(); } lowestframerate = 30; wait = 0; } function resetvariables() { wateraffectors = 0; ps = 0; l = 0; while (l < drawnlines) { _root.game0["drawnline" + l].active = false; _root.game0["drawnline" + l]._visible = false; l = l + 1; } drawnlines = 0; l = 0; while (l < gps) { _root.game0["gp" + l].removeMovieClip(); l = l + 1; } gps = 0; l = 0; while (l < objectlines) { _root.game0["objectline" + l].active = false; _root.game0["objectline" + l]._visible = false; l = l + 1; } objectlines = 0; l = 0; while (l < points) { _root.game0["point" + l].active = false; _root.game0["point" + l]._visible = false; l = l + 1; } points = 0; l = 0; while (l < lines) { _root.game0["line" + l].active = false; _root.game0["line" + l]._visible = false; l = l + 1; } lines = 0; l = 0; while (l < ropes) { _root.game0["rope" + l].active = false; _root.game0["rope" + l]._visible = false; l = l + 1; } ropes = 0; l = 0; while (l < collisionlines) { _root.game0["collisionline" + l].active = false; _root.game0["collisionline" + l]._visible = false; l = l + 1; } collisionlines = 0; l = 0; while (l < boxes) { _root.game0["box" + l].active = false; _root.game0["box" + l]._visible = false; l = l + 1; } boxes = 0; l = 0; while (l < waterpools) { _root.game0["waterpool" + l].active = false; _root.game0["waterpool" + l]._visible = false; l = l + 1; } waterpools = 0; l = 0; while (l < ragdolls) { _root.game0["ragdoll" + l].active = false; _root.game0["ragdoll" + l]._visible = false; l = l + 1; } ragdolls = 0; l = 0; while (l < bodyAs) { _root.game0["bodyA" + l].active = false; _root.game0["bodyA" + l]._visible = false; l = l + 1; } bodyAs = 0; l = 0; while (l < bodyBs) { _root.game0["bodyB" + l].active = false; _root.game0["bodyB" + l]._visible = false; l = l + 1; } bodyBs = 0; l = 0; while (l < bodyCs) { _root.game0["bodyC" + l].active = false; _root.game0["bodyC" + l]._visible = false; l = l + 1; } bodyCs = 0; l = 0; while (l < bodyDs) { _root.game0["bodyD" + l].active = false; _root.game0["bodyD" + l]._visible = false; l = l + 1; } bodyDs = 0; l = 0; while (l < torsos) { _root.game0["torso" + l].active = false; _root.game0["torso" + l]._visible = false; l = l + 1; } torsos = 0; l = 0; while (l < upperlegs) { _root.game0["upperleg" + l].active = false; _root.game0["upperleg" + l]._visible = false; l = l + 1; } upperlegs = 0; l = 0; while (l < lowerlegs) { _root.game0["lowerleg" + l].active = false; _root.game0["lowerleg" + l]._visible = false; l = l + 1; } lowerlegs = 0; l = 0; while (l < upperarms) { _root.game0["upperarm" + l].active = false; _root.game0["upperarm" + l]._visible = false; l = l + 1; } upperarms = 0; l = 0; while (l < lowerarms) { _root.game0["lowerarm" + l].active = false; _root.game0["lowerarm" + l]._visible = false; l = l + 1; } lowerarms = 0; l = 0; while (l < heads) { _root.game0["head" + l].active = false; _root.game0["head" + l]._visible = false; l = l + 1; } heads = 0; l = 0; while (l < legAs) { _root.game0["legA" + l].active = false; _root.game0["legA" + l]._visible = false; l = l + 1; } legAs = 0; l = 0; while (l < legBs) { _root.game0["legB" + l].active = false; _root.game0["legB" + l]._visible = false; l = l + 1; } legBs = 0; l = 0; while (l < legCs) { _root.game0["legC" + l].active = false; _root.game0["legC" + l]._visible = false; l = l + 1; } legCs = 0; l = 0; while (l < legDs) { _root.game0["legD" + l].active = false; _root.game0["legD" + l]._visible = false; l = l + 1; } legDs = 0; l = 0; while (l < enemyAs) { _root.game0["enemyA" + l].active = false; _root.game0["enemyA" + l]._visible = false; l = l + 1; } enemyAs = 0; l = 0; while (l < enemyBs) { _root.game0["enemyB" + l].active = false; _root.game0["enemyB" + l]._visible = false; l = l + 1; } enemyBs = 0; l = 0; while (l < enemyCs) { _root.game0["enemyC" + l].active = false; _root.game0["enemyC" + l]._visible = false; l = l + 1; } enemyCs = 0; l = 0; while (l < players) { _root.game0["player" + l].active = false; _root.game0["player" + l]._visible = false; l = l + 1; } players = 0; l = 0; while (l < turretbarrels) { _root.game0["turretbarrel" + l].active = false; _root.game0["turretbarrel" + l]._visible = false; l = l + 1; } turretbarrels = 0; l = 0; while (l < turretbases) { _root.game0["turretbase" + l].active = false; _root.game0["turretbase" + l]._visible = false; l = l + 1; } turretbases = 0; stoprain(); stopfog(); startfade(); fires = 0; _root.game0.berserkscreen.active = false; _root.game0.berserkscreen._visible = false; l = 0; while (l < healths) { _root.game0["health" + l].active = false; _root.game0["health" + l]._visible = false; l = l + 1; } healths = 0; l = 0; while (l < shotgunammos) { _root.game0["shotgunammo" + l].active = false; _root.game0["shotgunammo" + l]._visible = false; l = l + 1; } shotgunammos = 0; l = 0; while (l < SMGammos) { _root.game0["SMGammo" + l].active = false; _root.game0["SMGammo" + l]._visible = false; l = l + 1; } SMGammos = 0; l = 0; while (l < pistolammos) { _root.game0["pistolammo" + l].active = false; _root.game0["pistolammo" + l]._visible = false; l = l + 1; } pistolammos = 0; l = 0; while (l < grenadeammos) { _root.game0["grenadeammo" + l].active = false; _root.game0["grenadeammo" + l]._visible = false; l = l + 1; } grenadeammos = 0; l = 0; while (l < rifleammos) { _root.game0["rifleammo" + l].active = false; _root.game0["rifleammo" + l]._visible = false; l = l + 1; } rifleammos = 0; l = 0; while (l < rifles) { _root.game0["rifle" + l].active = false; _root.game0["rifle" + l]._visible = false; l = l + 1; } rifles = 0; l = 0; while (l < pistols) { _root.game0["pistol" + l].active = false; _root.game0["pistol" + l]._visible = false; l = l + 1; } pistols = 0; l = 0; while (l < shotguns) { _root.game0["shotgun" + l].active = false; _root.game0["shotgun" + l]._visible = false; l = l + 1; } shotguns = 0; l = 0; while (l < SMGs) { _root.game0["SMG" + l].active = false; _root.game0["SMG" + l]._visible = false; l = l + 1; } SMGs = 0; l = 0; while (l < shovels) { _root.game0["shovel" + l].active = false; _root.game0["shovel" + l]._visible = false; l = l + 1; } shovels = 0; inmap = false; blasts = 0; bullets = 0; l = 0; while (l < hitzones) { hitzoneactive[l] = false; l = l + 1; } l = 0; while (l < grenades) { _root.game0["grenade" + l].active = false; _root.game0["grenade" + l]._visible = false; l = l + 1; } grenades = 0; l = 0; while (l < pointdebriss) { _root.game0["pointdebris" + l].active = false; _root.game0["pointdebris" + l]._visible = false; l = l + 1; } pointdebriss = 0; l = 0; while (l < linedebriss) { _root.game0["linedebris" + l].active = false; _root.game0["linedebris" + l]._visible = false; l = l + 1; } linedebriss = 0; l = 0; while (l < boxdebriss) { _root.game0["boxdebris" + l].active = false; _root.game0["boxdebris" + l]._visible = false; l = l + 1; } boxdebriss = 0; l = 0; while (l < bulletcasings) { _root.game0["bulletcasing" + l].active = false; _root.game0["bulletcasing" + l]._visible = false; l = l + 1; } bulletcasings = 0; l = 0; while (l < crows) { _root.game0["crow" + l].active = false; _root.game0["crow" + l]._visible = false; l = l + 1; } crows = 0; l = 0; while (l < crowwings) { _root.game0["crowwing" + l].active = false; _root.game0["crowwing" + l]._visible = false; l = l + 1; } crowwings = 0; l = 0; while (l < rats) { _root.game0["rat" + l].active = false; _root.game0["rat" + l]._visible = false; l = l + 1; } rats = 0; corpses = 0; l = 0; while (l < links) { _root.game0["link" + l].active = false; _root.game0["link" + l]._visible = false; l = l + 1; } links = 0; l = 0; while (l < chains) { _root.game0["chain" + l].active = false; _root.game0["chain" + l]._visible = false; l = l + 1; } chains = 0; l = 0; while (l < strings) { _root.game0["string" + l].active = false; _root.game0["string" + l]._visible = false; l = l + 1; } strings = 0; l = 0; while (l < barrels) { _root.game0["barrel" + l].active = false; _root.game0["barrel" + l]._visible = false; l = l + 1; } barrels = 0; l = 0; while (l < crates) { _root.game0["crate" + l].active = false; _root.game0["crate" + l]._visible = false; l = l + 1; } crates = 0; l = 0; while (l < spinlights) { _root.game0["spinlight" + l].active = false; _root.game0["spinlight" + l]._visible = false; l = l + 1; } spinlights = 0; l = 0; while (l < floordoors) { _root.game0["floordoor" + l].active = false; _root.game0["floordoor" + l]._visible = false; l = l + 1; } floordoors = 0; l = 0; while (l < walldoors) { _root.game0["walldoor" + l].active = false; _root.game0["walldoor" + l]._visible = false; l = l + 1; } walldoors = 0; l = 0; while (l < cities) { _root.game0["city" + l].active = false; _root.game0["city" + l]._visible = false; l = l + 1; } cities = 0; l = 0; while (l < computers) { _root.game0["computer" + l].active = false; _root.game0["computer" + l]._visible = false; l = l + 1; } computers = 0; stopAllSounds(); _root.game0.backdrop.active = false; _root.game0.backdrop._visible = false; _root.game0.background.active = false; _root.game0.background._visible = false; _root.game0.foreground.active = false; _root.game0.foreground._visible = false; nodes = 0; killzones = 0; damagezones = 0; winzones = 0; this._xscale = 100; this._yscale = 100; this._x = 0; this._y = 0; pickuptextdelay = 0; _root.pickuptext = ""; messagetextdelay = 0; _root.messagetext = ""; messagestring = ""; _root.ammotext = ""; _root.healthtext = ""; _root.fpstext = ""; inmap = false; deathcounter = 0; _root.game0.cursor.active = true; _root.game0.cursor._visible = true; } function gamecodepart1() { if (showphysicsobjects == true) { h = 0; while (h < collisionlines) { if (_root.game0["collisionline" + h].active == true) { _root.game0["collisionline" + h].clear(); _root.game0["collisionline" + h].lineStyle(1, physicsobjectcolor, 100); _root.game0["collisionline" + h].moveTo(0, 0); _root.game0["collisionline" + h].lineTo(_root.game0["collisionline" + h].x2 - _root.game0["collisionline" + h].x1, _root.game0["collisionline" + h].y2 - _root.game0["collisionline" + h].y1); } else { _root.game0["collisionline" + h]._visible = false; } h = h + 1; } } h = 0; while (h < waterpools) { if (_root.game0["waterpool" + h].active == true) { _root.game0["waterpool" + h].clear(); f = 1; while (f < (_root.game0["waterpool" + h].points - 2)) { if (Math.round(Math.random() * _root.game0["waterpool" + h].windrandomness) == 0) { _root.game0["waterpool" + h].waterpvs[f] = _root.game0["waterpool" + h].waterpvs[f] + _root.game0["waterpool" + h].windamount; } f = f + 1; } k = 0; while (k < wateraffectors) { if (wateraffectoractive[k] == true) { if (rectcollide(wateraffectorx[k] - wateraffectorradius[k], wateraffectory[k] - wateraffectorradius[k], wateraffectorx[k] + wateraffectorradius[k], wateraffectory[k] + wateraffectorradius[k], _root.game0["waterpool" + h]._x, _root.game0["waterpool" + h]._y - (_root.game0["waterpool" + h].depth / 3), _root.game0["waterpool" + h]._x + _root.game0["waterpool" + h].xwidth, _root.game0["waterpool" + h]._y + (_root.game0["waterpool" + h].depth / 3)) == true) { f = 1; while (f < (_root.game0["waterpool" + h].points - 2)) { temporarydistance = blockdistance(wateraffectorx[k], wateraffectory[k], _root.game0["waterpool" + h].waterpx[f], _root.game0["waterpool" + h].waterpy[f]); if (temporarydistance <= wateraffectorradius[k]) { _root.game0["waterpool" + h].waterpvs[f] = (wateraffectory[k] - wateraffectorly[k]) * 1.41; } f = f + 1; } } } k = k + 1; } f = 1; while (f < (_root.game0["waterpool" + h].points - 1)) { _root.game0["waterpool" + h].waterpy[f] = _root.game0["waterpool" + h].waterpy[f] + _root.game0["waterpool" + h].waterpvs[f]; if (_root.game0["waterpool" + h].waterpy[f] > _root.game0["waterpool" + h]._y) { _root.game0["waterpool" + h].waterpvs[f] = _root.game0["waterpool" + h].waterpvs[f] - _root.game0["waterpool" + h].g; } if (_root.game0["waterpool" + h].waterpy[f] < _root.game0["waterpool" + h]._y) { _root.game0["waterpool" + h].waterpvs[f] = _root.game0["waterpool" + h].waterpvs[f] + _root.game0["waterpool" + h].g; } if (_root.game0["waterpool" + h].waterpy[f] > (_root.game0["waterpool" + h]._y + _root.game0["waterpool" + h].depth)) { _root.game0["waterpool" + h].waterpy[f] = _root.game0["waterpool" + h]._y + _root.game0["waterpool" + h].depth; } if (_root.game0["waterpool" + h].waterpy[f] < (_root.game0["waterpool" + h]._y - _root.game0["waterpool" + h].depth)) { _root.game0["waterpool" + h].waterpy[f] = _root.game0["waterpool" + h]._y - _root.game0["waterpool" + h].depth; } f = f + 1; } f = 0; while (f < (_root.game0["waterpool" + h].points - 1)) { dx = _root.game0["waterpool" + h].waterpx[f + 1] - _root.game0["waterpool" + h].waterpx[f]; dy = _root.game0["waterpool" + h].waterpy[f + 1] - _root.game0["waterpool" + h].waterpy[f]; d1 = Math.abs(dx) + Math.abs(dy); d2 = (0.5 * (d1 - _root.game0["waterpool" + h].pointwidth)) / d1; dx = dx * d2; dy = dy * d2; _root.game0["waterpool" + h].waterpx[f] = _root.game0["waterpool" + h].waterpx[f] + dx; _root.game0["waterpool" + h].waterpy[f] = _root.game0["waterpool" + h].waterpy[f] + dy; _root.game0["waterpool" + h].waterpx[f + 1] = _root.game0["waterpool" + h].waterpx[f + 1] - dx; _root.game0["waterpool" + h].waterpy[f + 1] = _root.game0["waterpool" + h].waterpy[f + 1] - dy; f = f + 1; } _root.game0["waterpool" + h].waterpx[_root.game0["waterpool" + h].points - 1] = _root.game0["waterpool" + h]._x + _root.game0["waterpool" + h].xwidth; _root.game0["waterpool" + h].waterpx[0] = _root.game0["waterpool" + h]._x; _root.game0["waterpool" + h].waterpy[0] = _root.game0["waterpool" + h]._y; _root.game0["waterpool" + h].waterpy[_root.game0["waterpool" + h].points - 1] = _root.game0["waterpool" + h]._y; _root.game0["waterpool" + h].lineStyle(1, 0, 0); _root.game0["waterpool" + h].beginFill(_root.game0["waterpool" + h].watercolor, _root.game0["waterpool" + h].alpha); f = 0; _root.game0["waterpool" + h].moveTo(0, 0); while (f < (_root.game0["waterpool" + h].points - 1)) { _root.game0["waterpool" + h].lineTo(_root.game0["waterpool" + h].waterpx[f + 1] - _root.game0["waterpool" + h]._x, _root.game0["waterpool" + h].waterpy[f + 1] - _root.game0["waterpool" + h]._y); f = f + 1; } _root.game0["waterpool" + h].lineTo(_root.game0["waterpool" + h].waterpx[_root.game0["waterpool" + h].points - 1] - _root.game0["waterpool" + h]._x, (_root.game0["waterpool" + h].waterpy[0] + _root.game0["waterpool" + h].depth) - _root.game0["waterpool" + h]._y); _root.game0["waterpool" + h].lineTo(_root.game0["waterpool" + h].waterpx[0] - _root.game0["waterpool" + h]._x, (_root.game0["waterpool" + h].waterpy[0] + _root.game0["waterpool" + h].depth) - _root.game0["waterpool" + h]._y); _root.game0["waterpool" + h].endFill(); } else { _root.game0["waterpool" + h]._visible = false; } h = h + 1; } h = 0; while (h < boxes) { if (_root.game0["box" + h].active == true) { if (_root.game0["box" + h].atrest == false) { temporaryx = (px[_root.game0["box" + h].firstpnum] + px[_root.game0["box" + h].firstpnum + 2]) * 0.5; temporaryy = (py[_root.game0["box" + h].firstpnum] + py[_root.game0["box" + h].firstpnum + 2]) * 0.5; checkliquids = false; d = 0; while (d < waterpools) { if (_root.game0["waterpool" + d].active == true) { if (rectcollide(_root.game0["waterpool" + d]._x, _root.game0["waterpool" + d]._y, _root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth, _root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth, temporaryx - (_root.game0["box" + h].sidelength + safetydistance), temporaryy - (_root.game0["box" + h].sidelength + safetydistance), temporaryx + (_root.game0["box" + h].sidelength + safetydistance), temporaryy + (_root.game0["box" + h].sidelength + safetydistance)) == true) { checkliquids = true; d = waterpools + 1; } } d = d + 1; } z = _root.game0["box" + h].firstpnum; while (z < (_root.game0["box" + h].firstpnum + 4)) { pphysics(z, checkliquids); z = z + 1; } if (_root.game0["box" + h].ignorecollisions == false) { temporaryx = (px[_root.game0["box" + h].firstpnum] + px[_root.game0["box" + h].firstpnum + 2]) * 0.5; temporaryy = (py[_root.game0["box" + h].firstpnum] + py[_root.game0["box" + h].firstpnum + 2]) * 0.5; possiblelines = 0; j = 0; while (j < collisionlines) { if (_root.game0["collisionline" + j].active == true) { if (rectcollide(temporaryx - (_root.game0["box" + h].sidelength + safetydistance), temporaryy - (_root.game0["box" + h].sidelength + safetydistance), temporaryx + (_root.game0["box" + h].sidelength + safetydistance), temporaryy + (_root.game0["box" + h].sidelength + safetydistance), _root.game0["collisionline" + j].x1, _root.game0["collisionline" + j].y1, _root.game0["collisionline" + j].x2, _root.game0["collisionline" + j].y2) == true) { possiblelinenum[possiblelines] = j; possiblelines = possiblelines + 1; } } j = j + 1; } z = _root.game0["box" + h].firstpnum; while (z < (_root.game0["box" + h].firstpnum + 4)) { pcollisions(z); z = z + 1; } } else { z = _root.game0["box" + h].firstpnum; while (z < (_root.game0["box" + h].firstpnum + 4)) { j = 0; while (j < objectlines) { if (_root.game0["objectline" + j].active == true) { if (pointcollide(px[z], py[z], _root.game0["objectline" + j]._x - (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y, _root.game0["objectline" + j]._x + (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y + _root.game0["objectline" + j].yheight) == true) { bouncetype = 2; px[z] = px[z] + (_root.game0["objectline" + j].dx * characterpushratio); py[z] = py[z] + (_root.game0["objectline" + j].dy * characterpushratio); } } j = j + 1; } z = z + 1; } } verlet(_root.game0["box" + h].firstpnum, _root.game0["box" + h].firstpnum + 1, _root.game0["box" + h].sidelength); verlet(_root.game0["box" + h].firstpnum + 1, _root.game0["box" + h].firstpnum + 2, _root.game0["box" + h].sidelength); verlet(_root.game0["box" + h].firstpnum + 2, _root.game0["box" + h].firstpnum + 3, _root.game0["box" + h].sidelength); verlet(_root.game0["box" + h].firstpnum + 3, _root.game0["box" + h].firstpnum, _root.game0["box" + h].sidelength); verlet(_root.game0["box" + h].firstpnum, _root.game0["box" + h].firstpnum + 2, _root.game0["box" + h].sidelength * 1.41); verlet(_root.game0["box" + h].firstpnum + 1, _root.game0["box" + h].firstpnum + 3, _root.game0["box" + h].sidelength * 1.41); wateraffectorly[_root.game0["box" + h].wateraffectornum] = wateraffectory[_root.game0["box" + h].wateraffectornum]; wateraffectorx[_root.game0["box" + h].wateraffectornum] = (px[_root.game0["box" + h].firstpnum] + px[_root.game0["box" + h].firstpnum + 2]) * 0.5; wateraffectory[_root.game0["box" + h].wateraffectornum] = (py[_root.game0["box" + h].firstpnum] + py[_root.game0["box" + h].firstpnum + 2]) * 0.5; if (_root.game0["box" + h].ignorecollisions == false) { tempdx = -_root.game0["box" + h]._x; tempdy = -_root.game0["box" + h]._y; _root.game0["box" + h]._x = (px[_root.game0["box" + h].firstpnum] + px[_root.game0["box" + h].firstpnum + 2]) * 0.5; _root.game0["box" + h]._y = (py[_root.game0["box" + h].firstpnum] + py[_root.game0["box" + h].firstpnum + 2]) * 0.5; tempdx = Math.abs(tempdx + _root.game0["box" + h]._x); tempdy = Math.abs(tempdy + _root.game0["box" + h]._y); if ((tempdx <= maxrestdelta) && (tempdy <= maxrestdelta)) { _root.game0["box" + h].restcounter = _root.game0["box" + h].restcounter + 1; } else { _root.game0["box" + h].restcounter = 0; } if (_root.game0["box" + h].restcounter >= resttime) { wateraffectoractive[_root.game0["box" + h].wateraffectornum] = false; _root.game0["box" + h].atrest = true; s = _root.game0["box" + h].firstpnum; while (s < (_root.game0["box" + h].firstpnum + 4)) { pactive[s] = false; s = s + 1; } } } } else { _root.game0["box" + h]._x = (px[_root.game0["box" + h].firstpnum] + px[_root.game0["box" + h].firstpnum + 2]) * 0.5; _root.game0["box" + h]._y = (py[_root.game0["box" + h].firstpnum] + py[_root.game0["box" + h].firstpnum + 2]) * 0.5; } if (showphysicsobjects == true) { _root.game0["box" + h].clear(); _root.game0["box" + h].lineStyle(1, physicsobjectcolor, 100); _root.game0["box" + h].moveTo(px[_root.game0["box" + h].firstpnum] - _root.game0["box" + h]._x, py[_root.game0["box" + h].firstpnum] - _root.game0["box" + h]._y); _root.game0["box" + h].lineTo(px[_root.game0["box" + h].firstpnum + 1] - _root.game0["box" + h]._x, py[_root.game0["box" + h].firstpnum + 1] - _root.game0["box" + h]._y); _root.game0["box" + h].lineTo(px[_root.game0["box" + h].firstpnum + 2] - _root.game0["box" + h]._x, py[_root.game0["box" + h].firstpnum + 2] - _root.game0["box" + h]._y); _root.game0["box" + h].lineTo(px[_root.game0["box" + h].firstpnum + 3] - _root.game0["box" + h]._x, py[_root.game0["box" + h].firstpnum + 3] - _root.game0["box" + h]._y); _root.game0["box" + h].lineTo(px[_root.game0["box" + h].firstpnum + 0] - _root.game0["box" + h]._x, py[_root.game0["box" + h].firstpnum + 0] - _root.game0["box" + h]._y); } } else { _root.game0["box" + h]._visible = false; s = _root.game0["box" + h].firstpnum; while (s < (_root.game0["box" + h].firstpnum + 4)) { pactive[s] = false; s = s + 1; } wateraffectoractive[_root.game0["box" + h].wateraffectornum] = false; } h = h + 1; } h = 0; while (h < ragdolls) { if (_root.game0["ragdoll" + h].active == true) { if (_root.game0["ragdoll" + h].atrest == false) { temporaryx = (px[_root.game0["ragdoll" + h].firstpnum + 4] + px[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; temporaryy = (py[_root.game0["ragdoll" + h].firstpnum + 4] + py[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; checkliquids = false; d = 0; while (d < waterpools) { if (_root.game0["waterpool" + d].active == true) { if (rectcollide(_root.game0["waterpool" + d]._x, _root.game0["waterpool" + d]._y, _root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth, _root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth, temporaryx - (ragdollheight + safetydistance), temporaryy - (ragdollheight + safetydistance), temporaryx + (ragdollheight + safetydistance), temporaryy + (ragdollheight + safetydistance)) == true) { checkliquids = true; d = waterpools + 1; } } d = d + 1; } olddirection = directiontopoint(px[_root.game0["ragdoll" + h].firstpnum + 2], py[_root.game0["ragdoll" + h].firstpnum + 2], px[_root.game0["ragdoll" + h].firstpnum + 3], py[_root.game0["ragdoll" + h].firstpnum + 3]); z = _root.game0["ragdoll" + h].firstpnum; while (z < (_root.game0["ragdoll" + h].firstpnum + 14)) { pphysics(z, checkliquids); z = z + 1; } if (_root.game0["ragdoll" + h].ignorecollisions == false) { temporaryx = (px[_root.game0["ragdoll" + h].firstpnum + 4] + px[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; temporaryy = (py[_root.game0["ragdoll" + h].firstpnum + 4] + py[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; possiblelines = 0; j = 0; while (j < collisionlines) { if (_root.game0["collisionline" + j].active == true) { if (rectcollide(temporaryx - (ragdollheight + safetydistance), temporaryy - (ragdollheight + safetydistance), temporaryx + (ragdollheight + safetydistance), temporaryy + (ragdollheight + safetydistance), _root.game0["collisionline" + j].x1, _root.game0["collisionline" + j].y1, _root.game0["collisionline" + j].x2, _root.game0["collisionline" + j].y2) == true) { possiblelinenum[possiblelines] = j; possiblelines = possiblelines + 1; } } j = j + 1; } z = _root.game0["ragdoll" + h].firstpnum; while (z < (_root.game0["ragdoll" + h].firstpnum + 14)) { pcollisions(z); z = z + 1; } } else { z = _root.game0["ragdoll" + h].firstpnum; while (z < (_root.game0["ragdoll" + h].firstpnum + 14)) { j = 0; while (j < objectlines) { if (_root.game0["objectline" + j].active == true) { if (pointcollide(px[z], py[z], _root.game0["objectline" + j]._x - (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y, _root.game0["objectline" + j]._x + (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y + _root.game0["objectline" + j].yheight) == true) { bouncetype = 2; px[z] = px[z] + (_root.game0["objectline" + j].dx * characterpushratio); py[z] = py[z] + (_root.game0["objectline" + j].dy * characterpushratio); } } j = j + 1; } z = z + 1; } } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum], py[_root.game0["ragdoll" + h].firstpnum], px[_root.game0["ragdoll" + h].firstpnum + 5], py[_root.game0["ragdoll" + h].firstpnum + 5]) < neckconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 0, _root.game0["ragdoll" + h].firstpnum + 5, neckconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum], py[_root.game0["ragdoll" + h].firstpnum], px[_root.game0["ragdoll" + h].firstpnum + 4], py[_root.game0["ragdoll" + h].firstpnum + 4]) < neckconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 0, _root.game0["ragdoll" + h].firstpnum + 4, neckconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 11], py[_root.game0["ragdoll" + h].firstpnum + 11], px[_root.game0["ragdoll" + h].firstpnum + 1], py[_root.game0["ragdoll" + h].firstpnum + 1]) < upperarmconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 11, _root.game0["ragdoll" + h].firstpnum + 1, upperarmconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 13], py[_root.game0["ragdoll" + h].firstpnum + 13], px[_root.game0["ragdoll" + h].firstpnum + 3], py[_root.game0["ragdoll" + h].firstpnum + 3]) < lowerarmconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 13, _root.game0["ragdoll" + h].firstpnum + 3, lowerarmconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 10], py[_root.game0["ragdoll" + h].firstpnum + 10], px[_root.game0["ragdoll" + h].firstpnum + 1], py[_root.game0["ragdoll" + h].firstpnum + 1]) < upperarmconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 10, _root.game0["ragdoll" + h].firstpnum + 1, upperarmconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 12], py[_root.game0["ragdoll" + h].firstpnum + 12], px[_root.game0["ragdoll" + h].firstpnum + 2], py[_root.game0["ragdoll" + h].firstpnum + 2]) < lowerarmconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 12, _root.game0["ragdoll" + h].firstpnum + 2, lowerarmconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 8], py[_root.game0["ragdoll" + h].firstpnum + 8], px[_root.game0["ragdoll" + h].firstpnum + 4], py[_root.game0["ragdoll" + h].firstpnum + 4]) < lowerlegconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 8, _root.game0["ragdoll" + h].firstpnum + 4, lowerlegconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 9], py[_root.game0["ragdoll" + h].firstpnum + 9], px[_root.game0["ragdoll" + h].firstpnum + 5], py[_root.game0["ragdoll" + h].firstpnum + 5]) < lowerlegconstraint) { verlet(_root.game0["ragdoll" + h].firstpnum + 9, _root.game0["ragdoll" + h].firstpnum + 5, lowerlegconstraint); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 7], py[_root.game0["ragdoll" + h].firstpnum + 7], px[_root.game0["ragdoll" + h].firstpnum + 1], py[_root.game0["ragdoll" + h].firstpnum + 1]) < upperlegconstraint2) { verlet(_root.game0["ragdoll" + h].firstpnum + 7, _root.game0["ragdoll" + h].firstpnum + 1, upperlegconstraint2); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 7], py[_root.game0["ragdoll" + h].firstpnum + 7], px[_root.game0["ragdoll" + h].firstpnum + 2], py[_root.game0["ragdoll" + h].firstpnum + 2]) < upperlegconstraint1) { verlet(_root.game0["ragdoll" + h].firstpnum + 7, _root.game0["ragdoll" + h].firstpnum + 2, upperlegconstraint1); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 6], py[_root.game0["ragdoll" + h].firstpnum + 6], px[_root.game0["ragdoll" + h].firstpnum + 1], py[_root.game0["ragdoll" + h].firstpnum + 1]) < upperlegconstraint2) { verlet(_root.game0["ragdoll" + h].firstpnum + 6, _root.game0["ragdoll" + h].firstpnum + 1, upperlegconstraint2); } if (approxdistance2(px[_root.game0["ragdoll" + h].firstpnum + 6], py[_root.game0["ragdoll" + h].firstpnum + 6], px[_root.game0["ragdoll" + h].firstpnum + 3], py[_root.game0["ragdoll" + h].firstpnum + 3]) < upperlegconstraint1) { verlet(_root.game0["ragdoll" + h].firstpnum + 6, _root.game0["ragdoll" + h].firstpnum + 3, upperlegconstraint1); } verlet(_root.game0["ragdoll" + h].firstpnum, _root.game0["ragdoll" + h].firstpnum + 1, necklength); verlet(_root.game0["ragdoll" + h].firstpnum + 1, _root.game0["ragdoll" + h].firstpnum + 2, chestlength); verlet(_root.game0["ragdoll" + h].firstpnum + 2, _root.game0["ragdoll" + h].firstpnum + 4, chestlength); verlet(_root.game0["ragdoll" + h].firstpnum + 4, _root.game0["ragdoll" + h].firstpnum + 5, chestlength); verlet(_root.game0["ragdoll" + h].firstpnum + 3, _root.game0["ragdoll" + h].firstpnum + 5, chestlength); verlet(_root.game0["ragdoll" + h].firstpnum + 1, _root.game0["ragdoll" + h].firstpnum + 3, chestlength); verlet(_root.game0["ragdoll" + h].firstpnum + 3, _root.game0["ragdoll" + h].firstpnum + 2, chestconstraint); verlet(_root.game0["ragdoll" + h].firstpnum + 1, _root.game0["ragdoll" + h].firstpnum + 5, chestconstraint); verlet(_root.game0["ragdoll" + h].firstpnum + 1, _root.game0["ragdoll" + h].firstpnum + 4, chestconstraint); verlet(_root.game0["ragdoll" + h].firstpnum + 2, _root.game0["ragdoll" + h].firstpnum + 5, chestconstraint); verlet(_root.game0["ragdoll" + h].firstpnum + 3, _root.game0["ragdoll" + h].firstpnum + 4, chestconstraint); verlet(_root.game0["ragdoll" + h].firstpnum + 3, _root.game0["ragdoll" + h].firstpnum + 11, upperarmlength); verlet(_root.game0["ragdoll" + h].firstpnum + 11, _root.game0["ragdoll" + h].firstpnum + 13, lowerarmlength); verlet(_root.game0["ragdoll" + h].firstpnum + 2, _root.game0["ragdoll" + h].firstpnum + 10, upperarmlength); verlet(_root.game0["ragdoll" + h].firstpnum + 10, _root.game0["ragdoll" + h].firstpnum + 12, lowerarmlength); verlet(_root.game0["ragdoll" + h].firstpnum + 5, _root.game0["ragdoll" + h].firstpnum + 7, upperleglength); verlet(_root.game0["ragdoll" + h].firstpnum + 7, _root.game0["ragdoll" + h].firstpnum + 9, lowerleglength); verlet(_root.game0["ragdoll" + h].firstpnum + 4, _root.game0["ragdoll" + h].firstpnum + 6, upperleglength); verlet(_root.game0["ragdoll" + h].firstpnum + 6, _root.game0["ragdoll" + h].firstpnum + 8, lowerleglength); currentdirection = directiontopoint(px[_root.game0["ragdoll" + h].firstpnum + 2], py[_root.game0["ragdoll" + h].firstpnum + 2], px[_root.game0["ragdoll" + h].firstpnum + 3], py[_root.game0["ragdoll" + h].firstpnum + 3]); if (Math.abs(finddirection(currentdirection, olddirection)) >= 45) { _root.game0["ragdoll" + h].deformed = true; } wateraffectorly[_root.game0["ragdoll" + h].wateraffectornum] = wateraffectory[_root.game0["ragdoll" + h].wateraffectornum]; wateraffectorx[_root.game0["ragdoll" + h].wateraffectornum] = (px[_root.game0["ragdoll" + h].firstpnum + 4] + px[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; wateraffectory[_root.game0["ragdoll" + h].wateraffectornum] = (py[_root.game0["ragdoll" + h].firstpnum + 4] + py[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; if (_root.game0["ragdoll" + h].ignorecollisions == false) { tempdx = -_root.game0["ragdoll" + h]._x; tempdy = -_root.game0["ragdoll" + h]._y; _root.game0["ragdoll" + h]._x = (px[_root.game0["ragdoll" + h].firstpnum + 4] + px[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; _root.game0["ragdoll" + h]._y = (py[_root.game0["ragdoll" + h].firstpnum + 4] + py[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; tempdx = Math.abs(tempdx + _root.game0["ragdoll" + h]._x); tempdy = Math.abs(tempdy + _root.game0["ragdoll" + h]._y); if ((tempdx <= maxrestdelta) && (tempdy <= maxrestdelta)) { _root.game0["ragdoll" + h].restcounter = _root.game0["ragdoll" + h].restcounter + 1; } else { _root.game0["ragdoll" + h].restcounter = 0; } if (_root.game0["ragdoll" + h].restcounter >= resttime) { wateraffectoractive[_root.game0["ragdoll" + h].wateraffectornum] = false; _root.game0["ragdoll" + h].atrest = true; s = _root.game0["ragdoll" + h].firstpnum; while (s < (_root.game0["ragdoll" + h].firstpnum + 14)) { pactive[s] = false; s = s + 1; } } } } else { _root.game0["ragdoll" + h]._x = (px[_root.game0["ragdoll" + h].firstpnum + 4] + px[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; _root.game0["ragdoll" + h]._y = (py[_root.game0["ragdoll" + h].firstpnum + 4] + py[_root.game0["ragdoll" + h].firstpnum + 5]) * 0.5; } if (showphysicsobjects == true) { _root.game0["ragdoll" + h].clear(); _root.game0["ragdoll" + h].lineStyle(1, physicsobjectcolor, 100); _root.game0["ragdoll" + h].moveTo(px[_root.game0["ragdoll" + h].firstpnum] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 1] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 1] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 2] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 2] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 4] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 4] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 5] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 5] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 3] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 3] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 1] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 1] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].moveTo(px[_root.game0["ragdoll" + h].firstpnum + 3] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 3] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 11] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 11] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 13] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 13] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].moveTo(px[_root.game0["ragdoll" + h].firstpnum + 2] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 2] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 10] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 10] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 12] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 12] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].moveTo(px[_root.game0["ragdoll" + h].firstpnum + 5] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 5] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 7] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 7] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 9] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 9] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].moveTo(px[_root.game0["ragdoll" + h].firstpnum + 4] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 4] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 6] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 6] - _root.game0["ragdoll" + h]._y); _root.game0["ragdoll" + h].lineTo(px[_root.game0["ragdoll" + h].firstpnum + 8] - _root.game0["ragdoll" + h]._x, py[_root.game0["ragdoll" + h].firstpnum + 8] - _root.game0["ragdoll" + h]._y); } } else { _root.game0["ragdoll" + h]._visible = false; s = _root.game0["ragdoll" + h].firstpnum; while (s < (_root.game0["ragdoll" + h].firstpnum + 14)) { pactive[s] = false; s = s + 1; } wateraffectoractive[_root.game0["ragdoll" + h].wateraffectornum] = false; } h = h + 1; } h = 0; while (h < points) { if (_root.game0["point" + h].active == true) { if (_root.game0["point" + h].atrest == false) { pphysics(_root.game0["point" + h].firstpnum, true); possiblelines = 0; if (_root.game0["point" + h].ignorecollisions == false) { temporaryx = px[_root.game0["point" + h].firstpnum]; temporaryy = py[_root.game0["point" + h].firstpnum]; j = 0; while (j < collisionlines) { if (_root.game0["collisionline" + j].active == true) { if (rectcollide(temporaryx - safetydistance, temporaryy - safetydistance, temporaryx + safetydistance, temporaryy + safetydistance, _root.game0["collisionline" + j].x1, _root.game0["collisionline" + j].y1, _root.game0["collisionline" + j].x2, _root.game0["collisionline" + j].y2) == true) { possiblelinenum[possiblelines] = j; possiblelines = possiblelines + 1; } } j = j + 1; } _root.game0["point" + h].bouncetype = pcollisions(_root.game0["point" + h].firstpnum, 0); } else { z = _root.game0["point" + h].firstpnum; while (z < (_root.game0["point" + h].firstpnum + 1)) { j = 0; while (j < objectlines) { if (_root.game0["objectline" + j].active == true) { if (pointcollide(px[z], py[z], _root.game0["objectline" + j]._x - (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y, _root.game0["objectline" + j]._x + (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y + _root.game0["objectline" + j].yheight) == true) { bouncetype = 2; px[z] = px[z] + (_root.game0["objectline" + j].dx * characterpushratio); py[z] = py[z] + (_root.game0["objectline" + j].dy * characterpushratio); } } j = j + 1; } z = z + 1; } } if (_root.game0["point" + h].ignorecollisions == false) { tempdx = -_root.game0["point" + h]._x; tempdy = -_root.game0["point" + h]._y; _root.game0["point" + h]._x = px[_root.game0["point" + h].firstpnum]; _root.game0["point" + h]._y = py[_root.game0["point" + h].firstpnum]; tempdx = Math.abs(tempdx + _root.game0["point" + h]._x); tempdy = Math.abs(tempdy + _root.game0["point" + h]._y); if ((tempdx <= maxrestdelta) && (tempdy <= maxrestdelta)) { _root.game0["point" + h].restcounter = _root.game0["point" + h].restcounter + 1; } else { _root.game0["point" + h].restcounter = 0; } if (_root.game0["point" + h].restcounter >= resttime) { _root.game0["point" + h].atrest = true; pactive[_root.game0["point" + h].firstpnum] = false; } } } else { _root.game0["point" + h]._x = px[_root.game0["point" + h].firstpnum]; _root.game0["point" + h]._y = py[_root.game0["point" + h].firstpnum]; } if (showphysicsobjects == true) { _root.game0["point" + h].clear(); _root.game0["point" + h].lineStyle(1, physicsobjectcolor, 100); _root.game0["point" + h].moveTo(0, -3); _root.game0["point" + h].lineTo(0, 0); } } else { pactive[_root.game0["point" + h].firstpnum] = false; _root.game0["point" + h]._visible = false; } h = h + 1; } h = 0; while (h < objectlines) { if (_root.game0["objectline" + h].active == true) { pphysics(_root.game0["objectline" + h].firstpnum, true); pphysics(_root.game0["objectline" + h].firstpnum + 1, true); possiblelines = 0; temporaryx = (px[_root.game0["objectline" + h].firstpnum] + px[_root.game0["objectline" + h].firstpnum + 1]) * 0.5; temporaryy = (py[_root.game0["objectline" + h].firstpnum] + py[_root.game0["objectline" + h].firstpnum + 1]) * 0.5; j = 0; while (j < collisionlines) { if (_root.game0["collisionline" + j].active == true) { if (rectcollide(temporaryx - safetydistance, (temporaryy - (_root.game0["objectline" + h].yheight * 0.5)) - safetydistance, temporaryx + safetydistance, (temporaryy + (_root.game0["objectline" + h].yheight * 0.5)) + safetydistance, _root.game0["collisionline" + j].x1, _root.game0["collisionline" + j].y1, _root.game0["collisionline" + j].x2, _root.game0["collisionline" + j].y2) == true) { possiblelinenum[possiblelines] = j; possiblelines = possiblelines + 1; } } j = j + 1; } pcollisions2(_root.game0["objectline" + h].firstpnum); pcollisions2(_root.game0["objectline" + h].firstpnum + 1); temporaryx = (px[_root.game0["objectline" + h].firstpnum] + px[_root.game0["objectline" + h].firstpnum + 1]) * 0.5; temporaryy = (py[_root.game0["objectline" + h].firstpnum] + py[_root.game0["objectline" + h].firstpnum + 1]) * 0.5; px[_root.game0["objectline" + h].firstpnum] = temporaryx; px[_root.game0["objectline" + h].firstpnum + 1] = temporaryx; py[_root.game0["objectline" + h].firstpnum] = temporaryy - (_root.game0["objectline" + h].yheight * 0.5); py[_root.game0["objectline" + h].firstpnum + 1] = temporaryy + (_root.game0["objectline" + h].yheight * 0.5); wateraffectorly[_root.game0["objectline" + h].wateraffectornum] = wateraffectory[_root.game0["objectline" + h].wateraffectornum]; wateraffectorx[_root.game0["objectline" + h].wateraffectornum] = temporaryx; wateraffectory[_root.game0["objectline" + h].wateraffectornum] = temporaryy; _root.game0["objectline" + h].dx = px[_root.game0["objectline" + h].firstpnum] - _root.game0["objectline" + h]._x; _root.game0["objectline" + h].dy = py[_root.game0["objectline" + h].firstpnum] - _root.game0["objectline" + h]._y; _root.game0["objectline" + h]._x = px[_root.game0["objectline" + h].firstpnum]; _root.game0["objectline" + h]._y = py[_root.game0["objectline" + h].firstpnum]; if (showphysicsobjects == true) { _root.game0["objectline" + h].clear(); _root.game0["objectline" + h].lineStyle(1, physicsobjectcolor, 100); _root.game0["objectline" + h].moveTo(0, 0); _root.game0["objectline" + h].lineTo(px[_root.game0["objectline" + h].firstpnum + 1] - _root.game0["objectline" + h]._x, py[_root.game0["objectline" + h].firstpnum + 1] - _root.game0["objectline" + h]._y); } } else { _root.game0["objectline" + h]._visible = false; pactive[_root.game0["objectline" + h].firstpnum] = false; pactive[_root.game0["objectline" + h].firstpnum + 1] = false; wateraffectoractive[_root.game0["objectline" + h].wateraffectornum] = false; } h = h + 1; } h = 0; while (h < lines) { if (_root.game0["line" + h].active == true) { if (_root.game0["line" + h].atrest == false) { pphysics(_root.game0["line" + h].firstpnum, true); pphysics(_root.game0["line" + h].firstpnum + 1, true); possiblelines = 0; if (_root.game0["line" + h].ignorecollisions == false) { temporaryx = (px[_root.game0["line" + h].firstpnum] + px[_root.game0["line" + h].firstpnum + 1]) * 0.5; temporaryy = (py[_root.game0["line" + h].firstpnum] + py[_root.game0["line" + h].firstpnum + 1]) * 0.5; j = 0; while (j < collisionlines) { if (_root.game0["collisionline" + j].active == true) { if (rectcollide(temporaryx - (_root.game0["line" + h].linelength + safetydistance), temporaryy - (_root.game0["line" + h].linelength + safetydistance), temporaryx + (_root.game0["line" + h].linelength + safetydistance), temporaryy + (_root.game0["line" + h].linelength + safetydistance), _root.game0["collisionline" + j].x1, _root.game0["collisionline" + j].y1, _root.game0["collisionline" + j].x2, _root.game0["collisionline" + j].y2) == true) { possiblelinenum[possiblelines] = j; possiblelines = possiblelines + 1; } } j = j + 1; } pcollisions(_root.game0["line" + h].firstpnum); pcollisions(_root.game0["line" + h].firstpnum + 1); } else { z = _root.game0["line" + h].firstpnum; while (z < (_root.game0["line" + h].firstpnum + 2)) { j = 0; while (j < objectlines) { if (_root.game0["objectline" + j].active == true) { if (pointcollide(px[z], py[z], _root.game0["objectline" + j]._x - (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y, _root.game0["objectline" + j]._x + (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y + _root.game0["objectline" + j].yheight) == true) { bouncetype = 2; px[z] = px[z] + (_root.game0["objectline" + j].dx * characterpushratio); py[z] = py[z] + (_root.game0["objectline" + j].dy * characterpushratio); } } j = j + 1; } z = z + 1; } } verlet(_root.game0["line" + h].firstpnum, _root.game0["line" + h].firstpnum + 1, _root.game0["line" + h].linelength); if (_root.game0["line" + h].ignorecollisions == false) { tempdx = -_root.game0["line" + h]._x; tempdy = -_root.game0["line" + h]._y; _root.game0["line" + h]._x = (px[_root.game0["line" + h].firstpnum] + px[_root.game0["line" + h].firstpnum + 1]) * 0.5; _root.game0["line" + h]._y = (py[_root.game0["line" + h].firstpnum] + py[_root.game0["line" + h].firstpnum + 1]) * 0.5; tempdx = Math.abs(tempdx + _root.game0["line" + h]._x); tempdy = Math.abs(tempdy + _root.game0["line" + h]._y); if ((tempdx <= maxrestdelta) && (tempdy <= maxrestdelta)) { _root.game0["line" + h].restcounter = _root.game0["line" + h].restcounter + 1; } else { _root.game0["line" + h].restcounter = 0; } if (_root.game0["line" + h].restcounter >= resttime) { _root.game0["line" + h].atrest = true; pactive[_root.game0["line" + h].firstpnum] = false; pactive[_root.game0["line" + h].firstpnum + 1] = false; } } } else { _root.game0["line" + h]._x = (px[_root.game0["line" + h].firstpnum] + px[_root.game0["line" + h].firstpnum + 1]) * 0.5; _root.game0["line" + h]._y = (py[_root.game0["line" + h].firstpnum] + py[_root.game0["line" + h].firstpnum + 1]) * 0.5; } if (showphysicsobjects == true) { _root.game0["line" + h].clear(); _root.game0["line" + h].lineStyle(1, physicsobjectcolor, 100); _root.game0["line" + h].moveTo(px[_root.game0["line" + h].firstpnum] - _root.game0["line" + h]._x, py[_root.game0["line" + h].firstpnum] - _root.game0["line" + h]._y); _root.game0["line" + h].lineTo(px[_root.game0["line" + h].firstpnum + 1] - _root.game0["line" + h]._x, py[_root.game0["line" + h].firstpnum + 1] - _root.game0["line" + h]._y); } } else { _root.game0["line" + h]._visible = false; pactive[_root.game0["line" + h].firstpnum] = false; pactive[_root.game0["line" + h].firstpnum + 1] = false; } h = h + 1; } h = 0; while (h < drawnlines) { if (_root.game0["drawnline" + h].active == true) { _root.game0["drawnline" + h].active = false; } else { _root.game0["drawnline" + h]._visible = false; } h = h + 1; } h = 0; while (h < gps) { if (_root.game0["gp" + h].active == true) { _root.game0["gp" + h].vs = _root.game0["gp" + h].vs + _root.game0["gp" + h].g; _root.game0["gp" + h].vs = _root.game0["gp" + h].vs * _root.game0["gp" + h].af; _root.game0["gp" + h].hs = _root.game0["gp" + h].hs * _root.game0["gp" + h].af; _root.game0["gp" + h]._x = _root.game0["gp" + h]._x + _root.game0["gp" + h].hs; _root.game0["gp" + h]._y = _root.game0["gp" + h]._y + _root.game0["gp" + h].vs; _root.game0["gp" + h]._rotation = _root.game0["gp" + h]._rotation + 10; _root.game0["gp" + h].gptime = _root.game0["gp" + h].gptime - 1; if (_root.game0["gp" + h].gptime <= 0) { _root.game0["gp" + h].active = false; } if (_root.particlealpha == 0) { _root.game0["gp" + h]._alpha = (_root.game0["gp" + h].gptime / _root.game0["gp" + h].gpstarttime) * 100; } else { _root.game0["gp" + h]._xscale = (_root.game0["gp" + h].gptime / _root.game0["gp" + h].gpstarttime) * 100; _root.game0["gp" + h]._yscale = (_root.game0["gp" + h].gptime / _root.game0["gp" + h].gpstarttime) * 100; } } else { _root.game0["gp" + h]._visible = false; } h = h + 1; } h = 0; while (h < ropes) { if (_root.game0["rope" + h].active == true) { if (_root.game0["rope" + h].atrest == false) { temporaryx = 0; temporaryy = 0; d = _root.game0["rope" + h].firstpnum; while (d < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { temporaryx = temporaryx + px[d]; temporaryy = temporaryy + py[d]; d = d + 1; } temporaryx = temporaryx / _root.game0["rope" + h].segments; temporaryy = temporaryy / _root.game0["rope" + h].segments; checkliquids = false; d = 0; while (d < waterpools) { if (_root.game0["waterpool" + d].active == true) { if (rectcollide(_root.game0["waterpool" + d]._x, _root.game0["waterpool" + d]._y, _root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth, _root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth, temporaryx - (_root.game0["rope" + h].maxlength + safetydistance), temporaryy - (_root.game0["rope" + h].maxlength + safetydistance), temporaryx + (_root.game0["rope" + h].maxlength + safetydistance), temporaryy + (_root.game0["rope" + h].maxlength + safetydistance)) == true) { checkliquids = true; d = waterpools + 1; } } d = d + 1; } z = _root.game0["rope" + h].firstpnum; while (z < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { pphysics(z, checkliquids); z = z + 1; } if (_root.game0["rope" + h].ignorecollisions == false) { possiblelines = 0; j = 0; while (j < collisionlines) { if (_root.game0["collisionline" + j].active == true) { if (rectcollide(temporaryx - (_root.game0["rope" + h].maxlength + safetydistance), temporaryy - (_root.game0["rope" + h].maxlength + safetydistance), temporaryx + (_root.game0["rope" + h].maxlength + safetydistance), temporaryy + (_root.game0["rope" + h].maxlength + safetydistance), _root.game0["collisionline" + j].x1, _root.game0["collisionline" + j].y1, _root.game0["collisionline" + j].x2, _root.game0["collisionline" + j].y2) == true) { possiblelinenum[possiblelines] = j; possiblelines = possiblelines + 1; } } j = j + 1; } z = _root.game0["rope" + h].firstpnum; while (z < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { pcollisions(z); z = z + 1; } } else { z = _root.game0["rope" + h].firstpnum; while (z < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { j = 0; while (j < objectlines) { if (_root.game0["objectline" + j].active == true) { if (pointcollide(px[z], py[z], _root.game0["objectline" + j]._x - (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y, _root.game0["objectline" + j]._x + (_root.game0["objectline" + j].xwidth * 0.5), _root.game0["objectline" + j]._y + _root.game0["objectline" + j].yheight) == true) { bouncetype = 2; px[z] = px[z] + (_root.game0["objectline" + j].dx * characterpushratio); py[z] = py[z] + (_root.game0["objectline" + j].dy * characterpushratio); } } j = j + 1; } z = z + 1; } } d = _root.game0["rope" + h].firstpnum; while (d < ((_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments) - 1)) { if (_root.game0["rope" + h].elastic == false) { verlet(d, d + 1, _root.game0["rope" + h].segmentlength); } else if (approxdistance(px[d], py[d], px[d + 1], py[d + 1]) > _root.game0["rope" + h].segmentlength) { verlet(d, d + 1, _root.game0["rope" + h].segmentlength); } d = d + 1; } if (_root.game0["rope" + h].attachedtoparticle1 == true) { if (pactive[_root.game0["rope" + h].attachedparticle1] == true) { verlet(_root.game0["rope" + h].attachedparticle1, _root.game0["rope" + h].firstpnum, 0.1); } else { _root.game0["rope" + h].attachedtoparticle1 = false; } } if (_root.game0["rope" + h].locked1 == true) { px[_root.game0["rope" + h].firstpnum] = _root.game0["rope" + h].lockx1; py[_root.game0["rope" + h].firstpnum] = _root.game0["rope" + h].locky1; } if (_root.game0["rope" + h].attachedtoparticle2 == true) { if (pactive[_root.game0["rope" + h].attachedparticle2] == true) { verlet(_root.game0["rope" + h].attachedparticle2, (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments) - 1, 0.1); } else { _root.game0["rope" + h].attachedtoparticle2 = false; } } if (_root.game0["rope" + h].locked2 == true) { px[(_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments) - 1] = _root.game0["rope" + h].lockx2; py[(_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments) - 1] = _root.game0["rope" + h].locky2; } tempdx = -_root.game0["rope" + h]._x; tempdy = -_root.game0["rope" + h]._y; temporaryx = 0; temporaryy = 0; d = _root.game0["rope" + h].firstpnum; while (d < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { temporaryx = temporaryx + px[d]; temporaryy = temporaryy + py[d]; d = d + 1; } temporaryx = temporaryx / _root.game0["rope" + h].segments; temporaryy = temporaryy / _root.game0["rope" + h].segments; _root.game0["rope" + h]._x = temporaryx; _root.game0["rope" + h]._y = temporaryy; tempdx = Math.abs(tempdx + _root.game0["rope" + h]._x); tempdy = Math.abs(tempdy + _root.game0["rope" + h]._y); if (_root.game0["rope" + h].ignorecollisions == false) { if ((tempdx <= (maxrestdelta * 0.25)) && (tempdy <= (maxrestdelta * 0.25))) { _root.game0["rope" + h].restcounter = _root.game0["rope" + h].restcounter + 1; } else { _root.game0["rope" + h].restcounter = 0; } if (_root.game0["rope" + h].restcounter >= resttime) { _root.game0["rope" + h].atrest = true; _root.game0["rope" + h].attachedtoparticle1 = false; _root.game0["rope" + h].attachedtoparticle2 = false; s = _root.game0["rope" + h].firstpnum; while (s < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { pactive[s] = false; s = s + 1; } } } } else { temporaryx = 0; temporaryy = 0; d = _root.game0["rope" + h].firstpnum; while (d < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { temporaryx = temporaryx + px[d]; temporaryy = temporaryy + py[d]; d = d + 1; } temporaryx = temporaryx / _root.game0["rope" + h].segments; temporaryy = temporaryy / _root.game0["rope" + h].segments; _root.game0["rope" + h]._x = temporaryx; _root.game0["rope" + h]._y = temporaryy; } if (showphysicsobjects == true) { _root.game0["rope" + h].clear(); _root.game0["rope" + h].lineStyle(1, physicsobjectcolor, 100); _root.game0["rope" + h].moveTo(px[_root.game0["rope" + h].firstpnum] - _root.game0["rope" + h]._x, py[_root.game0["rope" + h].firstpnum] - _root.game0["rope" + h]._y); d = _root.game0["rope" + h].firstpnum; while (d < ((_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments) - 1)) { _root.game0["rope" + h].lineTo(px[d + 1] - _root.game0["rope" + h]._x, py[d + 1] - _root.game0["rope" + h]._y); d = d + 1; } } } else { _root.game0["rope" + h]._visible = false; s = _root.game0["rope" + h].firstpnum; while (s < (_root.game0["rope" + h].firstpnum + _root.game0["rope" + h].segments)) { pactive[s] = false; s = s + 1; } } h = h + 1; } } function gamecodepart2() { battleduration = 900; if ((((mapnumber > 2) && (counter1 < battleduration)) && (counter1 > 0)) && (mapnumber < 15)) { if ((mapnumer != 13) or (_root.game0.player0._x < 400)) { spawnpickups(((-0.5 * this._x) + 200) - (Math.random() * 25), (_root.game0.player0._y - 75) + (Math.random() * 25)); spawnweapons(((-0.5 * this._x) + 200) - (Math.random() * 25), (_root.game0.player0._y - 75) + (Math.random() * 25)); } } if (mapnumber == 1) { if ((bool4 == false) && (counter3 > 60)) { bool4 = true; messagestring = "Continue into the cemetary. (Use the A and D keys to move and W to jump.)"; messagetextdelay = 210; } counter3 = counter3 + 1; if ((_root.game0.player0._x > 400) && (bool1 == false)) { createenemyA(700, 200, 1, true, false); createenemyA(-100, 200, 0, true, false); messagestring = "Zombies! (Use the mouse to aim and Mouse 1 to attack.)"; messagetextdelay = 210; bool1 = true; } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 220) && (bool2 == false)) { createenemyA(700, 200, 1, true, false); createenemyA(650, 200, 1, true, false); bool2 = true; } if (((counter1 > 300) && (countenemies() == 0)) && (bool3 == false)) { messagestring = "Good work. Continue into the cemetary. (Only when all enemies have been killed will you be able to proceed.)"; messagetextdelay = 90000 /* 0x015F90 */; bool3 = true; createwinzone(590, 0, 610, 300); } } if (mapnumber == 2) { if ((counter1 > 40) && (bool1 == false)) { bool1 = true; messagestring = "Throughout the game object and weapons will spawn around you. (Walk over them to pick them up.)"; messagetextdelay = 210; teleportsparks(100, 200); createhealth(100, 200, true); } counter1 = counter1 + 1; if ((_root.game0.player0._x > 350) && (bool2 == false)) { bool2 = true; smallcrashsound.start(0, 1); messagestring = "Watch out for traps! (Keep an eye out for traps you can use against enemies as well...)"; messagetextdelay = 210; createenemyA(455, 240, 1, true, false); physicspush(455, 256, 32, 90, 5); dirtblast(455, 240); counter1 = counter1 + 1; } if (bool2 == true) { if (counter2 > 10) { _root.game0.collisionline2.active = true; } else { counter2 = counter2 + 1; } } if (((bool2 == true) && (bool3 == false)) && (countenemies() == 0)) { bool3 = true; createenemyA(650, 200, 1, true, false); createenemyA(-50, 200, 0, true, false); createenemyA(-150, 200, 0, true, false); } if (bool3 == true) { if ((counter3 > 90) && (bool5 == false)) { bool5 = true; _root.game0.player0.berserkamount = 1000; messagestring = "Your character is on a rampage! This gives you super-human speed and makes you immune to attack. (Occurs during intense battles.)"; messagetextdelay = 210; } if ((countenemies() == 0) && (bool4 == false)) { messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); bool4 = true; } counter3 = counter3 + 1; } } if (mapnumber == 3) { if ((counter1 > 40) && (bool1 == false)) { bool1 = true; teleportsparks(125, 200); createpistol(125, 200, 0, 0, true, -1); createenemyA(650, 200, 1, true, false); createenemyA(700, 200, 1, true, false); createenemyA(-50, 200, 0, true, false); messagestring = "Aim for the head to take down enemies more quickly. (Number keys 1-6 switches weapon.)"; messagetextdelay = 210; } if ((counter1 > 60) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 200, 0, 0); spawnenemies(700, 200, 1, 0); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } counter1 = counter1 + 1; } if (mapnumber == 4) { if ((_root.game0.player0._x > 480) && (bool1 == false)) { bool1 = true; xposition = 625; yposition = 220; createlinedebris(xposition - 15, yposition - 4, 1); createpointdebris(xposition - 20, yposition - 12, 1); createpointdebris(xposition - 10, yposition - 8, 1); physicsexplosion(xposition, yposition, 50, 4); createenemyA(xposition, yposition - 20, 1, true, true); smallcrashsound.start(0, 1); i = 0; while (i < 5) { creategp(xposition - 20, yposition, (Math.random() * 10) + 15, (Math.random() * 60) + 150, (Math.random() * 3) + 2, 0.97, 0.08, (Math.random() * 20) + 20, 7623226, true); i = i + 1; } } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 200, 0, 0); spawnenemies(700, 200, 1, 0); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } } if (mapnumber == 5) { if ((_root.game0.player0._x > 500) && (bool1 == false)) { bool1 = true; xposition = 625; yposition = 115; createlinedebris(xposition - 20, yposition + 4, 1); createpointdebris(xposition - 10, yposition - 8, 1); createpointdebris(xposition - 5, yposition, 1); physicsexplosion(xposition, yposition, 50, 4); createenemyA(xposition, yposition - 20, 1, true, true); createenemyA(-100, 200, 1, true, true); smallcrashsound.start(0, 1); i = 0; while (i < 5) { creategp(xposition - 20, yposition, (Math.random() * 10) + 15, (Math.random() * 60) + 150, (Math.random() * 3) + 2, 0.97, 0.08, (Math.random() * 20) + 20, 7623226, true); i = i + 1; } } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 200, 0, 0); spawnenemies(700, 95, 1, 0); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } } if (mapnumber == 6) { if ((bool5 == false) && (counter2 > 30)) { messagestring = "Destroy crates to get the items inside."; messagetextdelay = 120; bool5 = true; } counter2 = counter2 + 1; if ((_root.game0.player0._x > 350) && (bool1 == false)) { bool1 = true; createenemyA(700, 180, 1, true, true); createenemyA(-50, 180, 0, true, false); createenemyA(-150, 180, 0, true, true); } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenem00ies(-100, 180, 0, 0); spawnenemies(700, 180, 1, 0); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } } if (mapnumber == 7) { if ((_root.game0.player0._x > 400) && (bool1 == false)) { bool1 = true; xposition = 550; yposition = -50; createlinedebris(xposition - 3, yposition + 10, 2); createboxdebris(xposition - 4, yposition + 8, 2); createpointdebris(xposition + 2, yposition + 23, 2); createpointdebris(xposition + 6, yposition + 16, 2); physicsexplosion(xposition, yposition, 50, 3); bigcrashsound.start(0, 1); i = 0; while (i < 7) { creategp(xposition - 20, yposition, (Math.random() * 10) + 15, (Math.random() * 40) + 250, (Math.random() * 3) + 1, 0.97, 0.08, (Math.random() * 40) + 40, 10263181, true); i = i + 1; } createenemyA(700, 120, 1, true, false); createenemyB(-50, 120, 0, true, false); createenemyB(550, -70, 1, true, false); } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(550, -50, 1, Math.floor(Math.random() * 2)); spawnenemies(-100, 120, 0, Math.floor(Math.random() * 2)); spawnenemies(700, 120, 1, Math.floor(Math.random() * 2)); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } } if (mapnumber == 8) { if ((counter5 > 40) && (bool5 == false)) { bool5 = true; messagestring = "Certain objects are destructable..."; messagetextdelay = 210; } else { counter5 = counter5 + 1; } watercolor = 6982733 /* 0x6A8C4D */; if (bool3 == false) { if (hitzoneactive[hitzones - 1] == true) { bool4 = true; bool3 = true; xposition = 300; yposition = 140; createlinedebris(xposition - 8, yposition + 9, 0); createlinedebris(xposition + 2, yposition - 6, 0); createpointdebris(xposition + 5, yposition + 12, 0); createpointdebris(xposition - 3, yposition - 8, 0); physicsexplosion(xposition, yposition, 30, 3); metalcrashsound.start(0, 1); waterspraysound.start(0, 5); i = 0; while (i < 8) { creategp(xposition, yposition, (Math.random() * 8) + 16, Math.random() * 360, (Math.random() * 3) + 1, 0.97, 0.05, (Math.random() * 30) + 30, watercolor, true); i = i + 1; } _root.game0.background.frame = 8; } else if (Math.floor(Math.random() * 90) == 0) { creategp(300, 160, 2, 270, 0, 0.99, g, 80, watercolor, false); dripsound.start(0, 1); } } if (bool4 == true) { counter4 = counter4 + 1; if (counter4 < 325) { if (Math.floor(Math.random() * 4) == 0) { creategp(300, 160, (Math.random() * 8) + 8, 260 + (Math.random() * 20), Math.random() + 1, 0.99, g, 40, watercolor, true); } _root.game0.waterpool0._y = _root.game0.waterpool0._y - 0.08; _root.game0.waterpool0.depth = _root.game0.waterpool0.depth + 0.16; } } if ((_root.game0.player0._x > 350) && (bool1 == false)) { bool1 = true; createenemyA(-125, 160, 0, true, false); createenemyB(-50, 160, 0, true, false); createenemyB(650, 160, 1, true, false); } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 160, 0, Math.floor(Math.random() * 2)); spawnenemies(700, 160, 1, Math.floor(Math.random() * 2)); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } } if (mapnumber == 9) { if ((_root.game0.player0._x > 150) && (bool1 == false)) { bool1 = true; xposition = 55; yposition = 125; createlinedebris(xposition + 6, yposition + 4, 0); createlinedebris(xposition + 10, yposition - 8, 0); createpointdebris(xposition + 4, yposition, 0); physicsexplosion(xposition, yposition, 30, 4); createenemyB(xposition - 50, yposition - 15, 0, true, false); createenemyA(-100, 180, 0, true, false); createenemyB(700, 120, 1, true, false); metalcrashsound.start(0, 1); } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(10, 95, 0, Math.floor(Math.random() * 2)); spawnenemies(-100, 180, 0, Math.floor(Math.random() * 2)); spawnenemies(700, 110, 1, Math.floor(Math.random() * 2)); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(510, 0, 610, 300); } } } if (mapnumber == 10) { if (counter3 == 5) { xposition = 235; yposition = 250; creategp(xposition, yposition, (Math.random() * 5) + 10, (Math.random() * 10) + 85, (Math.random() * 3) + 5, 0.98, g, (Math.random() * 20) + 80, 4364733, true); counter3 = 0; } counter3 = counter3 + 1; if ((_root.game0.player0._x > 260) && (bool1 == false)) { bool1 = true; createenemyB(650, 218, 1, true, false); createenemyB(-100, 218, 0, true, false); createenemyB(700, 218, 1, true, true); } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 218, 0, Math.floor(Math.random() * 2)); spawnenemies(700, 218, 1, Math.floor(Math.random() * 2)); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } } if (mapnumber == 11) { if ((_root.game0.player0._x > 450) && (bool1 == false)) { bool1 = true; xposition = 600; yposition = 225; createlinedebris(xposition - 6, yposition - 4, 2); createboxdebris(xposition - 4, yposition - 2, 2); createpointdebris(xposition - 2, yposition + 3, 2); physicsexplosion(xposition, yposition, 50, 3); bigcrashsound.start(0, 1); i = 0; while (i < 7) { creategp(xposition - 10, yposition, (Math.random() * 15) + 20, (Math.random() * 60) + 150, (Math.random() * 3) + 3, 0.97, 0.03, (Math.random() * 40) + 40, 9935495, true); i = i + 1; } createenemyB(700, 218, 1, true, true); createenemyB(-100, 218, 0, true, false); createenemyC(650, 218, 1, true, false); } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 218, 0, Math.floor(Math.random() * 2)); spawnenemies(700, 218, 1, Math.floor(Math.random() * 3)); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } if (Math.floor(Math.random() * 30) == 0) { electricsparks(275, 175); } } if (mapnumber == 12) { if ((_root.game0.player0._x > 450) && (bool1 == false)) { _root.game0.rope0.locked2 = false; bool1 = true; xposition = 400; yposition = -30; createlinedebris(xposition - 6, yposition + 4, 2); createlinedebris(xposition - 4, yposition + 2, 2); createpointdebris(xposition - 2, yposition + 3, 2); physicsexplosion(xposition, yposition, 50, 3); bigcrashsound.start(0, 1); i = 0; while (i < 7) { creategp(xposition - 10, yposition, (Math.random() * 15) + 20, (Math.random() * 60) + 240, (Math.random() * 3) + 3, 0.97, 0.03, (Math.random() * 40) + 40, 8487787, true); i = i + 1; } createenemyA(400, -50, 1, true, true); createenemyA(-100, 118, 0, true, false); createenemyC(700, 118, 1, true, false); } if (bool1 == true) { counter1 = counter1 + 1; if (Math.floor(Math.random() * 10) == 0) { px[(_root.game0.rope0.firstpnum + _root.game0.rope0.segments) - 1] = (px[(_root.game0.rope0.firstpnum + _root.game0.rope0.segments) - 1] + (Math.random() * 8)) - 4; py[(_root.game0.rope0.firstpnum + _root.game0.rope0.segments) - 1] = (py[(_root.game0.rope0.firstpnum + _root.game0.rope0.segments) - 1] + (Math.random() * 8)) - 4; electricsparks(px[(_root.game0.rope0.firstpnum + _root.game0.rope0.segments) - 1], py[(_root.game0.rope0.firstpnum + _root.game0.rope0.segments) - 1]); } } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 118, 0, Math.floor(Math.random() * 2) * 2); spawnenemies(700, 118, 1, Math.floor(Math.random() * 2) * 2); spawnenemies(400, -50, 1, Math.floor(Math.random() * 2) * 2); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } } if (mapnumber == 13) { if ((_root.game0.player0._x > 450) && (bool1 == false)) { bool1 = true; createenemyA(-150, 118, 0, true, false); createenemyA(-120, 118, 0, true, false); createenemyC(-40, 118, 0, true, false); } if (bool1 == true) { counter1 = counter1 + 1; } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 118, 0, Math.floor(Math.random() * 2) * 2); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(595, 0, 610, 300); bool4 = true; dooropensound.start(0, 1); } } if (bool4 == true) { _root.game0.collisionline3.y2 = _root.game0.collisionline3.y2 - 0.25; _root.game0.walldoor0._y = _root.game0.walldoor0._y - 0.25; } } if (mapnumber == 14) { if ((_root.game0.player0._x > 350) && (bool1 == false)) { bool1 = true; createenemyC(-160, 118, 0, true, false); createenemyC(-120, 118, 0, true, false); createenemyC(680, 118, 1, true, false); } if (bool1 == true) { counter1 = counter1 + 1; } if (Math.floor(Math.random() * 15) == 0) { creategp(203, 76, 3, 260 + (Math.random() * 20), Math.random(), 0.99, g, (Math.random() * 20) + 20, 1762862, false); } if ((counter1 > 30) && (bool2 == false)) { if (counter1 < battleduration) { spawnenemies(-100, 118, 0, 2); spawnenemies(700, 118, 1, 2); } else if (countenemies() == 0) { bool2 = true; messagestring = "Continue."; messagetextdelay = 900; createwinzone(590, 0, 610, 300); } } if ((_root.game0.computer0.frame == 1) && (bool3 == false)) { bool3 = true; bool4 = true; _root.game0.spinlight0._visible = true; alarmsound.start(0, 2); } if (bool4 == true) { if (_root.game0.collisionline0.x2 > 300) { _root.game0.collisionline0.x2 = _root.game0.collisionline0.x2 - 5; _root.game0.floordoor0._x = _root.game0.floordoor0._x - 5; } } } if (mapnumber == 15) { if ((counter1 > 150) && (bool1 == false)) { loadmap(mapnumber + 1); } counter1 = counter1 + 1; } if (mapnumber == 16) { if (counter1 > 120) { if (bool1 == false) { nuclearblast(300, 233); bool1 = true; _root.game0.city0.frame = 1; } } if (counter2 > 300) { if (bool2 == false) { bool2 = true; resetvariables(); gotoAndPlay ("menuscreen"); } } counter1 = counter1 + 1; counter2 = counter2 + 1; } if (mapnumber == 32) { _root.messagetext = "Press Q to return to menu"; if (Key.isDown(81)) { showphysicsobjects = false; debugmode = false; _root.game0.cursor._visible = false; messagetext = ""; resetvariables(); gotoAndPlay ("menuscreen"); } } h = 0; while (h < fires) { if (fireactive[h] == true) { if (firedelay[h] == 0) { fire(firex[h], firey[h]); firedelay[h] = fireskipnum; } else { firedelay[h] = firedelay[h] - 1; } firelivetime[h] = firelivetime[h] + 1; if (firelivetime[h] >= firemaxlivetime[h]) { fireactive[h] = false; } } h = h + 1; } var h = 0; while (h < corpses) { if (_root.game0["corpse" + h].active == true) { if (_root.game0["corpse" + h].fade == true) { _root.game0["corpse" + h].livetime = _root.game0["corpse" + h].livetime + 1; if (_root.game0["corpse" + h].livetime > (corpselivetime - corpsefadetime)) { _root.game0["corpse" + h]._alpha = ((corpselivetime - _root.game0["corpse" + h].livetime) / corpsefadetime) * 100; } if (_root.game0["corpse" + h].livetime > corpselivetime) { _root.game0["corpse" + h].active = false; } } lasths = _root.game0["corpse" + h]._x - _root.game0["corpse" + h].lastx; lastvs = _root.game0["corpse" + h]._y - _root.game0["corpse" + h].lasty; _root.game0["corpse" + h].lasty = _root.game0["corpse" + h]._y; _root.game0["corpse" + h].lastx = _root.game0["corpse" + h]._x; _root.game0["corpse" + h]._y = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 1]; _root.game0["corpse" + h]._x = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 1]; currenths = _root.game0["corpse" + h]._x - _root.game0["corpse" + h].lastx; currentvs = _root.game0["corpse" + h]._y - _root.game0["corpse" + h].lasty; if (_root.game0["corpse" + h].bloodtimer > 0) { _root.game0["corpse" + h].bloodtimer = _root.game0["corpse" + h].bloodtimer - 1; } else if (_root.game0["corpse" + h].livetime > 5) { if (approxdistance(0, 0, currenths - lasths, currentvs - lastvs) > 3) { _root.game0["corpse" + h].bloodtimer = 20; hitsound.start(0, 1); tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); bloodspray(((tempx1 + tempx2) * 0.5) + vectorx(correctdirection(temprotation + 90), 2), ((tempy1 + tempy2) * 0.5) + vectory(correctdirection(temprotation + 90), 2), 2); } } if (_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].deformed == true) { tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); bloodspray(((tempx1 + tempx2) * 0.5) + vectorx(correctdirection(temprotation + 90), 2), ((tempy1 + tempy2) * 0.5) + vectory(correctdirection(temprotation + 90), 2), maxbloodps); d = 0; while (d < corpsegibs) { createpointdebris(((((tempx1 + tempx2) * 0.5) + vectorx(correctdirection(temprotation + 90), 2)) + Math.random()) - 0.5, ((((tempy1 + tempy2) * 0.5) + vectory(correctdirection(temprotation + 90), 2)) + Math.random()) - 0.5, 3 + Math.floor(Math.random() * 4)); d = d + 1; } physicsexplosion(((tempx1 + tempx2) * 0.5) + vectorx(correctdirection(temprotation + 90), 2), ((tempy1 + tempy2) * 0.5) + vectory(correctdirection(temprotation + 90) + 0.5, 2), 2, 4); _root.game0["corpse" + h].active = false; } tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 1]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 1]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["head" + _root.game0["corpse" + h].headnum]._x = (tempx1 + tempx2) * 0.5; _root.game0["head" + _root.game0["corpse" + h].headnum]._y = (tempy1 + tempy2) * 0.5; _root.game0["head" + _root.game0["corpse" + h].headnum]._rotation = 270 - temprotation; _root.game0["head" + _root.game0["corpse" + h].headnum]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["torso" + _root.game0["corpse" + h].torsonum]._x = ((tempx1 + tempx2) * 0.5) + vectorx(correctdirection(temprotation + 90), 2); _root.game0["torso" + _root.game0["corpse" + h].torsonum]._y = ((tempy1 + tempy2) * 0.5) + vectory(correctdirection(temprotation + 90), 2); _root.game0["torso" + _root.game0["corpse" + h].torsonum]._rotation = 180 - temprotation; _root.game0["torso" + _root.game0["corpse" + h].torsonum]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 3]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 11]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 11]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["upperarm" + _root.game0["corpse" + h].firstupperarmnum]._x = (tempx1 + tempx2) * 0.5; _root.game0["upperarm" + _root.game0["corpse" + h].firstupperarmnum]._y = (tempy1 + tempy2) * 0.5; _root.game0["upperarm" + _root.game0["corpse" + h].firstupperarmnum]._rotation = 270 - temprotation; _root.game0["upperarm" + _root.game0["corpse" + h].firstupperarmnum]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 2]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 10]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 10]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["upperarm" + (_root.game0["corpse" + h].firstupperarmnum + 1)]._x = (tempx1 + tempx2) * 0.5; _root.game0["upperarm" + (_root.game0["corpse" + h].firstupperarmnum + 1)]._y = (tempy1 + tempy2) * 0.5; _root.game0["upperarm" + (_root.game0["corpse" + h].firstupperarmnum + 1)]._rotation = 270 - temprotation; _root.game0["upperarm" + (_root.game0["corpse" + h].firstupperarmnum + 1)]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 11]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 11]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 13]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 13]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["lowerarm" + _root.game0["corpse" + h].firstlowerarmnum]._x = (tempx1 + tempx2) * 0.5; _root.game0["lowerarm" + _root.game0["corpse" + h].firstlowerarmnum]._y = (tempy1 + tempy2) * 0.5; _root.game0["lowerarm" + _root.game0["corpse" + h].firstlowerarmnum]._rotation = 270 - temprotation; _root.game0["lowerarm" + _root.game0["corpse" + h].firstlowerarmnum]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 10]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 10]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 12]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 12]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["lowerarm" + (_root.game0["corpse" + h].firstlowerarmnum + 1)]._x = (tempx1 + tempx2) * 0.5; _root.game0["lowerarm" + (_root.game0["corpse" + h].firstlowerarmnum + 1)]._y = (tempy1 + tempy2) * 0.5; _root.game0["lowerarm" + (_root.game0["corpse" + h].firstlowerarmnum + 1)]._rotation = 270 - temprotation; _root.game0["lowerarm" + (_root.game0["corpse" + h].firstlowerarmnum + 1)]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 5]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 5]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 7]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 7]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["upperleg" + _root.game0["corpse" + h].firstupperlegnum]._x = (tempx1 + tempx2) * 0.5; _root.game0["upperleg" + _root.game0["corpse" + h].firstupperlegnum]._y = (tempy1 + tempy2) * 0.5; _root.game0["upperleg" + _root.game0["corpse" + h].firstupperlegnum]._rotation = 270 - temprotation; _root.game0["upperleg" + _root.game0["corpse" + h].firstupperlegnum]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 4]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 4]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 6]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 6]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["upperleg" + (_root.game0["corpse" + h].firstupperlegnum + 1)]._x = (tempx1 + tempx2) * 0.5; _root.game0["upperleg" + (_root.game0["corpse" + h].firstupperlegnum + 1)]._y = (tempy1 + tempy2) * 0.5; _root.game0["upperleg" + (_root.game0["corpse" + h].firstupperlegnum + 1)]._rotation = 270 - temprotation; _root.game0["upperleg" + (_root.game0["corpse" + h].firstupperlegnum + 1)]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 7]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 7]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 9]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 9]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["lowerleg" + _root.game0["corpse" + h].firstlowerlegnum]._x = (tempx1 + tempx2) * 0.5; _root.game0["lowerleg" + _root.game0["corpse" + h].firstlowerlegnum]._y = (tempy1 + tempy2) * 0.5; _root.game0["lowerleg" + _root.game0["corpse" + h].firstlowerlegnum]._rotation = 270 - temprotation; _root.game0["lowerleg" + _root.game0["corpse" + h].firstlowerlegnum]._alpha = _root.game0["corpse" + h]._alpha; tempx1 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 6]; tempy1 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 6]; tempx2 = px[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 8]; tempy2 = py[_root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].firstpnum + 8]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["lowerleg" + (_root.game0["corpse" + h].firstlowerlegnum + 1)]._x = (tempx1 + tempx2) * 0.5; _root.game0["lowerleg" + (_root.game0["corpse" + h].firstlowerlegnum + 1)]._y = (tempy1 + tempy2) * 0.5; _root.game0["lowerleg" + (_root.game0["corpse" + h].firstlowerlegnum + 1)]._rotation = 270 - temprotation; _root.game0["lowerleg" + (_root.game0["corpse" + h].firstlowerlegnum + 1)]._alpha = _root.game0["corpse" + h]._alpha; } else { _root.game0["ragdoll" + _root.game0["corpse" + h].ragdollnum].active = false; _root.game0["head" + _root.game0["corpse" + h].headnum].active = false; _root.game0["torso" + _root.game0["corpse" + h].torsonum].active = false; _root.game0["upperarm" + _root.game0["corpse" + h].firstupperarmnum].active = false; _root.game0["upperarm" + (_root.game0["corpse" + h].firstupperarmnum + 1)].active = false; _root.game0["lowerarm" + _root.game0["corpse" + h].firstlowerarmnum].active = false; _root.game0["lowerarm" + (_root.game0["corpse" + h].firstlowerarmnum + 1)].active = false; _root.game0["upperleg" + _root.game0["corpse" + h].firstupperlegnum].active = false; _root.game0["upperleg" + (_root.game0["corpse" + h].firstupperlegnum + 1)].active = false; _root.game0["lowerleg" + _root.game0["corpse" + h].firstlowerlegnum].active = false; _root.game0["lowerleg" + (_root.game0["corpse" + h].firstlowerlegnum + 1)].active = false; } h = h + 1; } var h = 0; while (h < chains) { if (_root.game0["chain" + h].active == true) { d = 0; while (d < (_root.game0["rope" + _root.game0["chain" + h].ropenum].segments - 1)) { tempx1 = px[_root.game0["rope" + _root.game0["chain" + h].ropenum].firstpnum + d]; tempy1 = py[_root.game0["rope" + _root.game0["chain" + h].ropenum].firstpnum + d]; tempx2 = px[(_root.game0["rope" + _root.game0["chain" + h].ropenum].firstpnum + d) + 1]; tempy2 = py[(_root.game0["rope" + _root.game0["chain" + h].ropenum].firstpnum + d) + 1]; temprotation = directiontopoint(tempx1, tempy1, tempx2, tempy2); _root.game0["link" + (_root.game0["chain" + h].linknum + d)]._x = (tempx1 + tempx2) * 0.5; _root.game0["link" + (_root.game0["chain" + h].linknum + d)]._y = (tempy1 + tempy2) * 0.5; _root.game0["link" + (_root.game0["chain" + h].linknum + d)]._rotation = 270 - temprotation; d = d + 1; } } else { d = 0; while (d < (_root.game0["rope" + _root.game0["chain" + h].ropenum].segments - 1)) { _root.game0[("link" + _root.game0["chain" + h].linknum) + d].active = false; _root.game0[("link" + _root.game0["chain" + h].linknum) + d]._visible = false; d = d + 1; } _root.game0["chain" + h].active = false; _root.game0["rope" + _root.game0["chain" + h].ropenum].active = false; } h = h + 1; } var h = 0; while (h < strings) { if (_root.game0["string" + h].active == true) { _root.game0["string" + h].clear(); _root.game0["string" + h].lineStyle(1, _root.game0["string" + h].color, _root.game0["string" + h].alpha); _root.game0["string" + h].moveTo(px[_root.game0["rope" + _root.game0["string" + h].ropenum].firstpnum] - _root.game0["string" + h]._x, py[_root.game0["rope" + _root.game0["string" + h].ropenum].firstpnum] - _root.game0["string" + h]._y); d = _root.game0["rope" + _root.game0["string" + h].ropenum].firstpnum; while (d < ((_root.game0["rope" + _root.game0["string" + h].ropenum].firstpnum + _root.game0["rope" + _root.game0["string" + h].ropenum].segments) - 1)) { _root.game0["string" + h].lineTo(px[d + 1] - _root.game0["string" + h]._x, py[d + 1] - _root.game0["string" + h]._y); d = d + 1; } } else { _root.game0["string" + h].active = false; _root.game0["rope" + _root.game0["string" + h].ropenum].active = false; } h = h + 1; } } function gamecodepart3() { var _local2 = 0; while (_local2 < players) { if (_root.game0["player" + _local2].active == true) { deltahs = 0; deltavs = 0; if (_root.game0["player" + _local2].berserk == true) { maxmovespeed = 5; } else { maxmovespeed = playermaxmovespeed; } movefactor = playeraircontrolfactor; d = 0; while (d < waterpools) { if ((((px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._x) && (px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth))) && (py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._y)) && (py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth))) { movefactor = playerwatercontrolfactor; } d = d + 1; } groundoffset = 0; if (segmentcollide(px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1], px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] + 2) == true) { movefactor = 1; groundoffset = py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] - bestcy; } if (_root.game0["player" + _local2].damage < 0) { _root.game0["player" + _local2].damage = 0; } if (_root.game0["player" + _local2].rifleammo > maxrifleammo) { _root.game0["player" + _local2].rifleammo = maxrifleammo; } if (_root.game0["player" + _local2].pistolammo > maxpistolammo) { _root.game0["player" + _local2].pistolammo = maxpistolammo; } if (_root.game0["player" + _local2].shotgunammo > maxshotgunammo) { _root.game0["player" + _local2].shotgunammo = maxshotgunammo; } if (_root.game0["player" + _local2].SMGammo > maxSMGammo) { _root.game0["player" + _local2].SMGammo = maxSMGammo; } if (_root.game0["player" + _local2].weapon == riflenum) { _root.ammotext = "Ammo: " + _root.game0["player" + _local2].rifleammo; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = rifleframe; } if (_root.game0["player" + _local2].weapon == pistolnum) { _root.ammotext = "Ammo: " + _root.game0["player" + _local2].pistolammo; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = pistolframe; } if (_root.game0["player" + _local2].weapon == grenadenum) { _root.ammotext = "Ammo: " + _root.game0["player" + _local2].grenadeammo; if (_root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame > grenadeframe) { _root.game0["player" + _local2].framedelay = _root.game0["player" + _local2].framedelay - 1; if (_root.game0["player" + _local2].framedelay <= 0) { _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = grenadeframe; } } else { _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = grenadeframe; } } if (_root.game0["player" + _local2].weapon == shotgunnum) { _root.ammotext = "Ammo: " + _root.game0["player" + _local2].shotgunammo; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = shotgunframe; } if (_root.game0["player" + _local2].weapon == SMGnum) { _root.ammotext = "Ammo: " + _root.game0["player" + _local2].SMGammo; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = SMGframe; } if (_root.game0["player" + _local2].weapon == shovelnum) { _root.ammotext = ""; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = shovelframe; if (Math.floor(Math.random() * 45) == 0) { shovelpuff(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shovelbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shovelbarreldistance)); } } if (Key.isDown(51)) { if ((_root.game0["player" + _local2].hasrifle == true) && (_root.game0["player" + _local2].rifleammo > 0)) { _root.game0["player" + _local2].weapon = riflenum; } } if (Key.isDown(50)) { if ((_root.game0["player" + _local2].haspistol == true) && (_root.game0["player" + _local2].pistolammo > 0)) { _root.game0["player" + _local2].weapon = pistolnum; } } if (Key.isDown(54)) { if ((_root.game0["player" + _local2].hasgrenade == true) && (_root.game0["player" + _local2].grenadeammo > 0)) { _root.game0["player" + _local2].weapon = grenadenum; } } if (Key.isDown(52)) { if ((_root.game0["player" + _local2].hasSMG == true) && (_root.game0["player" + _local2].SMGammo > 0)) { _root.game0["player" + _local2].weapon = SMGnum; } } if (Key.isDown(53)) { if ((_root.game0["player" + _local2].hasshotgun == true) && (_root.game0["player" + _local2].shotgunammo > 0)) { _root.game0["player" + _local2].weapon = shotgunnum; } } if (Key.isDown(49)) { if ((_root.game0["player" + _local2].hasshovel == true) && (_root.game0["player" + _local2].weapon != shovelnum)) { shovelsound1.start(0, 1); _root.game0["player" + _local2].weapon = shovelnum; } } if (_root.game0["player" + _local2].berserk == true) { _root.game0["player" + _local2].weapon = shovelnum; } if (mousedown == true) { if (_root.game0["player" + _local2].weapon == riflenum) { if ((_root.game0["player" + _local2].shootdelay == 0) && (_root.game0["player" + _local2].rifleammo > 0)) { if (segmentcollide(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + rifleyoffset, _root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, riflebarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, riflebarreldistance)) == false) { if (createbullet(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, riflebarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, riflebarreldistance), (_root.game0["player" + _local2].lookdirection + (Math.random() * rifleinaccuracy)) - (rifleinaccuracy * 0.5), rifleshootdistance, rifledamage, playerside, rifletracercolor, rifletraceralpha) == true) { rifleimpact(impactx, impacty); } _root.game0["player" + _local2].rifleammo = _root.game0["player" + _local2].rifleammo - 1; _root.game0["player" + _local2].shootdelay = rifleshootdelay; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = rifleframe + 1; if (Math.floor(Math.random() * riflecasingskip) == 0) { createbulletcasing(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, riflerecieverdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, riflerecieverdistance), riflecasingsize, correctdirection((_root.game0["player" + _local2].bodynormal + (Math.random() * bulletcasingdirection)) - (bulletcasingdirection * 0.5)), (Math.random() * bulletcasingspeed) + minbulletcasingspeed, (Math.random() * bulletcasingrotatespeed) - (bulletcasingrotatespeed * 0.5), riflecasingframe); } riflemuzzleflash(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, riflebarreldistance + rifleflashdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, riflebarreldistance + rifleflashdistance), _root.game0["player" + _local2].gundirection); } } else if ((_root.game0["player" + _local2].rifleammo <= 0) && (_root.game0["player" + _local2].shootdelay == 0)) { _root.game0["player" + _local2].weapon = shovelnum; _root.game0["player" + _local2].shootdelay = 30; dryfiresound.start(0, 1); } } if (_root.game0["player" + _local2].weapon == pistolnum) { if ((_root.game0["player" + _local2].shootdelay == 0) && (_root.game0["player" + _local2].pistolammo > 0)) { if (segmentcollide(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + pistolyoffset, _root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, pistolbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, pistolbarreldistance)) == false) { if (createbullet(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, pistolbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, pistolbarreldistance), (_root.game0["player" + _local2].lookdirection + (Math.random() * pistolinaccuracy)) - (pistolinaccuracy * 0.5), pistolshootdistance, pistoldamage, playerside, pistoltracercolor, pistoltraceralpha) == true) { pistolimpact(impactx, impacty); } _root.game0["player" + _local2].pistolammo = _root.game0["player" + _local2].pistolammo - 1; _root.game0["player" + _local2].shootdelay = pistolshootdelay; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = pistolframe + 1; if (Math.floor(Math.random() * pistolcasingskip) == 0) { createbulletcasing(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, pistolrecieverdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, pistolrecieverdistance), pistolcasingsize, correctdirection((_root.game0["player" + _local2].bodynormal + (Math.random() * bulletcasingdirection)) - (bulletcasingdirection * 0.5)), (Math.random() * bulletcasingspeed) + minbulletcasingspeed, (Math.random() * bulletcasingrotatespeed) - (bulletcasingrotatespeed * 0.5), pistolcasingframe); } pistolmuzzleflash(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, pistolbarreldistance + pistolflashdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, pistolbarreldistance + pistolflashdistance), _root.game0["player" + _local2].gundirection); } } else if ((_root.game0["player" + _local2].pistolammo <= 0) && (_root.game0["player" + _local2].shootdelay == 0)) { _root.game0["player" + _local2].weapon = shovelnum; _root.game0["player" + _local2].shootdelay = 30; dryfiresound.start(0, 1); } } if (_root.game0["player" + _local2].weapon == grenadenum) { if ((_root.game0["player" + _local2].shootdelay == 0) && (_root.game0["player" + _local2].grenadeammo > 0)) { if (segmentcollide(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + grenadeyoffset, _root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, grenadebarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, grenadebarreldistance)) == false) { creategrenade(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, grenadebarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, grenadebarreldistance), (_root.game0["player" + _local2].lookdirection + (Math.random() * grenadeinaccuracy)) - (grenadeinaccuracy * 0.5), grenadeshootdistance, (Math.random() * grenaderotatespeed) - (grenaderotatespeed * 0.5), -1); _root.game0["player" + _local2].grenadeammo = _root.game0["player" + _local2].grenadeammo - 1; _root.game0["player" + _local2].shootdelay = grenadeshootdelay; _root.game0["player" + _local2].framedelay = grenadeshootdelay * 0.5; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = grenadeframe + 1; if (_root.game0["player" + _local2].grenadeammo == 0) { _root.game0["player" + _local2].weapon = shovelnum; _root.game0["player" + _local2].shootdelay = 30; } } } } if (_root.game0["player" + _local2].weapon == shotgunnum) { if ((_root.game0["player" + _local2].shootdelay == 0) && (_root.game0["player" + _local2].shotgunammo > 0)) { if (segmentcollide(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + shotgunyoffset, _root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shotgunbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shotgunbarreldistance)) == false) { l = 0; while (l < 3) { if (createbullet(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shotgunbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shotgunbarreldistance), (_root.game0["player" + _local2].lookdirection + (Math.random() * shotguninaccuracy)) - (shotguninaccuracy * 0.5), shotgunshootdistance, shotgundamage, playerside, shotguntracercolor, shotguntraceralpha) == true) { shotgunimpact(impactx, impacty); } l = l + 1; } _root.game0["player" + _local2].shotgunammo = _root.game0["player" + _local2].shotgunammo - 1; _root.game0["player" + _local2].shootdelay = shotgunshootdelay; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = shotgunframe + 1; if (Math.floor(Math.random() * shotguncasingskip) == 0) { createbulletcasing(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shotgunrecieverdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shotgunrecieverdistance), shotguncasingsize, correctdirection((_root.game0["player" + _local2].bodynormal + (Math.random() * bulletcasingdirection)) - (bulletcasingdirection * 0.5)), (Math.random() * bulletcasingspeed) + minbulletcasingspeed, (Math.random() * bulletcasingrotatespeed) - (bulletcasingrotatespeed * 0.5), shotguncasingframe); } shotgunmuzzleflash(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shotgunbarreldistance + shotgunflashdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shotgunbarreldistance + shotgunflashdistance), _root.game0["player" + _local2].gundirection); } } else if ((_root.game0["player" + _local2].shotgunammo <= 0) && (_root.game0["player" + _local2].shootdelay == 0)) { _root.game0["player" + _local2].weapon = shovelnum; _root.game0["player" + _local2].shootdelay = 30; dryfiresound.start(0, 1); } } if (_root.game0["player" + _local2].weapon == SMGnum) { if ((_root.game0["player" + _local2].shootdelay == 0) && (_root.game0["player" + _local2].SMGammo > 0)) { if (segmentcollide(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + SMGyoffset, _root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, SMGbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, SMGbarreldistance)) == false) { if (createbullet(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, SMGbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, SMGbarreldistance), (_root.game0["player" + _local2].lookdirection + (Math.random() * SMGinaccuracy)) - (SMGinaccuracy * 0.5), SMGshootdistance, SMGdamage, playerside, SMGtracercolor, SMGtraceralpha) == true) { SMGimpact(impactx, impacty); } _root.game0["player" + _local2].SMGammo = _root.game0["player" + _local2].SMGammo - 1; _root.game0["player" + _local2].shootdelay = SMGshootdelay; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = SMGframe + 1; if (Math.floor(Math.random() * SMGcasingskip) == 0) { createbulletcasing(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, SMGrecieverdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, SMGrecieverdistance), SMGcasingsize, correctdirection((_root.game0["player" + _local2].bodynormal + (Math.random() * bulletcasingdirection)) - (bulletcasingdirection * 0.5)), (Math.random() * bulletcasingspeed) + minbulletcasingspeed, (Math.random() * bulletcasingrotatespeed) - (bulletcasingrotatespeed * 0.5), SMGcasingframe); } SMGmuzzleflash(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, SMGbarreldistance + SMGflashdistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, SMGbarreldistance + SMGflashdistance), _root.game0["player" + _local2].gundirection); } } else if ((_root.game0["player" + _local2].SMGammo <= 0) && (_root.game0["player" + _local2].shootdelay == 0)) { _root.game0["player" + _local2].weapon = shovelnum; _root.game0["player" + _local2].shootdelay = 30; dryfiresound.start(0, 1); } } if (_root.game0["player" + _local2].weapon == shovelnum) { if (_root.game0["player" + _local2].shootdelay == 0) { if (_root.game0["player" + _local2].berserk == true) { if (createbullet(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shovelbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shovelbarreldistance), _root.game0["player" + _local2].lookdirection, shovelshootdistance, shoveldamage * berserkmultiplier, playerside, 16777215, 0) == true) { shovelimpact(impactx, impacty); } } else if (createbullet(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shovelbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shovelbarreldistance), _root.game0["player" + _local2].lookdirection, shovelshootdistance, shoveldamage, playerside, 16777215, 0) == true) { shovelimpact(impactx, impacty); } shovelsmoke(_root.game0["player" + _local2].bodyx + vectorx(_root.game0["player" + _local2].gundirection, shovelbarreldistance), _root.game0["player" + _local2].bodyy + vectory(_root.game0["player" + _local2].gundirection, shovelbarreldistance)); if (timedown == 0) { shovelsound2.start(0, 1); } _root.game0["player" + _local2].shootdelay = shovelshootdelay; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].frame = shovelframe + 1; _root.game0["player" + _local2].framedelay = 5; } } } else if (_root.game0["player" + _local2].shootdelay == -1) { _root.game0["player" + _local2].shootdelay = 0; } if (_root.game0["player" + _local2].shootdelay > 0) { _root.game0["player" + _local2].shootdelay = _root.game0["player" + _local2].shootdelay - 1; } if (Key.isDown(65)) { deltahs = deltahs - (playermoveacceleration * movefactor); } if (Key.isDown(68)) { deltahs = deltahs + (playermoveacceleration * movefactor); } deltahs2 = 0; if (_root.game0["player" + _local2].slow > 0) { if (deltahs > 0) { deltahs2 = ((-bulletslowamount) * _root.game0["player" + _local2].slow) * 0.5; } if (deltahs < 0) { deltahs2 = (bulletslowamount * _root.game0["player" + _local2].slow) * 0.5; } _root.game0["player" + _local2].slow = 0; } if (Key.isDown(87)) { if ((movefactor != playeraircontrolfactor) && (_root.game0["player" + _local2].jumpdelay == -1)) { _root.game0["player" + _local2].jumpdelay = playerjumpdelay; if (_root.game0["player" + _local2].berserk == false) { deltavs = playerjumpspeed * movefactor; } else { deltavs = -5 * movefactor; } if (movefactor == 1) { jumpdust((_root.game0["player" + _local2]._x + (Math.random() * 10)) - 5, ((_root.game0["player" + _local2]._y + (ragdollheight * 2)) + (Math.random() * 10)) - 5); } } } else if (_root.game0["player" + _local2].jumpdelay == 0) { _root.game0["player" + _local2].jumpdelay = -1; } if (_root.game0["player" + _local2].jumpdelay > 0) { _root.game0["player" + _local2].jumpdelay = _root.game0["player" + _local2].jumpdelay - 1; } temporaryhs = px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1]; if (Math.abs((temporaryhs + deltahs) + deltahs2) < maxmovespeed) { px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] = (px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] + deltahs) + deltahs2; px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] = (px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] + deltahs) + deltahs2; } else if (Math.abs(temporaryhs) < maxmovespeed) { if (temporaryhs > 0) { px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] + maxmovespeed; px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] + maxmovespeed; } else { px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] - maxmovespeed; px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] - maxmovespeed; } } if (_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum]._x < 1) { px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] = 1; px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] = 1; } if (_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum]._x > 599) { px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] = 599; px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] = 599; } py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] = py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] + deltavs; py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] = py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] + deltavs; temporaryhs = Math.abs(px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum + 1]); if (deltahs > 0) { _root.game0["player" + _local2].walkdirection = 0; } if (deltahs < 0) { _root.game0["player" + _local2].walkdirection = 1; } _root.game0["legA" + _root.game0["player" + _local2].firstlegnum].framerate = 1; if (deltahs == 0) { if (_root.game0["player" + _local2].walkdirection == 0) { if (_root.game0["legA" + _root.game0["player" + _local2].firstlegnum].frame == 4) { _root.game0["legA" + _root.game0["player" + _local2].firstlegnum].framerate = 0; } } else if (_root.game0["legA" + _root.game0["player" + _local2].firstlegnum].frame == 14) { _root.game0["legA" + _root.game0["player" + _local2].firstlegnum].framerate = 0; } } if (movefactor == playeraircontrolfactor) { _root.game0["legA" + _root.game0["player" + _local2].firstlegnum].framerate = 0; } if (_root.game0["player" + _local2].walkdirection == 0) { _root.game0["legA" + _root.game0["player" + _local2].firstlegnum]._xscale = 100; _root.game0["legA" + (_root.game0["player" + _local2].firstlegnum + 1)]._xscale = 100; } else { _root.game0["legA" + _root.game0["player" + _local2].firstlegnum]._xscale = -100; _root.game0["legA" + (_root.game0["player" + _local2].firstlegnum + 1)]._xscale = -100; } _root.game0["legA" + (_root.game0["player" + _local2].firstlegnum + 1)].frame = _root.game0["legA" + _root.game0["player" + _local2].firstlegnum].frame + 11; _root.game0["player" + _local2]._y = py[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum] - groundoffset; _root.game0["player" + _local2]._x = px[_root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].firstpnum]; gundirection = 0; if (_root.game0["player" + _local2].weapon == riflenum) { gundirection = directiontopoint(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + rifleyoffset, mousex, mousey); } if (_root.game0["player" + _local2].weapon == pistolnum) { gundirection = directiontopoint(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + pistolyoffset, mousex, mousey); } if (_root.game0["player" + _local2].weapon == grenadenum) { gundirection = directiontopoint(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + grenadeyoffset, mousex, mousey); } if (_root.game0["player" + _local2].weapon == shotgunnum) { gundirection = directiontopoint(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + shotgunyoffset, mousex, mousey); } if (_root.game0["player" + _local2].weapon == SMGnum) { gundirection = directiontopoint(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + SMGyoffset, mousex, mousey); } if (_root.game0["player" + _local2].weapon == shovelnum) { gundirection = directiontopoint(_root.game0["player" + _local2]._x, _root.game0["player" + _local2]._y + shovelyoffset, mousex, mousey); } _root.game0["player" + _local2].lookdirection = gundirection; if (mousex > _root.game0["player" + _local2]._x) { _root.game0["player" + _local2].facedirection = 0; } else { _root.game0["player" + _local2].facedirection = 1; } if (_root.game0["player" + _local2].facedirection == 0) { directiondelta = finddirection(0, gundirection); _root.game0["bodyA" + _root.game0["player" + _local2].bodynum]._xscale = 100; } else { directiondelta = finddirection(180, gundirection); _root.game0["bodyA" + _root.game0["player" + _local2].bodynum]._xscale = -100; } if (directiondelta > 0) { if (directiondelta > maxlookdelta) { directiondelta = maxlookdelta; } } else if (directiondelta < (-maxlookdelta)) { directiondelta = -maxlookdelta; } _root.game0["player" + _local2].gundirection = correctdirection((180 * _root.game0["player" + _local2].facedirection) - directiondelta); if (_root.game0["player" + _local2].facedirection == 0) { bodynormal = correctdirection(_root.game0["player" + _local2].gundirection + 90); } else { bodynormal = correctdirection(_root.game0["player" + _local2].gundirection - 90); } _root.game0["bodyA" + _root.game0["player" + _local2].bodynum]._rotation = directiondelta; legsoffset = (ragdollheight * 2) - (upperleglength + lowerleglength); _root.game0["legA" + _root.game0["player" + _local2].firstlegnum]._x = _root.game0["player" + _local2]._x - (chestlength * 0.5); _root.game0["legA" + _root.game0["player" + _local2].firstlegnum]._y = _root.game0["player" + _local2]._y + legsoffset; _root.game0["legA" + (_root.game0["player" + _local2].firstlegnum + 1)]._x = _root.game0["player" + _local2]._x + (chestlength * 0.5); _root.game0["legA" + (_root.game0["player" + _local2].firstlegnum + 1)]._y = _root.game0["player" + _local2]._y + legsoffset; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum]._y = _root.game0["player" + _local2]._y + legsoffset; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum]._x = _root.game0["player" + _local2]._x; if (_root.game0["player" + _local2].weapon == riflenum) { _root.game0["player" + _local2].bodyy = (_root.game0["player" + _local2]._y + legsoffset) + vectory(bodynormal, legsoffset - rifleyoffset); _root.game0["player" + _local2].bodyx = _root.game0["player" + _local2]._x + vectorx(bodynormal, legsoffset - rifleyoffset); } if (_root.game0["player" + _local2].weapon == pistolnum) { _root.game0["player" + _local2].bodyy = (_root.game0["player" + _local2]._y + legsoffset) + vectory(bodynormal, legsoffset - pistolyoffset); _root.game0["player" + _local2].bodyx = _root.game0["player" + _local2]._x + vectorx(bodynormal, legsoffset - pistolyoffset); } if (_root.game0["player" + _local2].weapon == grenadenum) { _root.game0["player" + _local2].bodyy = (_root.game0["player" + _local2]._y + legsoffset) + vectory(bodynormal, legsoffset - grenadeyoffset); _root.game0["player" + _local2].bodyx = _root.game0["player" + _local2]._x + vectorx(bodynormal, legsoffset - grenadeyoffset); } if (_root.game0["player" + _local2].weapon == shotgunnum) { _root.game0["player" + _local2].bodyy = (_root.game0["player" + _local2]._y + legsoffset) + vectory(bodynormal, legsoffset - shotgunyoffset); _root.game0["player" + _local2].bodyx = _root.game0["player" + _local2]._x + vectorx(bodynormal, legsoffset - shotgunyoffset); } if (_root.game0["player" + _local2].weapon == SMGnum) { _root.game0["player" + _local2].bodyy = (_root.game0["player" + _local2]._y + legsoffset) + vectory(bodynormal, legsoffset - SMGyoffset); _root.game0["player" + _local2].bodyx = _root.game0["player" + _local2]._x + vectorx(bodynormal, legsoffset - SMGyoffset); } if (_root.game0["player" + _local2].weapon == shovelnum) { _root.game0["player" + _local2].bodyy = (_root.game0["player" + _local2]._y + legsoffset) + vectory(bodynormal, legsoffset - shovelyoffset); _root.game0["player" + _local2].bodyx = _root.game0["player" + _local2]._x + vectorx(bodynormal, legsoffset - shovelyoffset); } _root.game0["player" + _local2].bodynormal = bodynormal; } else { _root.game0["objectline" + _root.game0["player" + _local2].objectlinenum].active = false; _root.game0["legA" + _root.game0["player" + _local2].firstlegnum].active = false; _root.game0["legA" + (_root.game0["player" + _local2].firstlegnum + 1)].active = false; _root.game0["bodyA" + _root.game0["player" + _local2].bodynum].active = false; } _local2 = _local2 + 1; } } function gamecodepart4() { var _local2 = 0; while (_local2 < enemyAs) { if (_root.game0["enemyA" + _local2].active == true) { deltahs = 0; deltavs = 0; maxmovespeed = enemyAmaxmovespeed; if (_root.game0["enemyA" + _local2].onfire == true) { maxmovespeed = 5; zombiefire(_root.game0["enemyA" + _local2]._x, _root.game0["enemyA" + _local2]._y + (Math.random() * ragdollheight)); } movefactor = enemyAaircontrolfactor; d = 0; while (d < waterpools) { if ((((px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._x) && (px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth))) && (py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._y)) && (py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth))) { movefactor = enemyAwatercontrolfactor; } d = d + 1; } groundoffset = 0; if (segmentcollide(px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1], px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] + 2) == true) { movefactor = 1; groundoffset = py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] - bestcy; } if (_root.game0.player0.active == true) { if ((approxdistance(_root.game0["enemyA" + _local2]._x, _root.game0["enemyA" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y) < enemyAseedistance) && (approxdistance(_root.game0["enemyA" + _local2]._x, _root.game0["enemyA" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y) > 0)) { foundplayer = true; _root.game0["enemyA" + _local2].hastarget = true; _root.game0["enemyA" + _local2].patrolling = false; _root.game0["enemyA" + _local2].targetx = _root.game0.player0._x; _root.game0["enemyA" + _local2].targety = _root.game0.player0._y; } else { foundplayer = false; } } else { foundplayer = false; _root.game0["enemyA" + _local2].hastarget = false; } _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum].frame = 0; if (foundplayer == true) { _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum].frame = 2; } if (_root.game0["enemyA" + _local2].hastarget == true) { if (_root.game0.player0.active == false) { _root.game0["enemyA" + _local2].hastarget = false; } if (_root.game0["enemyA" + _local2]._x > _root.game0["enemyA" + _local2].targetx) { if ((_root.game0["enemyA" + _local2].movedelay == 0) || (_root.game0["enemyA" + _local2].movedirection == 1)) { deltahs = deltahs - (enemyAmoveacceleration * movefactor); _root.game0["enemyA" + _local2].movedelay = enemyAmovedelay + Math.round((Math.random() * enemyAmovedelay) * 0.5); _root.game0["enemyA" + _local2].movedirection = 1; } } else if ((_root.game0["enemyA" + _local2].movedelay == 0) || (_root.game0["enemyA" + _local2].movedirection == 0)) { deltahs = deltahs + (enemyAmoveacceleration * movefactor); _root.game0["enemyA" + _local2].movedelay = enemyAmovedelay + Math.round((Math.random() * enemyAmovedelay) * 0.5); _root.game0["enemyA" + _local2].movedirection = 0; } if (_root.game0["enemyA" + _local2].movedelay > 0) { _root.game0["enemyA" + _local2].movedelay = _root.game0["enemyA" + _local2].movedelay - 1; } if (_root.game0["enemyA" + _local2].movedelay == 0) { if (foundplayer == false) { _root.game0["enemyA" + _local2].hastarget = false; } } if (approxdistance(_root.game0["enemyA" + _local2]._x, _root.game0["enemyA" + _local2]._y, _root.game0["enemyA" + _local2].targetx, _root.game0["enemyA" + _local2].targety) < (enemyAshootdistance * 1.5)) { if (Math.abs(_root.game0["enemyA" + _local2]._x - _root.game0["enemyA" + _local2].targetx) < (enemyAshootdistance * 0.71)) { if (((_root.game0["enemyA" + _local2]._x > _root.game0["enemyA" + _local2].targetx) && (_root.game0["enemyA" + _local2].movedirection == 1)) || ((_root.game0["enemyA" + _local2]._x < _root.game0["enemyA" + _local2].targetx) && (_root.game0["enemyA" + _local2].movedirection == 0))) { if (_root.game0["enemyA" + _local2].shootdelay == 0) { _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum].frame = 3; _root.game0["enemyA" + _local2].framedelay = enemyAshootdelay * 0.5; _root.game0["enemyA" + _local2].shootdelay = enemyAshootdelay; createbullet(_root.game0["enemyA" + _local2]._x, _root.game0["enemyA" + _local2]._y + 12, ((_root.game0["enemyA" + _local2].movedirection * 180) + (Math.random() * enemyAinaccuracy)) - (enemyAinaccuracy * 0.5), enemyAshootdistance, enemyAdamage, enemyside, 16777215, 0); } } } } if (_root.game0["enemyA" + _local2].shootdelay > 0) { _root.game0["enemyA" + _local2].shootdelay = _root.game0["enemyA" + _local2].shootdelay - 1; } } else if (_root.game0["enemyA" + _local2].patrolling == true) { if ((checknode(_root.game0["enemyA" + _local2]._x, _root.game0["enemyA" + _local2]._y + ragdollheight) == true) && (currentnode != _root.game0["enemyA" + _local2].lastnode)) { _root.game0["enemyA" + _local2].lastnode = currentnode; if (_root.game0["enemyA" + _local2].movedirection == 0) { _root.game0["enemyA" + _local2].movedirection = 1; } else { _root.game0["enemyA" + _local2].movedirection = 0; } } if (_root.game0["enemyA" + _local2].movedirection == 0) { deltahs = deltahs + (enemyAmoveacceleration * movefactor); } else { deltahs = deltahs - (enemyAmoveacceleration * movefactor); } } deltahs2 = 0; if (_root.game0["enemyA" + _local2].slow > 0) { if (deltahs > 0) { deltahs2 = (-bulletslowamount) * _root.game0["enemyA" + _local2].slow; } if (deltahs < 0) { deltahs2 = bulletslowamount * _root.game0["enemyA" + _local2].slow; } _root.game0["enemyA" + _local2].slow = 0; } if (_root.game0["enemyA" + _local2].framedelay > 0) { _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum].frame = 3; _root.game0["enemyA" + _local2].framedelay = _root.game0["enemyA" + _local2].framedelay - 1; } temporaryhs = px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1]; if (Math.abs((temporaryhs + deltahs) + deltahs2) < maxmovespeed) { px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] = (px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] + deltahs) + deltahs2; px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] = (px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] + deltahs) + deltahs2; } else if (Math.abs(temporaryhs) < maxmovespeed) { if (temporaryhs > 0) { px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] + maxmovespeed; px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] + maxmovespeed; } else { px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] - maxmovespeed; px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] - maxmovespeed; } } py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] = py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] + deltavs; py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] = py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] + deltavs; temporaryhs = Math.abs(px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum + 1]); if (deltahs > 0) { _root.game0["enemyA" + _local2].movedirection = 0; } if (deltahs < 0) { _root.game0["enemyA" + _local2].movedirection = 1; } _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].framerate = 1; if (deltahs == 0) { if (_root.game0["enemyA" + _local2].movedirection == 0) { if (_root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].frame == 4) { _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].framerate = 0; } } else if (_root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].frame == 14) { _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].framerate = 0; } } else if (foundplayer == false) { _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum].frame = 1; } if (movefactor == enemyAaircontrolfactor) { _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].framerate = 0; } if (_root.game0["enemyA" + _local2].movedirection == 0) { _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum]._xscale = 100; _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum]._xscale = 100; _root.game0["legB" + (_root.game0["enemyA" + _local2].firstlegnum + 1)]._xscale = 100; } else { _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum]._xscale = -100; _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum]._xscale = -100; _root.game0["legB" + (_root.game0["enemyA" + _local2].firstlegnum + 1)]._xscale = -100; } _root.game0["legB" + (_root.game0["enemyA" + _local2].firstlegnum + 1)].frame = _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].frame + 11; _root.game0["enemyA" + _local2]._y = py[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum] - groundoffset; _root.game0["enemyA" + _local2]._x = px[_root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].firstpnum]; legsoffset = (ragdollheight * 2) - (upperleglength + lowerleglength); _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum]._x = _root.game0["enemyA" + _local2]._x - (chestlength * 0.5); _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum]._y = _root.game0["enemyA" + _local2]._y + legsoffset; _root.game0["legB" + (_root.game0["enemyA" + _local2].firstlegnum + 1)]._x = _root.game0["enemyA" + _local2]._x + (chestlength * 0.5); _root.game0["legB" + (_root.game0["enemyA" + _local2].firstlegnum + 1)]._y = _root.game0["enemyA" + _local2]._y + legsoffset; _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum]._y = _root.game0["enemyA" + _local2]._y + legsoffset; _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum]._x = _root.game0["enemyA" + _local2]._x; } else { _root.game0["objectline" + _root.game0["enemyA" + _local2].objectlinenum].active = false; _root.game0["legB" + _root.game0["enemyA" + _local2].firstlegnum].active = false; _root.game0["legB" + (_root.game0["enemyA" + _local2].firstlegnum + 1)].active = false; _root.game0["bodyB" + _root.game0["enemyA" + _local2].bodynum].active = false; } _local2 = _local2 + 1; } _local2 = 0; while (_local2 < enemyBs) { if (_root.game0["enemyB" + _local2].active == true) { deltahs = 0; deltavs = 0; if (_root.game0["enemyB" + _local2].kamikaze == false) { maxmovespeed = enemyBmaxmovespeed; } else { maxmovespeed = enemyBmaxmovespeed + 1; } movefactor = enemyBaircontrolfactor; d = 0; while (d < waterpools) { if ((((px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._x) && (px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth))) && (py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._y)) && (py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth))) { movefactor = enemyBwatercontrolfactor; } d = d + 1; } groundoffset = 0; if (segmentcollide(px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1], px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] + 2) == true) { movefactor = 1; groundoffset = py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] - bestcy; } if (_root.game0.player0.active == true) { if ((approxdistance(_root.game0["enemyB" + _local2]._x, _root.game0["enemyB" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y) < enemyBseedistance) && (approxdistance(_root.game0["enemyB" + _local2]._x, _root.game0["enemyB" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y) > 0)) { foundplayer = true; _root.game0["enemyB" + _local2].hastarget = true; _root.game0["enemyB" + _local2].patrolling = false; _root.game0["enemyB" + _local2].targetx = _root.game0.player0._x; _root.game0["enemyB" + _local2].targety = _root.game0.player0._y; } else { foundplayer = false; } } else { foundplayer = false; _root.game0["enemyB" + _local2].hastarget = false; } _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum].frame = 0; if (foundplayer == true) { _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum].frame = 2; } if (_root.game0["enemyB" + _local2].hastarget == true) { if (_root.game0.player0.active == false) { _root.game0["enemyB" + _local2].hastarget = false; } if (_root.game0["enemyB" + _local2]._x > _root.game0["enemyB" + _local2].targetx) { if ((_root.game0["enemyB" + _local2].movedelay == 0) || (_root.game0["enemyB" + _local2].movedirection == 1)) { deltahs = deltahs - (enemyBmoveacceleration * movefactor); _root.game0["enemyB" + _local2].movedelay = enemyBmovedelay + Math.round((Math.random() * enemyBmovedelay) * 0.5); _root.game0["enemyB" + _local2].movedirection = 1; } } else if ((_root.game0["enemyB" + _local2].movedelay == 0) || (_root.game0["enemyB" + _local2].movedirection == 0)) { deltahs = deltahs + (enemyBmoveacceleration * movefactor); _root.game0["enemyB" + _local2].movedelay = enemyBmovedelay + Math.round((Math.random() * enemyBmovedelay) * 0.5); _root.game0["enemyB" + _local2].movedirection = 0; } if (_root.game0["enemyB" + _local2].movedelay > 0) { _root.game0["enemyB" + _local2].movedelay = _root.game0["enemyB" + _local2].movedelay - 1; } if (_root.game0["enemyB" + _local2].movedelay == 0) { if (foundplayer == false) { _root.game0["enemyB" + _local2].hastarget = false; } } if (_root.game0["enemyB" + _local2].kamikaze == true) { grenadesmoke((_root.game0["enemyB" + _local2]._x + (Math.random() * 12)) - 6, _root.game0["enemyB" + _local2]._y + (Math.random() * 16)); } if (approxdistance(_root.game0["enemyB" + _local2]._x, _root.game0["enemyB" + _local2]._y, _root.game0["enemyB" + _local2].targetx, _root.game0["enemyB" + _local2].targety) < (enemyBshootdistance * 1.5)) { if (Math.abs(_root.game0["enemyB" + _local2]._x - _root.game0["enemyB" + _local2].targetx) < (enemyBshootdistance * 0.71)) { if (((_root.game0["enemyB" + _local2]._x > _root.game0["enemyB" + _local2].targetx) && (_root.game0["enemyB" + _local2].movedirection == 1)) || ((_root.game0["enemyB" + _local2]._x < _root.game0["enemyB" + _local2].targetx) && (_root.game0["enemyB" + _local2].movedirection == 0))) { if (_root.game0["enemyB" + _local2].kamikaze == false) { if (_root.game0["enemyB" + _local2].shootdelay == 0) { _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum].frame = 3; _root.game0["enemyB" + _local2].framedelay = enemyBshootdelay * 0.5; _root.game0["enemyB" + _local2].shootdelay = enemyBshootdelay; createbullet(_root.game0["enemyB" + _local2]._x, _root.game0["enemyB" + _local2]._y + 12, ((_root.game0["enemyB" + _local2].movedirection * 180) + (Math.random() * enemyBinaccuracy)) - (enemyBinaccuracy * 0.5), enemyBshootdistance, enemyBdamage, enemyside, 16777215, 0); } } else { createblast(_root.game0["enemyB" + _local2]._x, _root.game0["enemyB" + _local2]._y + 8, kamikazeradius, kamikazepush, kamikazedamage, -1); kamikazeexplosion(_root.game0["enemyB" + _local2]._x, _root.game0["enemyB" + _local2]._y + 8); } } } } if (_root.game0["enemyB" + _local2].shootdelay > 0) { _root.game0["enemyB" + _local2].shootdelay = _root.game0["enemyB" + _local2].shootdelay - 1; } } else if (_root.game0["enemyB" + _local2].patrolling == true) { if ((checknode(_root.game0["enemyB" + _local2]._x, _root.game0["enemyB" + _local2]._y + ragdollheight) == true) && (currentnode != _root.game0["enemyB" + _local2].lastnode)) { _root.game0["enemyB" + _local2].lastnode = currentnode; if (_root.game0["enemyB" + _local2].movedirection == 0) { _root.game0["enemyB" + _local2].movedirection = 1; } else { _root.game0["enemyB" + _local2].movedirection = 0; } } if (_root.game0["enemyB" + _local2].movedirection == 0) { deltahs = deltahs + (enemyBmoveacceleration * movefactor); } else { deltahs = deltahs - (enemyBmoveacceleration * movefactor); } } deltahs2 = 0; if (_root.game0["enemyB" + _local2].slow > 0) { _root.game0["enemyB" + _local2].slow = 0; if (deltahs > 0) { deltahs2 = (-bulletslowamount) * _root.game0["enemyB" + _local2].slow; } if (deltahs < 0) { deltahs2 = bulletslowamount * _root.game0["enemyB" + _local2].slow; } _root.game0["enemyB" + _local2].slow = 0; } if (_root.game0["enemyB" + _local2].framedelay > 0) { _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum].frame = 3; _root.game0["enemyB" + _local2].framedelay = _root.game0["enemyB" + _local2].framedelay - 1; } temporaryhs = px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1]; if (Math.abs((temporaryhs + deltahs) + deltahs2) < maxmovespeed) { px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] = (px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] + deltahs) + deltahs2; px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] = (px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] + deltahs) + deltahs2; } else if (Math.abs(temporaryhs) < maxmovespeed) { if (temporaryhs > 0) { px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] + maxmovespeed; px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] + maxmovespeed; } else { px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] - maxmovespeed; px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] - maxmovespeed; } } py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] = py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] + deltavs; py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] = py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] + deltavs; temporaryhs = Math.abs(px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum + 1]); if (deltahs > 0) { _root.game0["enemyB" + _local2].movedirection = 0; } if (deltahs < 0) { _root.game0["enemyB" + _local2].movedirection = 1; } _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].framerate = 1; if (deltahs == 0) { if (_root.game0["enemyB" + _local2].movedirection == 0) { if (_root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].frame == 4) { _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].framerate = 0; } } else if (_root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].frame == 14) { _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].framerate = 0; } } else if (foundplayer == false) { _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum].frame = 1; } if (movefactor == enemyBaircontrolfactor) { _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].framerate = 0; } if (_root.game0["enemyB" + _local2].kamikaze == true) { _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum].frame = 4; } if (_root.game0["enemyB" + _local2].movedirection == 0) { _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum]._xscale = 100; _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum]._xscale = 100; _root.game0["legC" + (_root.game0["enemyB" + _local2].firstlegnum + 1)]._xscale = 100; } else { _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum]._xscale = -100; _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum]._xscale = -100; _root.game0["legC" + (_root.game0["enemyB" + _local2].firstlegnum + 1)]._xscale = -100; } _root.game0["legC" + (_root.game0["enemyB" + _local2].firstlegnum + 1)].frame = _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].frame + 11; _root.game0["enemyB" + _local2]._y = py[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum] - groundoffset; _root.game0["enemyB" + _local2]._x = px[_root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].firstpnum]; legsoffset = (ragdollheight * 2) - (upperleglength + lowerleglength); _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum]._x = _root.game0["enemyB" + _local2]._x - (chestlength * 0.5); _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum]._y = _root.game0["enemyB" + _local2]._y + legsoffset; _root.game0["legC" + (_root.game0["enemyB" + _local2].firstlegnum + 1)]._x = _root.game0["enemyB" + _local2]._x + (chestlength * 0.5); _root.game0["legC" + (_root.game0["enemyB" + _local2].firstlegnum + 1)]._y = _root.game0["enemyB" + _local2]._y + legsoffset; _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum]._y = _root.game0["enemyB" + _local2]._y + legsoffset; _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum]._x = _root.game0["enemyB" + _local2]._x; } else { _root.game0["objectline" + _root.game0["enemyB" + _local2].objectlinenum].active = false; _root.game0["legC" + _root.game0["enemyB" + _local2].firstlegnum].active = false; _root.game0["legC" + (_root.game0["enemyB" + _local2].firstlegnum + 1)].active = false; _root.game0["bodyC" + _root.game0["enemyB" + _local2].bodynum].active = false; } _local2 = _local2 + 1; } _local2 = 0; while (_local2 < enemyCs) { if (_root.game0["enemyC" + _local2].active == true) { deltahs = 0; deltavs = 0; maxmovespeed = enemyCmaxmovespeed; movefactor = enemyCaircontrolfactor; d = 0; while (d < waterpools) { if ((((px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._x) && (px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._x + _root.game0["waterpool" + d].xwidth))) && (py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] > _root.game0["waterpool" + d]._y)) && (py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] < (_root.game0["waterpool" + d]._y + _root.game0["waterpool" + d].depth))) { movefactor = enemyCwatercontrolfactor; } d = d + 1; } groundoffset = 0; if (segmentcollide(px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1], px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1], py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] + 2) == true) { movefactor = 1; groundoffset = py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] - bestcy; } if (_root.game0.player0.active == true) { if ((approxdistance(_root.game0["enemyC" + _local2]._x, _root.game0["enemyC" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y) < enemyCseedistance) && (approxdistance(_root.game0["enemyC" + _local2]._x, _root.game0["enemyC" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y) > 0)) { foundplayer = true; _root.game0["enemyC" + _local2].hastarget = true; _root.game0["enemyC" + _local2].patrolling = false; _root.game0["enemyC" + _local2].targetx = _root.game0.player0._x; _root.game0["enemyC" + _local2].targety = _root.game0.player0._y; } else { foundplayer = false; } } else { foundplayer = false; _root.game0["enemyB" + _local2].hastarget = false; } _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum].frame = 0; if (foundplayer == true) { _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum].frame = 2; } if (_root.game0["enemyC" + _local2].hastarget == true) { if (_root.game0.player0.active == false) { _root.game0["enemyC" + _local2].hastarget = false; } if (_root.game0["enemyC" + _local2]._x > _root.game0["enemyC" + _local2].targetx) { if ((_root.game0["enemyC" + _local2].movedelay == 0) || (_root.game0["enemyC" + _local2].movedirection == 1)) { deltahs = deltahs - (enemyCmoveacceleration * movefactor); _root.game0["enemyC" + _local2].movedelay = enemyCmovedelay + Math.round((Math.random() * enemyCmovedelay) * 0.5); _root.game0["enemyC" + _local2].movedirection = 1; } } else if ((_root.game0["enemyC" + _local2].movedelay == 0) || (_root.game0["enemyC" + _local2].movedirection == 0)) { deltahs = deltahs + (enemyCmoveacceleration * movefactor); _root.game0["enemyC" + _local2].movedelay = enemyCmovedelay + Math.round((Math.random() * enemyCmovedelay) * 0.5); _root.game0["enemyC" + _local2].movedirection = 0; } if (_root.game0["enemyC" + _local2].movedelay > 0) { _root.game0["enemyC" + _local2].movedelay = _root.game0["enemyC" + _local2].movedelay - 1; } if (_root.game0["enemyC" + _local2].movedelay == 0) { if (foundplayer == false) { _root.game0["enemyC" + _local2].hastarget = false; } } if (approxdistance(_root.game0["enemyC" + _local2]._x, _root.game0["enemyC" + _local2]._y, _root.game0["enemyC" + _local2].targetx, _root.game0["enemyC" + _local2].targety) < (enemyCshootdistance * 1.5)) { if (Math.abs(_root.game0["enemyC" + _local2]._x - _root.game0["enemyC" + _local2].targetx) < (enemyCshootdistance * 0.71)) { if (((_root.game0["enemyC" + _local2]._x > _root.game0["enemyC" + _local2].targetx) && (_root.game0["enemyC" + _local2].movedirection == 1)) || ((_root.game0["enemyC" + _local2]._x < _root.game0["enemyC" + _local2].targetx) && (_root.game0["enemyC" + _local2].movedirection == 0))) { if (_root.game0["enemyC" + _local2].shootdelay == 0) { _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum].frame = 3; _root.game0["enemyC" + _local2].framedelay = enemyCshootdelay * 0.5; _root.game0["enemyC" + _local2].shootdelay = enemyCshootdelay; createbullet(_root.game0["enemyC" + _local2]._x, _root.game0["enemyC" + _local2]._y + 12, ((_root.game0["enemyC" + _local2].movedirection * 180) + (Math.random() * enemyCinaccuracy)) - (enemyCinaccuracy * 0.5), enemyCshootdistance, enemyCdamage, enemyside, 16777215, 0); } } } } if (_root.game0["enemyC" + _local2].shootdelay > 0) { _root.game0["enemyC" + _local2].shootdelay = _root.game0["enemyC" + _local2].shootdelay - 1; } } else if (_root.game0["enemyC" + _local2].patrolling == true) { if ((checknode(_root.game0["enemyC" + _local2]._x, _root.game0["enemyC" + _local2]._y + ragdollheight) == true) && (currentnode != _root.game0["enemyC" + _local2].lastnode)) { _root.game0["enemyC" + _local2].lastnode = currentnode; if (_root.game0["enemyC" + _local2].movedirection == 0) { _root.game0["enemyC" + _local2].movedirection = 1; } else { _root.game0["enemyC" + _local2].movedirection = 0; } } if (_root.game0["enemyC" + _local2].movedirection == 0) { deltahs = deltahs + (enemyCmoveacceleration * movefactor); } else { deltahs = deltahs - (enemyCmoveacceleration * movefactor); } } deltahs2 = 0; if (_root.game0["enemyC" + _local2].slow > 0) { if (deltahs > 0) { deltahs2 = (-bulletslowamount) * _root.game0["enemyC" + _local2].slow; } if (deltahs < 0) { deltahs2 = bulletslowamount * _root.game0["enemyC" + _local2].slow; } _root.game0["enemyC" + _local2].slow = 0; } if (_root.game0["enemyC" + _local2].framedelay > 0) { _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum].frame = 3; _root.game0["enemyC" + _local2].framedelay = _root.game0["enemyC" + _local2].framedelay - 1; } temporaryhs = px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1]; if (Math.abs((temporaryhs + deltahs) + deltahs2) < maxmovespeed) { px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] = (px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] + deltahs) + deltahs2; px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] = (px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] + deltahs) + deltahs2; } else if (Math.abs(temporaryhs) < maxmovespeed) { if (temporaryhs > 0) { px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] + maxmovespeed; px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] + maxmovespeed; } else { px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] = plx[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] - maxmovespeed; px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] = plx[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] - maxmovespeed; } } py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] = py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] + deltavs; py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] = py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] + deltavs; temporaryhs = Math.abs(px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1] - plx[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum + 1]); if (deltahs > 0) { _root.game0["enemyC" + _local2].movedirection = 0; } if (deltahs < 0) { _root.game0["enemyC" + _local2].movedirection = 1; } _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].framerate = 1; if (deltahs == 0) { if (_root.game0["enemyC" + _local2].movedirection == 0) { if (_root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].frame == 4) { _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].framerate = 0; } } else if (_root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].frame == 14) { _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].framerate = 0; } } else if (foundplayer == false) { _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum].frame = 1; } if (movefactor == enemyCaircontrolfactor) { _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].framerate = 0; } if (_root.game0["enemyC" + _local2].movedirection == 0) { _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum]._xscale = 100; _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum]._xscale = 100; _root.game0["legD" + (_root.game0["enemyC" + _local2].firstlegnum + 1)]._xscale = 100; } else { _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum]._xscale = -100; _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum]._xscale = -100; _root.game0["legD" + (_root.game0["enemyC" + _local2].firstlegnum + 1)]._xscale = -100; } _root.game0["legD" + (_root.game0["enemyC" + _local2].firstlegnum + 1)].frame = _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].frame + 11; _root.game0["enemyC" + _local2]._y = py[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum] - groundoffset; _root.game0["enemyC" + _local2]._x = px[_root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].firstpnum]; legsoffset = (ragdollheight * 2) - (upperleglength + lowerleglength); _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum]._x = _root.game0["enemyC" + _local2]._x - (chestlength * 0.5); _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum]._y = _root.game0["enemyC" + _local2]._y + legsoffset; _root.game0["legD" + (_root.game0["enemyC" + _local2].firstlegnum + 1)]._x = _root.game0["enemyC" + _local2]._x + (chestlength * 0.5); _root.game0["legD" + (_root.game0["enemyC" + _local2].firstlegnum + 1)]._y = _root.game0["enemyC" + _local2]._y + legsoffset; _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum]._y = _root.game0["enemyC" + _local2]._y + legsoffset; _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum]._x = _root.game0["enemyC" + _local2]._x; } else { _root.game0["objectline" + _root.game0["enemyC" + _local2].objectlinenum].active = false; _root.game0["legD" + _root.game0["enemyC" + _local2].firstlegnum].active = false; _root.game0["legD" + (_root.game0["enemyC" + _local2].firstlegnum + 1)].active = false; _root.game0["bodyD" + _root.game0["enemyC" + _local2].bodynum].active = false; } _local2 = _local2 + 1; } _local2 = 0; while (_local2 < turretbases) { if (_root.game0["turretbase" + _local2].active == true) { if (approxdistance(_root.game0["turretbase" + _local2]._x, _root.game0["turretbase" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y + ragdollheight) < turretseedistance) { if ((segmentcollide(_root.game0["turretbase" + _local2]._x, _root.game0["turretbase" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y + ragdollheight) == false) && (_root.game0.player0.active == true)) { _root.game0["turretbase" + _local2].targetdirection = directiontopoint(_root.game0["turretbase" + _local2]._x, _root.game0["turretbase" + _local2]._y, _root.game0.player0._x, _root.game0.player0._y + ragdollheight); if (Math.abs(finddirection(_root.game0["turretbase" + _local2].targetdirection, _root.game0["turretbase" + _local2].restdirection)) < turretmaxswivel) { _root.game0["turretbase" + _local2].hastarget = true; } else { _root.game0["turretbase" + _local2].hastarget = false; _root.game0["turretbase" + _local2].targetdirection = _root.game0["turretbase" + _local2].restdirection; } } else { _root.game0["turretbase" + _local2].targetdirection = _root.game0["turretbase" + _local2].restdirection; _root.game0["turretbase" + _local2].hastarget = false; } } else { _root.game0["turretbase" + _local2].targetdirection = _root.game0["turretbase" + _local2].restdirection; _root.game0["turretbase" + _local2].hastarget = false; } if (_root.game0["turretbase" + _local2].pointdirection != _root.game0["turretbase" + _local2].targetdirection) { if (Math.abs(finddirection(_root.game0["turretbase" + _local2].pointdirection, _root.game0["turretbase" + _local2].targetdirection)) <= turretrotatespeed) { _root.game0["turretbase" + _local2].pointdirection = _root.game0["turretbase" + _local2].targetdirection; } else if (finddirection(_root.game0["turretbase" + _local2].pointdirection, _root.game0["turretbase" + _local2].targetdirection) > 0) { _root.game0["turretbase" + _local2].pointdirection = _root.game0["turretbase" + _local2].pointdirection - turretrotatespeed; } else { _root.game0["turretbase" + _local2].pointdirection = _root.game0["turretbase" + _local2].pointdirection + turretrotatespeed; } } if (_root.game0["turretbase" + _local2].hastarget == true) { if (_root.game0["turretbase" + _local2].pointdirection == _root.game0["turretbase" + _local2].targetdirection) { if (_root.game0["turretbase" + _local2].shootdelay == 0) { turretmuzzleflash(_root.game0["turretbase" + _local2]._x + vectorx(_root.game0["turretbase" + _local2].pointdirection, turretbarreldistance + turretflashdistance), _root.game0["turretbase" + _local2]._y + vectory(_root.game0["turretbase" + _local2].pointdirection, turretbarreldistance + turretflashdistance), _root.game0["turretbase" + _local2].pointdirection); if (createbullet(_root.game0["turretbase" + _local2]._x + vectorx(_root.game0["turretbase" + _local2].pointdirection, turretbarreldistance), _root.game0["turretbase" + _local2]._y + vectory(_root.game0["turretbase" + _local2].pointdirection, turretbarreldistance), (_root.game0["turretbase" + _local2].pointdirection + (Math.random() * turretinaccuracy)) - (turretinaccuracy * 0.5), turretshootdistance, turretdamage, turretside, turrettracercolor, turrettraceralpha) == true) { weaponAimpact(impactx, impacty); } _root.game0["turretbase" + _local2].shootdelay = turretshootdelay; } else { _root.game0["turretbase" + _local2].shootdelay = _root.game0["turretbase" + _local2].shootdelay - 1; } } } _root.game0["turretbarrel" + _root.game0["turretbase" + _local2].barrelnum]._rotation = -_root.game0["turretbase" + _local2].pointdirection; } _local2 = _local2 + 1; } } function gamecodepart5() { h = 0; while (h < enemyAs) { if (_root.game0["enemyA" + h].active == true) { s = 0; while (s < blasts) { if ((blastactive[s] == true) && (blastside[s] != enemyside)) { explosiondistance = approxdistance(blastx[s], blasty[s], _root.game0["enemyA" + h]._x, _root.game0["enemyA" + h]._y + ragdollheight); if (explosiondistance < blastradius[s]) { if (segmentcollide(blastx[s], blasty[s], _root.game0["enemyA" + h]._x, _root.game0["enemyA" + h]._y + ragdollheight) == false) { damagetaken = ((blastradius[s] - explosiondistance) / blastradius[s]) * blastdamage[s]; _root.game0["enemyA" + h].damage = _root.game0["enemyA" + h].damage + damagetaken; bloodspray(_root.game0["enemyA" + h]._x, _root.game0["enemyA" + h]._y + ragdollheight, Math.round((damagetaken / blastdamage[s]) * explosionbloodps)); } } } s = s + 1; } if (_root.game0["enemyA" + h].damage >= enemyAhealth) { _root.game0["enemyA" + h].active = false; createcorpse(_root.game0["enemyA" + h]._x, _root.game0["enemyA" + h]._y, true, _root.game0["objectline" + _root.game0["enemyA" + h].objectlinenum].firstpnum, 1); zombiediesound.start(0, 1); } } h = h + 1; } h = 0; while (h < enemyAs) { if (_root.game0["enemyA" + h].active == true) { if (bulletcollide(_root.game0["enemyA" + h]._x, _root.game0["enemyA" + h]._y, _root.game0["enemyA" + h]._x, _root.game0["enemyA" + h]._y + (ragdollheight * 2), enemyside) == true) { s = 0; while (s < hits) { if ((hity[s] > _root.game0["enemyA" + h]._y) && (hity[s] < (_root.game0["enemyA" + h]._y + necklength))) { _root.game0["enemyA" + h].slow = _root.game0["enemyA" + h].slow + 2; bloodspray(hitx[s], hity[s], hsbloodps); _root.game0["enemyA" + h].damage = _root.game0["enemyA" + h].damage + (hitdamage[s] * headshotmultiplier); } else { _root.game0["enemyA" + h].slow = _root.game0["enemyA" + h].slow + 1; bloodspray(hitx[s], hity[s], bulletbloodps); _root.game0["enemyA" + h].damage = _root.game0["enemyA" + h].damage + hitdamage[s]; } s = s + 1; } if (_root.game0["enemyA" + h].damage >= enemyAhealth) { _root.game0["enemyA" + h].active = false; createcorpse(_root.game0["enemyA" + h]._x, _root.game0["enemyA" + h]._y, true, _root.game0["objectline" + _root.game0["enemyA" + h].objectlinenum].firstpnum, 1); s = 0; while (s < hits) { physicspush(hitx[s], hity[s], bulletpushradius, bulletdirection[s], bulletpushspeed); s = s + 1; } zombiediesound.start(0, 1); } } } h = h + 1; } h = 0; while (h < enemyBs) { if (_root.game0["enemyB" + h].active == true) { s = 0; while (s < blasts) { if ((blastactive[s] == true) && (blastside[s] != enemyside)) { explosiondistance = approxdistance(blastx[s], blasty[s], _root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + ragdollheight); if (explosiondistance < blastradius[s]) { if (segmentcollide(blastx[s], blasty[s], _root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + ragdollheight) == false) { damagetaken = ((blastradius[s] - explosiondistance) / blastradius[s]) * blastdamage[s]; _root.game0["enemyB" + h].damage = _root.game0["enemyB" + h].damage + damagetaken; bloodspray(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + ragdollheight, Math.round((damagetaken / blastdamage[s]) * explosionbloodps)); } } } s = s + 1; } if (_root.game0["enemyB" + h].damage >= enemyBhealth) { _root.game0["enemyB" + h].active = false; if (_root.game0["enemyB" + h].kamikaze == false) { createcorpse(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y, true, _root.game0["objectline" + _root.game0["enemyB" + h].objectlinenum].firstpnum, 2); zombiediesound.start(0, 1); createpointdebris(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + 8, 9); } else { createblast(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + 8, kamikazeradius, kamikazepush, kamikazedamage, -1); kamikazeexplosion(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + 8); } } } h = h + 1; } h = 0; while (h < enemyBs) { if (_root.game0["enemyB" + h].active == true) { if (bulletcollide(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y, _root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + (ragdollheight * 2), enemyside) == true) { s = 0; while (s < hits) { if ((hity[s] > _root.game0["enemyB" + h]._y) && (hity[s] < (_root.game0["enemyB" + h]._y + necklength))) { _root.game0["enemyB" + h].slow = _root.game0["enemyB" + h].slow + 2; bloodspray(hitx[s], hity[s], hsbloodps); _root.game0["enemyB" + h].damage = _root.game0["enemyB" + h].damage + (hitdamage[s] * headshotmultiplier); } else { _root.game0["enemyB" + h].slow = _root.game0["enemyB" + h].slow + 1; bloodspray(hitx[s], hity[s], bulletbloodps); _root.game0["enemyB" + h].damage = _root.game0["enemyB" + h].damage + hitdamage[s]; } s = s + 1; } if (_root.game0["enemyB" + h].damage >= enemyBhealth) { _root.game0["enemyB" + h].active = false; if (_root.game0["enemyB" + h].kamikaze == false) { createcorpse(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y, true, _root.game0["objectline" + _root.game0["enemyB" + h].objectlinenum].firstpnum, 2); createpointdebris(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + 8, 9); s = 0; while (s < hits) { physicspush(hitx[s], hity[s], bulletpushradius, bulletdirection[s], bulletpushspeed); s = s + 1; } zombiediesound.start(0, 1); } else { createblast(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + 8, kamikazeradius, kamikazepush, kamikazedamage, -1); kamikazeexplosion(_root.game0["enemyB" + h]._x, _root.game0["enemyB" + h]._y + 8); } } } } h = h + 1; } h = 0; while (h < enemyCs) { if (_root.game0["enemyC" + h].active == true) { s = 0; while (s < blasts) { if ((blastactive[s] == true) && (blastside[s] != enemyside)) { explosiondistance = approxdistance(blastx[s], blasty[s], _root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y + ragdollheight); if (explosiondistance < blastradius[s]) { if (segmentcollide(blastx[s], blasty[s], _root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y + ragdollheight) == false) { damagetaken = ((blastradius[s] - explosiondistance) / blastradius[s]) * blastdamage[s]; _root.game0["enemyC" + h].damage = _root.game0["enemyC" + h].damage + damagetaken; bloodspray(_root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y + ragdollheight, Math.round((damagetaken / blastdamage[s]) * explosionbloodps)); } } } s = s + 1; } if (_root.game0["enemyC" + h].damage >= enemyChealth) { _root.game0["enemyC" + h].active = false; createcorpse(_root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y, true, _root.game0["objectline" + _root.game0["enemyC" + h].objectlinenum].firstpnum, 3); zombiediesound.start(0, 1); createpointdebris(_root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y + 8, 8); } } h = h + 1; } h = 0; while (h < enemyCs) { if (_root.game0["enemyC" + h].active == true) { if (bulletcollide(_root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y, _root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y + (ragdollheight * 2), enemyside) == true) { s = 0; while (s < hits) { if ((hity[s] > _root.game0["enemyC" + h]._y) && (hity[s] < (_root.game0["enemyC" + h]._y + necklength))) { _root.game0["enemyC" + h].slow = _root.game0["enemyC" + h].slow + 2; bloodspray(hitx[s], hity[s], hsbloodps); _root.game0["enemyC" + h].damage = _root.game0["enemyC" + h].damage + (hitdamage[s] * headshotmultiplier); } else { _root.game0["enemyC" + h].slow = _root.game0["enemyC" + h].slow + 1; bloodspray(hitx[s], hity[s], bulletbloodps); _root.game0["enemyC" + h].damage = _root.game0["enemyC" + h].damage + hitdamage[s]; } s = s + 1; } if (_root.game0["enemyC" + h].damage >= enemyChealth) { _root.game0["enemyC" + h].active = false; createpointdebris(_root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y + 8, 8); createcorpse(_root.game0["enemyC" + h]._x, _root.game0["enemyC" + h]._y, true, _root.game0["objectline" + _root.game0["enemyC" + h].objectlinenum].firstpnum, 3); s = 0; while (s < hits) { physicspush(hitx[s], hity[s], bulletpushradius, bulletdirection[s], bulletpushspeed); s = s + 1; } zombiediesound.start(0, 1); } } } h = h + 1; } h = 0; while (h < players) { if ((_root.game0["player" + h].active == true) && (_root.game0["player" + h].berserk == false)) { s = 0; while (s < blasts) { if ((blastactive[s] == true) && (blastside[s] != playerside)) { explosiondistance = approxdistance(blastx[s], blasty[s], _root.game0["player" + h]._x, _root.game0["player" + h]._y + ragdollheight); if (explosiondistance < blastradius[s]) { if (segmentcollide(blastx[s], blasty[s], _root.game0["player" + h]._x, _root.game0["player" + h]._y + ragdollheight) == false) { playerdamagesound.start(0, 1); damagetaken = ((blastradius[s] - explosiondistance) / blastradius[s]) * blastdamage[s]; _root.game0["player" + h].berserkamount = _root.game0["player" + h].berserkamount + damagetaken; _root.game0["player" + h].damage = _root.game0["player" + h].damage + damagetaken; bloodspray(_root.game0["player" + h]._x, _root.game0["player" + h]._y + ragdollheight, Math.round((damagetaken / blastdamage[s]) * explosionbloodps)); } } } s = s + 1; } if (_root.game0["player" + h].damage >= playerhealth) { _root.game0["player" + h].active = false; if (_root.game0["player" + h].weapon == riflenum) { createrifle(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, rifleholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, rifleholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == pistolnum) { createpistol(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, pistolholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, pistolholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == shotgunnum) { createshotgun(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, shotgunholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, shotgunholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == SMGnum) { createSMG(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, SMGholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, SMGholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == shovelnum) { createshovel(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, shovelholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, shovelholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } createcorpse(_root.game0["player" + h]._x, _root.game0["player" + h]._y, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum, 0); } } h = h + 1; } h = 0; while (h < players) { if ((_root.game0["player" + h].active == true) && (_root.game0["player" + h].berserk == false)) { if (bulletcollide(_root.game0["player" + h]._x, _root.game0["player" + h]._y, _root.game0["player" + h]._x, _root.game0["player" + h]._y + (ragdollheight * 2), playerside) == true) { playerdamagesound.start(0, 1); s = 0; while (s < hits) { if ((hity[s] > _root.game0["player" + h]._y) && (hity[s] < (_root.game0["player" + h]._y + necklength))) { _root.game0["player" + h].slow = _root.game0["player" + h].slow + 2; bloodspray(hitx[s], hity[s], hsbloodps); _root.game0["player" + h].damage = _root.game0["player" + h].damage + (hitdamage[s] * headshotmultiplier); _root.game0["player" + h].berserkamount = _root.game0["player" + h].berserkamount + (hitdamage[s] * headshotmultiplier); } else { _root.game0["player" + h].slow = _root.game0["player" + h].slow + 1; bloodspray(hitx[s], hity[s], bulletbloodps); _root.game0["player" + h].damage = _root.game0["player" + h].damage + hitdamage[s]; _root.game0["player" + h].berserkamount = _root.game0["player" + h].berserkamount + hitdamage[s]; } s = s + 1; } if (_root.game0["player" + h].damage >= playerhealth) { _root.game0["player" + h].active = false; if (_root.game0["player" + h].weapon == riflenum) { createrifle(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, rifleholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, rifleholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == pistolnum) { createpistol(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, pistolholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, pistolholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == shotgunnum) { createshotgun(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, shotgunholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, shotgunholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == SMGnum) { createSMG(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, SMGholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, SMGholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } if (_root.game0["player" + h].weapon == shovelnum) { createshovel(_root.game0["player" + h].bodyx + vectorx(_root.game0["player" + h].gundirection, shovelholddistance), _root.game0["player" + h].bodyy + vectory(_root.game0["player" + h].gundirection, shovelholddistance), _root.game0["player" + h].facedirection, _root.game0["player" + h].gundirection, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum); } createcorpse(_root.game0["player" + h]._x, _root.game0["player" + h]._y, true, _root.game0["objectline" + _root.game0["player" + h].objectlinenum].firstpnum, 0); s = 0; while (s < hits) { physicspush(hitx[s], hity[s], bulletpushradius, bulletdirection[s], bulletpushspeed); s = s + 1; } } } } h = h + 1; } h = 0; while (h < turretbases) { if (_root.game0["turretbase" + h].active == true) { if (bulletcollide(_root.game0["turretbase" + h].x1, _root.game0["turretbase" + h].y1, _root.game0["turretbase" + h].x2, _root.game0["turretbase" + h].y2, turretside) == true) { s = 0; while (s < hits) { turrethit(hitx[s], hity[s]); _root.game0["turretbase" + h].damage = _root.game0["turretbase" + h].damage + hitdamage[s]; s = s + 1; } if (_root.game0["turretbase" + h].damage >= turrethealth) { _root.game0["turretbase" + h].active = false; _root.game0["turretbarrel" + _root.game0["turretbase" + h].barrelnum].active = false; turretexplosion(_root.game0["turretbase" + h]._x, _root.game0["turretbase" + h]._y); f = 0; while (f < turretdebrisparticles) { createpointdebris((_root.game0["turretbase" + h]._x + Math.random()) - 0.5, (_root.game0["turretbase" + h]._y + Math.random()) - 0.5, 0); f = f + 1; } physicsexplosion(_root.game0["turretbase" + h]._x, _root.game0["turretbase" + h]._y, 2, 5); } } } h = h + 1; } h = 0; while (h < waterpools) { if (_root.game0["waterpool" + h].active == true) { if (bulletcollide(_root.game0["waterpool" + h]._x, _root.game0["waterpool" + h]._y, _root.game0["waterpool" + h]._x + _root.game0["waterpool" + h].xwidth, _root.game0["waterpool" + h]._y, -3) == true) { s = 0; while (s < hits) { watersplash(hitx[s], hity[s], _root.game0["waterpool" + h].watercolor); s = s + 1; } } } h = h + 1; } h = 0; while (h < waterpools) { if (_root.game0["waterpool" + h].active == true) { s = 0; while (s < blasts) { if (blastactive[s] == true) { if ((((blastx[s] > _root.game0["waterpool" + h]._x) && (blastx[s] < (_root.game0["waterpool" + h]._x + _root.game0["waterpool" + h].xwidth))) && (blasty[s] > _root.game0["waterpool" + h]._y)) && (blasty[s] < (_root.game0["waterpool" + h]._y + _root.game0["waterpool" + h].depth))) { waterexplosion(blastx[s], _root.game0["waterpool" + h]._y, _root.game0["waterpool" + h].watercolor); } } s = s + 1; } } h = h + 1; } h = 0; while (h < hitzones) { if (hitzoneactive[h] == false) { s = 0; while (s < bullets) { if (bulletactive[s] == true) { tempnormal = directiontopoint(bulletx1[s], bullety1[s], bulletx2[s], bullety2[s]) + 90; if (linecollide(hitzonex[h] + vectorx2(tempnormal, hitzoneradius[h]), hitzoney[h] + vectory2(tempnormal, hitzoneradius[h]), hitzonex[h] - vectorx2(tempnormal, hitzoneradius[h]), hitzoney[h] - vectory2(tempnormal, hitzoneradius[h]), bulletx1[s], bullety1[s], bulletx2[s], bullety2[s]) == true) { hitzoneactive[h] = true; } } s = s + 1; } } h = h + 1; } h = 0; while (h < hitzones) { if (hitzoneactive[h] == false) { s = 0; while (s < blasts) { if (blastactive[s] == true) { tempdistance = approxdistance(blastx[s], blasty[s], hitzonex[h], hitzoney[h]); if (tempdistance <= (hitzoneradius[h] + blastradius[s])) { hitzoneactive[h] = true; } } s = s + 1; } } h = h + 1; } h = 0; while (h < bullets) { bulletactive[h] = false; h = h + 1; } h = 0; while (h < blasts) { if (blastactive[h] == true) { physicsexplosion(blastx[h], blasty[h], blastradius[h], blastpush[h]); blastactive[h] = false; } h = h + 1; } if (debugmode == true) { h = 0; while (h < nodes) { if (nodeactive[h] == true) { drawline(nodex[h] - noderadius, nodey[h] - noderadius, nodex[h] + noderadius, nodey[h] + noderadius, 0, 100); } h = h + 1; } } h = 0; while (h < damagezones) { if (damagezoneactive[h] == true) { if (debugmode == true) { drawline(damagezonex1[h], damagezoney1[h], damagezonex2[h], damagezoney2[h], 0, 100); } s = 0; while (s < players) { if (_root.game0["player" + s].active == true) { if (rectcollide(damagezonex1[h], damagezoney1[h], damagezonex2[h], damagezoney2[h], _root.game0["player" + s]._x - 1, _root.game0["player" + s]._y, _root.game0["player" + s]._x + 1, _root.game0["player" + s]._y + (ragdollheight * 2)) == true) { _root.game0["player" + s].damage = _root.game0["player" + s].damage + damagezonedamage[h]; if (_root.game0["player" + s].damage >= playerhealth) { _root.game0["player" + s].active = false; if (_root.game0["player" + s].weapon == weaponAnum) { createweaponA(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponAholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponAholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponBnum) { createweaponB(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponBholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponBholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponDnum) { createweaponD(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponDholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponDholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponEnum) { createweaponE(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponEholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponEholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponFnum) { createweaponF(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponFholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponFholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } createcorpse(_root.game0["player" + s]._x, _root.game0["player" + s]._y, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum, 0); } } } s = s + 1; } s = 0; while (s < enemyAs) { if (_root.game0["enemyA" + s].active == true) { if (rectcollide(damagezonex1[h], damagezoney1[h], damagezonex2[h], damagezoney2[h], _root.game0["enemyA" + s]._x - 1, _root.game0["enemyA" + s]._y, _root.game0["enemyA" + s]._x + 1, _root.game0["enemyA" + s]._y + (ragdollheight * 2)) == true) { _root.game0["enemyA" + s].damage = _root.game0["enemyA" + s].damage + damagezonedamage[h]; if (_root.game0["enemyA" + s].damage >= enemyAhealth) { _root.game0["enemyA" + s].active = false; createcorpse(_root.game0["enemyA" + s]._x, _root.game0["enemyA" + s]._y, true, _root.game0["objectline" + _root.game0["enemyA" + s].objectlinenum].firstpnum, 1); zombiediesound.start(0, 1); } } } s = s + 1; } s = 0; while (s < enemyBs) { if (_root.game0["enemyB" + s].active == true) { if (rectcollide(damagezonex1[h], damagezoney1[h], damagezonex2[h], damagezoney2[h], _root.game0["enemyB" + s]._x - 1, _root.game0["enemyB" + s]._y, _root.game0["enemyB" + s]._x + 1, _root.game0["enemyB" + s]._y + (ragdollheight * 2)) == true) { _root.game0["enemyB" + s].damage = _root.game0["enemyB" + s].damage + damagezonedamage[h]; if (_root.game0["enemyB" + s].damage >= enemyBhealth) { _root.game0["enemyB" + s].active = false; if (_root.game0["enemyB" + s].kamikaze == false) { createcorpse(_root.game0["enemyB" + s]._x, _root.game0["enemyB" + s]._y, true, _root.game0["objectline" + _root.game0["enemyB" + s].objectlinenum].firstpnum, 2); zombiediesound.start(0, 1); } else { createblast(_root.game0["enemyB" + s]._x, _root.game0["enemyB" + s]._y + 8, kamikazeradius, kamikazepush, kamikazedamage, -1); kamikazeexplosion(_root.game0["enemyB" + s]._x, _root.game0["enemyB" + s]._y + 8); } } } } s = s + 1; } s = 0; while (s < enemyCs) { if (_root.game0["enemyC" + s].active == true) { if (rectcollide(damagezonex1[h], damagezoney1[h], damagezonex2[h], damagezoney2[h], _root.game0["enemyC" + s]._x - 1, _root.game0["enemyC" + s]._y, _root.game0["enemyC" + s]._x + 1, _root.game0["enemyC" + s]._y + (ragdollheight * 2)) == true) { _root.game0["enemyC" + s].damage = _root.game0["enemyC" + s].damage + damagezonedamage[h]; if (_root.game0["enemyC" + s].damage >= enemyChealth) { _root.game0["enemyC" + s].active = false; createcorpse(_root.game0["enemyC" + s]._x, _root.game0["enemyC" + s]._y, true, _root.game0["objectline" + _root.game0["enemyC" + s].objectlinenum].firstpnum, 3); zombiediesound.start(0, 1); } } } s = s + 1; } } h = h + 1; } h = 0; while (h < winzones) { if (winzoneactive[h] == true) { if (debugmode == true) { drawline(winzonex1[h], winzoney1[h], winzonex2[h], winzoney2[h], 0, 100); } s = 0; while (s < players) { if (_root.game0["player" + s].active == true) { if (rectcollide(winzonex1[h], winzoney1[h], winzonex2[h], winzoney2[h], _root.game0["player" + s]._x - 1, _root.game0["player" + s]._y, _root.game0["player" + s]._x + 1, _root.game0["player" + s]._y + (ragdollheight * 2)) == true) { loadmap(mapnumber + 1); } } s = s + 1; } } h = h + 1; } h = 0; while (h < killzones) { if (killzoneactive[h] == true) { if (debugmode == true) { drawline(killzonex1[h], killzoney1[h], killzonex2[h], killzoney2[h], 0, 100); } s = 0; while (s < players) { if (_root.game0["player" + s].active == true) { if (rectcollide(killzonex1[h], killzoney1[h], killzonex2[h], killzoney2[h], _root.game0["player" + s]._x - 1, _root.game0["player" + s]._y, _root.game0["player" + s]._x + 1, _root.game0["player" + s]._y + (ragdollheight * 2)) == true) { _root.game0["player" + s].active = false; _root.game0["player" + s].damage = playerhealth; if (_root.game0["player" + s].weapon == weaponAnum) { createweaponA(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponAholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponAholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponBnum) { createweaponB(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponBholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponBholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponDnum) { createweaponD(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponDholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponDholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponEnum) { createweaponE(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponEholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponEholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } if (_root.game0["player" + s].weapon == weaponFnum) { createweaponF(_root.game0["player" + s].bodyx + vectorx(_root.game0["player" + s].gundirection, weaponFholddistance), _root.game0["player" + s].bodyy + vectory(_root.game0["player" + s].gundirection, weaponFholddistance), _root.game0["player" + s].facedirection, _root.game0["player" + s].gundirection, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum); } createcorpse(_root.game0["player" + s]._x, _root.game0["player" + s]._y, true, _root.game0["objectline" + _root.game0["player" + s].objectlinenum].firstpnum, 0); } } s = s + 1; } s = 0; while (s < enemyAs) { if (_root.game0["enemyA" + s].active == true) { if (rectcollide(killzonex1[h], killzoney1[h], killzonex2[h], killzoney2[h], _root.game0["enemyA" + s]._x - 1, _root.game0["enemyA" + s]._y, _root.game0["enemyA" + s]._x + 1, _root.game0["enemyA" + s]._y + (ragdollheight * 2)) == true) { _root.game0["enemyA" + s].active = false; createcorpse(_root.game0["enemyA" + s]._x, _root.game0["enemyA" + s]._y, true, _root.game0["objectline" + _root.game0["enemyA" + s].objectlinenum].firstpnum, 1); zombiediesound.start(0, 1); } } s = s + 1; } s = 0; while (s < enemyBs) { if (_root.game0["enemyB" + s].active == true) { if (rectcollide(killzonex1[h], killzoney1[h], killzonex2[h], killzoney2[h], _root.game0["enemyB" + s]._x - 1, _root.game0["enemyB" + s]._y, _root.game0["enemyB" + s]._x + 1, _root.game0["enemyB" + s]._y + (ragdollheight * 2)) == true) { _root.game0["enemyB" + s].active = false; if (_root.game0["enemyB" + s].kamikaze == false) { createcorpse(_root.game0["enemyB" + s]._x, _root.game0["enemyB" + s]._y, true, _root.game0["objectline" + _root.game0["enemyB" + s].objectlinenum].firstpnum, 2); zombiediesound.start(0, 1); } else { createblast(_root.game0["enemyB" + s]._x, _root.game0["enemyB" + s]._y + 8, kamikazeradius, kamikazepush, kamikazedamage, -1); kamikazeexplosion(_root.game0["enemyB" + s]._x, _root.game0["enemyB" + s]._y + 8); } } } s = s + 1; } s = 0; while (s < enemyCs) { if (_root.game0["enemyC" + s].active == true) { if (rectcollide(killzonex1[h], killzoney1[h], killzonex2[h], killzoney2[h], _root.game0["enemyC" + s]._x - 1, _root.game0["enemyC" + s]._y, _root.game0["enemyC" + s]._x + 1, _root.game0["enemyC" + s]._y + (ragdollheight * 2)) == true) { _root.game0["enemyC" + s].active = false; createcorpse(_root.game0["enemyC" + s]._x, _root.game0["enemyC" + s]._y, true, _root.game0["objectline" + _root.game0["enemyC" + s].objectlinenum].firstpnum, 3); zombiediesound.start(0, 1); } } s = s + 1; } } h = h + 1; } } function gamecodepart6() { if (debugmode == true) { framerate = Math.round(1 / ((getTimer() - lasttick) / 1000)); lasttick = getTimer(); _root.fpstext = (("current: " + framerate) + " min: ") + lowestframerate; if (framerate < lowestframerate) { lowestframerate = framerate; } if (Key.isDown(38)) { lowestframerate = 30; } if (clicking == true) { tempdistance = 0; lowestpnum = -1; lowestdistance = 16; physicspush(mousex, mousey, 0, 0, 0); v = 0; while (v < ps) { if (pactive[v] == true) { tempdistance = approxdistance(mousex, mousey, px[v], py[v]); if (tempdistance < lowestdistance) { lowestdistance = tempdistance; lowestpnum = v; } } v = v + 1; } selectedp = lowestpnum; } if ((mousedown == true) && (selectedp > -1)) { mousedistance = approxdistance(px[selectedp], py[selectedp], mousex, mousey); if (mousedistance > maxdelta) { mousedirection = directiontopoint(px[selectedp], py[selectedp], mousex, mousey); px[selectedp] = px[selectedp] + vectorx(mousedirection, maxdelta); py[selectedp] = py[selectedp] + vectory(mousedirection, maxdelta); } else { px[selectedp] = mousex; py[selectedp] = mousey; } } } lastmousex = mousex; lastmousey = mousey; mousex = _root.game0._xmouse; mousey = _root.game0._ymouse; clicking = false; if (mousedown == true) { timedown = timedown + 1; } else { timedown = 0; } } stop(); debugmode = false; physicsobjectcolor = 16777215 /* 0xFFFFFF */; framerate = 0; lowestframerate = 30; lasttick = getTimer(); var clicking = false; var mousedown = false; var timedown = 0; var mousex = 0; var mousey = 0; mousedetector = new Object(); mousedetector.onMouseDown = function () { mousedown = true; clicking = true; }; mousedetector.onMouseUp = function () { mousedown = false; }; Mouse.addListener(mousedetector); g = 0.15; radtodeg = 57.29578; degtorad = 0.01745329; maxdelta = 5; showphysicsobjects = debugmode; safetydistance = 16; safetydisplacement = 0.15; characterpushratio = 0.1; resttime = 50; maxrestdelta = 1; necklength = 6; chestlength = 7; upperarmlength = 5; lowerarmlength = 5; upperleglength = 8; lowerleglength = 8; chestconstraint = chestlength * 1.618; neckconstraint = 12; upperarmconstraint = 6; lowerarmconstraint = 4; upperlegconstraint1 = 12; upperlegconstraint2 = 20; lowerlegconstraint = 5; ragdollheight = (((necklength + Math.sqrt(((chestlength * 0.5) * (chestlength * 0.5)) + (chestconstraint * chestconstraint))) + upperleglength) + lowerleglength) * 0.5; tsin = []; tcos = []; o = 0; while (o <= 360) { tsin[o] = Math.sin(o * degtorad); tcos[o] = Math.cos(o * degtorad); o = o + 1; } tdistance = new Array(100); o = 0; while (o < 100) { tdistance[o] = new Array(100); u = 0; while (u < 100) { tdistance[o][u] = Math.sqrt((o * o) + (u * u)); u = u + 1; } o = o + 1; } tdtp = new Array(100); o = 0; while (o < 101) { tdtp[o] = Math.abs(Math.atan(o / 100)) * radtodeg; o = o + 1; } wateraffectors = 0; wateraffectorx = []; wateraffectory = []; wateraffectorly = []; wateraffectorradius = []; wateraffectoractive = []; possiblelinenum = []; possiblelines = 0; pactive = []; pf = []; paf = []; pg = []; psx = []; psy = []; px = []; py = []; plx = []; ply = []; ps = 0; gps = 0; gpdepth = 1200; objectlines = 0; objectlinedepth = 600; drawnlines = 1; drawnlinedepth = 400; this.createEmptyMovieClip("drawnline0", drawnlinedepth + 0); points = 0; pointdepth = 500; ropes = 0; ropedepth = 1000; lines = 0; linedepth = 1100; collisionlines = 0; collisionlinedepth = 13000; waterpools = 0; waterpooldepth = 900; ragdolls = 0; ragdolldepth = 800; boxes = 0; boxdepth = 700; enemyside = 1; playerside = 0; bodyAs = 0; bodyAdepth = -2800; _root.game0.bodyAtemp.active = false; _root.game0.bodyAtemp._visible = false; bodyBs = 0; bodyBdepth = -2600; _root.game0.bodyBtemp.active = false; _root.game0.bodyBtemp._visible = false; bodyCs = 0; bodyCdepth = -2400; _root.game0.bodyCtemp.active = false; _root.game0.bodyCtemp._visible = false; bodyDs = 0; bodyDdepth = -2200; _root.game0.bodyDtemp.active = false; _root.game0.bodyDtemp._visible = false; torsos = 0; torsodepth = -1800; _root.game0.torsotemp.active = false; _root.game0.torsotemp._visible = false; upperlegs = 0; upperlegdepth = -2000; _root.game0.upperlegtemp.active = false; _root.game0.upperlegtemp._visible = false; lowerlegs = 0; lowerlegdepth = -1900; _root.game0.lowerlegtemp.active = false; _root.game0.lowerlegtemp._visible = false; upperarms = 0; upperarmdepth = -1600; _root.game0.upperarmtemp.active = false; _root.game0.upperarmtemp._visible = false; lowerarms = 0; lowerarmdepth = -1700; _root.game0.lowerarmtemp.active = false; _root.game0.lowerarmtemp._visible = false; heads = 0; headdepth = -1500; _root.game0.headtemp.active = false; _root.game0.headtemp._visible = false; legAs = 0; legAdepth = -2900; _root.game0.legAtemp.active = false; _root.game0.legAtemp._visible = false; legBs = 0; legBdepth = -2700; _root.game0.legBtemp.active = false; _root.game0.legBtemp._visible = false; legCs = 0; legCdepth = -2500; _root.game0.legCtemp.active = false; _root.game0.legCtemp._visible = false; legDs = 0; legDdepth = -2300; _root.game0.legDtemp.active = false; _root.game0.legDtemp._visible = false; enemyAshootdelay = 16; enemyAdamage = 35; enemyAinaccuracy = 90; enemyAshootdistance = 16; enemyAmovedelay = 16; enemyAseedistance = 800; enemyAhealth = 40; enemyAmaxmovespeed = 3; enemyAmoveacceleration = 0.5; enemyAg = g; enemyAf = 0.95; enemyAaf = 0.99; enemyAaircontrolfactor = 0.15; enemyAwatercontrolfactor = 0.4; enemyAs = 0; enemyAdepth = -29000; enemyBshootdelay = 24; enemyBdamage = 55; enemyBinaccuracy = 90; enemyBshootdistance = 24; enemyBmovedelay = 20; enemyBseedistance = 800; enemyBhealth = 65; enemyBmaxmovespeed = 2.5; enemyBmoveacceleration = 0.4; enemyBg = g; enemyBf = 0.95; enemyBaf = 0.99; enemyBaircontrolfactor = 0.1; enemyBwatercontrolfactor = 0.3; enemyBs = 0; enemyBdepth = -28000; kamikazedamage = 100; kamikazeradius = 100; kamikazepush = 6; enemyCshootdelay = 20; enemyCdamage = 70; enemyCinaccuracy = 90; enemyCshootdistance = 16; enemyCmovedelay = 12; enemyCseedistance = 800; enemyChealth = 30; enemyCmaxmovespeed = 2; enemyCmoveacceleration = 0.3; enemyCg = g; enemyCf = 0.95; enemyCaf = 0.99; enemyCaircontrolfactor = 0.1; enemyCwatercontrolfactor = 0.2; enemyCs = 0; enemyCdepth = -27000; maxlookdelta = 60; playerjumpdelay = 5; playermaxmovespeed = 3; playermoveacceleration = 0.3; playerg = g; playerf = 0.9; playeraf = 0.99; playeraircontrolfactor = 0.25; playerwatercontrolfactor = 0.6; playerjumpspeed = -4; players = 0; playerdepth = -30000; turretshootdelay = 8; turretmaxswivel = 60; turretdamage = 25; turrettracercolor = 16776960 /* 0xFFFF00 */; turrettraceralpha = 80; turretshootdistance = 600; turretinaccuracy = 5; turretseedistance = 600; turretbarreldistance = 24; turretflashdistance = 12; turretbaselength = 24; turretflashdistance = 8; turrethealth = 30; turretrotatespeed = 2; turretside = -1; turretbarrels = 0; turretbarreldepth = -6900; turretdebrisparticles = 3; _root.game0.turretbarreltemp.active = false; _root.game0.turretbarreltemp._visible = false; turretbases = 0; turretbasedepth = -6800; _root.game0.turretbasetemp.active = false; _root.game0.turretbasetemp._visible = false; _root.game0.raintemp.active = false; _root.game0.raintemp._visible = false; if (particlequality == 0) { raindrops = 24; } else { raindrops = 12; } z = 0; while (z < raindrops) { _root.game0.raintemp.duplicateMovieClip("rain" + z, 5100 + z); _root.game0["rain" + z].active = true; _root.game0["rain" + z]._visible = true; _root.game0["rain" + z]._x = Math.random() * 800; _root.game0["rain" + z]._y = Math.random() * 600; _root.game0["rain" + z].vs = (Math.random() * 5) + 3; _root.game0["rain" + z]._height = _root.game0["rain" + z].vs * 2; if (particlealpha == 0) { _root.game0["rain" + z]._alpha = _root.game0["rain" + z].vs * 10; } else { _root.game0["rain" + z]._alpha = 100; } z = z + 1; } stoprain(); _root.game0.fogtemp.active = false; _root.game0.fogtemp._visible = false; _root.game0.fogtemp.duplicateMovieClip("fog", 14000); _root.game0.fog.active = false; _root.game0.fog._visible = false; _root.game0.fog._y = 700; _root.game0.fog._x = 0; _root.game0.fog._alpha = 20; _root.game0.flashtemp.active = false; _root.game0.flashtemp._visible = false; _root.game0.flashtemp.duplicateMovieClip("flash", 5600); _root.game0.flash.active = false; _root.game0.flash._visible = false; _root.game0.flash._y = 0; _root.game0.flash._x = 0; _root.game0.flash._alpha = 0; _root.game0.fadetemp.active = false; _root.game0.fadetemp._visible = false; _root.game0.fadetemp.duplicateMovieClip("fade", 5550); _root.game0.fade.active = false; _root.game0.fade._visible = false; _root.game0.fade._y = 0; _root.game0.fade._x = 0; _root.game0.fade._alpha = 0; _root.game0.berserkscreentemp.active = false; _root.game0.berserkscreentemp._visible = false; _root.game0.berserkscreentemp.duplicateMovieClip("berserkscreen", 5500); _root.game0.berserkscreen.active = false; _root.game0.berserkscreen._visible = false; _root.game0.berserkscreen._y = 0; _root.game0.berserkscreen._x = 0; _root.game0.berserkscreen._alpha = 0; fires = 0; fireskipnum = 8; fireactive = []; firex = []; firey = []; firedelay = []; firelivetime = []; firemaxlivetime = []; pickuplivetime = 1500; pickupfadetime = 100; pickupaf = 0.99; pickupg = g; pickupf = 0.6; healthsidelength = 12; healthamount = 200; shotgunammosidelength = 10; shotgunammoamount = 8; SMGammosidelength = 10; SMGammoamount = 40; pistolammosidelength = 10; pistolammoamount = 20; grenadeammosidelength = 18; grenadeammoamount = 3; rifleammosidelength = 12; rifleammoamount = 30; healths = 0; healthdepth = -4900; _root.game0.healthtemp.active = false; _root.game0.healthtemp._visible = false; shotgunammos = 0; shotgunammodepth = -4800; _root.game0.shotgunammotemp.active = false; _root.game0.shotgunammotemp._visible = false; SMGammos = 0; SMGammodepth = -4700; _root.game0.SMGammotemp.active = false; _root.game0.SMGammotemp._visible = false; pistolammos = 0; pistolammodepth = -4600; _root.game0.pistolammotemp.active = false; _root.game0.grenadeammotemp._visible = false; grenadeammos = 0; grenadeammodepth = -4500; _root.game0.grenadeammotemp.active = false; _root.game0.grenadeammotemp._visible = false; rifleammos = 0; rifleammodepth = -4400; _root.game0.rifleammotemp.active = false; _root.game0.rifleammotemp._visible = false; weaponaf = 0.98; weapong = g; weaponf = 0.75; weaponlivetime = 1000; weaponfadetime = 100; maxrifleammo = 60; rifleshootdistance = 300; rifledamage = 5; rifletracercolor = 16739328 /* 0xFF6C00 */; rifletraceralpha = 75; rifleinaccuracy = 4; riflepickupammo = 20; riflenum = 0; rifleframe = 0; riflecasingframe = 1; riflecasingskip = 3; riflecasingsize = 5; rifleshootdelay = 5; rifleyoffset = 9; rifleholddistance = 16; riflebarreldistance = 21; rifleflashdistance = 10; riflerecieverdistance = 7; riflelength = 16; maxpistolammo = 48; pistolshootdistance = 300; pistoldamage = 4; pistoltracercolor = 16739328 /* 0xFF6C00 */; pistoltraceralpha = 50; pistolinaccuracy = 8; pistolpickupammo = 20; pistolnum = 1; pistolframe = 2; pistolcasingframe = 0; pistolcasingskip = 5; pistolcasingsize = 3; pistolshootdelay = -1; pistolyoffset = 9; pistolholddistance = 12; pistolbarreldistance = 12; pistolflashdistance = 9; pistolrecieverdistance = 8; pistollength = 8; maxgrenadeammo = 6; grenadeinaccuracy = 12; grenadeshootdistance = 5; grenadebarreldistance = 6; grenadenum = 2; grenadeframe = 4; grenadeshootdelay = 45; grenadeyoffset = 8; maxshotgunammo = 24; shotgunshootdistance = 300; shotgundamage = 8; shotguntracercolor = 16739328 /* 0xFF6C00 */; shotguntraceralpha = 25; shotguninaccuracy = 16; shotgunpickupammo = 8; shotgunnum = 3; shotgunframe = 6; shotguncasingframe = 2; shotguncasingskip = 2; shotguncasingsize = 6; shotgunshootdelay = 20; shotgunyoffset = 10; shotgunholddistance = 14; shotgunbarreldistance = 20; shotgunflashdistance = 15; shotgunrecieverdistance = 4; shotgunlength = 24; maxSMGammo = 90; SMGshootdistance = 300; SMGdamage = 5; SMGtracercolor = 16739328 /* 0xFF6C00 */; SMGtraceralpha = 40; SMGinaccuracy = 12; SMGpickupammo = 30; SMGnum = 4; SMGframe = 8; SMGcasingframe = 0; SMGcasingskip = 6; SMGcasingsize = 3; SMGshootdelay = 3; SMGyoffset = 9; SMGholddistance = 10; SMGbarreldistance = 11; SMGflashdistance = 6; SMGrecieverdistance = 4; SMGlength = 8; shoveldamage = 5; shovelshootdistance = 25; shovelbarreldistance = 8; shovelholddistance = 10; shovelnum = 5; shovelframe = 10; shovelshootdelay = 3; shovelyoffset = 12; shovellength = 24; rifles = 0; rifledepth = -3900; _root.game0.rifletemp.active = false; _root.game0.rifletemp._visible = false; pistols = 0; pistoldepth = -3800; _root.game0.rifletemp.active = false; _root.game0.rifletemp._visible = false; shotguns = 0; shotgundepth = -3700; _root.game0.shotguntemp.active = false; _root.game0.shotguntemp._visible = false; SMGs = 0; SMGdepth = -3600; _root.game0.SMGtemp.active = false; _root.game0.SMGtemp._visible = false; shovels = 0; shoveldepth = -3500; _root.game0.shoveltemp.active = false; _root.game0.shoveltemp._visible = false; pointdebrisrotatespeed = 15; pointdebrisaf = 0.98; pointdebrisg = g; pointdebrisf = 0.7; pointdebrislivetime = 200; pointdebrisfadetime = 30; pointdebriss = 0; pointdebrisdepth = -1000; _root.game0.pointdebristemp.active = false; _root.game0.pointdebristemp._visible = false; linedebrisaf = 0.98; linedebrisg = g; linedebrisf = 0.75; linedebrislivetime = 250; linedebrisfadetime = 30; linedebrislength = 16; linedebriss = 0; linedebrisdepth = -900; _root.game0.linedebristemp.active = false; _root.game0.linedebristemp._visible = false; boxdebrisaf = 0.96; boxdebrisg = g; boxdebrisf = 0.5; boxdebrislivetime = 300; boxdebrisfadetime = 30; boxdebrissidelength = 8; boxdebriss = 0; boxdebrisdepth = -800; _root.game0.boxdebristemp.active = false; _root.game0.boxdebristemp._visible = false; bulletcasingdirection = 20; bulletcasingspeed = 3; minbulletcasingspeed = 1; bulletcasingrotatespeed = 25; bulletcasingaf = 0.95; bulletcasingg = g; bulletcasingf = 0.5; bulletcasinglivetime = 100; bulletcasingfadetime = 10; bulletcasings = 0; bulletcasingdepth = -1100; _root.game0.bulletcasingtemp.active = false; _root.game0.bulletcasingtemp._visible = false; crowradius = 4; crows = 0; crowdepth = -2150; _root.game0.crowtemp.active = false; _root.game0.crowtemp._visible = false; crowwings = 0; crowwingdepth = -2100; _root.game0.crowwingtemp.active = false; _root.game0.crowwingtemp._visible = false; ratradius = 4; rats = 0; ratdepth = -2050; _root.game0.rattemp.active = false; _root.game0.rattemp._visible = false; corpseaf = 0.99; corpseg = g; corpsef = 0.5; corpselivetime = 200; corpsefadetime = 50; corpses = 0; corpsedepth = -20000; corpsegibs = 3; if (debrisquality == 0) { maxcorpses = 3; } else { maxcorpses = 2; } chains = 0; chaindepth = -21000; chainsegmentlength = 10; chainf = 0.5; chaing = g; chainaf = 0.99; links = 0; linkdepth = -1400; _root.game0.linktemp.active = false; _root.game0.linktemp._visible = false; strings = 0; stringdepth = -1300; stringsegmentlength = 12; stringf = 0.75; stringg = g; stringaf = 0.98; barrelheight = 20; barrelradius = barrelheight * 0.5; barrels = 0; barreldepth = -700; _root.game0.barreltemp.active = false; _root.game0.barreltemp._visible = false; crates = 0; cratedepth = -3400; crateheight = 24; crateradius = crateheight * 0.5; _root.game0.cratetemp.active = false; _root.game0.cratetemp._visible = false; spinspeed = 12; spinlightdepth = 5320; _root.game0.spinlighttemp.active = false; _root.game0.spinlighttemp._visible = false; floordoordepth = 5310; _root.game0.floordoortemp.active = false; _root.game0.floordoortemp._visible = false; walldoordepth = 5300; _root.game0.walldoortemp.active = false; _root.game0.walldoortemp._visible = false; cities = 0; citydepth = -9100; _root.game0.citytemp.active = false; _root.game0.citytemp._visible = false; computerheight = 24; computerradius = computerheight * 0.5; computers = 0; computerdepth = -9000; _root.game0.computertemp.active = false; _root.game0.computertemp._visible = false; grenaderotatespeed = 80; grenadedamage = 100; grenaderadius = 100; grenadepush = 5; grenadeaf = 0.995; grenadeg = g * 0.5; grenadef = 0.5; grenadelivetime = 150; grenadefadetime = 1; grenades = 0; grenadedepth = -5900; _root.game0.grenadetemp.active = false; _root.game0.grenadetemp._visible = false; bulletslowamount = 1.75; bulletpushspeed = 4; bulletpushradius = 6; blastactive = []; blastx = []; blasty = []; blastradius = []; blastside = []; blastpush = []; blastdamage = []; blasts = 0; bulletactive = []; bulletx1 = []; bullety1 = []; bulletx2 = []; bullety2 = []; bulletside = []; bulletdamage = []; bullets = 0; hitzonex = []; hitzoney = []; hitzoneactive = []; hitzoneradius = []; hitzones = 0; rainfallsound = new Sound(_root.game0.sound0); rainfallsound.attachSound("rainfall"); smgsound = new Sound(_root.game0.sound0); smgsound.attachSound("smgshoot"); riflesound = new Sound(_root.game0.sound0); riflesound.attachSound("rifleshoot"); pistolsound = new Sound(_root.game0.sound0); pistolsound.attachSound("pistolshoot"); grenadesound = new Sound(_root.game0.sound0); grenadesound.attachSound("grenadeexplode"); shotgunsound = new Sound(_root.game0.sound0); shotgunsound.attachSound("shotgunshoot"); turretsound = new Sound(_root.game0.sound0); turretsound.attachSound("turretshoot"); turretsound2 = new Sound(_root.game0.sound0); turretsound2.attachSound("turretexplode"); shellsound1 = new Sound(_root.game0.sound0); shellsound1.attachSound("shellbounce1"); shellsound2 = new Sound(_root.game0.sound0); shellsound2.attachSound("shellbounce2"); shellsound3 = new Sound(_root.game0.sound0); shellsound3.attachSound("shellbounce3"); shellsound4 = new Sound(_root.game0.sound0); shellsound4.attachSound("shellbounce4"); shellsound5 = new Sound(_root.game0.sound0); shellsound5.attachSound("shellbounce5"); berserksound = new Sound(_root.game0.sound0); berserksound.attachSound("berserklaugh"); teleportsound = new Sound(_root.game0.sound0); teleportsound.attachSound("teleport"); grenadebouncesound1 = new Sound(_root.game0.sound0); grenadebouncesound1.attachSound("grenadebounce1"); grenadebouncesound2 = new Sound(_root.game0.sound0); grenadebouncesound2.attachSound("grenadebounce2"); grenadebouncesound3 = new Sound(_root.game0.sound0); grenadebouncesound3.attachSound("grenadebounce3"); ammosound = new Sound(_root.game0.sound0); ammosound.attachSound("ammopickup"); weaponsound = new Sound(_root.game0.sound0); weaponsound.attachSound("gunpickup"); healthsound = new Sound(_root.game0.sound0); healthsound.attachSound("healthpickup"); shovelsound1 = new Sound(_root.game0.sound0); shovelsound1.attachSound("shovelstart"); shovelsound2 = new Sound(_root.game0.sound0); shovelsound2.attachSound("shovelswing"); hitsound = new Sound(_root.game0.sound0); hitsound.attachSound("hit"); ratsound = new Sound(_root.game0.sound0); ratsound.attachSound("ratsqueak"); zombiediesound = new Sound(_root.game0.sound0); zombiediesound.attachSound("zombiedie"); playerdamagesound = new Sound(_root.game0.sound0); playerdamagesound.attachSound("playerdamage"); crowsound = new Sound(_root.game0.sound0); crowsound.attachSound("crowcaw"); explosionsound = new Sound(_root.game0.sound0); explosionsound.attachSound("explosion"); dryfiresound = new Sound(_root.game0.sound0); dryfiresound.attachSound("dryfire"); dripsound = new Sound(_root.game0.sound0); dripsound.attachSound("drip"); smallcrashsound = new Sound(_root.game0.sound0); smallcrashsound.attachSound("smallcrash"); bigcrashsound = new Sound(_root.game0.sound0); bigcrashsound.attachSound("bigcrash"); waterfallsound = new Sound(_root.game0.sound0); waterfallsound.attachSound("smallwaterfall"); waterspraysound = new Sound(_root.game0.sound0); waterspraysound.attachSound("waterspray"); metalcrashsound = new Sound(_root.game0.sound0); metalcrashsound.attachSound("metalcrash"); hydrantspraysound = new Sound(_root.game0.sound0); hydrantspraysound.attachSound("hydrantspray"); electricbuzzsound = new Sound(_root.game0.sound0); electricbuzzsound.attachSound("electricbuzz"); dooropensound = new Sound(_root.game0.sound0); dooropensound.attachSound("dooropen"); alarmsound = new Sound(_root.game0.sound0); alarmsound.attachSound("alarm"); _root.game0.backgroundtemp.active = false; _root.game0.backgroundtemp._visible = false; _root.game0.backgroundtemp.duplicateMovieClip("background", -10000); _root.game0.background.active = true; _root.game0.background._visible = true; _root.game0.background.frame = 0; _root.game0.background._y = 0; _root.game0.background._x = 0; _root.game0.foregroundtemp.active = false; _root.game0.foregroundtemp._visible = false; _root.game0.foregroundtemp.duplicateMovieClip("foreground", 5400); _root.game0.foreground.active = true; _root.game0.foreground._visible = true; _root.game0.foreground.frame = 0; _root.game0.foreground._y = 0; _root.game0.foreground._x = 0; _root.game0.backdroptemp.active = false; _root.game0.backdroptemp._visible = false; _root.game0.backdroptemp.duplicateMovieClip("backdrop", -12000); _root.game0.backdrop.active = true; _root.game0.backdrop._visible = true; _root.game0.backdrop.frame = 0; _root.game0.backdrop._y = 0; _root.game0.backdrop._x = 0; noderadius = 20; nodeactive = []; nodex = []; nodey = []; nodes = 0; winzoneactive = []; winzonex1 = []; winzoney1 = []; winzonex2 = []; winzoney2 = []; winzones = 0; killzoneactive = []; killzonex1 = []; killzoney1 = []; killzonex2 = []; killzoney2 = []; killzones = 0; damagezoneactive = []; damagezonedamage = []; damagezonex1 = []; damagezoney1 = []; damagezonex2 = []; damagezoney2 = []; damagezones = 0; impactsmokecolor = 8553090 /* 0x828282 */; impactflashcolor = 16501020 /* 0xFBC91C */; muzzlesmokecolor = 8553090 /* 0x828282 */; muzzleflashcolor = 16776960 /* 0xFFFF00 */; explosionflashcolor = 16494596 /* 0xFBB004 */; explosionsmokecolor = 5921370 /* 0x5A5A5A */; Mouse.hide(); _root.game0.cursortemp.active = false; _root.game0.cursortemp._visible = false; _root.game0.cursortemp.duplicateMovieClip("cursor", 10000); _root.game0.cursor.active = true; _root.game0.cursor._visible = true; number = 0; headshotmultiplier = 4; maxbloodps = 5; bulletbloodps = 1; hsbloodps = 3; explosionbloodps = 6; messageduration = 90; maxberserkamount = 250; berserkduration = 240; killberserkamount = 60; berserkmultiplier = 5; berserkdecay = 0.75; if (_root.difficulty == 0) { playerhealth = 400; } if (_root.difficulty == 1) { playerhealth = 300; } if (_root.difficulty == 2) { playerhealth = 200; } if (_root.graphicsquality == 0) { _quality = "HIGH"; } if (_root.graphicsquality == 1) { _quality = "MEDIUM"; } if (_root.graphicsquality == 2) { _quality = "LOW"; } if (wait == 0) { playerweapon = shovelnum; playerdamage = 0; playerrifleammo = 0; playerhasrifle = false; playerpistolammo = 0; playerhaspistol = false; playergrenadeammo = 0; playerhasgrenade = true; playershotgunammo = 0; playerhasshotgun = false; playerSMGammo = 0; playerhasSMG = false; playerhasshovel = true; if (playphysics == true) { loadmap(32); } else { loadmap(1); } restoreplayerinfo(); } this.onEnterFrame = function () { if (wait == 0) { gamecodepart1(); gamecodepart2(); gamecodepart3(); gamecodepart4(); gamecodepart5(); gamecodepart6(); cutscene = false; _root.game0.cursor._visible = true; if (mapnumber >= 15) { if (mapnumber != 32) { _root.game0.cursor._visible = false; } cutscene = true; } if (cutscene == false) { this._x = ((-_root.game0.player0._x) * 2) + 300; this._y = ((-_root.game0.player0._y) * 2) + 150; this._xscale = 200; this._yscale = 200; if (this._x > 0) { this._x = 0; } if (this._x < -600) { this._x = -600; } if (this._y > 0) { this._y = 0; } if (this._y < -300) { this._y = -300; } _root.game0.backdrop._xscale = 50; _root.game0.backdrop._yscale = 50; _root.game0.backdrop._x = -0.5 * this._x; _root.game0.backdrop._y = -0.5 * this._y; } else { this._x = 0; this._y = 0; this._xscale = 100; this._yscale = 100; _root.game0.backdrop._xscale = 100; _root.game0.backdrop._yscale = 100; _root.game0.backdrop._x = 0; _root.game0.backdrop._y = 0; } if (cutscene == false) { if ((_root.game0.player0.berserk == false) || (_root.game0.player0.active == false)) { _root.healthtext = ("Health: " + Math.round(((playerhealth - _root.game0.player0.damage) / playerhealth) * 100)) + "%"; } else { _root.healthtext = "Rampage"; } if ((_root.game0.player0.active == true) && (mapnumber > 1)) { if (_root.game0.player0.berserk == false) { if (_root.game0.player0.berserkamount > maxberserkamount) { _root.game0.player0.berserkamount = 0; _root.game0.player0.berserk = true; _root.game0.player0.berserkcounter = berserkduration; startberserkscreen(); berserkpuff(_root.game0.player0._x, _root.game0.player0._y + 4); _root.pickuptext = "Rampage!"; pickuptextdelay = messageduration; } if (_root.game0.player0.berserkamount > 0) { _root.game0.player0.berserkamount = _root.game0.player0.berserkamount - berserkdecay; } } else if (_root.game0.player0.berserkcounter > 0) { berserksparks(_root.game0.player0._x, _root.game0.player0._y + 4); _root.game0.player0.berserkcounter = _root.game0.player0.berserkcounter - 1; } else { _root.game0.player0.berserk = false; _root.game0.player0.berserkamount = 0; } } if (pickuptextdelay == 0) { _root.pickuptext = ""; } else { pickuptextdelay = pickuptextdelay - 1; } if (_root.game0.player0.active == false) { if (_root.game0.player0.damage >= playerhealth) { deathcounter = deathcounter + 1; } } if (deathcounter > 90) { _root.messagetext = "You are dead. Press SPACE to continue or Q to return to menu"; if (Key.isDown(32)) { loadmap(mapnumber); restoreplayerinfo(); } if (Key.isDown(81)) { resetvariables(); gotoAndPlay ("menuscreen"); } } else { _root.messagetext = messagestring; if (messagetextdelay == 0) { _root.messagetext = ""; } else { messagetextdelay = messagetextdelay - 1; } } } else { _root.healthtext = ""; if (mapnumber != 32) { _root.messagetext = ""; } } } };
Instance of Symbol 205 MovieClip "computertemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (_root.game0.hitzoneactive[this.hitzonenum] == true) { if (this.frame == 0) { _root.game0.computerexplosion(this._x, this._y + (_root.game0.computerheight * 0.5)); } else if (Math.floor(Math.random() * 24) == 0) { _root.game0.electricsparks(this._x, this._y + (_root.game0.computerheight * 0.5)); } this.frame = 1; } this.gotoAndPlay(this.frame + 1); } else { this._visible = false; _root.game0.hitzoneactive[this.hitzonenum] = true; } }
Instance of Symbol 207 MovieClip "walldoortemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { } else { this._visible = false; } }
Instance of Symbol 209 MovieClip "floordoortemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { } else { this._visible = false; } }
Instance of Symbol 211 MovieClip "spinlighttemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this._rotation = this._rotation + _root.game0.spinspeed; } else { this._visible = false; } }
Instance of Symbol 214 MovieClip "citytemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 216 MovieClip "berserkscreentemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (this.livetime < 30) { this._alpha = this._alpha + 1; } if ((_root.game0.berserkduration - this.livetime) < 30) { this._alpha = this._alpha - 1; } if (this.livetime < _root.game0.berserkduration) { this.livetime = this.livetime + 1; } else { this.active = false; } } else { this._visible = false; } }
Instance of Symbol 218 MovieClip "cursortemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this._x = _root.game0.mousex; this._y = _root.game0.mousey; } else { this._visible = false; } }
Instance of Symbol 220 MovieClip "cratetemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (_root.game0.hitzoneactive[this.hitzonenum] == true) { _root.game0.createpointdebris((this._x + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), (this._y + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), 1); _root.game0.createpointdebris((this._x + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), (this._y + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), 1); _root.game0.createpointdebris((this._x + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), (this._y + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), 1); _root.game0.createlinedebris((this._x + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), (this._y + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), 1); _root.game0.createlinedebris((this._x + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), (this._y + (Math.random() * _root.game0.crateradius)) - (_root.game0.crateradius * 0.5), 1); _root.game0.physicsexplosion(this._x, this._y + (_root.game0.crateheight * 0.5), _root.game0.crateradius * 1.5, 5); _root.game0.crateexplosion(this._x, this._y + (_root.game0.crateheight * 0.5)); this.active = false; } this.gotoAndPlay(this.frame + 1); } else { this._visible = false; _root.game0.hitzoneactive[this.hitzonenum] = true; } }
Instance of Symbol 223 MovieClip "barreltemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (_root.game0.hitzoneactive[this.hitzonenum] == true) { _root.game0.createpointdebris((this._x + (Math.random() * _root.game0.barrelradius)) - (_root.game0.barrelradius * 0.5), (this._y + (Math.random() * _root.game0.barrelradius)) - (_root.game0.barrelradius * 0.5), 7); _root.game0.createpointdebris((this._x + (Math.random() * _root.game0.barrelradius)) - (_root.game0.barrelradius * 0.5), (this._y + (Math.random() * _root.game0.barrelradius)) - (_root.game0.barrelradius * 0.5), 7); _root.game0.createlinedebris((this._x + (Math.random() * _root.game0.barrelradius)) - (_root.game0.barrelradius * 0.5), (this._y + (Math.random() * _root.game0.barrelradius)) - (_root.game0.barrelradius * 0.5), 0); _root.game0.createblast(this._x, this._y + (_root.game0.barrelheight * 0.5), _root.game0.grenaderadius, _root.game0.grenadepush, _root.game0.grenadedamage, -1); _root.game0.barrelexplosion(this._x, this._y + (_root.game0.barrelheight * 0.5)); _root.game0.createfire(this._x, (this._y + _root.game0.barrelheight) - 8, 150); this.active = false; } this.gotoAndPlay(this.frame + 1); } else { this._visible = false; _root.game0.hitzoneactive[this.hitzonenum] = true; } }
Instance of Symbol 229 MovieClip "linktemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 248 MovieClip "backgroundtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 263 MovieClip "foregroundtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 265 MovieClip "flashtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (this._alpha > 0) { this._alpha = this._alpha - 1; } else { this.active = false; } } else { this._visible = false; } }
Instance of Symbol 272 MovieClip "backdroptemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 273 MovieClip "fadetemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (this._alpha > 0) { this._alpha = this._alpha - 4; } else { this.active = false; } } else { this._visible = false; } }
Instance of Symbol 275 MovieClip "rifleammotemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { if (_root.game0["player" + o].rifleammo < _root.game0.maxrifleammo) { _root.game0.ammosound.start(0, 1); this.active = false; _root.game0["box" + this.boxnum].active = false; this._visible = false; _root.pickuptext = "You picked up rifle (3) ammo!"; _root.game0.pickuptextdelay = _root.game0.messageduration; _root.game0["player" + o].rifleammo = _root.game0["player" + o].rifleammo + _root.game0.rifleammoamount; } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.pickuplivetime - _root.game0.pickupfadetime)) { this._alpha = ((_root.game0.pickuplivetime - this.livetime) / _root.game0.pickupfadetime) * 100; } if (this.livetime > _root.game0.pickuplivetime) { _root.game0["box" + this.boxnum].active = false; this._visible = false; this.active = false; } } tempx1 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum]; tempy1 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum]; tempx2 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum + 2]; tempy2 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum + 2]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = 315 - temprotation; } }
Instance of Symbol 277 MovieClip "grenadeammotemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { if (_root.game0["player" + o].grenadeammo < _root.game0.maxgrenadeammo) { _root.game0.ammosound.start(0, 1); this.active = false; _root.game0["box" + this.boxnum].active = false; this._visible = false; if (_root.game0["player" + o].grenadeammo == 0) { _root.game0["player" + o].weapon = _root.game0.grenadenum; } _root.pickuptext = "You picked up grenades (6)!"; _root.game0.pickuptextdelay = _root.game0.messageduration; _root.game0["player" + o].grenadeammo = _root.game0["player" + o].grenadeammo + _root.game0.grenadeammoamount; } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.pickuplivetime - _root.game0.pickupfadetime)) { this._alpha = ((_root.game0.pickuplivetime - this.livetime) / _root.game0.pickupfadetime) * 100; } if (this.livetime > _root.game0.pickuplivetime) { _root.game0["box" + this.boxnum].active = false; this._visible = false; this.active = false; } } tempx1 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum]; tempy1 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum]; tempx2 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum + 2]; tempy2 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum + 2]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = 315 - temprotation; } }
Instance of Symbol 279 MovieClip "pistolammotemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { if (_root.game0["player" + o].pistolammo < _root.game0.maxpistolammo) { _root.game0.ammosound.start(0, 1); this.active = false; _root.game0["box" + this.boxnum].active = false; this._visible = false; _root.pickuptext = "You picked up pistol (2) rounds!"; _root.game0.pickuptextdelay = _root.game0.messageduration; _root.game0["player" + o].pistolammo = _root.game0["player" + o].pistolammo + _root.game0.pistolammoamount; } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.pickuplivetime - _root.game0.pickupfadetime)) { this._alpha = ((_root.game0.pickuplivetime - this.livetime) / _root.game0.pickupfadetime) * 100; } if (this.livetime > _root.game0.pickuplivetime) { _root.game0["box" + this.boxnum].active = false; this._visible = false; this.active = false; } } tempx1 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum]; tempy1 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum]; tempx2 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum + 2]; tempy2 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum + 2]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = 315 - temprotation; } }
Instance of Symbol 281 MovieClip "SMGammotemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { if (_root.game0["player" + o].SMGammo < _root.game0.maxSMGammo) { _root.game0.ammosound.start(0, 1); this.active = false; _root.game0["box" + this.boxnum].active = false; this._visible = false; _root.pickuptext = "You picked up smg (4) ammunition!"; _root.game0.pickuptextdelay = _root.game0.messageduration; _root.game0["player" + o].SMGammo = _root.game0["player" + o].SMGammo + _root.game0.SMGammoamount; } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.pickuplivetime - _root.game0.pickupfadetime)) { this._alpha = ((_root.game0.pickuplivetime - this.livetime) / _root.game0.pickupfadetime) * 100; } if (this.livetime > _root.game0.pickuplivetime) { _root.game0["box" + this.boxnum].active = false; this._visible = false; this.active = false; } } tempx1 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum]; tempy1 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum]; tempx2 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum + 2]; tempy2 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum + 2]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = 315 - temprotation; } }
Instance of Symbol 283 MovieClip "raintemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this._y = this._y + this.vs; if (this._y > 320) { this._x = Math.random() * 600; this._y = -20; this.vs = (Math.random() * 5) + 3; this._height = this.vs * 2; if (_root.game0.particlealpha == 0) { this._alpha = this.vs * 10; } else { this._alpha = 100; } } } else { this._visible = false; } }
Instance of Symbol 285 MovieClip "fogtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this._x = this._x - 1; if (this._x < -1600) { this._x = 600; } } else { this._visible = false; } }
Instance of Symbol 288 MovieClip "legDtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (this.framerate > 0) { this.frame = this.frame + 1; } if (this.frame > 21) { this.frame = this.frame - 21; } this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 295 MovieClip "bodyDtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 298 MovieClip "legCtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (this.framerate > 0) { this.frame = this.frame + 1; } if (this.frame > 21) { this.frame = this.frame - 21; } this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 304 MovieClip "bodyCtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 307 MovieClip "rattemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { _root.game0.hitzonex[this.hitzonenum] = this._x; _root.game0.hitzoney[this.hitzonenum] = this._y; if (_root.game0.hitzoneactive[this.hitzonenum] == true) { _root.game0.bloodspray(this._x, this._y, 3); _root.game0.createpointdebris(this._x, this._y, 3 + Math.floor(Math.random() * 4)); _root.game0.physicspush(this._x, this._y, 1, Math.random() * 360, Math.random()); this.active = false; } if (this.scared == 1) { if (this.facedirection == 0) { this._x = this._x + 2.5; } else { this._x = this._x - 2.5; } } else { this.gotoAndPlay(this.frame + 1); } if (this.scared == 0) { if (_root.game0.blockdistance(this._x, this._y, _root.game0.player0._x, _root.game0.player0._y) < 100) { this.scared = 1; _root.game0.ratsound.start(0, 1); } } if ((this._x > 1200) || (this._x < -400)) { this.active = false; } } else { this._visible = false; _root.game0.hitzoneactive[this.hitzonenum] = true; } }
Instance of Symbol 309 MovieClip "turretbasetemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { } else { this._visible = false; } }
Instance of Symbol 311 MovieClip "turretbarreltemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { } else { this._visible = false; } }
Instance of Symbol 315 MovieClip "boxdebristemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { gotoAndPlay(this.frame + 1); this.livetime = this.livetime + 1; if (this.livetime > (_root.game0.boxdebrislivetime - _root.game0.boxdebrisfadetime)) { this._alpha = ((_root.game0.boxdebrislivetime - this.livetime) / _root.game0.boxdebrisfadetime) * 100; } if (this.livetime > _root.game0.boxdebrislivetime) { this.active = false; _root.game0["box" + this.boxnum].active = false; this._visible = false; } tempx1 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum]; tempy1 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum]; tempx2 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum + 2]; tempy2 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum + 2]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = 315 - temprotation; } }
Instance of Symbol 319 MovieClip "linedebristemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { gotoAndPlay(this.frame + 1); this.livetime = this.livetime + 1; if (this.livetime > (_root.game0.linedebrislivetime - _root.game0.linedebrisfadetime)) { this._alpha = ((_root.game0.linedebrislivetime - this.livetime) / _root.game0.linedebrisfadetime) * 100; } if (this.livetime > _root.game0.linedebrislivetime) { this.active = false; _root.game0["line" + this.linenum].active = false; this._visible = false; } tempx1 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum]; tempy1 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum]; tempx2 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum + 1]; tempy2 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum + 1]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = -temprotation; } }
Instance of Symbol 328 MovieClip "pointdebristemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { gotoAndPlay(this.frame + 1); this.livetime = this.livetime + 1; if (this.livetime > (_root.game0.pointdebrislivetime - _root.game0.pointdebrisfadetime)) { this._alpha = ((_root.game0.pointdebrislivetime - this.livetime) / _root.game0.pointdebrisfadetime) * 100; } if (this.livetime > _root.game0.pointdebrislivetime) { this.active = false; _root.game0["point" + this.pointnum].active = false; this._visible = false; } this._x = _root.game0.px[_root.game0["point" + this.pointnum].firstpnum]; this._y = _root.game0.py[_root.game0["point" + this.pointnum].firstpnum]; if (_root.game0["point" + this.pointnum].atrest == false) { this._rotation = this._rotation + this.rotatespeed; if ((this.frame >= 3) && (this.frame <= 6)) { if (Math.floor(Math.random() * 12) == 0) { _root.game0.blooddrip(this._x, this._y); } } if (this.frame == 7) { if (Math.floor(Math.random() * 8) == 0) { _root.game0.debrisspark(this._x, this._y); } } } } }
Instance of Symbol 330 MovieClip "crowwingtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this._yscale = this._yscale + scalespeed; if (this._yscale >= 100) { this._yscale = 100; this.scalespeed = (-this.scalespeed) * 2; } if (this._yscale <= -100) { this._yscale = -100; this.scalespeed = (-this.scalespeed) * 0.5; } } else { this._visible = false; } }
Instance of Symbol 333 MovieClip "crowtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); this._x = this._x + this.hs; this._y = this._y + this.vs; _root.game0.hitzonex[this.hitzonenum] = this._x; _root.game0.hitzoney[this.hitzonenum] = this._y; if (_root.game0.hitzoneactive[this.hitzonenum] == true) { _root.game0.bloodspray(this._x, this._y, 3); _root.game0.createpointdebris(this._x, this._y, 3 + Math.floor(Math.random() * 4)); _root.game0.physicspush(this._x, this._y, 1, Math.random() * 360, Math.random()); this.active = false; } if (this.frame == 0) { _root.game0["crowwing" + this.wingnum]._visible = false; _root.game0["crowwing" + this.wingnum]._yscale = 0; } else { _root.game0["crowwing" + this.wingnum]._visible = true; } if (this.frame == 0) { if (_root.game0.blockdistance(this._x, this._y, _root.game0.player0._x, _root.game0.player0._y) < 100) { this.frame = 1; _root.game0.crowsound.start(0, 1); if (this.facedirection == 0) { this.hs = 5; this.vs = -0.5; } else { this.hs = -5; this.vs = -0.5; } } } if ((this._x > 1200) || (this._x < -400)) { this.active = false; } _root.game0["crowwing" + this.wingnum]._x = this._x; _root.game0["crowwing" + this.wingnum]._y = this._y; } else { _root.game0["crowwing" + this.wingnum].active = false; this._visible = false; _root.game0.hitzoneactive[this.hitzonenum] = true; } }
Instance of Symbol 335 MovieClip "shotgunammotemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { if (_root.game0["player" + o].shotgunammo < _root.game0.maxshotgunammo) { _root.game0.ammosound.start(0, 1); this.active = false; _root.game0["box" + this.boxnum].active = false; this._visible = false; _root.pickuptext = "You picked up shotgun (5) shells!"; _root.game0.pickuptextdelay = _root.game0.messageduration; _root.game0["player" + o].shotgunammo = _root.game0["player" + o].shotgunammo + _root.game0.shotgunammoamount; } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.pickuplivetime - _root.game0.pickupfadetime)) { this._alpha = ((_root.game0.pickuplivetime - this.livetime) / _root.game0.pickupfadetime) * 100; } if (this.livetime > _root.game0.pickuplivetime) { _root.game0["box" + this.boxnum].active = false; this._visible = false; this.active = false; } } tempx1 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum]; tempy1 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum]; tempx2 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum + 2]; tempy2 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum + 2]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = 315 - temprotation; } }
Instance of Symbol 338 MovieClip "legBtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (this.framerate > 0) { this.frame = this.frame + 1; } if (this.frame > 21) { this.frame = this.frame - 21; } this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 343 MovieClip "bodyBtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 344 MovieClip "shoveltemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.weaponlivetime - _root.game0.weaponfadetime)) { this._alpha = ((_root.game0.weaponlivetime - this.livetime) / _root.game0.weaponfadetime) * 100; } if (this.livetime > _root.game0.weaponlivetime) { this.active = false; _root.game0["line" + this.linenum].active = false; this._visible = false; } } tempx1 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum]; tempy1 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum]; tempx2 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum + 1]; tempy2 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum + 1]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; if (this.facedirection == 0) { this._rotation = -temprotation; } else { this._rotation = 180 - temprotation; } } }
Instance of Symbol 345 MovieClip "SMGtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((_root.game0["player" + o].hasSMG == false) || (_root.game0["player" + o].SMGammo < _root.game0.maxSMGammo)) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { _root.game0.weaponsound.start(0, 1); _root.game0["player" + o].SMGammo = _root.game0["player" + o].SMGammo + _root.game0.SMGpickupammo; _root.game0["line" + this.linenum].active = false; this._visible = false; this.active = false; _root.pickuptext = "You picked up an smg (4)!"; if (_root.game0["player" + o].hasSMG == false) { _root.game0["player" + o].hasSMG = true; _root.game0["player" + o].weapon = _root.game0.SMGnum; } } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.weaponlivetime - _root.game0.weaponfadetime)) { this._alpha = ((_root.game0.weaponlivetime - this.livetime) / _root.game0.weaponfadetime) * 100; } if (this.livetime > _root.game0.weaponlivetime) { this.active = false; _root.game0["line" + this.linenum].active = false; this._visible = false; } } tempx1 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum]; tempy1 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum]; tempx2 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum + 1]; tempy2 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum + 1]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; if (this.facedirection == 0) { this._rotation = -temprotation; } else { this._rotation = 180 - temprotation; } } }
Instance of Symbol 346 MovieClip "shotguntemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((_root.game0["player" + o].hasshotgun == false) || (_root.game0["player" + o].shotgunammo < _root.game0.maxshotgunammo)) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { _root.game0.weaponsound.start(0, 1); _root.game0["player" + o].shotgunammo = _root.game0["player" + o].shotgunammo + _root.game0.shotgunpickupammo; _root.game0["line" + this.linenum].active = false; this._visible = false; this.active = false; _root.pickuptext = "You picked up a shotgun (5)!"; _root.game0.pickuptextdelay = _root.game0.messageduration; if (_root.game0["player" + o].hasshotgun == false) { _root.game0["player" + o].hasshotgun = true; _root.game0["player" + o].weapon = _root.game0.shotgunnum; } } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.weaponlivetime - _root.game0.weaponfadetime)) { this._alpha = ((_root.game0.weaponlivetime - this.livetime) / _root.game0.weaponfadetime) * 100; } if (this.livetime > _root.game0.weaponlivetime) { this.active = false; _root.game0["line" + this.linenum].active = false; this._visible = false; } } tempx1 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum]; tempy1 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum]; tempx2 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum + 1]; tempy2 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum + 1]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; if (this.facedirection == 0) { this._rotation = -temprotation; } else { this._rotation = 180 - temprotation; } } }
Instance of Symbol 347 MovieClip "pistoltemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((_root.game0["player" + o].haspistol == false) || (_root.game0["player" + o].pistolammo < _root.game0.maxpistolammo)) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { _root.game0.weaponsound.start(0, 1); _root.pickuptext = "You picked up a pistol (2)!"; _root.game0.pickuptextdelay = _root.game0.messageduration; _root.game0["player" + o].pistolammo = _root.game0["player" + o].pistolammo + _root.game0.pistolpickupammo; _root.game0["line" + this.linenum].active = false; this._visible = false; this.active = false; if (_root.game0["player" + o].haspistol == false) { _root.game0["player" + o].haspistol = true; _root.game0["player" + o].weapon = _root.game0.pistolnum; } } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.weaponlivetime - _root.game0.weaponfadetime)) { this._alpha = ((_root.game0.weaponlivetime - this.livetime) / _root.game0.weaponfadetime) * 100; } if (this.livetime > _root.game0.weaponlivetime) { this.active = false; _root.game0["line" + this.linenum].active = false; this._visible = false; } } tempx1 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum]; tempy1 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum]; tempx2 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum + 1]; tempy2 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum + 1]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; if (this.facedirection == 0) { this._rotation = -temprotation; } else { this._rotation = 180 - temprotation; } } }
Instance of Symbol 349 MovieClip "torsotemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 350 MovieClip "grenadetemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (Math.floor(Math.random() * 4) == 0) { _root.game0.grenadesmoke(this._x, this._y); } this.livetime = this.livetime + 1; if (this.livetime > (_root.game0.grenadelivetime - _root.game0.grenadefadetime)) { this._alpha = ((_root.game0.grenadelivetime - this.livetime) / _root.game0.grenadefadetime) * 100; } if (this.livetime > _root.game0.grenadelivetime) { this.active = false; _root.game0.createblast(this._x, this._y, _root.game0.grenaderadius, _root.game0.grenadepush, _root.game0.grenadedamage, this.side); _root.game0["point" + this.pointnum].active = false; _root.game0.grenadeexplosion(this._x, this._y); this._visible = false; } else if ((_root.game0["point" + this.pointnum].bouncetype == 2) && (this.livetime > 8)) { this.active = false; _root.game0.createblast(this._x, this._y, _root.game0.grenaderadius, _root.game0.grenadepush, _root.game0.grenadedamage, this.side); _root.game0["point" + this.pointnum].active = false; _root.game0.grenadeexplosion(this._x, this._y); this._visible = false; } this._x = _root.game0.px[_root.game0["point" + this.pointnum].firstpnum]; this._y = _root.game0.py[_root.game0["point" + this.pointnum].firstpnum]; if (this.playedsounds < 3) { if (_root.game0["point" + this.pointnum].bouncetype == 1) { randsound = Math.floor(Math.random() * 3); if (randsound == 0) { _root.game0.grenadebouncesound1.start(0, 1); } if (randsound == 1) { _root.game0.grenadebouncesound2.start(0, 1); } if (randsound == 2) { _root.game0.grenadebouncesound3.start(0, 1); } this.playedsounds = this.playedsounds + 1; } } this._rotation = this._rotation + this.rotatespeed; } }
Instance of Symbol 352 MovieClip "healthtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { if (_root.game0["player" + o].damage > 0) { _root.game0.healthsound.start(0, 1); this.active = false; _root.game0["box" + this.boxnum].active = false; this._visible = false; _root.game0["player" + o].damage = _root.game0["player" + o].damage - _root.game0.healthamount; _root.pickuptext = "You picked up health!"; _root.game0.pickuptextdelay = _root.game0.messageduration; } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.pickuplivetime - _root.game0.pickupfadetime)) { this._alpha = ((_root.game0.pickuplivetime - this.livetime) / _root.game0.pickupfadetime) * 100; } if (this.livetime > _root.game0.pickuplivetime) { _root.game0["box" + this.boxnum].active = false; this._visible = false; this.active = false; } } tempx1 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum]; tempy1 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum]; tempx2 = _root.game0.px[_root.game0["box" + this.boxnum].firstpnum + 2]; tempy2 = _root.game0.py[_root.game0["box" + this.boxnum].firstpnum + 2]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; this._rotation = 315 - temprotation; } }
Instance of Symbol 356 MovieClip "bulletcasingtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { gotoAndPlay(this.frame + 1); this.livetime = this.livetime + 1; if (this.livetime > (_root.game0.bulletcasinglivetime - _root.game0.bulletcasingfadetime)) { this._alpha = ((_root.game0.bulletcasinglivetime - this.livetime) / _root.game0.bulletcasingfadetime) * 100; } if (this.livetime > _root.game0.bulletcasinglivetime) { this.active = false; _root.game0["point" + this.pointnum].active = false; this._visible = false; } this._x = _root.game0.px[_root.game0["point" + this.pointnum].firstpnum]; this._y = _root.game0.py[_root.game0["point" + this.pointnum].firstpnum]; if (this.playedsounds < 3) { if (_root.game0["point" + this.pointnum].bouncetype == 1) { randsound = Math.floor(Math.random() * 5); if (randsound == 0) { _root.game0.shellsound1.start(0, 1); } if (randsound == 1) { _root.game0.shellsound2.start(0, 1); } if (randsound == 2) { _root.game0.shellsound3.start(0, 1); } if (randsound == 3) { _root.game0.shellsound4.start(0, 1); } if (randsound == 4) { _root.game0.shellsound5.start(0, 1); } this.playedsounds = this.playedsounds + 1; } } if (_root.game0["point" + this.pointnum].atrest == false) { this._rotation = this._rotation + this.rotatespeed; } } }
Instance of Symbol 359 MovieClip "legAtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { if (this.framerate > 0) { this.frame = this.frame + 1; } if (this.frame > 21) { this.frame = this.frame - 21; } this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 360 MovieClip "rifletemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { o = 0; while (o < _root.game0.players) { if (_root.game0["player" + o].active == true) { if ((((this._x > (_root.game0["player" + o]._x - _root.game0.chestlength)) && (this._x < (_root.game0["player" + o]._x + _root.game0.chestlength))) && (this._y > (_root.game0["player" + o]._y - 1))) && (this._y < ((_root.game0["player" + o]._y + (_root.game0.ragdollheight * 2)) + 1))) { if ((_root.game0["player" + o].hasrifle == false) || (_root.game0["player" + o].rifleammo < _root.game0.maxrifleammo)) { _root.game0.weaponsound.start(0, 1); _root.game0["player" + o].rifleammo = _root.game0["player" + o].rifleammo + _root.game0.riflepickupammo; _root.game0["line" + this.linenum].active = false; this._visible = false; this.active = false; _root.pickuptext = "You picked up a rifle (3)!"; _root.game0.pickuptextdelay = _root.game0.messageduration; if (_root.game0["player" + o].hasrifle == false) { _root.game0["player" + o].hasrifle = true; _root.game0["player" + o].weapon = _root.game0.riflenum; } } } } o = o + 1; } this.livetime = this.livetime + 1; if (this.fade == true) { if (this.livetime > (_root.game0.weaponlivetime - _root.game0.weaponfadetime)) { this._alpha = ((_root.game0.weaponlivetime - this.livetime) / _root.game0.weaponfadetime) * 100; } if (this.livetime > _root.game0.weaponlivetime) { this.active = false; _root.game0["line" + this.linenum].active = false; this._visible = false; } } tempx1 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum]; tempy1 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum]; tempx2 = _root.game0.px[_root.game0["line" + this.linenum].firstpnum + 1]; tempy2 = _root.game0.py[_root.game0["line" + this.linenum].firstpnum + 1]; temprotation = _root.game0.directiontopoint(tempx1, tempy1, tempx2, tempy2); this._x = (tempx1 + tempx2) * 0.5; this._y = (tempy1 + tempy2) * 0.5; if (this.facedirection == 0) { this._rotation = -temprotation; } else { this._rotation = 180 - temprotation; } } }
Instance of Symbol 362 MovieClip "headtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 364 MovieClip "upperarmtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 366 MovieClip "lowerarmtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 367 MovieClip "upperlegtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 368 MovieClip "lowerlegtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Instance of Symbol 369 MovieClip "bodyAtemp" in Symbol 399 MovieClip Frame 2
onClipEvent (enterFrame) { if (this.active == true) { this.gotoAndPlay(this.frame + 1); } else { this._visible = false; } }
Symbol 399 MovieClip Frame 3
stop(); playphysics = false; messagetext = ""; _root.game0.cursor._visible = false; Mouse.show(); wait = -5; this.onEnterFrame = function () { if (_root.graphicsquality == 0) { graphicsselection._x = graphicsbutton0._x; graphicsselection._y = graphicsbutton0._y; } if (_root.graphicsquality == 1) { graphicsselection._x = graphicsbutton1._x; graphicsselection._y = graphicsbutton1._y; } if (_root.graphicsquality == 2) { graphicsselection._x = graphicsbutton2._x; graphicsselection._y = graphicsbutton2._y; } if (_root.bulletcasingquality == 0) { bulletcasingselection._x = bulletcasingbutton0._x; bulletcasingselection._y = bulletcasingbutton0._y; } if (_root.bulletcasingquality == 1) { bulletcasingselection._x = bulletcasingbutton1._x; bulletcasingselection._y = bulletcasingbutton1._y; } if (_root.bulletcasingquality == 2) { bulletcasingselection._x = bulletcasingbutton2._x; bulletcasingselection._y = bulletcasingbutton2._y; } if (_root.particlequality == 0) { particleselection._x = particlebutton0._x; particleselection._y = particlebutton0._y; } if (_root.particlequality == 1) { particleselection._x = particlebutton1._x; particleselection._y = particlebutton1._y; } if (_root.debrisquality == 0) { debrisselection._x = debrisbutton0._x; debrisselection._y = debrisbutton0._y; } if (_root.debrisquality == 1) { debrisselection._x = debrisbutton1._x; debrisselection._y = debrisbutton1._y; } if (_root.particlealpha == 0) { alphaselection._x = alphabutton0._x; alphaselection._y = alphabutton0._y; } if (_root.particlealpha == 1) { alphaselection._x = alphabutton1._x; alphaselection._y = alphabutton1._y; } if (_root.difficulty == 0) { difficultyselection._x = difficultybutton0._x; difficultyselection._y = difficultybutton0._y; } if (_root.difficulty == 1) { difficultyselection._x = difficultybutton1._x; difficultyselection._y = difficultybutton1._y; } if (_root.difficulty == 2) { difficultyselection._x = difficultybutton2._x; difficultyselection._y = difficultybutton2._y; } };

Library Items

Symbol 1 Sound [zombiedie]
Symbol 2 Sound [waterspray]
Symbol 3 Sound [turretshoot]
Symbol 4 Sound [turretexplode]
Symbol 5 Sound [teleport]
Symbol 6 Sound [smgshoot]
Symbol 7 Sound [smallwaterfall]
Symbol 8 Sound [smallcrash]
Symbol 9 Sound [shovelswing]
Symbol 10 Sound [shovelstart]
Symbol 11 Sound [shotgunshoot]
Symbol 12 Sound [shellbounce5]
Symbol 13 Sound [shellbounce4]
Symbol 14 Sound [shellbounce3]
Symbol 15 Sound [shellbounce2]
Symbol 16 Sound [shellbounce1]
Symbol 17 Sound [rifleshoot]
Symbol 18 Sound [ratsqueak]
Symbol 19 Sound [playerdamage]
Symbol 20 Sound [pistolshoot]
Symbol 21 Sound [metalcrash]
Symbol 22 Sound [hydrantspray]
Symbol 23 Sound [hit]
Symbol 24 Sound [healthpickup]
Symbol 25 Sound [gunpickup]
Symbol 26 Sound [grenadeexplode]
Symbol 27 Sound [grenadebounce3]
Symbol 28 Sound [grenadebounce2]
Symbol 29 Sound [grenadebounce1]
Symbol 30 Sound [explosion]
Symbol 31 Sound [electricbuzz]
Symbol 32 Sound [dryfire]
Symbol 33 Sound [drip]
Symbol 34 Sound [dooropen]
Symbol 35 Sound [crowcaw]
Symbol 36 Sound [bigcrash]
Symbol 37 Sound [berserklaugh]
Symbol 38 Sound [ammopickup]
Symbol 39 Sound [alarm]
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClip [BoundingBox]Uses:44Used by:53 59 60
Symbol 46 MovieClip [Defaults]Used by:48
Symbol 47 MovieClip [UIObjectExtensions]Used by:48
Symbol 48 MovieClip [UIObject]Uses:46 47Used by:54 56 57
Symbol 49 GraphicUsed by:51
Symbol 50 GraphicUsed by:51
Symbol 51 ButtonUses:49 50Used by:54
Symbol 52 MovieClipUsed by:54
Symbol 53 MovieClip [FocusRect]Uses:45Used by:54
Symbol 54 MovieClip [FocusManager]Uses:51 52 53 48Used by:56
Symbol 55 MovieClip [UIComponentExtensions]Used by:56
Symbol 56 MovieClip [UIComponent]Uses:48 54 55Used by:59
Symbol 57 MovieClip [Border]Uses:48Used by:58
Symbol 58 MovieClip [RectBorder]Uses:57Used by:59
Symbol 59 MovieClip [View]Uses:45 56 58Used by:60
Symbol 60 MovieClip [Loader]Uses:45 59Used by:104
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:104 399
Symbol 84 GraphicUsed by:85 104 114 127 273  Timeline
Symbol 85 MovieClipUses:84Used by:89
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:88
Symbol 88 MovieClipUses:87Used by:89
Symbol 89 MovieClipUses:88 85Used by:104
Symbol 90 FontUsed by:91 155 156 159 160 163 164 165 166 167 168 169 170 171 172 173
Symbol 91 EditableTextUses:90Used by:104
Symbol 92 FontUsed by:93
Symbol 93 EditableTextUses:92Used by:104
Symbol 94 GraphicUsed by:104
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:97 98
Symbol 97 MovieClipUses:96Used by:98
Symbol 98 ButtonUses:97 96Used by:104
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:101 103
Symbol 101 MovieClipUses:100Used by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 ButtonUses:102 100Used by:104
Symbol 104 MovieClipUses:83 89 91 93 94 60 98 84 103Used by:Timeline
Symbol 105 MovieClipUsed by:Timeline
Symbol 40 MovieClip [__Packages.mx.core.UIObject]
Symbol 41 MovieClip [__Packages.mx.core.UIComponent]
Symbol 42 MovieClip [__Packages.mx.core.View]
Symbol 43 MovieClip [__Packages.mx.controls.Loader]
Symbol 61 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 62 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 63 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 64 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]
Symbol 65 MovieClip [__Packages.mx.skins.Border]
Symbol 66 MovieClip [__Packages.mx.skins.RectBorder]
Symbol 67 MovieClip [__Packages.mx.managers.DepthManager]
Symbol 68 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 69 MovieClip [__Packages.mx.events.UIEventDispatcher]
Symbol 70 MovieClip [__Packages.mx.core.ExternalContent]
Symbol 71 MovieClip [__Packages.mx.skins.ColoredSkinElement]
Symbol 72 MovieClip [__Packages.mx.core.ext.UIObjectExtensions]
Symbol 73 MovieClip [__Packages.mx.skins.halo.Defaults]
Symbol 74 MovieClip [__Packages.mx.controls.SimpleButton]
Symbol 75 MovieClip [__Packages.mx.managers.SystemManager]
Symbol 76 MovieClip [__Packages.mx.managers.FocusManager]
Symbol 77 MovieClip [__Packages.mx.skins.halo.FocusRect]
Symbol 78 MovieClip [__Packages.mx.managers.OverlappedWindows]
Symbol 79 MovieClip [__Packages.mx.styles.CSSSetStyle]
Symbol 80 MovieClip [__Packages.mx.core.ext.UIComponentExtensions]
Symbol 81 MovieClip [__Packages.mx.skins.halo.RectBorder]
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:108 112
Symbol 108 MovieClipUses:107Used by:112
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111 112
Symbol 111 MovieClipUses:110Used by:112
Symbol 112 ButtonUses:108 111 107 110Used by:113
Symbol 113 MovieClipUses:112Used by:114
Symbol 114 MovieClipUses:113 84Used by:Timeline
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:117 118
Symbol 117 MovieClipUses:116Used by:118
Symbol 118 ButtonUses:117 116Used by:128
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:121 122
Symbol 121 MovieClipUses:120Used by:122
Symbol 122 ButtonUses:121 120Used by:128
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:125 126
Symbol 125 MovieClipUses:124Used by:126
Symbol 126 ButtonUses:125 124Used by:128
Symbol 127 MovieClipUses:84Used by:128
Symbol 128 MovieClipUses:118 122 126 127Used by:Timeline
Symbol 129 GraphicUsed by:141 344 369
Symbol 130 GraphicUsed by:141
Symbol 131 GraphicUsed by:141 347 369
Symbol 132 GraphicUsed by:141
Symbol 133 GraphicUsed by:141 360 369
Symbol 134 GraphicUsed by:141
Symbol 135 GraphicUsed by:141 345 369
Symbol 136 GraphicUsed by:141
Symbol 137 GraphicUsed by:141 346 369
Symbol 138 GraphicUsed by:141
Symbol 139 GraphicUsed by:141 277 304 350 369
Symbol 140 GraphicUsed by:141
Symbol 141 MovieClipUses:129 130 131 132 133 134 135 136 137 138 139 140Used by:Timeline
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClipUses:142Used by:Timeline
Symbol 144 GraphicUsed by:145
Symbol 145 MovieClipUses:144Used by:Timeline
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:146Used by:Timeline
Symbol 148 FontUsed by:149
Symbol 149 EditableTextUses:148Used by:Timeline
Symbol 150 FontUsed by:151 152 153 154
Symbol 151 EditableTextUses:150Used by:Timeline
Symbol 152 EditableTextUses:150Used by:Timeline
Symbol 153 EditableTextUses:150Used by:Timeline
Symbol 154 EditableTextUses:150Used by:Timeline
Symbol 155 TextUses:90Used by:399
Symbol 156 TextUses:90Used by:399
Symbol 157 BitmapUsed by:158
Symbol 158 GraphicUses:157Used by:399
Symbol 159 TextUses:90Used by:399
Symbol 160 TextUses:90Used by:399
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClipUses:161Used by:399
Symbol 163 TextUses:90Used by:399
Symbol 164 TextUses:90Used by:399
Symbol 165 TextUses:90Used by:399
Symbol 166 TextUses:90Used by:399
Symbol 167 TextUses:90Used by:399
Symbol 168 TextUses:90Used by:399
Symbol 169 TextUses:90Used by:399
Symbol 170 TextUses:90Used by:399
Symbol 171 TextUses:90Used by:399
Symbol 172 TextUses:90Used by:399
Symbol 173 TextUses:90Used by:399
Symbol 174 GraphicUsed by:179 189 192 195 201 374 378 381 388 389 390 391 392 393 394 395 396 397
Symbol 175 FontUsed by:176 177 178 187 188 190 191 193 194 198 199 200 371 372 373 376 377 379 380 386 387
Symbol 176 TextUses:175Used by:179
Symbol 177 TextUses:175Used by:179
Symbol 178 TextUses:175Used by:179
Symbol 179 ButtonUses:174 176 177 178Used by:399
Symbol 180 GraphicUsed by:185
Symbol 181 FontUsed by:182 183 184 186 244 370 375 382 383 384 385
Symbol 182 TextUses:181Used by:185
Symbol 183 TextUses:181Used by:185
Symbol 184 TextUses:181Used by:185
Symbol 185 ButtonUses:180 182 183 184Used by:399
Symbol 186 TextUses:181Used by:399
Symbol 187 TextUses:175Used by:189
Symbol 188 TextUses:175Used by:189
Symbol 189 ButtonUses:174 187 188Used by:399
Symbol 190 TextUses:175Used by:192
Symbol 191 TextUses:175Used by:192
Symbol 192 ButtonUses:174 190 191Used by:399
Symbol 193 TextUses:175Used by:195
Symbol 194 TextUses:175Used by:195
Symbol 195 ButtonUses:174 193 194Used by:399
Symbol 196 GraphicUsed by:197
Symbol 197 MovieClipUses:196Used by:399
Symbol 198 TextUses:175Used by:201
Symbol 199 TextUses:175Used by:201
Symbol 200 TextUses:175Used by:201
Symbol 201 ButtonUses:174 198 199 200Used by:399
Symbol 202 GraphicUsed by:399
Symbol 203 GraphicUsed by:205
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClipUses:203 204Used by:399
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:206Used by:399
Symbol 208 GraphicUsed by:209
Symbol 209 MovieClipUses:208Used by:399
Symbol 210 GraphicUsed by:211
Symbol 211 MovieClipUses:210Used by:399
Symbol 212 GraphicUsed by:214
Symbol 213 GraphicUsed by:214
Symbol 214 MovieClipUses:212 213Used by:399
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClipUses:215Used by:399
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217Used by:399
Symbol 219 GraphicUsed by:220
Symbol 220 MovieClipUses:219Used by:399
Symbol 221 GraphicUsed by:223
Symbol 222 GraphicUsed by:223
Symbol 223 MovieClipUses:221 222Used by:399
Symbol 224 GraphicUsed by:229
Symbol 225 GraphicUsed by:229
Symbol 226 GraphicUsed by:229
Symbol 227 GraphicUsed by:229
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:224 225 226 227 228Used by:399
Symbol 230 GraphicUsed by:248
Symbol 231 GraphicUsed by:248
Symbol 232 GraphicUsed by:248
Symbol 233 GraphicUsed by:248
Symbol 234 GraphicUsed by:248
Symbol 235 GraphicUsed by:248
Symbol 236 GraphicUsed by:248
Symbol 237 GraphicUsed by:248
Symbol 238 GraphicUsed by:248
Symbol 239 GraphicUsed by:248
Symbol 240 GraphicUsed by:248 263 399
Symbol 241 GraphicUsed by:248
Symbol 242 GraphicUsed by:248
Symbol 243 GraphicUsed by:248
Symbol 244 TextUses:181Used by:248
Symbol 245 GraphicUsed by:248
Symbol 246 GraphicUsed by:248
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClipUses:230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247Used by:399
Symbol 249 GraphicUsed by:263
Symbol 250 GraphicUsed by:263
Symbol 251 GraphicUsed by:263
Symbol 252 GraphicUsed by:263
Symbol 253 GraphicUsed by:263
Symbol 254 GraphicUsed by:263
Symbol 255 GraphicUsed by:263
Symbol 256 GraphicUsed by:263
Symbol 257 GraphicUsed by:263
Symbol 258 GraphicUsed by:263
Symbol 259 GraphicUsed by:263
Symbol 260 GraphicUsed by:263
Symbol 261 GraphicUsed by:263
Symbol 262 GraphicUsed by:263
Symbol 263 MovieClipUses:249 250 251 252 253 254 255 256 257 258 259 240 260 261 262Used by:399
Symbol 264 GraphicUsed by:265
Symbol 265 MovieClipUses:264Used by:399
Symbol 266 GraphicUsed by:272
Symbol 267 GraphicUsed by:272
Symbol 268 GraphicUsed by:272
Symbol 269 GraphicUsed by:272
Symbol 270 GraphicUsed by:272
Symbol 271 GraphicUsed by:272
Symbol 272 MovieClipUses:266 267 268 269 270 271Used by:399
Symbol 273 MovieClipUses:84Used by:399
Symbol 274 GraphicUsed by:275
Symbol 275 MovieClipUses:274Used by:399
Symbol 276 GraphicUsed by:277
Symbol 277 MovieClipUses:139 276Used by:399
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:399
Symbol 280 GraphicUsed by:281
Symbol 281 MovieClipUses:280Used by:399
Symbol 282 GraphicUsed by:283
Symbol 283 MovieClipUses:282Used by:399
Symbol 284 GraphicUsed by:285
Symbol 285 MovieClipUses:284Used by:399
Symbol 286 GraphicUsed by:288 367
Symbol 287 GraphicUsed by:288 368
Symbol 288 MovieClipUses:286 287Used by:399
Symbol 289 GraphicUsed by:295 362
Symbol 290 GraphicUsed by:295 366
Symbol 291 GraphicUsed by:295 328
Symbol 292 GraphicUsed by:295 364
Symbol 293 GraphicUsed by:295 349
Symbol 294 GraphicUsed by:295 304 343 369
Symbol 295 MovieClipUses:289 290 291 292 293 294Used by:399
Symbol 296 GraphicUsed by:298 367
Symbol 297 GraphicUsed by:298 368
Symbol 298 MovieClipUses:296 297Used by:399
Symbol 299 GraphicUsed by:304 362
Symbol 300 GraphicUsed by:304 366
Symbol 301 GraphicUsed by:304 328
Symbol 302 GraphicUsed by:304 364
Symbol 303 GraphicUsed by:304 349
Symbol 304 MovieClipUses:299 300 301 302 303 294 139Used by:399
Symbol 305 GraphicUsed by:307
Symbol 306 GraphicUsed by:307
Symbol 307 MovieClipUses:305 306Used by:399
Symbol 308 GraphicUsed by:309
Symbol 309 MovieClipUses:308Used by:399
Symbol 310 GraphicUsed by:311
Symbol 311 MovieClipUses:310Used by:399
Symbol 312 GraphicUsed by:315
Symbol 313 GraphicUsed by:315
Symbol 314 GraphicUsed by:315
Symbol 315 MovieClipUses:312 313 314Used by:399
Symbol 316 GraphicUsed by:319
Symbol 317 GraphicUsed by:319
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:316 317 318Used by:399
Symbol 320 GraphicUsed by:328
Symbol 321 GraphicUsed by:328
Symbol 322 GraphicUsed by:328
Symbol 323 GraphicUsed by:328
Symbol 324 GraphicUsed by:328
Symbol 325 GraphicUsed by:328
Symbol 326 GraphicUsed by:328
Symbol 327 GraphicUsed by:328
Symbol 328 MovieClipUses:320 321 322 323 324 325 326 327 291 301Used by:399
Symbol 329 GraphicUsed by:330
Symbol 330 MovieClipUses:329Used by:399
Symbol 331 GraphicUsed by:333
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:331 332Used by:399
Symbol 334 GraphicUsed by:335
Symbol 335 MovieClipUses:334Used by:399
Symbol 336 GraphicUsed by:338 367
Symbol 337 GraphicUsed by:338 368
Symbol 338 MovieClipUses:336 337Used by:399
Symbol 339 GraphicUsed by:343 362
Symbol 340 GraphicUsed by:343 366
Symbol 341 GraphicUsed by:343 364
Symbol 342 GraphicUsed by:343 349
Symbol 343 MovieClipUses:339 340 341 342 294Used by:399
Symbol 344 MovieClipUses:129Used by:399
Symbol 345 MovieClipUses:135Used by:399
Symbol 346 MovieClipUses:137Used by:399
Symbol 347 MovieClipUses:131Used by:399
Symbol 348 GraphicUsed by:349 369
Symbol 349 MovieClipUses:348 342 303 293Used by:399
Symbol 350 MovieClipUses:139Used by:399
Symbol 351 GraphicUsed by:352
Symbol 352 MovieClipUses:351Used by:399
Symbol 353 GraphicUsed by:356
Symbol 354 GraphicUsed by:356
Symbol 355 GraphicUsed by:356
Symbol 356 MovieClipUses:353 354 355Used by:399
Symbol 357 GraphicUsed by:359 367
Symbol 358 GraphicUsed by:359 368
Symbol 359 MovieClipUses:357 358Used by:399
Symbol 360 MovieClipUses:133Used by:399
Symbol 361 GraphicUsed by:362 369
Symbol 362 MovieClipUses:361 339 299 289Used by:399
Symbol 363 GraphicUsed by:364 369
Symbol 364 MovieClipUses:363 341 302 292Used by:399
Symbol 365 GraphicUsed by:366 369
Symbol 366 MovieClipUses:365 340 300 290Used by:399
Symbol 367 MovieClipUses:357 336 296 286Used by:399
Symbol 368 MovieClipUses:358 337 297 287Used by:399
Symbol 369 MovieClipUses:361 365 363 133 348 131 139 137 135 129 294Used by:399
Symbol 370 TextUses:181Used by:399
Symbol 371 TextUses:175Used by:374
Symbol 372 TextUses:175Used by:374
Symbol 373 TextUses:175Used by:374
Symbol 374 ButtonUses:174 371 372 373Used by:399
Symbol 375 TextUses:181Used by:399
Symbol 376 TextUses:175Used by:378 389 391 393 396
Symbol 377 TextUses:175Used by:378 389 391 393 396
Symbol 378 ButtonUses:174 376 377Used by:399
Symbol 379 TextUses:175Used by:381 390 392 394 397
Symbol 380 TextUses:175Used by:381 390 392 394 397
Symbol 381 ButtonUses:174 379 380Used by:399
Symbol 382 TextUses:181Used by:399
Symbol 383 TextUses:181Used by:399
Symbol 384 TextUses:181Used by:399
Symbol 385 TextUses:181Used by:399
Symbol 386 TextUses:175Used by:388 395
Symbol 387 TextUses:175Used by:388 395
Symbol 388 ButtonUses:174 386 387Used by:399
Symbol 389 ButtonUses:174 376 377Used by:399
Symbol 390 ButtonUses:174 379 380Used by:399
Symbol 391 ButtonUses:174 376 377Used by:399
Symbol 392 ButtonUses:174 379 380Used by:399
Symbol 393 ButtonUses:174 376 377Used by:399
Symbol 394 ButtonUses:174 379 380Used by:399
Symbol 395 ButtonUses:174 386 387Used by:399
Symbol 396 ButtonUses:174 376 377Used by:399
Symbol 397 ButtonUses:174 379 380Used by:399
Symbol 398 GraphicUsed by:399
Symbol 399 MovieClipUses:155 156 158 159 160 162 163 164 165 166 167 168 169 170 171 172 173 83 179 185 186 189 192 195 197 201 202 205 207 209 211 214 216 218 220 223 229 248 263 265 272 273 275 277 279 281 283 285 288 295 298 304 307 309 311 315 319 328 330 333 335 338 343 344 345 346 347 349 350 352 356 359 360 362 364 366 367 368 369 370 374 375 378 381 382 383 384 385 388 389 390 391 392 393 394 395 396 397 240 398Used by:Timeline

Instance Names

"sound0"Frame 1Symbol 105 MovieClip
"weapondisplaytemp"Frame 3Symbol 141 MovieClip
"healthbar"Frame 3Symbol 143 MovieClip
"ammodisplay"Frame 3Symbol 145 MovieClip
"healthdisplay"Frame 3Symbol 147 MovieClip
"game0"Frame 3Symbol 399 MovieClip
"boundingBox_mc"Symbol 53 MovieClip [FocusRect] Frame 1Symbol 45 MovieClip [BoundingBox]
"tabCapture"Symbol 54 MovieClip [FocusManager] Frame 1Symbol 51 Button
"boundingBox_mc"Symbol 59 MovieClip [View] Frame 1Symbol 45 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 60 MovieClip [Loader] Frame 1Symbol 45 MovieClip [BoundingBox]
"bar_mc"Symbol 104 MovieClip Frame 1Symbol 89 MovieClip
"pct_txt"Symbol 104 MovieClip Frame 1Symbol 91 EditableText
"preroll_loader"Symbol 104 MovieClip Frame 1Symbol 60 MovieClip [Loader]
"playnow_btn"Symbol 104 MovieClip Frame 1Symbol 98 Button
"playnow_btn"Symbol 113 MovieClip Frame 1Symbol 112 Button
"optionsbutton"Symbol 399 MovieClip Frame 1Symbol 179 Button
"difficultybutton2"Symbol 399 MovieClip Frame 1Symbol 189 Button
"difficultybutton1"Symbol 399 MovieClip Frame 1Symbol 192 Button
"difficultybutton0"Symbol 399 MovieClip Frame 1Symbol 195 Button
"difficultyselection"Symbol 399 MovieClip Frame 1Symbol 197 MovieClip
"playbutton"Symbol 399 MovieClip Frame 1Symbol 201 Button
"computertemp"Symbol 399 MovieClip Frame 2Symbol 205 MovieClip
"walldoortemp"Symbol 399 MovieClip Frame 2Symbol 207 MovieClip
"floordoortemp"Symbol 399 MovieClip Frame 2Symbol 209 MovieClip
"spinlighttemp"Symbol 399 MovieClip Frame 2Symbol 211 MovieClip
"citytemp"Symbol 399 MovieClip Frame 2Symbol 214 MovieClip
"berserkscreentemp"Symbol 399 MovieClip Frame 2Symbol 216 MovieClip
"cursortemp"Symbol 399 MovieClip Frame 2Symbol 218 MovieClip
"cratetemp"Symbol 399 MovieClip Frame 2Symbol 220 MovieClip
"barreltemp"Symbol 399 MovieClip Frame 2Symbol 223 MovieClip
"linktemp"Symbol 399 MovieClip Frame 2Symbol 229 MovieClip
"backgroundtemp"Symbol 399 MovieClip Frame 2Symbol 248 MovieClip
"foregroundtemp"Symbol 399 MovieClip Frame 2Symbol 263 MovieClip
"flashtemp"Symbol 399 MovieClip Frame 2Symbol 265 MovieClip
"backdroptemp"Symbol 399 MovieClip Frame 2Symbol 272 MovieClip
"fadetemp"Symbol 399 MovieClip Frame 2Symbol 273 MovieClip
"rifleammotemp"Symbol 399 MovieClip Frame 2Symbol 275 MovieClip
"grenadeammotemp"Symbol 399 MovieClip Frame 2Symbol 277 MovieClip
"pistolammotemp"Symbol 399 MovieClip Frame 2Symbol 279 MovieClip
"SMGammotemp"Symbol 399 MovieClip Frame 2Symbol 281 MovieClip
"raintemp"Symbol 399 MovieClip Frame 2Symbol 283 MovieClip
"fogtemp"Symbol 399 MovieClip Frame 2Symbol 285 MovieClip
"legDtemp"Symbol 399 MovieClip Frame 2Symbol 288 MovieClip
"bodyDtemp"Symbol 399 MovieClip Frame 2Symbol 295 MovieClip
"legCtemp"Symbol 399 MovieClip Frame 2Symbol 298 MovieClip
"bodyCtemp"Symbol 399 MovieClip Frame 2Symbol 304 MovieClip
"rattemp"Symbol 399 MovieClip Frame 2Symbol 307 MovieClip
"turretbasetemp"Symbol 399 MovieClip Frame 2Symbol 309 MovieClip
"turretbarreltemp"Symbol 399 MovieClip Frame 2Symbol 311 MovieClip
"boxdebristemp"Symbol 399 MovieClip Frame 2Symbol 315 MovieClip
"linedebristemp"Symbol 399 MovieClip Frame 2Symbol 319 MovieClip
"pointdebristemp"Symbol 399 MovieClip Frame 2Symbol 328 MovieClip
"crowwingtemp"Symbol 399 MovieClip Frame 2Symbol 330 MovieClip
"crowtemp"Symbol 399 MovieClip Frame 2Symbol 333 MovieClip
"shotgunammotemp"Symbol 399 MovieClip Frame 2Symbol 335 MovieClip
"legBtemp"Symbol 399 MovieClip Frame 2Symbol 338 MovieClip
"bodyBtemp"Symbol 399 MovieClip Frame 2Symbol 343 MovieClip
"shoveltemp"Symbol 399 MovieClip Frame 2Symbol 344 MovieClip
"SMGtemp"Symbol 399 MovieClip Frame 2Symbol 345 MovieClip
"shotguntemp"Symbol 399 MovieClip Frame 2Symbol 346 MovieClip
"pistoltemp"Symbol 399 MovieClip Frame 2Symbol 347 MovieClip
"torsotemp"Symbol 399 MovieClip Frame 2Symbol 349 MovieClip
"grenadetemp"Symbol 399 MovieClip Frame 2Symbol 350 MovieClip
"healthtemp"Symbol 399 MovieClip Frame 2Symbol 352 MovieClip
"bulletcasingtemp"Symbol 399 MovieClip Frame 2Symbol 356 MovieClip
"legAtemp"Symbol 399 MovieClip Frame 2Symbol 359 MovieClip
"rifletemp"Symbol 399 MovieClip Frame 2Symbol 360 MovieClip
"headtemp"Symbol 399 MovieClip Frame 2Symbol 362 MovieClip
"upperarmtemp"Symbol 399 MovieClip Frame 2Symbol 364 MovieClip
"lowerarmtemp"Symbol 399 MovieClip Frame 2Symbol 366 MovieClip
"upperlegtemp"Symbol 399 MovieClip Frame 2Symbol 367 MovieClip
"lowerlegtemp"Symbol 399 MovieClip Frame 2Symbol 368 MovieClip
"bodyAtemp"Symbol 399 MovieClip Frame 2Symbol 369 MovieClip
"menubutton"Symbol 399 MovieClip Frame 3Symbol 374 Button
"alphaselection"Symbol 399 MovieClip Frame 3Symbol 197 MovieClip
"debrisbutton1"Symbol 399 MovieClip Frame 3Symbol 378 Button
"debrisbutton0"Symbol 399 MovieClip Frame 3Symbol 381 Button
"debrisselection"Symbol 399 MovieClip Frame 3Symbol 197 MovieClip
"particleselection"Symbol 399 MovieClip Frame 3Symbol 197 MovieClip
"bulletcasingselection"Symbol 399 MovieClip Frame 3Symbol 197 MovieClip
"graphicsselection"Symbol 399 MovieClip Frame 3Symbol 197 MovieClip
"graphicsbutton2"Symbol 399 MovieClip Frame 3Symbol 388 Button
"graphicsbutton1"Symbol 399 MovieClip Frame 3Symbol 389 Button
"graphicsbutton0"Symbol 399 MovieClip Frame 3Symbol 390 Button
"alphabutton1"Symbol 399 MovieClip Frame 3Symbol 391 Button
"alphabutton0"Symbol 399 MovieClip Frame 3Symbol 392 Button
"particlebutton1"Symbol 399 MovieClip Frame 3Symbol 393 Button
"particlebutton0"Symbol 399 MovieClip Frame 3Symbol 394 Button
"bulletcasingbutton2"Symbol 399 MovieClip Frame 3Symbol 395 Button
"bulletcasingbutton1"Symbol 399 MovieClip Frame 3Symbol 396 Button
"bulletcasingbutton0"Symbol 399 MovieClip Frame 3Symbol 397 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "zombiedie"
ExportAssets (56)Timeline Frame 1Symbol 2 as "waterspray"
ExportAssets (56)Timeline Frame 1Symbol 3 as "turretshoot"
ExportAssets (56)Timeline Frame 1Symbol 4 as "turretexplode"
ExportAssets (56)Timeline Frame 1Symbol 5 as "teleport"
ExportAssets (56)Timeline Frame 1Symbol 6 as "smgshoot"
ExportAssets (56)Timeline Frame 1Symbol 7 as "smallwaterfall"
ExportAssets (56)Timeline Frame 1Symbol 8 as "smallcrash"
ExportAssets (56)Timeline Frame 1Symbol 9 as "shovelswing"
ExportAssets (56)Timeline Frame 1Symbol 10 as "shovelstart"
ExportAssets (56)Timeline Frame 1Symbol 11 as "shotgunshoot"
ExportAssets (56)Timeline Frame 1Symbol 12 as "shellbounce5"
ExportAssets (56)Timeline Frame 1Symbol 13 as "shellbounce4"
ExportAssets (56)Timeline Frame 1Symbol 14 as "shellbounce3"
ExportAssets (56)Timeline Frame 1Symbol 15 as "shellbounce2"
ExportAssets (56)Timeline Frame 1Symbol 16 as "shellbounce1"
ExportAssets (56)Timeline Frame 1Symbol 17 as "rifleshoot"
ExportAssets (56)Timeline Frame 1Symbol 18 as "ratsqueak"
ExportAssets (56)Timeline Frame 1Symbol 19 as "playerdamage"
ExportAssets (56)Timeline Frame 1Symbol 20 as "pistolshoot"
ExportAssets (56)Timeline Frame 1Symbol 21 as "metalcrash"
ExportAssets (56)Timeline Frame 1Symbol 22 as "hydrantspray"
ExportAssets (56)Timeline Frame 1Symbol 23 as "hit"
ExportAssets (56)Timeline Frame 1Symbol 24 as "healthpickup"
ExportAssets (56)Timeline Frame 1Symbol 25 as "gunpickup"
ExportAssets (56)Timeline Frame 1Symbol 26 as "grenadeexplode"
ExportAssets (56)Timeline Frame 1Symbol 27 as "grenadebounce3"
ExportAssets (56)Timeline Frame 1Symbol 28 as "grenadebounce2"
ExportAssets (56)Timeline Frame 1Symbol 29 as "grenadebounce1"
ExportAssets (56)Timeline Frame 1Symbol 30 as "explosion"
ExportAssets (56)Timeline Frame 1Symbol 31 as "electricbuzz"
ExportAssets (56)Timeline Frame 1Symbol 32 as "dryfire"
ExportAssets (56)Timeline Frame 1Symbol 33 as "drip"
ExportAssets (56)Timeline Frame 1Symbol 34 as "dooropen"
ExportAssets (56)Timeline Frame 1Symbol 35 as "crowcaw"
ExportAssets (56)Timeline Frame 1Symbol 36 as "bigcrash"
ExportAssets (56)Timeline Frame 1Symbol 37 as "berserklaugh"
ExportAssets (56)Timeline Frame 1Symbol 38 as "ammopickup"
ExportAssets (56)Timeline Frame 1Symbol 39 as "alarm"
ExportAssets (56)Timeline Frame 1Symbol 45 as "BoundingBox"
ExportAssets (56)Timeline Frame 1Symbol 46 as "Defaults"
ExportAssets (56)Timeline Frame 1Symbol 47 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 48 as "UIObject"
ExportAssets (56)Timeline Frame 1Symbol 53 as "FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 54 as "FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 55 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 56 as "UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 57 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 58 as "RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 59 as "View"
ExportAssets (56)Timeline Frame 1Symbol 60 as "Loader"
ExportAssets (56)Timeline Frame 1Symbol 40 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 41 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 42 as "__Packages.mx.core.View"
ExportAssets (56)Timeline Frame 1Symbol 43 as "__Packages.mx.controls.Loader"
ExportAssets (56)Timeline Frame 1Symbol 61 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 62 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 63 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 64 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 65 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 66 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 67 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 68 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 69 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 70 as "__Packages.mx.core.ExternalContent"
ExportAssets (56)Timeline Frame 1Symbol 71 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 72 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 73 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 74 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 75 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 76 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 77 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 78 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 79 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 80 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 81 as "__Packages.mx.skins.halo.RectBorder"

Labels

"menuscreen"Symbol 399 MovieClip Frame 1
"game"Symbol 399 MovieClip Frame 2
"optionsscreen"Symbol 399 MovieClip Frame 3

Dynamic Text Variables

pickuptextSymbol 149 EditableText""
fpstextSymbol 151 EditableText""
messagetextSymbol 152 EditableText""
ammotextSymbol 153 EditableText""
healthtextSymbol 154 EditableText""




http://swfchan.com/5/23131/info.shtml
Created: 26/5 -2019 10:57:16 Last modified: 26/5 -2019 10:57:16 Server time: 15/05 -2024 07:30:37