Frame 1
onEnterFrame = function () {
totalbytes = getBytesTotal();
loadedbytes = getBytesLoaded();
if (loadedbytes == totalbytes) {
delete onEnterFrame;
gotoAndPlay ("INTRO");
} else {
stop();
preloader._percentage.text = Math.floor((loadedbytes / totalbytes) * 100) + "%";
preloader.bar._xscale = (loadedbytes / totalbytes) * 100;
}
};
Frame 115
_root.play();
_root.play();
Frame 268
if (_root.menuStarted == undefined) {
var mySound = new Sound();
mySound.attachSound("High Liter.wav");
mySound.setVolume(100);
mySound.start(0, 999);
mySound.onSoundComplete = function () {
this.start();
};
_root.menuStarted = true;
}
play();
Frame 377
stop();
stop();
Frame 378
stop();
Frame 379
stop();
Frame 380
stop();
Frame 381
stop();
_root.hero = new Toast.CHeroEntity(_root, "hero", "you", 50, 300, 4);
PlatformManager.AddEntity(hero);
_root.bgVolume = 100;
_root.fxVolume = 30;
_root._canControl = true;
_root.boatBatCount = 0;
_root.bgSound = new Sound(_root.soundFile);
_root.bgSound.attachSound("GaymTheme");
_root.bgSound.setVolume(_root.bgVolume);
_root.bgSound.start(0, 99999);
_root.camTop = 260;
_root.camBottom = 320;
_root._bgMusic = _root.bgSound;
_root.moveSlug = false;
_root._dispDebugText = false;
_root.mplayer = new Object();
_root.mplayer._muted = false;
_root.level._leftBound = 0;
_root.level._rightBound = 800;
_root.boostCount = 0;
_root.boostLen = 75;
_root.gameOver = false;
var mouseListener = new Object();
Mouse.addListener(mouseListener);
mouseListener.onMouseDown = function () {
if (_root._dispDebugText) {
i = 0;
while (i < PlatformManager._entIndex) {
if (PlatformManager._entities[i].GetMouseOver()) {
PlatformManager._entities[i]._selected = !PlatformManager._entities[i]._selected;
}
i++;
}
}
var _local2 = {x:_root._xmouse, y:_root._ymouse};
_root.level.globalToLocal(_local2);
};
var keyDown = Key.isDown;
var keyLeft = 37;
var keyRight = 39;
var keyCrouch = 40;
var keyBoost = 16;
var keyJump = 65;
var keyAttack = 83;
var keyPause = 80;
var hmc = hero._mc;
var pm = _root.PlatformManager;
var mabs = Math.abs;
_root._paused = false;
hero._attackOverride = false;
_root._unpauseBlocked = true;
_root.cutscene = false;
_root.lives = _root.hero._lives;
_root.playedOver = false;
hero._mc.swapDepths(1336);
hero._mc.onEnterFrame = function () {
var _local3 = hero;
if (_root.gameOver) {
_root.overScreen._visible = true;
if (!_root.playedOver) {
_root.playedOver = true;
_root.overScreen.play();
}
_root._paused = true;
} else {
_root.lives = _local3._lives;
if (keyDown(17)) {
var _local8 = 1;
if (keyDown(keyRight)) {
_root.level._sect[6]._mc._x = _root.level._sect[6]._mc._x + _local8;
}
if (keyDown(keyLeft)) {
_root.level._sect[6]._mc._x = _root.level._sect[6]._mc._x - _local8;
}
if (keyDown(38)) {
_root.level._sect[6]._mc._y = _root.level._sect[6]._mc._y - _local8;
}
if (keyDown(40)) {
_root.level._sect[6]._mc._y = _root.level._sect[6]._mc._y + _local8;
}
}
if (this.hitTest(_root.swimCheck1) || (this.hitTest(_root.swimCheck2))) {
_local3._isSwimming = true;
} else {
_local3._isSwimming = false;
}
if (!_root.cutscene) {
if (keyDown(keyPause) && (_root._unpauseBlocked)) {
_root._paused = !_root._paused;
if (_root._paused == true) {
_root.PauseNotice.play();
} else {
_root.PauseNotice.gotoAndStop(1);
}
if (_root.gameOver) {
_root.PauseNotice._visible = false;
} else {
_root.PauseNotice._visible = _root._paused;
}
if (_root._paused) {
pm._pauseXSpeed = pm._xSpeed;
pm._pauseYSpeed = pm._ySpeed;
pm._xSpeed = 0;
pm._ySpeed = 0;
_local3._pauseXSpeed = _local3._xSpeed;
_local3._pauseYSpeed = _local3._ySpeed;
_local3._xSpeed = 0;
_local3._ySpeed = 0;
_local3._attacking = false;
} else {
pm._xSpeed = pm._pauseXSpeed;
pm._ySpeed = pm._pauseYSpeed;
_local3._xSpeed = _local3._pauseXSpeed;
_local3._ySpeed = _local3._pauseYSpeed;
}
_root._unpauseBlocked = false;
}
if (!keyDown(keyPause)) {
_root._unpauseBlocked = true;
}
}
if (!_root._paused) {
if (_local3._alive) {
var _local4 = new Toast.CAction("NULL");
if (!_local3._crouching) {
_local3._speed = 4;
}
if ((keyDown(keyBoost) && (_root.boostCount < _root.boostLen)) && (!_local3._crouching)) {
_root.boostCount++;
_local3._speed = 6;
} else if (((!keyDown(keyBoost)) && (Math.floor(_root.boostCount) <= _root.boostLen)) && (_root.boostCount > 0)) {
_root.boostCount = _root.boostCount - 0.2;
}
if ((_root.boostCount > 0) && ((1 - (_root.boostCount / _root.boostLen)) > 0)) {
_root.boostMeter._xscale = (1 - (_root.boostCount / _root.boostLen)) * 100;
}
var _local6 = {x:0, y:0};
_root.level.globalToLocal(_local6);
_local6 = _local6.x;
var _local7 = {x:hmc._x, y:hmc._y};
_root.level.globalToLocal(_local7);
_local7 = _local7.x;
if (_root._canControl) {
if (keyDown(keyLeft)) {
if (_local3._curAction._override) {
_local4 = new Toast.CAction("RUN");
hmc._xscale = _local3._scale;
}
if ((hmc._x < 200) && (_local6 > _root.level._leftBound)) {
_local3.SetSpeedX(0);
pm._xSpeed = _local3._speed;
} else {
_local3.SetSpeedX(-_local3._speed);
pm._xSpeed = 0;
}
if ((_local7 - (hmc._width / 2)) <= _root.level._leftBound) {
_local3.SetSpeedX(0);
pm._xSpeed = 0;
}
} else if (keyDown(keyRight)) {
if (_local3._curAction._override) {
_local4 = new Toast.CAction("RUN");
hmc._xscale = -_local3._scale;
}
if ((hmc._x > 350) && ((_local6 + 550) < _root.level._rightBound)) {
_local3.SetSpeedX(0);
pm._xSpeed = -_local3._speed;
} else {
_local3.SetSpeedX(_local3._speed);
pm._xSpeed = 0;
}
if ((_local7 + (hmc._width / 2)) >= _root.level._rightBound) {
_local3.SetSpeedX(0);
_root.killClip.play();
pm._xSpeed = 0;
}
} else {
pm._xSpeed = 0;
}
} else {
pm._xSpeed = 0;
}
if ((keyDown(keyJump) && (!_local3._jumping)) && (_local3._canJump)) {
_local3._jumping = true;
_local3._canJump = false;
_local4 = new Toast.CAction("UP");
_local4._override = false;
} else if (!Key.isDown(65)) {
_local3._canJump = true;
}
if (!_local3._jumping) {
if (keyDown(keyCrouch) && (!_local3._isSwimming)) {
_local3._crouching = true;
} else if ((!keyDown(keyCrouch)) && (!_root.overrideCrouch)) {
_local3._crouching = false;
}
} else {
_local3._crouching = false;
var _local5 = _local3.GetSpeedY();
var _local12 = _local3._jumpCount;
if ((_local5 <= 0) && (_local3._jumpCount == 0)) {
_local3.SetSpeedY(_local3._jumpSpeed);
_local4._name = "UP";
} else if ((_local5 > 0) && (_local12 > 0)) {
_local4._name = "UP";
var _local14 = 0.7;
_local3.SetSpeedY(_local5 * _local14);
} else if ((_local5 <= 0) && (_local12 > 0)) {
_local4._name = "DOWN";
var _local14 = 0.6;
_local3.SetSpeedY(_local5 * _local14);
}
_local3._jumpCount++;
}
if (((keyDown(keyAttack) && (!_local3._attacking)) && (!_local3._crouching)) && (!_local3._isSwimming)) {
_local3._attacking = true;
if (_local3._curWeapon._name == "no-weapon") {
_local4 = new Toast.CAction("HEADBUTT");
_local4._override = false;
pm._xSpeed = 0;
}
} else if ((!keyDown(keyAttack)) && (!_local3._attackOverride)) {
_local3._attacking = false;
_local3._headbuttContact = false;
}
if ((_local3._curWeapon._name != "no-weapon") && (_local3._curWeapon._mc._visible == false)) {
_local3._attacking = false;
}
if (_local3._inToaster) {
_local3._crouching = false;
_local3._attacking = false;
if (_local4._name == "HEADBUTT") {
_local4._name = "NULL";
}
}
if (_root.switchBlockChain == undefined) {
_root.switchBlockChain = false;
}
if (_root.switchBlockHead == undefined) {
_root.switchBlockHead = false;
}
if (_root.switchBlockCross == undefined) {
_root.switchBlockCross = false;
}
if ((keyDown(81) && (!_root.switchBlockChain)) && (_local3._weapons[0]._mc != undefined)) {
_local3.SwitchWeapon(0);
var _local11 = _local3._curWeaponIndex;
if (_local11 == 0) {
_local11 = 3;
}
_local3._attacking = false;
_root.weaponGUI.gotoAndStop(_local11);
_root.switchBlockChain = true;
} else if (keyDown(87) && (!_root.switchBlockHead)) {
_local3.SwitchWeapon(1);
var _local11 = _local3._curWeaponIndex;
if (_local11 == 0) {
_local11 = 3;
}
_local3._attacking = false;
_root.weaponGUI.gotoAndStop(_local11);
_root.switchBlockHead = true;
} else if ((keyDown(69) && (!_root.switchBlockCross)) && (_local3._weapons[2]._mc != undefined)) {
_local3.SwitchWeapon(2);
var _local11 = _local3._curWeaponIndex;
if (_local11 == 0) {
_local11 = 3;
}
_local3._attacking = false;
_root.weaponGUI.gotoAndStop(_local11);
_root.switchBlockCross = true;
} else {
if (!keyDown(81)) {
_root.switchBlockChain = false;
}
if (!keyDown(87)) {
_root.switchBlockHead = false;
}
if (!keyDown(69)) {
_root.switchBlockCross = false;
}
}
if (_root._canControl) {
if (_local4._name != "NULL") {
_local3.SetActionEx(_local4);
} else if (_local3._curAction._done || (_local3._curAction._override)) {
_local3.SetAction("IDLE");
}
}
}
_root.curY = hmc._y - (_local3._origHeight / 2);
var _local19 = _root.curY - _root.lastY;
if (_root.yCounter < 0) {
_root.yCounter = 0;
}
if (mabs(pm._ySpeed) < 15) {
var _local10 = 15 - _root.yCounter;
if (_local10 < 10) {
_local10 = 10;
}
if (_root.curY < _root.camTop) {
if (!_local3._jumping) {
pm._ySpeed = (_root.camTop - Math.round(_root.curY)) / _local10;
_root.yCounter++;
}
} else if (_root.curY > _root.camBottom) {
pm._ySpeed = (Math.round(_root.curY) - _root.camBottom) / (-_local10);
_root.yCounter++;
} else {
pm._ySpeed = 0;
_root.yCounter = -1;
}
} else {
pm._ySpeed = 0;
_root.yCounter = -1;
}
if (mabs(pm._ySpeed) < 1) {
pm._ySpeed = 0;
}
var _local13 = hmc._y;
if (_local3._jumping) {
_local3._hLink = undefined;
}
_local3._applyGravity = false;
if ((!_local3._jumping) && (_local3._hLink != undefined)) {
var _local9 = {x:_local3._hLink._x, y:_local3._hLink._y};
_local3._hLink._parent.localToGlobal(_local9);
var _local18 = hmc._x - (hmc._width / 2);
var _local17 = hmc._x + (hmc._width / 2);
var _local16 = _local9.x - (_local3._hLink._width / 2);
var _local15 = _local9.x + (_local3._hLink._width / 2);
if ((_local18 < _local16) || (_local17 > _local15)) {
_local3._hLink = undefined;
_local3._applyGravity = true;
}
_local3._gravityCount = 0;
_local13 = _local9.y - (hmc._height / 2);
} else if (_local3._hLink == undefined) {
_local3._applyGravity = true;
}
hmc._y = _local13;
_root.lastY = _root.curY;
_root.lastSpeed = PlayformManager._ySpeed;
_root.level._lastY = curY;
_local3.Update();
pm.Update();
}
}
};
Instance of Symbol 1075 MovieClip [WeaponNotice] "WeaponNotice" in Frame 381
onClipEvent (load) {
this._visible = false;
this.swapDepths(9075560);
this._counter = 0;
}
onClipEvent (enterFrame) {
if (_root.overWeapon == undefined) {
this._visible = false;
this._counter = 0;
} else {
this._counter++;
if (this._counter > 5) {
this._counter = 0;
this._visible = true;
}
}
}
Instance of Symbol 1078 MovieClip [ToasterNotice] "ToasterNotice" in Frame 381
onClipEvent (load) {
this._visible = false;
this.swapDepths(9075461);
this._counter = 0;
}
Instance of Symbol 1081 MovieClip [PopNotice] "PopNotice" in Frame 381
onClipEvent (load) {
this._visible = false;
this.swapDepths(9075559);
}
Instance of Symbol 1097 MovieClip in Frame 381
onClipEvent (load) {
_root.weaponGUI = this;
this.swapDepths(9075558);
}
Instance of Symbol 1104 MovieClip in Frame 381
onClipEvent (load) {
this.swapDepths(9075570);
this._visible = false;
}
Instance of Symbol 1108 MovieClip in Frame 381
onClipEvent (load) {
_root.health = this;
this.swapDepths(9075557);
}
Instance of Symbol 1110 MovieClip [BoostMeter] in Frame 381
onClipEvent (load) {
_root.boostMeter = this;
this.swapDepths(9075596);
}
Instance of Symbol 465 MovieClip [miniboss - health] in Frame 381
onClipEvent (load) {
_root.miniHB = this;
this._visible = false;
this.swapDepths(9075580);
}
Instance of Symbol 1112 MovieClip in Frame 381
onClipEvent (load) {
_root.goClip = this;
this.swapDepths(9075565);
}
Instance of Symbol 1114 MovieClip in Frame 381
onClipEvent (load) {
_root.killClip = this;
this.swapDepths(9075567);
}
Instance of Symbol 1117 MovieClip [soundFile] "soundFile" in Frame 381
onClipEvent (load) {
this._visible = false;
_root.soundFile = this;
this.swapDepths(9075588);
}
Instance of Symbol 1128 MovieClip [swarmUp] in Frame 381
onClipEvent (load) {
_root.swarmWarn = this;
this._visible = false;
this.swapDepths(9075607);
}
Instance of Symbol 1131 MovieClip [lifecount] in Frame 381
onClipEvent (load) {
_root.lives = this;
this.swapDepths(9075607);
}
Instance of Symbol 1136 MovieClip in Frame 381
onClipEvent (load) {
_root.bossHB = this;
this._visible = false;
this.swapDepths(9075581);
}
Instance of Symbol 1165 MovieClip [PauseNotice] in Frame 381
onClipEvent (load) {
_root.PauseNotice = this;
this._visible = false;
this.stop();
this.swapDepths(9075656);
}
Instance of Symbol 1169 MovieClip in Frame 381
onClipEvent (load) {
this._visible = false;
_root.overScreen = this;
this.swapDepths(9075657);
}
Instance of Symbol 1186 MovieClip [cutscene - chainsaw] in Frame 381
onClipEvent (load) {
_root.ChainsawCutscene = this;
this._visible = false;
this.swapDepths(9075638);
}
Instance of Symbol 1187 MovieClip [caveCutscene] in Frame 381
onClipEvent (load) {
this._visible = false;
_root.caveCutscene = this;
this.swapDepths(9075625);
}
Instance of Symbol 1194 MovieClip in Frame 381
onClipEvent (load) {
this._visible = false;
_root.outro = this;
this.swapDepths(9075629);
}
Symbol 1195 MovieClip [__Packages.Toast.CEntity] Frame 0
class Toast.CEntity extends MovieClip
{
var _clipType, _hLink, _mc, _name, _savedTree, _id, _alive, _speed, _applyGravity, _gravity, _xSpeed, _ySpeed, _inGameWidth, _inGameHeight, _origHeight, _origWidth, _scale, _boundingBox, _selected, _text;
function CEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed, t_depth) {
super();
if (_global.lvl == undefined) {
_global.lvl = 0;
}
_clipType = t_clip;
_hLink = undefined;
if (t_depth) {
if (_root.getInstanceAtDepth(t_depth) != undefined) {
t_depth = _root.getNextHighestDepth();
}
_mc = t_timeline.attachMovie(t_clip, "", t_depth);
} else {
var _local5 = _global.lvl;
if (_root.getInstanceAtDepth(_local5) != undefined) {
_local5 = _root.getNextHighestDepth();
}
_mc = t_timeline.attachMovie(t_clip, "", _local5);
_global.lvl++;
}
_mc._parent = this;
if (!t_name) {
_mc._name = "UnknownEntity";
} else {
_mc._name = t_clip + _global.lvl;
_name = t_name;
}
_savedTree = new Array();
_id = -1;
_alive = true;
_mc._x = t_x + (_mc._width / 2);
_mc._y = t_y - (_mc._height / 2);
if (!t_speed) {
_speed = 0;
} else {
_speed = t_speed;
}
_applyGravity = false;
_gravity = 0;
_xSpeed = 0;
_ySpeed = 0;
_inGameWidth = _mc._width;
_inGameHeight = _mc._height;
_origHeight = _mc._height;
_origWidth = _mc._width;
_scale = _mc._xscale;
_boundingBox = t_timeline.attachMovie("intersectBox", "box" + _global.lvl, _global.lvl);
_global.lvl++;
_boundingBox._width = _inGameWidth;
_boundingBox._height = _inGameHeight;
_boundingBox._visible = false;
_selected = false;
_text = new Toast.CTextBox(_root, "");
_text._mc._visible = false;
}
function GetName() {
return(_name);
}
function SetName(t_str) {
_name = t_str;
}
function GetAlive() {
return(_alive);
}
function SetAlive(t_alive) {
_alive = t_alive;
}
function setTint(r, g, b, amount) {
var _local5 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local5));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
var _local4 = new Color(_mc);
_local4.setTransform(_local2);
}
function removeTint() {
setTint(0, 0, 0, 0);
}
function GetHeight(t_getMC) {
if (t_getMC) {
return(_mc._height);
}
return(_inGameHeight);
}
function GetWidth(t_getMC) {
if (t_getMC) {
return(_mc._width);
}
return(_inGameWidth);
}
function SetWidth(w) {
_inGameWidth = w;
_mc._width = w;
}
function SetHeight(h) {
_inGameHeight = h;
_mc._height = h;
}
function SetSpeedX(speed) {
_xSpeed = speed;
}
function GetSpeedX() {
return(_xSpeed);
}
function SetSpeedY(speed) {
_ySpeed = -speed;
}
function GetSpeedY() {
return(-_ySpeed);
}
function GetClip() {
return(_mc);
}
function Collides(ent) {
return(CollidesMC(ent.GetClip()));
}
function CollidesMC(mc) {
return(_mc.hitTest(mc));
}
function SetX(t_x) {
_mc._x = t_x;
}
function GetX() {
return(_mc._x);
}
function SetY(t_y) {
_mc._y = t_y;
}
function GetY() {
return(_mc._y);
}
function GetSpeed() {
return(_speed);
}
function GetMouseOver() {
if ((_root._xmouse <= (GetX() + (GetWidth() / 2))) && (_root._xmouse >= (GetX() - (GetWidth() / 2)))) {
if ((_root._ymouse >= (GetY() - (GetHeight() / 2))) && (_root._ymouse <= (GetY() + (GetHeight() / 2)))) {
return(true);
}
}
return(false);
}
function GetProperties() {
_text.ClearText();
_text.AddLine("Name: " + _name);
_text.AddLine(((("(" + GetX()) + ", ") + GetY()) + ")");
_text._mc._x = GetX();
_text._mc._y = (GetY() - (GetHeight() / 2)) - _text._mc._height;
}
function Update() {
if (_alive) {
_mc._x = _mc._x + _xSpeed;
_mc._y = _mc._y + _ySpeed;
if (_root._dispDebugText) {
if (GetMouseOver() || (_selected)) {
_boundingBox._x = GetX() - (GetWidth() / 2);
_boundingBox._y = GetY() - (GetHeight() / 2);
_boundingBox._visible = true;
_text._mc._visible = true;
GetProperties();
} else {
_boundingBox._visible = false;
_text._mc._visible = false;
}
} else {
_boundingBox._visible = false;
_text._mc._visible = false;
}
} else {
_boundingBox.removeMovieClip();
_text._mc.removeMovieClip();
_mc.removeMovieClip();
}
}
}
Symbol 1196 MovieClip [__Packages.Toast.CTextBox] Frame 0
class Toast.CTextBox
{
var _mc, _textWidth, _textLines;
function CTextBox (t_timeline, t_text) {
_mc = t_timeline.attachMovie("textBox", "", 9000 + _global.lvl);
_mc.myText.text = t_text;
_textWidth = 0;
_textLines = 0;
}
function ClearText() {
_mc.myText.text = "";
_textWidth = 0;
_textLines = 0;
}
function SetText(t_text) {
_mc.myText.text = t_text;
}
function AddLine(t_text) {
var _local5 = 8.309;
var _local3 = 15;
var _local2 = _local5 * length(t_text);
_textLines++;
if (_local2 > _textWidth) {
_textWidth = _local2;
_mc._width = _textWidth;
}
_mc.myText._height = _textLines * _local3;
if (_mc.myText.text != "") {
SetText((_mc.myText.text + newline) + t_text);
} else {
SetText(t_text);
}
}
}
Symbol 1197 MovieClip [__Packages.Toast.CEnemyEntity] Frame 0
class Toast.CEnemyEntity extends Toast.CEntity
{
var _jumping, _localGuts, _nextSpawn, _gutCounter, _jumpSpeed, _canJump, _jumpCount, _applyGravity, _attacking, _gravity, _alive, _gravityCount, _curAction, _hitPoints, _origPoints, _text, _selected, _mc, GetSpeedY, GetSpeedX, GetHeight, GetY, GetWidth, GetX, SetSpeedY, SetSpeedX;
function CEnemyEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_jumping = false;
_localGuts = undefined;
_nextSpawn = undefined;
_gutCounter = 0;
_jumpSpeed = 30;
_canJump = true;
_jumpCount = 0;
_applyGravity = true;
_attacking = false;
_gravity = 0.2;
_alive = true;
_gravityCount = 0;
_curAction = new Toast.CAction("IDLE");
_hitPoints = 1;
_origPoints = _hitPoints;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("Selected: " + _selected);
_text.AddLine("Depth: " + _mc.getDepth());
_text.AddLine((("XS: " + Math.round(GetSpeedX())) + " YS: ") + Math.round(GetSpeedY()));
_text.AddLine("Action: " + _curAction._name);
_text._mc._y = (GetY() - (GetHeight() * 2)) - _text._mc._height;
_text._mc._x = (GetX() - (GetWidth() / 2)) + (_text._mc._width / 2);
}
function Update() {
super.Update();
if (_alive) {
if (_hitPoints <= 0) {
_alive = false;
SetAction("DIE");
}
if (_applyGravity) {
_gravityCount++;
SetSpeedY(GetSpeedY() - _gravity);
} else {
_gravityCount = 0;
}
if (_curAction != "IDLE") {
_HandleAction(_curAction);
} else {
SetAction("IDLE");
}
}
}
function SetAction(t_action) {
t_action = t_action.toUpperCase();
var _local2 = new Toast.CAction(t_action);
_local2._override = true;
SetActionEx(_local2);
return(true);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "RUN" :
break;
case "ROAR" :
break;
case "DIE" :
break;
case "SHOOT" :
break;
case "CHAINSAWED" :
break;
case "HEADBUTTED" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "RUN" :
break;
case "ROAR" :
break;
case "DIE" :
break;
case "SHOOT" :
break;
case "CHAINSAWED" :
break;
case "HEADBUTTED" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function SetActionDone(t_action) {
if (_curAction._name == t_action.toUpperCase()) {
_curAction._done = true;
}
}
}
Symbol 1198 MovieClip [__Packages.Toast.CAction] Frame 0
class Toast.CAction
{
var _name, _done, _started, _override, _remove, _frames, _param, _param2, _loops;
function CAction (t_name) {
if (!t_name) {
t_name = "UnknownAction";
}
_name = t_name;
_done = false;
_started = false;
_override = true;
_remove = false;
_frames = 0;
_param = 0;
_param2 = 0;
_loops = -1;
}
}
Symbol 1199 MovieClip [__Packages.Toast.CButterSlugEntity] Frame 0
class Toast.CButterSlugEntity extends Toast.CEnemyEntity
{
var _timeIdled, _roared, _xmoveRange, _xattackRange, _yattackRange, _lastScale, _maxBall, _ballCounter, _alive, _ballIndex, _missCount, _hitPoints, _missTolerance, _roarCount, _text, _curTree, _id, _localGuts, SetAction, GetX, GetY, GetClip, _curAction, _mc, SetX, GetSpeed, GetWidth, SetSpeedX;
function CButterSlugEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_timeIdled = Math.floor(Math.random() * 30);
_roared = false;
_xmoveRange = 650;
_xattackRange = 400;
_yattackRange = 600;
_lastScale = false;
_maxBall = 35;
_ballCounter = _maxBall;
_alive = true;
_ballIndex = 0;
_missCount = 0;
_hitPoints = 2;
_missTolerance = Math.floor(Math.random() * 5) + 1;
_roarCount = 0;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("IdleTime: " + _timeIdled);
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("ID: " + _id);
}
function Update() {
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
if (_alive) {
super.Update();
if (_missCount >= _missTolerance) {
_roarCount++;
if (_roarCount < 30) {
SetAction("ROAR");
} else if (_roarCount < 80) {
_roarCount = 0;
_missCount = 0;
_missTolerance = Math.floor(Math.random() * 5) + 1;
_ballCounter = _maxBall;
}
} else if (((!_root.hero._inToaster) && (((Math.abs(_root.hero.GetX() - GetX()) < _xattackRange) && (GetX() < 550)) && (GetX() > 0))) && (Math.abs(_root.hero.GetY() - GetY()) < _yattackRange)) {
if ((((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) && (_curAction._name != "CHAINSAWED")) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
if (_ballCounter == _maxBall) {
SetAction("SHOOT");
}
if (_ballCounter >= (_maxBall + 10)) {
AddBall();
if (_roarCount > 0) {
_ballCounter = _maxBall + 10;
} else {
_ballCounter = 0;
}
}
_ballCounter++;
_lastScale = false;
} else if (((!_root.hero._inToaster) && (Math.abs(_root.hero.GetX() - GetX()) < _xmoveRange)) && (Math.abs(_root.hero.GetY() - GetY()) < _yattackRange)) {
if ((((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) && (_curAction._name != "CHAINSAWED")) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
SetAction("RUN");
if (_mc._xscale < 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
} else if ((_curAction._name == "IDLE") || (_curAction._name == "RUN")) {
_ballCounter = 0;
onIdle();
}
}
}
function AddBall() {
var _local3 = 8;
var _local4 = (GetWidth() / 2) + 15;
if (_mc._xscale > 0) {
_local3 = _local3 * -1;
_local4 = _local4 * -1;
}
if (_root._ballIndex == undefined) {
_root._ballIndex = 0;
}
_root._ballIndex++;
var _local5;
_local5 = _root.attachMovie("butterBall", "butterBall" + _root._ballIndex, 12000 + _root._ballIndex, {_x:GetX() + _local4, _y:GetY() - 6, _speed:_local3});
_local5._slug = this;
}
function onIdle() {
_timeIdled++;
SetAction("RUN");
if (_timeIdled > 60) {
SetSpeedX(0);
_timeIdled = -50;
} else {
if (_timeIdled < 0) {
SetAction("IDLE");
return(undefined);
}
if ((_timeIdled == 0) && (_curAction._name != "CHAINSAWED")) {
_mc._xscale = _mc._xscale * -1;
}
}
if (_mc._xscale > 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
return(undefined);
}
}
Symbol 1200 MovieClip [__Packages.Toast.CWeapon] Frame 0
class Toast.CWeapon extends Toast.CEntity
{
var _maxMagazines, _roundsPerMag, _heat, _dispName, _curSound, GetClip, _mc, _name;
function CWeapon (t_timeline, t_clip, t_name, t_x, t_y, t_speed, t_depth) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed, t_depth);
_maxMagazines = 0;
_roundsPerMag = 0;
_heat = 0;
_dispName = "weapon";
_curSound = new Sound();
}
function interact(entity) {
if ((substring(GetClip()._name, 0, 15)) == "weapon-chainsaw") {
if (!(entity._clipType.toUpperCase() === "BUTTERSLUG")) {
} else {
if (entity._gutCounter < 1) {
entity._gutCounter = 1;
entity.SetAction("CHAINSAWED");
} else if (entity._gutCounter < 20) {
entity.SetAction("CHAINSAWED");
}
if (_root.guts == undefined) {
_root.guts = _root.attachMovie("butterguts", "butterguts!", 9075555);
_root.guts._x = 275 - (_root.guts._width / 2);
_root.guts._y = 200 + (_root.guts._height / 2);
if (_root.hero.GetX() > entity.GetX()) {
_root.guts._xscale = -Math.abs(_root.guts._xscale);
} else {
_root.guts._xscale = Math.abs(_root.guts._xscale);
}
} else {
if (_root.guts._currentframe == _root.guts._totalframes) {
if (_root.hero.GetX() > entity.GetX()) {
_root.guts._xscale = -Math.abs(_root.guts._xscale);
} else {
_root.guts._xscale = Math.abs(_root.guts._xscale);
}
}
_root.guts.play();
}
if (entity._localGuts == undefined) {
entity._localGuts = _root.attachMovie("butterlocalguts", "localguts" + entity._name, 1100 + entity._mc.getDepth(), {_x:entity._mc._x - 10, _y:_mc._y - 5});
if (_root.hero.GetX() > entity.GetX()) {
entity._localGuts._xscale = -Math.abs(entity._localGuts._xscale);
} else {
entity._localGuts._xscale = Math.abs(entity._localGuts._xscale);
}
}
if (_root.hero.GetX() > entity.GetX()) {
var _local4 = _root.hero._curWeapon._mc._x - (_root.hero._curWeapon._mc._width / 2);
if (_local4 > ((entity._mc._x + (entity._mc._width / 2)) - 20)) {
entity._localGuts._x = (entity._mc._x + (entity._mc._width / 2)) - 20;
} else if (_local4 < (entity._mc._x - (entity._mc._width / 2))) {
entity._localGuts._x = entity._mc._x - (entity._mc._width / 2);
} else {
entity._localGuts._x = _local4;
}
} else {
var _local5 = _root.hero._curWeapon._mc._x + (_root.hero._curWeapon._mc._width / 2);
if (_local5 > (entity._mc._x + (entity._mc._width / 2))) {
entity._localGuts._x = entity._mc._x + (entity._mc._width / 2);
} else if (_local5 < ((entity._mc._x - (entity._mc._width / 2)) + 20)) {
entity._localGuts._x = (entity._mc._x - (entity._mc._width / 2)) + 20;
} else {
entity._localGuts._x = _local5;
}
}
if (entity.GetY() < 100) {
_root.guts._yscale = -Math.abs(_root.guts._yscale);
entity._localGuts._yscale = -Math.abs(entity._localGuts._yscale);
entity._localGuts._y = entity._localGuts._y + 30;
}
}
}
if ((substring(_name, 0, 9)) == "no-weapon") {
if (!(entity._clipType.toUpperCase() === "BUTTERSLUG")) {
}
}
}
}
Symbol 1201 MovieClip [__Packages.Toast.CPlatformManager] Frame 0
class Toast.CPlatformManager
{
var _platforms, _entities, _objects, _index, _entIndex, _objIndex, _recalculateTrees, _activated, _xSpeed, _ySpeed, _range, _dispCollisions, _dispMap, _theLevel, _parallax1, _parallax2, _originalY, _tree, _treeCount, _treeWidth;
function CPlatformManager () {
_platforms = new Array();
_entities = new Array();
_objects = new Array();
_index = 0;
_entIndex = 0;
_objIndex = 0;
_recalculateTrees = true;
_activated = false;
_xSpeed = 0;
_ySpeed = 0;
_range = 650;
_dispCollisions = false;
_dispMap = false;
_theLevel = undefined;
_parallax1 = undefined;
_parallax2 = undefined;
_originalY = 0;
_tree = new Array();
_treeCount = 0;
_treeWidth = 100;
}
function AddPlatform(platform) {
var _local8 = platform._x;
var _local11 = platform._width;
if (platform._parent != _root.level) {
var _local10 = {x:_local8, y:platform._y};
platform._parent.localToGlobal(_local10);
_local8 = _local10.x;
}
var _local12 = _local8 - (_local11 / 2);
var _local13 = _local8 + (_local11 / 2);
var _local4 = Math.floor(_local12 / _treeWidth) - 1;
if (_local4 < 0) {
_local4 = 0;
}
if (_local4 > _treeCount) {
_local4 = _treeCount;
}
var _local9 = Math.ceil((_local13 - (_local4 * _treeWidth)) / _treeWidth);
var _local6 = _local4 + _local9;
if ((_local4 < _treeCount) && (_local6 <= _treeCount)) {
var _local3 = _local4;
while (_local3 <= _local6) {
_tree[_local3]._plats.push(_index);
_local3++;
}
}
platform._id = _index;
platform._tree = _local4;
platform._end = _local6;
_platforms.push(platform);
_index++;
var _local7;
if ((platform._width > 1) && (platform._height > 1)) {
_local7 = (Math.atan(platform._height / platform._width) * 180) / Math.PI;
} else if (platform._height > 1) {
_local7 = 90;
} else if (platform._width > 1) {
_local7 = 0;
}
if (platform._rotation < 0) {
_local7 = _local7 * -1;
}
platform.SetAngle(_local7);
_recalculateTrees = true;
}
function AddEntity(ent) {
ent._id = _entIndex;
ent._manager = this;
_entities.push(ent);
_entIndex++;
}
function AddObject(obj) {
_objects.push(obj);
_objIndex++;
}
function PlatformInRange(platID, entID) {
var _local2 = _platforms[platID];
var _local3 = _entities[entID];
if ((!_local2._defined) || (!_local3._defined)) {
_local2._defined = true;
_local3._defined = true;
_local3.entWidth = _local3.GetWidth() / 2;
_local3.entHeight = _local3.GetHeight() / 2;
_local2._notSlope = true;
_local2.platWidth = _local2._width / 2;
_local2.platHeight = _local2._height / 2;
}
var _local8 = _local3.GetX();
var _local17 = _local8 - _local3.entWidth;
var _local12 = _local8 + _local3.entWidth;
var _local6 = _local3.GetY();
var _local10 = _local6 - _local3.entHeight;
var _local11 = _local6 + _local3.entHeight;
var _local4 = {x:_local2._x, y:_local2._y};
if (_local2._notSlope) {
_local2._parent.localToGlobal(_local4);
}
var _local9 = _local4.x;
var _local16 = _local9 - _local2.platWidth;
var _local15 = _local9 + _local2.platWidth;
var _local7 = _local4.y;
var _local13 = _local7 - _local2.platHeight;
var _local14 = _local7 + _local2.platHeight;
var _local5 = false;
if ((((_local12 + _range) > _local16) && ((_local3.entLeftBound - _range) < _local15)) && (((_local10 - _range) < _local14) && ((_local11 + _range) > _local13))) {
_local5 = true;
}
return(_local5);
}
function HandleCollision(platID, entID) {
var _local4 = _platforms[platID];
var _local3 = _entities[entID];
if ((!_local4._defined) || (!_local3._defined)) {
_local4._defined = true;
_local3._defined = true;
_local4._notSlope = true;
_local3.entWidth = _local3.GetWidth() / 2;
_local3.entHeight = _local3.GetHeight() / 2;
_local4.platWidth = _local4._width / 2;
_local4.platHeight = _local4._height / 2;
}
var _local5 = _local3._mc._x;
var _local20 = _local5 - _local3.entWidth;
var _local21 = _local5 + _local3.entWidth;
var _local13 = _local3._mc._y;
var _local34 = _local13 - _local3.entHeight;
var _local35 = _local13 + _local3.entHeight;
var _local26 = {x:_local4._x, y:_local4._y};
if (_local4._notSlope) {
_local4._parent.localToGlobal(_local26);
} else if (_local4._name.substring(13) != _local3._name) {
return(undefined);
}
var _local7 = _local26.x;
var _local9 = _local7 - _local4.platWidth;
var _local8 = _local7 + _local4.platWidth;
var _local6 = _local26.y;
var _local22 = _local6 - _local4.platHeight;
var _local23 = _local6 + _local4.platHeight;
var _local18 = false;
var _local17 = false;
var _local12 = false;
var _local11 = false;
var _local10 = 10;
var _local19 = 10;
var _local14 = 0;
var _local27 = 0;
var _local25 = 0.1;
var _local29 = _local3._speed;
if ((((_local34 + _local3._ySpeed) + _ySpeed) <= _local23) && (_local13 >= _local6)) {
_local18 = true;
_local19 = _local23 - ((_local34 - _local3._ySpeed) - _ySpeed);
_local27 = _local23;
}
if ((((_local35 + _local3._ySpeed) + _ySpeed) >= _local22) && (_local13 <= _local6)) {
_local17 = true;
_local19 = ((_local35 + _local3._ySpeed) + _ySpeed) - _local22;
_local27 = _local22;
}
var _local15 = 0;
var _local16 = 0;
if (_local3._xSpeed < 0) {
_local15 = _local3._xSpeed;
} else if (_local3._xSpeed > 0) {
_local16 = _local3._xSpeed;
}
if (_xSpeed < 0) {
_local15 = _local15 - _xSpeed;
} else if (_local3._xSpeed > 0) {
_local16 = _local16 - _xSpeed;
}
if ((_local4._angle == 0) || (mabs(_local4._angle) == 90)) {
if (((_local21 + _local16) >= _local9) && (_local5 <= _local7)) {
_local12 = true;
_local10 = _local21 - _local9;
_local14 = _local9;
}
if (((_local20 + _local15) <= _local8) && (_local5 >= _local7)) {
_local11 = true;
_local10 = _local8 - _local20;
_local14 = _local8;
}
} else {
if (((_local5 + _local16) >= _local9) && (_local5 <= _local7)) {
_local12 = true;
_local10 = _local21 - _local9;
_local14 = _local9;
}
if (((_local5 + _local15) <= _local8) && (_local5 >= _local7)) {
_local11 = true;
_local10 = _local8 - _local20;
_local14 = _local8;
}
}
if ((_local17 || (_local18)) && (_local12 || (_local11))) {
if (_root["ib" + platID] == undefined) {
_root["ib" + platID] = new Toast.CEntity(_root, "intersectBox", "intersectBox", _local14, _local27);
_root["ib" + platID].GetClip()._visible = false;
}
if ((_local4._angle == 90) || (_local4._angle == -90)) {
if (_local19 > _local29) {
if (_local12) {
_local3.SetX((_local9 - _local3.entWidth) - _local25);
}
if (_local11) {
_local3.SetX((_local8 + _local3.entWidth) + _local25);
}
}
} else if (_local4._angle == 0) {
if (_local10 > _local29) {
if (_local17) {
if (_local11 || (_local12)) {
if ((_local3._curAction._name == "HEADBUTT") && (_local3._ySpeed != 0)) {
_local3._jumping = false;
_local3._jumpCount = 0;
_local3.SetAction("IDLE");
} else if ((_local3._curAction._name == "DOWN") && (_local3._jumpCount > 0)) {
_local3._jumping = false;
_local3._jumpCount = 0;
_local3.SetAction("IDLE");
}
}
var _local41 = 1;
if (_local3._ySpeed != 0) {
_local3._ySpeed = 0;
}
_local3._gravityCount = 0;
_local3._hLink = _local4;
if (_local4._name != ("slopePlatform" + _local3._name)) {
_root["slopePlatform" + _local3._name]._x = -100000;
_root["slopePlatform" + _local3._name]._y = -100000;
if (_local3._hLink._name == ("slopePlatform" + _local3._name)) {
_local3._hLink = undefined;
}
}
}
if (_local18) {
_local3._mc._y = (_local6 + _local3.entHeight) + _local25;
_local3._ySpeed = 0;
_local3.SetAction("IDLE");
if (_local4._name != ("slopePlatform" + _local3._name)) {
if (_local3._hLink._name == ("slopePlatform" + _local3._name)) {
}
}
}
}
} else if (mabs(_local7 - _local5) < _local4.platWidth) {
var _local30 = {x:_local5, y:_local13};
_root.level.globalToLocal(_local30);
_root["slopePlatform" + _local3._name]._x = _local30.x;
var _local37 = _local7 - _local5;
var _local24 = _local37 * ((_local4._angle * Math.PI) / 180);
var _local32;
var _local31;
var _local39;
var _local38;
_local32 = 0;
_local39 = _local4.platWidth / 2;
_local31 = 0;
_local38 = (-_local4.platHeight) / 2;
var _local36 = (_local38 - _local31) / (_local39 - _local32);
var _local40 = _local31 - (_local36 * _local32);
_local24 = (_local36 * _local37) + _local40;
if (_root["slopePlatform" + _local3._name] == undefined) {
if (_root.numPlats == undefined) {
_root.numPlats = 0;
}
_root.numPlats++;
_root["slopePlatform" + _local3._name] = _root.level.attachMovie("platform", "slopePlatform" + _local3._name, 19120 + _root.numPlats);
AddPlatform(_root["slopePlatform" + _local3._name]);
_root["slopePlatform" + _local3._name]._width = 0.1;
}
var _local28 = {x:_local7, y:_local6};
_root.level.globalToLocal(_local28);
_local6 = _local28.y;
if (_local4._angle < 0) {
_root["slopePlatform" + _local3._name]._y = _local6 - _local24;
} else {
_root["slopePlatform" + _local3._name]._y = _local6 + _local24;
}
_local3._hLink = _root["slopePlatform" + _local3._name];
} else {
_root["slopePlatform" + _local3._name]._x = -100000;
_root["slopePlatform" + _local3._name]._y = -100000;
if (_local3._hLink._name == ("slopePlatform" + _local3._name)) {
_local3._hLink = undefined;
}
}
}
}
function EntityInRange(entID, hero) {
var _local2 = _entities[entID];
var _local8 = {x:_local2._mc._x, y:_local2._mc._y};
if (!_local2._defined) {
_local2._defined = true;
_local2.entWidth = _local2.GetWidth() / 2;
_local2.entHeight = _local2.GetHeight() / 2;
}
var _local7 = _local8.x;
var _local9 = _local7 - _local2.entWidth;
var _local12 = _local7 + _local2.entWidth;
var _local6 = _local8.y;
var _local10 = _local6 - _local2.entHeight;
var _local11 = _local6 + _local2.entHeight;
var _local4 = hero._mc._x;
var _local3 = hero._mc._y;
var _local5 = false;
if ((((_local4 + _range) > _local9) && ((_local4 - _range) < _local12)) && (((_local3 - _range) < _local11) && ((_local3 + _range) > _local10))) {
_local5 = true;
}
return(_local5);
}
function SetLevel(level) {
_theLevel = level;
_originalY = _theLevel._y;
_root.level = _theLevel;
_treeCount = Math.ceil(_theLevel._width / _treeWidth);
var _local3 = 0;
while (_local3 < _treeCount) {
_tree.push(new Toast.CTree());
_local3++;
}
}
function GetTrees(entID, bQuick) {
var _local10 = new Array();
var _local12 = _entities[entID];
var _local14 = _local12._mc._width / 2;
var _local13 = {x:_local12._mc._x, y:_local12._mc._y};
_root.level.globalToLocal(_local13);
var _local15 = _local13.x - _local14;
var _local16 = _local13.x + _local14;
var _local9 = Math.floor(_local15 / _treeWidth) - 1;
if (bQuick) {
_local10.push(_local9);
return(_local10);
}
if (_local9 < 0) {
_local9 = 0;
}
if (_local9 > _treeCount) {
_local9 = _treeCount;
}
_local12._curTree = _local9;
var _local5 = new Array();
if (_recalculateTrees) {
_local12._savedTree = new Array();
_recalculateTrees = false;
}
if (_local12._savedTree[_local9] == undefined) {
_local10.push(_local9);
_local10.push(_local9 + 1);
var _local8 = 2;
while (_local8-- , _local8 > -1) {
var _local6 = _tree[_local10[_local8]];
for (var _local11 in _local6._plats) {
var _local4 = _local6._plats[_local11];
var _local3 = false;
for (var _local7 in _local5) {
if (_local5[_local7] == _local4) {
_local3 = true;
break;
}
}
if (_local3) {
continue;
}
_local5.push(_local4);
}
}
_local12._savedTree[_local9] = _local5;
} else {
_local5 = _local12._savedTree[_local9];
}
return(_local5);
}
function Update() {
var _local3 = _root.hero;
if ((_xSpeed != 0) || (_ySpeed != 0)) {
tellTarget (_theLevel) {
_x = (_x + _xSpeed);
_y = (_y + _ySpeed);
};
_local3._mc._y = _local3._mc._y + _ySpeed;
}
_local3._applyGravity = true;
CheckAgainst(_local3._id);
}
function CheckAgainst(j) {
var _local5 = GetTrees(j);
for (var _local6 in _local5) {
var _local3 = _local5[_local6];
if ((mabs(_platforms[_local3]._angle) != 0) && (mabs(_platforms[_local3]._angle) != 90)) {
HandleCollision(_local3, j);
_local3 = _root["slopePlatform" + _entities[j]._name]._id;
}
HandleCollision(_local3, j);
}
}
var mabs = Math.abs;
}
Symbol 1202 MovieClip [__Packages.Toast.CTree] Frame 0
class Toast.CTree
{
var _plats, _xStart, _xEnd;
function CTree () {
_plats = new Array();
_xStart = 0;
_xEnd = 0;
}
}
Symbol 1203 MovieClip [__Packages.Toast.CMiniBossEntity] Frame 0
class Toast.CMiniBossEntity extends Toast.CEnemyEntity
{
var _timeIdled, _mc, _xmoveRange, _xattackRange, _yattackRange, _lastScale, _lastPoints, _canChainsaw, _beingChainsawed, _alive, _hitPoints, _origPoints, _jRange, _applyGravity, _fallCount, _flash, _tintCount, _flashCount, _maxFall, _mad, _madCount, _text, _curTree, _id, _curAction, SetSpeedX, _localGuts, setTint, removeTint, SetAction, GetX, _hLink, GetClip, SetX, GetSpeed;
function CMiniBossEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_timeIdled = Math.floor(Math.random() * 10);
_mc.idle.gotoAndPlay(_timeIdled);
_xmoveRange = 350;
_xattackRange = 150;
_yattackRange = 100;
_lastScale = false;
_lastPoints = 0;
_canChainsaw = false;
_beingChainsawed = false;
_alive = true;
_hitPoints = 10;
_origPoints = _hitPoints;
_jRange = 20;
_applyGravity = true;
_fallCount = 0;
_flash = false;
_tintCount = 0;
_flashCount = 0;
_maxFall = Math.floor(Math.random() * 90) + 95;
_mad = false;
_madCount = 0;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("IdleTime: " + _timeIdled);
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("ID: " + _id);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "RUN" :
break;
case "ALMOSTDEAD" :
break;
case "DIE" :
break;
case "FALL" :
break;
case "GETUP" :
break;
case "CHAINSAWED" :
break;
case "HITUP" :
break;
case "HITDOWN" :
break;
case "JUMPIN" :
break;
case "JUMPOUT" :
break;
case "JUMP" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "RUN" :
break;
case "ALMOSTDEAD" :
break;
case "DIE" :
break;
case "FALL" :
break;
case "CHAINSAWED" :
break;
case "GETUP" :
break;
case "HITUP" :
break;
case "HITDOWN" :
break;
case "JUMPIN" :
break;
case "JUMPOUT" :
break;
case "JUMP" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function Update() {
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
_root.miniHB.bar._yscale = 100 * (_hitPoints / _origPoints);
if (_hitPoints <= 0) {
_root.miniHB._visible = false;
}
if ((_hitPoints < _lastPoints) || (_flash)) {
_tintCount++;
}
if ((_madCount < 12) && (_madCount > 0)) {
if ((_madCount % 4) < 2) {
setTint(255, 0, 255, 50);
} else {
removeTint();
}
} else if (_tintCount > 0) {
_tintCount++;
if (((_tintCount > 2) && (!_flash)) || ((_tintCount > 180) && (_flash))) {
removeTint();
_tintCount = 0;
_flash = false;
} else if ((_tintCount % 2) == 0) {
if (_flash) {
if ((_tintCount % 6) == 0) {
setTint(255, 255, 255, 50);
} else {
setTint(0, 0, 0, 0);
}
} else {
setTint(255, 0, 0, 50);
}
} else {
removeTint();
}
} else {
removeTint();
}
_lastPoints = _hitPoints;
if (_alive) {
super.Update();
onIdle();
}
}
function onIdle() {
if (_hitPoints < (_origPoints / 2)) {
_mad = true;
_madCount++;
}
var _local6 = _root.hero._mc;
var _local4 = false;
if (_root.holeCover.hitTest(_local6)) {
_local4 = true;
}
_timeIdled++;
if (_timeIdled > 60) {
SetSpeedX(0);
_timeIdled = 0;
} else if (_timeIdled < 0) {
SetAction("IDLE");
return(undefined);
}
if (_hitPoints <= 1) {
SetAction("ALMOSTDEAD");
_canChainsaw = true;
} else {
var _local3 = {x:GetX(), y:0};
_root.boss3Right._parent.globalToLocal(_local3);
_local3 = _local3.x;
if (_curAction._name != "FALL") {
if (_local3 > _root.boss3Right._x) {
_mc._xscale = Math.abs(_mc._xscale);
}
if (_local3 < _root.boss1Left._x) {
_mc._xscale = -Math.abs(_mc._xscale);
}
}
if ((_fallCount > (_maxFall - 20)) || (_curAction._name == "FALL")) {
if (!_local4) {
_root.miniPlat._y = _root.miniPlat._origY;
_root.miniPlatDisp._visible = true;
}
} else {
if (_root.miniPlat == _root.hero._hLink) {
_root.hero._hLink = undefined;
}
if (_root.miniPlat == _hLink) {
_hLink = undefined;
}
if (!_mad) {
_root.miniPlat._y = -1E16;
_root.miniPlatDisp._visible = false;
}
}
if (_local4 && (_root.miniPlatDisp._visible)) {
if (_root.hero._jumping) {
_root.hero._jumping = false;
}
var _local5 = {x:0, y:_root.holeCover._y};
_root.holeCover._parent.localToGlobal(_local5);
_root.hero._mc._y = _local5.y;
_root.hero.SetSpeedY(0);
}
if (_fallCount == (_maxFall - 1)) {
if (((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) {
_mc._xscale = _mc._xscale * -1;
}
}
if ((_fallCount < _maxFall) && (_curAction._name != "FALL")) {
if (_mad) {
if ((Math.abs(_root.hero.GetX() - GetX()) < 30) && (_root.hero._curAction._name != "DIE")) {
SetAction("JUMP");
} else if (((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
if (((Math.abs(_root.hero.GetX() - GetX()) < 30) && (_fallCount > 15)) && (_curAction._name != "JUMP")) {
_fallCount = _maxFall;
}
}
if (_curAction._name != "JUMP") {
if (GetClip()._xscale < 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
SetAction("RUN");
}
_fallCount++;
} else if ((_curAction._name != "JUMP") && (_root.hero._curAction._name != "DIE")) {
_fallCount = 0;
_maxFall = Math.floor(Math.random() * 90) + 95;
SetAction("FALL");
}
}
return(undefined);
}
}
Symbol 1204 MovieClip [__Packages.Toast.CButterBatEntity] Frame 0
class Toast.CButterBatEntity extends Toast.CEnemyEntity
{
var _timeIdled, _mc, _xmoveRange, _xattackRange, _yattackRange, _lastScale, _alive, _hitPoints, _yDir, _applyGravity, _diveTime, _stacked, _text, _curTree, _id, _localGuts, SetX, SetY, SetSpeedX, SetAction, GetClip, GetX, GetY, GetSpeed;
function CButterBatEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_timeIdled = Math.floor(Math.random() * 10);
_mc.idle.gotoAndPlay(_timeIdled);
_xmoveRange = 350;
_xattackRange = 50;
_yattackRange = 100;
_lastScale = false;
_alive = true;
_hitPoints = 1;
_yDir = 0;
_applyGravity = false;
_diveTime = 0;
_stacked = undefined;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("IdleTime: " + _timeIdled);
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("YDIR: " + _yDir);
_text.AddLine("ID: " + _id);
}
function Update() {
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
if (_alive) {
super.Update();
if (_stacked == undefined) {
if (!_root.hero._inToaster) {
onIdle();
}
} else {
SetX(_stacked._x);
SetY(_stacked._y);
}
}
}
function onIdle() {
_timeIdled++;
if (_timeIdled > 60) {
SetSpeedX(0);
_yDir = Math.floor(Math.random() * 6) - 3;
_timeIdled = 0;
} else if (_timeIdled < 0) {
SetAction("IDLE");
return(undefined);
}
if (((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
if ((((Math.abs(_root.hero.GetX() - GetX()) < _xattackRange) && (_diveTime >= 0)) && (_diveTime < 15)) && (GetY() < 200)) {
_yDir = 5;
_diveTime++;
} else if (_diveTime < 0) {
_diveTime++;
} else {
_diveTime = -200;
}
if (GetY() < 50) {
_yDir = 2;
} else if (GetY() > 300) {
_yDir = -2;
}
if (Math.abs(_root.hero.GetX() - GetX()) > _xattackRange) {
if (_mc._xscale < 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
} else if (Math.floor(Math.random() * 4) == 0) {
SetX(GetX() + (Math.floor(Math.random() * 4) - 2));
}
SetY(GetY() + _yDir);
return(undefined);
}
}
Symbol 1205 MovieClip [__Packages.Toast.CBossEntity] Frame 0
class Toast.CBossEntity extends Toast.CEnemyEntity
{
var _timeIdled, _mc, _lastScale, _lastPoints, _canChainsaw, _beingChainsawed, _alive, _hitPoints, _origPoints, _jRange, _applyGravity, _fallCount, _flash, _tintCount, _flashCount, _jumpCount, _maxJump, _maxFall, _mad, _madCount, _text, _curTree, _id, _curAction, SetSpeedX, _localGuts, setTint, removeTint;
function CBossEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_timeIdled = Math.floor(Math.random() * 10);
_mc.idle.gotoAndPlay(_timeIdled);
_lastScale = false;
_lastPoints = 0;
_canChainsaw = false;
_beingChainsawed = false;
_alive = true;
_hitPoints = 10;
_origPoints = _hitPoints;
_jRange = 20;
_applyGravity = true;
_fallCount = 0;
_flash = false;
_tintCount = 0;
_flashCount = 0;
_jumpCount = 0;
_maxJump = 150;
_maxFall = Math.floor(Math.random() * 90) + 95;
_mad = false;
_madCount = 0;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("IdleTime: " + _timeIdled);
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("ID: " + _id);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "FLIP" :
break;
case "FLIPBACK" :
break;
case "IDLE" :
break;
case "LAZER" :
break;
case "MELEE" :
break;
case "PARALYZED" :
break;
case "SHOOT" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "FLIP" :
break;
case "FLIPBACK" :
break;
case "IDLE" :
break;
case "LAZER" :
break;
case "MELEE" :
break;
case "PARALYZED" :
break;
case "SHOOT" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function Update() {
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
_root.bossHB.bar._yscale = 100 * (_hitPoints / _origPoints);
if (_hitPoints <= 0) {
_root.outro._visible = true;
_root.outro.play();
_root.bossHB._visible = false;
}
if ((_hitPoints < _lastPoints) || (_flash)) {
_tintCount++;
}
if ((_madCount < 12) && (_madCount > 0)) {
if ((_madCount % 4) < 2) {
setTint(255, 0, 255, 50);
} else {
removeTint();
}
} else if (_tintCount > 0) {
_tintCount++;
if (((_tintCount > 2) && (!_flash)) || ((_tintCount > 180) && (_flash))) {
removeTint();
_tintCount = 0;
_flash = false;
} else if ((_tintCount % 2) == 0) {
if (_flash) {
if ((_tintCount % 6) == 0) {
setTint(255, 255, 255, 50);
} else {
setTint(0, 0, 0, 0);
}
} else {
setTint(255, 0, 0, 50);
}
} else {
removeTint();
}
} else {
removeTint();
}
_lastPoints = _hitPoints;
if (_alive) {
super.Update();
onIdle();
}
}
function onIdle() {
if (_hitPoints < (_origPoints / 2)) {
_mad = true;
_madCount++;
}
var _local4 = _root.hero._mc;
var _local3 = false;
return(undefined);
}
}
Symbol 1206 MovieClip [__Packages.Toast.CHeroEntity] Frame 0
class Toast.CHeroEntity extends Toast.CEntity
{
var _jumping, _curSub, _flash, _inToaster, _headbuttContact, _jumpSpeed, _hitPoints, _canJump, _jumpCount, _applyGravity, _attacking, _gravity, _crouching, _crouchIsDown, _gravityCount, _weapons, _curAction, _curWeapon, _curWeaponIndex, _lastPoints, _tintCount, _isSwimming, _maxLives, _lives, _text, _selected, _mc, _ySpeed, _xSpeed, _curTree, GetHeight, GetY, GetWidth, GetX, removeTint, setTint, _inGameHeight, _boundingBox, _speed, _origHeight, _alive, SetSpeedY, GetSpeedY, SetSpeedX;
function CHeroEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_jumping = false;
_curSub = 0;
_flash = false;
_inToaster = false;
_headbuttContact = false;
_jumpSpeed = 30;
_hitPoints = 15;
_canJump = true;
_jumpCount = 0;
_applyGravity = true;
_attacking = false;
_gravity = 0.4;
_crouching = false;
_crouchIsDown = false;
_gravityCount = 0;
_weapons = new Array();
_curAction = new Toast.CAction("IDLE");
_curWeapon = new Toast.CWeapon();
_curWeapon._name = "no-weapon";
_weapons.push(new Toast.CWeapon());
_weapons.push(_curWeapon);
_weapons.push(new Toast.CWeapon());
_curWeaponIndex = 1;
_lastPoints = 0;
_tintCount = 0;
_isSwimming = false;
_maxLives = 3;
_lives = _maxLives;
}
function SwitchWeapon(i) {
if (i < _weapons.length) {
if (_weapons[i] != undefined) {
_curWeapon._mc._visible = false;
_curWeapon = _weapons[i];
_curWeapon._mc._visible = true;
_curWeaponIndex = i;
}
}
}
function GetProperties() {
super.GetProperties();
_text.AddLine("Selected: " + _selected);
_text.AddLine("Depth: " + _mc.getDepth());
_text.AddLine("Jumping? " + _jumping);
_text.AddLine("Jump Count: " + _jumpCount);
_text.AddLine("Grav Count: " + _gravityCount);
_text.AddLine((("XS: " + Math.round(_xSpeed)) + " YS: ") + _ySpeed);
_text.AddLine("Action: " + _curAction._name);
_text.AddLine("Tree: " + _curTree);
_text._mc._y = (GetY() - (GetHeight() / 2)) - _text._mc._height;
_text._mc._x = (GetX() - (GetWidth() / 2)) + (_text._mc._width / 2);
}
function Update() {
super.Update();
if ((_hitPoints < _lastPoints) || (_flash)) {
_tintCount++;
}
if (_tintCount > 0) {
_tintCount++;
if (((_tintCount > 2) && (!_flash)) || ((_tintCount > 180) && (_flash))) {
removeTint();
_tintCount = 0;
_flash = false;
} else if ((_tintCount % 2) == 0) {
if (_flash) {
if ((_tintCount % 6) == 0) {
setTint(255, 255, 255, 50);
} else {
setTint(0, 0, 0, 0);
}
} else {
setTint(255, 0, 0, 50);
}
} else {
removeTint();
}
}
_lastPoints = _hitPoints;
if (_crouching) {
_inGameHeight = 20;
_boundingBox._height = _inGameHeight;
_speed = 1;
} else {
_inGameHeight = _origHeight;
_boundingBox._height = _inGameHeight;
_crouchIsDown = false;
_speed = 3;
}
_root.health.bar._yscale = 100 * (_hitPoints / 15);
if (_hitPoints <= 0) {
SetAction("DIE");
}
if (_alive) {
if (_applyGravity) {
if (_gravityCount < 30) {
_gravityCount++;
}
SetSpeedY(Math.round(GetSpeedY() - ((_gravity * _gravityCount) * 0.9)));
} else {
_gravityCount = 0;
}
if (_curAction != "IDLE") {
_HandleAction(_curAction);
} else {
SetAction("IDLE");
}
}
}
function SetAction(t_action) {
t_action = t_action.toUpperCase();
var _local2 = new Toast.CAction(t_action);
SetActionEx(_local2);
return(true);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "RUN" :
break;
case "HEADBUTT" :
break;
case "DIE" :
break;
case "TOAST" :
break;
case "UP" :
break;
case "DOWN" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "RUN" :
break;
case "HEADBUTT" :
break;
case "DIE" :
break;
case "TOAST" :
break;
case "UP" :
break;
case "DOWN" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
if (_crouching) {
if (t_action._name == "RUN") {
t_action._name = "CROUCHRUN";
if ((!_root.hero._crouchIsDown) || (!_root.wentDown)) {
t_action._name = "CROUCHIDLE";
}
} else if (t_action._name == "IDLE") {
t_action._name = "CROUCHIDLE";
}
}
if (_isSwimming) {
if (t_action._name == "RUN") {
t_action._name = "SWIMRUN";
} else if (t_action._name == "IDLE") {
t_action._name = "SWIMIDLE";
}
}
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function SetActionDone(t_action) {
if (_curAction._name == t_action.toUpperCase()) {
_curAction._done = true;
}
}
}
Symbol 17 MovieClip Frame 24
_parent._parent.SetActionDone("ROAR");
stop();
Symbol 23 MovieClip Frame 25
_parent._parent.SetActionDone("RUN");
Symbol 29 MovieClip Frame 12
_parent._parent.SetActionDone("SHOOT");
Symbol 53 MovieClip Frame 1
this._parent._struck.removeMovieClip();
if (_parent._deadByHead) {
gotoAndPlay ("HEADBUTTED");
} else {
var p = this._parent._parent;
if (p._nextSpawn != undefined) {
var s = p._nextSpawn;
var nam = p._name;
for (var i in s) {
var c = s[i];
if (c._final != undefined) {
_root.level._rightBound = c._final;
_root.goClip.play();
} else {
_root.slugCount++;
if (c._off == undefined) {
c._off = 0;
}
if (c._x < 0) {
c._x = -80 - c._off;
} else {
c._x = 630 + c._off;
}
var co = {x:c._x, y:0};
c._x = co.x;
var temp = (new Toast.CButterSlugEntity(_root, "butterslug", "butterslug" + _root.slugCount, c._x, c._y, 2));
temp.GetClip().swapDepths(500 + _root.slugCount);
temp._nextSpawn = c._nextSpawn;
temp.SetWidth(temp.GetClip()._width * 1.8);
temp.SetHeight(temp.GetClip()._height * 1.8);
_root.PlatformManager.AddEntity(temp);
}
}
}
if (_root.lastDeath == 0) {
_root.lastDeath = 1;
gotoAndPlay ("ALTERNATE");
} else if (_root.lastDeath == undefined) {
_root.lastDeath = 1;
} else {
_root.lastDeath = 0;
}
}
Symbol 53 MovieClip Frame 79
this.gotoAndStop("DEATH");
Symbol 53 MovieClip Frame 148
delete this._parent.onEnterFrame;
this._parent.removeMovieClip();
delete this._parent._parent;
stop();
Symbol 53 MovieClip Frame 181
_parent._deadByHead = false;
Symbol 63 MovieClip [headbutted] Frame 4
_parent._parent.SetActionDone("HEADBUTTED");
stop();
Symbol 64 MovieClip [butterslug] Frame 1
if (this.onEnterFrame == undefined) {
var parent = this._parent;
var mgr = parent._manager;
var t = this;
this.onEnterFrame = function () {
if (!_root._paused) {
if (parent._alive == undefined) {
parent._alive = true;
}
if ((mgr._xSpeed != 0) || (mgr._ySpeed != 0)) {
parent._mc._x = parent._mc._x + mgr._xSpeed;
parent._mc._y = parent._mc._y + mgr._ySpeed;
}
var _local7 = this._y;
if ((!parent._jumping) && (parent._hLink != undefined)) {
parent._applyGravity = false;
var _local3 = {x:parent._hLink._x, y:parent._hLink._y};
if (parent._hLink._name == ("slopePlatform" + h._name)) {
parent._hLink._width = 50;
}
parent._hLink._parent.localToGlobal(_local3);
this._parent.globalToLocal(_local3);
var _local12 = this._x - (this._width / 2);
var _local11 = this._x + (this._width / 2);
var _local9 = _local3.x - (parent._hLink._width / 2);
var _local8 = _local3.x + (parent._hLink._width / 2);
if ((_local12 < _local9) || (_local11 > _local8)) {
parent._hLink = undefined;
parent._applyGravity = true;
}
parent._gravityCount = 0;
_local7 = _local3.y - 19.9;
} else if (parent._hLink == undefined) {
parent_applyGravity = true;
}
parent._mc._y = _local7;
if ((((t._counter >= 50) || (t._counter == undefined)) && (Math.abs(_root.hero._xSpeed + mgr._xSpeed) > 0)) || (t._rangeGood == undefined)) {
t._rangeGood = mgr.EntityInRange(parent._id, _root.hero);
t._counter = 0;
}
t._counter++;
if ((parent._curAction._name != "DIE") && (t._rangeGood)) {
parent._alive = true;
t._alpha = 100;
var _local10 = parent._id;
mgr.CheckAgainst(_local10);
if ((!_root.hero._attacking) && (_root.hero._curWeapon._name == "no-weapon")) {
t._able = true;
}
if ((_root.hero._curWeapon._mc._visible && (t.hitTest(_root.hero._curWeapon._mc))) && (_root.hero._attacking)) {
_root.hero._curWeapon.interact(parent);
} else if (((_root.hero._attacking && (_root.hero._curWeapon._name == "no-weapon")) && (t.hitTest(_root.hero._mc))) && (t._able)) {
t._able = false;
parent._hitPoints = parent._hitPoints - 0.5;
parent.SetAction("HEADBUTTED");
parent._ballCounter = 0;
parent._missCount = 0;
var _local4 = _root.hero._mc._x + (_root.hero._mc._width / 2);
if (_root.hero._mc._xscale > 0) {
_local4 = _root.hero._mc._x - (_root.hero._mc._width / 2);
}
var _local6 = _local4 + (t._width / 2);
if ((_local4 < (t._x - (t._width / 2))) || (_root.hero._mc._xscale > 0)) {
_local6 = _local4 - (t._width / 2);
}
if (_root.moveSlug) {
t._x = _local6;
}
if (parent._hitPoints <= 0) {
t._deadByHead = true;
}
}
if (parent._gutCounter > 0) {
parent._gutCounter++;
if (parent._gutCounter > 20) {
parent._hitPoints = 0;
parent.SetAction("DIE");
}
}
if (t.hitTest(_root.crossbowArrow) && (!t.hitTest(_root.hero._mc))) {
parent._hitPoints--;
var _local5 = ((-t._width) / 2) + 5;
if (_root.hero._mc._x > t._x) {
_local5 = (t._width / 2) - 5;
}
if ((parent._hitPoints <= 2) && (parent._hitPoints >= 1)) {
_root.crossbowArrow._speed = 0;
t._struck = _root.attachMovie("crossbow - wiggly arrow", t.getDepth() + " arrow", 5900 + t.getDepth(), {_x:t._x, _y:t._y});
if ((_root.crossbowArrow._up != 0) && (!_root.crossbowArrow._dn)) {
t._struck._rotation = -90;
t._struck._x = _root.crossbowArrow._x;
t._struck._y = (t._y + (t._height / 2)) + 5;
} else if ((_root.crossbowArrow._up != 0) && (_root.crossbowArrow._dn)) {
t._struck._rotation = 90;
t._struck._x = _root.crossbowArrow._x;
t._struck._y = (t._y - (t._height / 2)) - 5;
} else if (((_local5 < 0) && (t._struck._xscale < 0)) || ((_local5 > 0) && (t._struck._xscale > 0))) {
t._struck._xscale = t._struck._xscale * -1;
}
_root.crossbowArrow.removeMovieClip();
}
}
} else if (parent._curAction._name != "DIE") {
} else {
parent._alive = false;
}
if (t._struck != undefined) {
t._curX = t._x;
t._curY = t._y;
diffX = t._lastX - t._curX;
diffY = t._lastY - t._curY;
t._lastX = t._curX;
t._lastY = t._curY;
t._struck._x = t._struck._x - diffX;
t._struck._y = t._struck._y - diffY;
}
if (t._rangeGood) {
parent.Update();
}
}
};
}
stop();
Symbol 64 MovieClip [butterslug] Frame 2
stop();
Symbol 64 MovieClip [butterslug] Frame 3
stop();
Symbol 64 MovieClip [butterslug] Frame 4
stop();
Symbol 64 MovieClip [butterslug] Frame 5
stop();
Symbol 64 MovieClip [butterslug] Frame 6
stop();
Symbol 64 MovieClip [butterslug] Frame 7
stop();
Symbol 71 MovieClip Frame 85
_parent._parent.SetActionDone("IDLE");
Symbol 79 MovieClip Frame 17
_parent._parent.SetActionDone("RUN");
Symbol 85 MovieClip Frame 1
_root.hero._attackOverride = true;
_root.hero._headbuttContact = true;
Symbol 85 MovieClip Frame 11
_root.hero._attackOverride = false;
_parent._parent.SetActionDone("HEADBUTT");
Symbol 97 MovieClip Frame 1
_root._canControl = false;
Symbol 97 MovieClip Frame 90
stop();
var p = _parent._parent;
p.SetActionDone("DIE");
if (p._lives > 1) {
p._lives--;
p._alive = true;
p._hitPoints = 15;
p._flash = true;
_root.hero._hLink = undefined;
_root.hero._mc._y = _root.camTop;
_root._canControl = true;
} else {
_root.gameOver = true;
}
Symbol 113 MovieClip Frame 2
stop();
_parent._parent.SetActionDone("UP");
Symbol 115 MovieClip Frame 3
stop();
_parent._parent.SetActionDone("DOWN");
Symbol 122 MovieClip Frame 1
if (_root.hero._crouchIsDown) {
gotoAndPlay (7);
} else {
_root.wentDown = false;
}
Symbol 122 MovieClip Frame 2
_root.hero._crouchIsDown = true;
Symbol 122 MovieClip Frame 7
_parent._parent.SetActionDone("IDLE");
_root.wentDown = true;
Symbol 128 MovieClip Frame 22
_parent._parent.SetActionDone("RUN");
Symbol 142 MovieClip [swim idle] Frame 25
this._parent._parent.SetActionDone("IDLE");
Symbol 156 MovieClip [swim run] Frame 25
_parent._parent.SetActionDone("RUN");
Symbol 157 MovieClip [hero] Frame 1
stop();
Symbol 157 MovieClip [hero] Frame 2
stop();
Symbol 157 MovieClip [hero] Frame 3
stop();
Symbol 157 MovieClip [hero] Frame 4
stop();
Symbol 157 MovieClip [hero] Frame 5
stop();
Symbol 157 MovieClip [hero] Frame 6
stop();
Symbol 157 MovieClip [hero] Frame 7
stop();
Symbol 157 MovieClip [hero] Frame 8
stop();
Symbol 157 MovieClip [hero] Frame 9
stop();
Symbol 157 MovieClip [hero] Frame 10
stop();
Symbol 157 MovieClip [hero] Frame 11
stop();
Symbol 202 MovieClip [weapon-chainsaw] Frame 1
if (this.onEnterFrame == undefined) {
var t = this;
var h = _root.hero;
var keyDown = Key.isDown;
this._attackCount = 0;
this._maxAttack = 30;
this._recharge = 40;
this.onEnterFrame = function () {
if (!_root._paused) {
if (!t._added) {
if (t.hitTest(h._mc) && (_root.overWeapon == undefined)) {
_root.overWeapon = t;
} else if ((!t.hitTest(h._mc)) && ((_root.overWeapon == t._name) || (_root.overWeapon == t))) {
_root.overWeapon = undefined;
}
var _local4 = {x:this._origX, y:this._origY};
this._origParent.localToGlobal(_local4);
this._x = _local4.x;
this._y = _local4.y;
} else {
if (this._attackCount > this._maxAttack) {
h._attacking = false;
this._attackCount++;
this.smoke._visible = this._visible;
if (this._attackCount >= (this._maxAttack + this._recharge)) {
this._attackCount = 0;
}
} else {
this.smoke._visible = false;
}
if ((_root.overWeapon == t._name) || (_root.overWeapon == t)) {
_root.overWeapon = undefined;
}
}
if (t._visible) {
if (h._curWeapon._mc.getDepth() == t.getDepth()) {
h._attackOverride = false;
if (h._attacking && ((t._currentframe < 6) || (t._currentframe > 49))) {
gotoAndPlay ("ATTACK");
} else if ((t._currentframe > 15) && (t._currentframe < 49)) {
h._attackOverride = true;
h._attacking = true;
} else if ((h._curAction._name == "RUN") && (t._currentframe < 6)) {
gotoAndPlay(49 + h._mc.run._currentframe);
} else if ((h._curAction._name == "RUN") && (t._currentframe > 49)) {
gotoAndPlay(49 + h._mc.run._currentframe);
} else if ((h._curAction._name != "RUN") && (t._currentframe > 49)) {
gotoAndPlay (1);
}
if ((t._currentframe > 5) && (t._currentframe < 49)) {
h._attacking = true;
} else {
h._attacking = false;
}
if (t._origScale == undefined) {
t._dispName = "the Breadsaw";
t._origScale = t._xscale;
}
if (t._added == undefined) {
t._added = false;
}
if (_root.overWeapon.getDepth() == t.getDepth()) {
_root.overWeapon = undefined;
}
play();
var _local6;
if (h._mc._xscale < 0) {
_local6 = 1;
t._xscale = t._origScale;
} else {
_local6 = -1;
t._xscale = -t._origScale;
}
t._x = h._mc._x + ((_local6 * 1.4) * h._origWidth);
if (!h._crouching) {
if (h._curAction._name == "RUN") {
t._y = (Math.round(h._mc._y + (h._mc._height / 2)) - (h._origHeight / 2)) - 5;
} else {
t._y = ((h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2)) - 5;
}
} else {
t._y = h._mc._y - 5;
}
} else {
if ((((!t._added) && (t.hitTest(h._mc))) && (keyDown(32))) && (h._curWeapon._mc.getDepth() != t.getDepth())) {
var _local5 = new Toast.CWeapon();
_local5._name = _name;
_local5._mc = t;
_root.level._leftBound = 4300;
var _local3 = new Toast.CButterSlugEntity(_root, "butterslug", "butterslug" + _root.slugCount, 630, 320, 2);
_local3.GetClip().swapDepths(500 + _root.slugCount);
var _local4 = {x:840, y:320};
_local3._nextSpawn = new Array();
_local3._nextSpawn.push({_x:1, _y:_local4.y});
_local3._nextSpawn.push({_x:1, _y:_local4.y, _off:100});
_local3._nextSpawn.push({_x:-1, _y:_local4.y});
_local3._nextSpawn[0]._nextSpawn = new Array();
_local3._nextSpawn[0]._nextSpawn.push({_x:-1, _y:_local4.y, _off:100});
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:-1, _y:_local4.y, _off:100});
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:_local4.y, _final:7350});
_local3.SetWidth(_local3.GetClip()._width * 1.8);
_local3.SetHeight(_local3.GetClip()._height * 1.8);
_root.PlatformManager.AddEntity(_local3);
h._weapons[0] = _local5;
h.SwitchWeapon(0);
_root.weaponGUI.gotoAndStop(3);
_root.weaponGUI.chain._visible = true;
t._added = true;
}
if ((h._attackOverride && ((t._currentframe > 15) && (t._currentframe < 49))) && (!t._visible)) {
h._attackOverride = false;
h._attacking = false;
}
t.gotoAndStop(1);
}
}
}
};
}
Instance of Symbol 188 MovieClip [smoke] "smoke" in Symbol 202 MovieClip [weapon-chainsaw] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 202 MovieClip [weapon-chainsaw] Frame 5
gotoAndPlay (1);
Symbol 202 MovieClip [weapon-chainsaw] Frame 48
if ((Key.isDown(83) && (_root.hero._curWeapon.GetClip().getDepth() == this.getDepth())) && (this._attackCount <= this._maxAttack)) {
this._attackCount++;
gotoAndPlay (47);
}
Symbol 202 MovieClip [weapon-chainsaw] Frame 49
gotoAndPlay (1);
Symbol 205 MovieClip [crossbow - live arrow] Frame 1
#initclip 21
function crossbowArrow() {
if (this._up != 0) {
this._rotation = 90;
if (this._dn) {
this._rotation = -90;
}
}
this.onEnterFrame = function () {
if (!_root._paused) {
if ((this._x < 0) || (this._x > 550)) {
delete this.onEnterFrame;
this.removeMovieClip();
}
this._x = this._x + _root.PlatformManager._xSpeed;
this._y = this._y + _root.PlatformManager._ySpeed;
if (this._up == 0) {
this._x = this._x + this._speed;
} else if (this._dn) {
this._y = this._y + Math.abs(this._speed);
} else {
this._y = this._y - Math.abs(this._speed);
}
}
};
}
crossbowArrow.prototype = new MovieClip();
Object.registerClass("crossbow - live arrow", crossbowArrow);
#endinitclip
stop();
Symbol 205 MovieClip [crossbow - live arrow] Frame 2
stop();
Symbol 217 MovieClip [crossbow - wiggly arrow] Frame 20
stop();
Symbol 226 MovieClip [weapon-crossbow] Frame 1
stop();
if (this.onEnterFrame == undefined) {
var t = this;
var h = _root.hero;
var keyDown = Key.isDown;
this.onEnterFrame = function () {
if (!t._added) {
if (t.hitTest(h._mc) && (_root.overWeapon == undefined)) {
_root.overWeapon = t;
} else if ((!t.hitTest(h._mc)) && ((_root.overWeapon == t._name) || (_root.overWeapon == t))) {
_root.overWeapon = undefined;
}
var _local5 = {x:this._origX, y:this._origY};
this._origParent.localToGlobal(_local5);
this._x = _local5.x;
this._y = _local5.y;
} else if ((_root.overWeapon == t._name) || (_root.overWeapon == t)) {
_root.overWeapon = undefined;
}
if (t._visible) {
if (h._curWeapon._mc.getDepth() == t.getDepth()) {
if (keyDown(38)) {
if (t._xscale < 0) {
t._rotation = 90;
} else {
t._rotation = -90;
}
} else if (keyDown(40) && (h._jumping || (h._gravityCount > 1))) {
if (t._xscale < 0) {
t._rotation = -90;
} else {
t._rotation = 90;
}
t._downRot = true;
} else {
t._rotation = 0;
}
if (t._downRot && ((!h._jumping) || (h._crouching))) {
t._downRot = false;
t._rotation = 0;
}
if (!h._attacking) {
t._able = true;
}
if ((h._attacking && (t._able)) && ((t._currentframe < 2) || (t._currentframe > 29))) {
var _local4 = 1;
if (t._xscale < 0) {
_local4 = -1;
}
if (t._rotation != 0) {
_local4 = -1;
}
var _local7 = _local4 * 30;
_root.crossbowArrow = _root.attachMovie("crossbow - live arrow", "crossbowArrow", 2359, {_x:t._x, _y:t._y, _speed:_local7, _up:t._rotation, _dn:t._downRot});
_root.crossbowArrow._xscale = _root.crossbowArrow._xscale * _local4;
gotoAndPlay ("ATTACK");
t._able = false;
} else if (((h._curAction._name == "RUN") && (t._rotation == 0)) && (t._currentframe < 2)) {
gotoAndPlay(29 + h._mc.run._currentframe);
} else if (((h._curAction._name == "RUN") && (t._rotation == 0)) && (t._currentframe > 29)) {
gotoAndPlay(29 + h._mc.run._currentframe);
} else if ((h._curAction._name != "RUN") && (t._currentframe > 29)) {
gotoAndPlay (1);
}
if (t._origScale == undefined) {
t._dispName = "the Crossbow";
t._origScale = t._xscale;
}
if (t._added == undefined) {
t._added = false;
}
if (_root.overWeapon.getDepth() == t.getDepth()) {
_root.overWeapon = undefined;
}
play();
var _local3;
if (h._mc._xscale < 0) {
_local3 = 1;
t._xscale = t._origScale;
} else {
_local3 = -1;
t._xscale = -t._origScale;
}
if (t._rotation == 0) {
t._x = h._mc._x + ((_local3 * 1.5) * h._origWidth);
if (!h._crouching) {
if (h._curAction._name == "RUN") {
t._y = Math.round(h._mc._y + (h._mc._height / 2)) - (h._origHeight / 2);
} else {
t._y = (h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2);
}
} else {
t._y = h._mc._y;
}
} else if (t._downRot) {
t._x = h._mc._x + (_local3 * h._origWidth);
t._y = ((h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2)) + 20;
} else {
t._x = h._mc._x + (_local3 * h._origWidth);
t._y = ((h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2)) - 20;
}
} else {
if ((((!t._added) && (t.hitTest(h._mc))) && (keyDown(32))) && (h._curWeapon._mc.getDepth() != t.getDepth())) {
var _local6 = new Toast.CWeapon();
_local6._name = _name;
_local6._mc = t;
h._weapons[2] = _local6;
_root.weaponGUI.gotoAndStop(2);
h.SwitchWeapon(2);
_root.weaponGUI.cross._visible = true;
t._added = true;
_root.goClip.play();
_root.level._rightBound = 13167;
}
gotoAndStop (1);
}
}
};
}
Symbol 226 MovieClip [weapon-crossbow] Frame 2
gotoAndPlay (1);
Symbol 226 MovieClip [weapon-crossbow] Frame 12
if (this._rotation != 0) {
gotoAndPlay (19);
}
Symbol 226 MovieClip [weapon-crossbow] Frame 28
gotoAndPlay (1);
Symbol 233 MovieClip [butterBall] Frame 1
#initclip 13
function butterBall() {
}
butterBall.prototype = new MovieClip();
butterBall.prototype.onEnterFrame = function () {
if (!_root._paused) {
if ((_root.hero.GetClip().hitTest(this.butterBallColl) && (!_root.hero._inToaster)) && (!_root.hero._flash)) {
this.removeMovieClip();
_root.hero._hitPoints--;
} else if ((this._x < 0) || (this._x > 550)) {
this._slug._missCount++;
delete this.onEnterFrame;
this.removeMovieClip();
}
this._x = this._x + (this._speed + _root.PlatformManager._xSpeed);
this._y = this._y + _root.PlatformManager._ySpeed;
}
};
Object.registerClass("butterBall", butterBall);
#endinitclip
Instance of Symbol 229 MovieClip [butterBallColl] "butterBallColl" in Symbol 233 MovieClip [butterBall] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 279 MovieClip [butterguts] Frame 1
this._rotation = Math.floor(Math.random() * 360);
Symbol 279 MovieClip [butterguts] Frame 56
stop();
Symbol 299 MovieClip [butterlocalguts] Frame 29
this.removeMovieClip();
this = undefined;
stop();
Symbol 300 MovieClip [jellyGuts] Frame 1
cheese.gotoAndPlay(13);
Symbol 300 MovieClip [jellyGuts] Frame 56
stop();
Symbol 314 MovieClip [Platform] Frame 1
#initclip 14
function Platform() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new CPlatformManager();
_root.PlatformManager._activated = true;
}
_root.PlatformManager.AddPlatform(this);
this._visible = 0;
}
Platform.prototype = new MovieClip();
Platform.prototype.SetAngle = function (ang) {
this._angle = ang;
};
Platform.prototype.GetAngle = function () {
return(this._angle);
};
Object.registerClass("Platform", Platform);
#endinitclip
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 327 MovieClip [level1c] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
var _local3 = {x:this._x, y:0};
this._parent.localToGlobal(_local3);
if (_local3.x < 0) {
this._parent.attachMovie("miniboss placeholder", "mp", 758921, {_x:1069.8, _y:100});
_root.miniHB._visible = true;
_root.bgSound.stop();
_root.bgSound.attachSound("Dry Hump.wav");
_root.bgSound.start(0, 99999);
_root.level._leftBound = 6804;
_root.level._sect[1]._mc._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 318 MovieClip [holeCover] in Symbol 327 MovieClip [level1c] Frame 1
onClipEvent (load) {
_root.holeCover = this;
this._visible = false;
}
Instance of Symbol 320 MovieClip [holeBound] in Symbol 327 MovieClip [level1c] Frame 1
onClipEvent (load) {
this._visible = false;
_root.boss3Right = this;
}
Instance of Symbol 320 MovieClip [holeBound] in Symbol 327 MovieClip [level1c] Frame 1
onClipEvent (load) {
this._visible = false;
_root.boss1Left = this;
}
Instance of Symbol 322 MovieClip [miniHoleCovers] in Symbol 327 MovieClip [level1c] Frame 1
onClipEvent (load) {
_root.miniPlatDisp = this;
}
Instance of Symbol 324 MovieClip [lefthole] in Symbol 327 MovieClip [level1c] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("lefthole", "lefthole", _root.objLevel + 1800);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 326 MovieClip [righthole] in Symbol 327 MovieClip [level1c] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("righthole", "righthole", _root.objLevel + 1800);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 327 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.miniPlat = this;
this._origY = this._y;
}
Symbol 349 MovieClip [butterslug placeholder] Frame 1
#initclip 15
function butterslugPlaceholder() {
this.onEnterFrame = function () {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local3 = new Toast.CButterSlugEntity(_root, "butterslug", "butterslug" + _root.slugCount, _local4.x, _local4.y, 2);
_local3.GetClip().swapDepths(500 + _root.slugCount);
if (this._nextSpawn != undefined) {
_local3._nextSpawn = this._nextSpawn;
}
_local3.SetWidth(_local3.GetClip()._width * 1.8);
_local3.SetHeight(_local3.GetClip()._height * 1.8);
_root.PlatformManager.AddEntity(_local3);
this.swapDepths(0);
this.removeMovieClip();
delete this.onEnterFrame;
};
}
butterslugPlaceholder.prototype = new MovieClip();
Object.registerClass("butterslug placeholder", butterslugPlaceholder);
#endinitclip
Symbol 351 MovieClip [placeholder-chainsaw] Frame 1
#initclip 16
function chainsawPlaceholder() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.weaponCount == undefined) {
_root.weaponCount = 0;
}
_root.weaponCount++;
var _local3 = new Toast.CWeapon(_root, "weapon-chainsaw", "weapon-chainsaw" + _root.weaponCount, _local4.x, _local4.y);
_local3.GetClip().swapDepths(1800 + _root.weaponCount);
_local3._mc._origX = this._x;
_local3._mc._origParent = this._parent;
_local3._mc._origY = this._y;
this.swapDepths(0);
this.removeMovieClip();
}
chainsawPlaceholder.prototype = new MovieClip();
Object.registerClass("placeholder-chainsaw", chainsawPlaceholder);
#endinitclip
Symbol 361 MovieClip [toaster] Frame 1
stop();
Instance of Symbol 314 MovieClip [Platform] in Symbol 361 MovieClip [toaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 361 MovieClip [toaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 361 MovieClip [toaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 362 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 349 MovieClip [butterslug placeholder] in Symbol 362 MovieClip [level1b] Frame 1
onClipEvent (load) {
var co = {x:840, y:320};
this._nextSpawn = new Array();
this._nextSpawn.push({_x:-1, _y:co.y, _off:240});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y, _off:80});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _off:80});
}
Instance of Symbol 349 MovieClip [butterslug placeholder] in Symbol 362 MovieClip [level1b] Frame 1
onClipEvent (load) {
var co = {x:840, y:320};
this._nextSpawn = new Array();
this._nextSpawn.push({_x:1, _y:co.y, _off:80});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y, _off:200});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _off:80});
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 362 MovieClip [level1b] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
var _local3 = {x:this._x, y:0};
this._parent.localToGlobal(_local3);
if (_local3.x < 460) {
_root.ChainsawCutscene.play();
delete this.onEnterFrame;
}
};
}
Instance of Symbol 361 MovieClip [toaster] in Symbol 362 MovieClip [level1b] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
_root.level._sect[2]._mc._visible = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (21 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 362 MovieClip [level1b] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
var _local3 = {x:1975, y:0};
_root.level.localToGlobal(_local3);
if (_local3.x < 0) {
_root.level._leftBound = 1977;
_root.level._rightBound = 4846.1;
_root.level._sect[0]._mc.visible = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
Symbol 386 MovieClip [level1 - contraption button] Frame 1
stop();
Symbol 386 MovieClip [level1 - contraption button] Frame 10
gotoAndStop (11);
Symbol 386 MovieClip [level1 - contraption button] Frame 11
stop();
Symbol 414 MovieClip [level1 - fence] Frame 1
stop();
Instance of Symbol 314 MovieClip [Platform] in Symbol 414 MovieClip [level1 - fence] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 414 MovieClip [level1 - fence] Frame 2
_root.level.fence.done = true;
Symbol 414 MovieClip [level1 - fence] Frame 40
stop();
_root.level._sect[1]._mc._visible = true;
Symbol 421 MovieClip Frame 1
stop();
Instance of Symbol 314 MovieClip [Platform] in Symbol 421 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 421 MovieClip Frame 36
stop();
Symbol 424 MovieClip [level1 - broken bridge2] Frame 1
stop();
Instance of Symbol 314 MovieClip [Platform] in Symbol 424 MovieClip [level1 - broken bridge2] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 424 MovieClip [level1 - broken bridge2] Frame 2
stop();
Symbol 442 MovieClip Frame 6
_parent.gotoAndStop("IDLE");
Symbol 443 MovieClip [jelly] Frame 1
stop();
Symbol 443 MovieClip [jelly] Frame 2
stop();
Symbol 444 MovieClip [level1a] Frame 1
Instance of Symbol 377 MovieClip [level1 - midhouse] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - midhouse", "level1 - midehouse", 1299);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 386 MovieClip [level1 - contraption button] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - contraption button", "level1 - contraption button", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((this.button.hitTest(_root.hero._mc) && (_root.hero._curAction._name == "HEADBUTT")) && (!_root.level.fence.done)) {
this.play();
this._mc.play();
_root.level.fence.play();
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 390 MovieClip [level1 - house post 1] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - house post 1", "level1 - house post 1", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 394 MovieClip [level1 - house post 2] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - house post 2", "level1 - house post 2", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 396 MovieClip [level1 - bridge post 1] "bar" in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - bridge post 1", "level1 - bridge post 1", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(_mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 398 MovieClip [level1 - bridge post 2] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - bridge post 2", "level1 - bridge post 2", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 400 MovieClip [level1 - beware sign] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - beware sign", "level1 - beware sign", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(_mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 414 MovieClip [level1 - fence] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
_root.level.fence = this;
}
Instance of Symbol 361 MovieClip [toaster] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 361 MovieClip [toaster] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 421 MovieClip in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
_root.bridge1Trigger = false;
}
onClipEvent (enterFrame) {
var coord = {x:_x, y:_y};
this._parent.localToGlobal(coord);
if (((_root.hero.GetX() - 20) >= coord.x) && (!_root.bridge1Trigger)) {
_root.bridge1Trigger = true;
this.play();
}
}
Instance of Symbol 424 MovieClip [level1 - broken bridge2] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 444 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 443 MovieClip [jelly] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
var sounds = new Array();
sounds.push("aur");
sounds.push("de");
sounds.push("die");
sounds.push("exc");
sounds.push("hay");
sounds.push("lay");
sounds.push("pfmh");
sounds.push("ppt");
sounds.push("pwr");
sounds.push("tar");
this._sounds = sounds;
this._able = true;
this._conv = false;
this._lastSound = -1;
}
onClipEvent (enterFrame) {
if ((substring(_root.hero._curWeapon._name, 8, 8)) == "crossbow") {
if (this.hitTest(_root.crossbowArrow)) {
_root.crossbowArrow._speed = 0;
_root.crossbowArrow.removeMovieClip();
if (this._able) {
this._able = false;
this.gotoAndStop("HIT");
_root.nguts = _root.attachMovie("jellyGuts", "jellyGuts!", 9075500);
_root.nguts._x = 275 - (_root.nguts._width / 2);
_root.nguts._y = 200 + (_root.nguts._height / 2);
var rand = Math.round(Math.random() * (this._sounds.length - 1));
while (rand == this._lastSound) {
rand = Math.round(Math.random() * (this._sounds.length - 1));
}
this._lastSound = rand;
this._mySound = new Sound();
this._mySound.attachSound(this._sounds[rand]);
this._mySound._off = _root._bgMusic.position;
_root._bgMusic.stop();
this._mySound.start();
this._mySound.onSoundComplete = function () {
_root._bgMusic.start(this._off / 1000);
delete this.onSoundComplete;
};
}
} else {
this._able = true;
}
}
if (this.hitTest(_root.hero._mc) && (!this._conv)) {
this._conv = true;
this._mySound = new Sound();
this._mySound.attachSound("fruit");
this._mySound._off = _root._bgMusic.position;
_root._bgMusic.stop();
this._mySound.start();
this._mySound.onSoundComplete = function () {
_root._bgMusic.start(this._off / 1000);
delete this.onSoundComplete;
};
}
}
Instance of Symbol 349 MovieClip [butterslug placeholder] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
var co = {x:840, y:0};
this._parent.localToGlobal(co);
_root.level.globalToLocal(co);
this._nextSpawn = new Array();
this._nextSpawn.push({_x:-1, _y:co.y, _off:100});
this._nextSpawn.push({_x:-1, _y:co.y});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _final:3900});
}
Instance of Symbol 349 MovieClip [butterslug placeholder] in Symbol 444 MovieClip [level1a] Frame 1
onClipEvent (load) {
var co = {x:840, y:330};
this._nextSpawn = new Array();
this._nextSpawn.push({_x:1, _y:co.y});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y, _off:150});
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _final:1350});
}
Symbol 459 MovieClip Frame 27
_root.boatBatCount++;
delete this._parent.onEnterFrame;
this._parent.removeMovieClip();
delete this._parent._parent;
stop();
Symbol 460 MovieClip [butterbat] Frame 1
if (this.onEnterFrame == undefined) {
var parent = this._parent;
var mgr = parent._manager;
var t = this;
this.onEnterFrame = function () {
if (parent._stacked != undefined) {
if ((((this._x < 0) || (this._y < 0)) || (this._x > 550)) || (this._y > 400)) {
parent._alive = false;
parent.SetAction("DIE");
_root.crossbowArrow._stacked = 0;
_root.crossbowArrow._stackRef = new Array();
this.removeMovieClip();
}
}
if (!_root._paused) {
if (parent._alive == undefined) {
parent._alive = true;
}
if ((mgr._xSpeed != 0) || (mgr._ySpeed != 0)) {
parent._mc._x = parent._mc._x + mgr._xSpeed;
parent._mc._y = parent._mc._y + mgr._ySpeed;
}
if ((((t._counter >= 50) || (t._counter == undefined)) && (Math.abs(_root.hero._xSpeed + mgr._xSpeed) > 0)) || (t._rangeGood == undefined)) {
t._rangeGood = mgr.EntityInRange(parent._id, _root.hero);
t._counter = 0;
}
t._counter++;
if ((parent._curAction._name != "DIE") && (t._rangeGood)) {
parent._alive = true;
t._alpha = 100;
var _local3 = parent._id;
mgr.CheckAgainst(_local3);
if ((!_root.hero._attacking) && (_root.hero._curWeapon._name == "no-weapon")) {
t._able = true;
}
if (_root.hero._curWeapon._name.substr(7, 8) == "chainsaw") {
if ((_root.hero._curWeapon._mc._visible && (t.hitTest(_root.hero._curWeapon._mc))) && (_root.hero._attacking)) {
t._able = false;
parent._hitPoints = 0;
parent.SetAction("DIE");
}
} else if (_root.crossbowArrow.hitTest(this) && (!this._parent._stacked)) {
if (_root.crossbowArrow._stacked == undefined) {
_root.crossbowArrow._stacked = 0;
} else if (_root.crossbowArrow._stacked < 4) {
_root.boatBatCount++;
_root.crossbowArrow._stacked++;
_root.crossbowArrow._stackRef.push(this);
this._parent._stacked = _root.crossbowArrow;
}
}
} else if (parent._curAction._name != "DIE") {
} else {
parent._alive = false;
}
if (t._rangeGood) {
parent.Update();
}
}
};
}
stop();
Symbol 460 MovieClip [butterbat] Frame 2
stop();
Symbol 506 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._hit == undefined) {
this._hit = false;
}
var _local5 = 1;
if (this._parent._xscale > 0) {
_local5 = -1;
}
var _local4 = _root.hero._curWeapon._mc._x - this._parent._x;
if (_root.hero._curWeapon._name == "no-weapon") {
_local4 = _root.hero._mc._x - this._parent._x;
}
if ((this._currentframe <= 18) || (this._currentframe >= 64)) {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if ((_local5 * _local4) > 25) {
if ((this._currentframe >= 18) && (this._currentframe <= 30)) {
if (this._currentframe == 18) {
if (((((_local5 * _local4) > 25) && (this._parent.hitTest(_root.hero._mc))) && (!this.feet.hitTest(_root.hero._mc))) && (!this.head.hitTest(_root.hero._mc))) {
if ((!this._hit) && (!_root.hero._flash)) {
_root.inButter = _root.attachMovie("in butter", "ib", 2566, {_x:_root.hero.GetX(), _y:_root.hero.GetY()});
_root.hero._mc._visible = false;
_root.hero._curWeapon._mc._visible = false;
_root.inButter.onEnterFrame = function () {
this._x = this._x + _root.PlatformManager._xSpeed;
this._y = this._y + _root.PlatformManager._ySpeed;
_root.hero.SetX(this._x);
_root.hero.SetY(this._y);
if (this._counter == undefined) {
this._counter = 0;
}
this._counter++;
if (this._counter < 8) {
if ((this._counter % 2) == 0) {
var _local4 = 50;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 255 * _local7;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
if (_root.hero._mc._visible) {
_root.inButter = undefined;
this.removeMovieClip();
this._counter = 0;
delete eval (this.onEnterFrame());
}
};
_root.hero._hitPoints--;
this._hit = true;
}
} else {
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
}
}
} else {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if (this._parent._parent._beingChainsawed) {
this.gotoAndPlay("CHAIN");
}
};
Symbol 506 MovieClip Frame 18
this._parent._parent._canChainsaw = true;
Symbol 506 MovieClip Frame 50
this._parent._parent._canChainsaw = false;
Symbol 506 MovieClip Frame 101
this._parent._parent.SetActionDone("FALL");
Symbol 506 MovieClip Frame 108
if (!this._parent._parent._beingChainsawed) {
gotoAndPlay ("START");
this._parent._parent._canChainsaw = false;
} else {
gotoAndPlay ("CHAIN");
}
Symbol 520 MovieClip Frame 52
this._parent._parent.SetActionDone("GETUP");
Symbol 545 MovieClip Frame 93
this._parent._parent.SetActionDone("JUMPIN");
Symbol 556 MovieClip Frame 29
this._parent._parent.SetActionDone("JUMPOUT");
Symbol 567 MovieClip Frame 1
this._parent._parent._speed = 0;
Symbol 567 MovieClip Frame 9
this._parent._parent._speed = 6;
Symbol 567 MovieClip Frame 19
this._parent._parent._speed = 0;
Symbol 572 MovieClip Frame 6
this._parent._parent.SetActionDone("HITUP");
Symbol 577 MovieClip Frame 6
this._parent._parent.SetActionDone("HITDOWN");
Symbol 597 MovieClip Frame 7
if (this._parent.hitTest(_root.hero._curWeapon._mc)) {
gotoAndPlay (1);
} else {
this._parent._parent._canChainsaw = false;
}
Symbol 597 MovieClip Frame 58
this._parent._parent.SetActionDone("GETUP");
Symbol 614 MovieClip Frame 92
_root.goClip.play();
_root.level._rightBound = 16000;
_root.bgSound.stop();
_root.bgSound.attachSound("GaymTheme");
_root.bgSound.start(0, 99999);
_root.level._sect[3]._mc._visible = true;
delete this._parent.onEnterFrame;
this._parent.removeMovieClip();
this._parent._parent._alive = false;
delete this._parent._parent;
stop();
Symbol 638 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._hit == undefined) {
this._hit = false;
}
var _local7 = 1;
if (this._parent._xscale > 0) {
_local7 = -1;
}
if ((this._currentframe <= 18) || (this._currentframe >= 38)) {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if ((this._currentframe >= 19) && (this._currentframe <= 37)) {
if (this._parent.hitTest(_root.hero._mc)) {
if ((!this._hit) && (!_root.hero._flash)) {
_root.inButter = _root.attachMovie("in butter", "ib", 2566, {_x:_root.hero.GetX(), _y:_root.hero.GetY()});
_root.hero._mc._visible = false;
_root.hero._curWeapon._mc._visible = false;
_root.inButter.onEnterFrame = function () {
this._x = this._x + _root.PlatformManager._xSpeed;
this._y = this._y + _root.PlatformManager._ySpeed;
_root.hero.SetX(this._x);
_root.hero.SetY(this._y);
if (this._counter == undefined) {
this._counter = 0;
}
this._counter++;
if (this._counter < 8) {
if ((this._counter % 2) == 0) {
var _local4 = 50;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 255 * _local7;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
if (_root.hero._mc._visible) {
_root.inButter = undefined;
this.removeMovieClip();
this._counter = 0;
delete eval (this.onEnterFrame());
}
};
_root.hero._hitPoints--;
this._hit = true;
}
} else {
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
} else {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
};
Symbol 638 MovieClip Frame 47
this._parent._parent.SetActionDone("JUMP");
Symbol 639 MovieClip [miniboss] Frame 1
if (this.onEnterFrame == undefined) {
var parent = this._parent;
var mgr = parent._manager;
var t = this;
this.onEnterFrame = function () {
if (!_root._paused) {
if ((_root.inButter != undefined) && (!this.hitTest(_root.hero._mc))) {
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if (parent._alive == undefined) {
parent._alive = true;
}
if ((mgr._xSpeed != 0) || (mgr._ySpeed != 0)) {
parent._mc._x = parent._mc._x + mgr._xSpeed;
parent._mc._y = parent._mc._y + mgr._ySpeed;
}
var _local4 = this._y;
if ((!parent._jumping) && (parent._hLink != undefined)) {
parent._applyGravity = false;
var _local3 = {x:parent._hLink._x, y:parent._hLink._y};
parent._hLink._parent.localToGlobal(_local3);
this._parent.globalToLocal(_local3);
var _local11 = this._x - (this._width / 2);
var _local10 = this._x + (this._width / 2);
var _local8 = _local3.x - (parent._hLink._width / 2);
var _local7 = _local3.x + (parent._hLink._width / 2);
if ((_local11 < _local8) || (_local10 > _local7)) {
parent._hLink = undefined;
parent._applyGravity = true;
}
parent._gravityCount = 0;
_local4 = _local3.y - 118;
} else if (parent._hLink == undefined) {
parent_applyGravity = true;
}
parent._mc._y = _local4;
if ((((t._counter >= 50) || (t._counter == undefined)) && (Math.abs(_root.hero._xSpeed + mgr._xSpeed) > 0)) || (t._rangeGood == undefined)) {
t._rangeGood = mgr.EntityInRange(parent._id, _root.hero);
t._counter = 0;
}
t._counter++;
if ((parent._curAction._name != "DIE") && (t._rangeGood)) {
parent._alive = true;
var _local9 = parent._id;
mgr.CheckAgainst(_local9);
if (!_root.hero._attacking) {
this._able = true;
}
if ((((parent._curAction._name == "FALL") || (parent._curAction._name == "ALMOSTDEAD")) && (parent._canChainsaw)) && (_root.hero._curWeapon._name.substr(0, 15) == "weapon-chainsaw")) {
var _local6 = 1;
if (this._xscale > 0) {
_local6 = -1;
}
var _local5 = _root.hero._curWeapon._mc._x - t._x;
if (_root.hero._curWeapon._name == "no-weapon") {
_local5 = _root.hero._mc._x - t._x;
}
if ((((((_local6 * _local5) > 0) && (_root.hero._curWeapon._mc._visible)) && (this._able)) && (t.hitTest(_root.hero._curWeapon._mc))) && (_root.hero._attacking)) {
this._able = false;
parent._hitPoints--;
parent._localGuts = _root.attachMovie("butterlocalguts", "localguts" + this._name, 1100 + t.getDepth(), {_x:_root.hero._mc._x + 10, _y:_root.hero._curWeapon._mc._y - 10});
parent._beingChainsawed = true;
} else {
parent._beingChainsawed = false;
}
} else {
if ((((parent._curAction._name == "FALL") && (this.hitTest(_root.hero._mc))) && (this._able)) && (_root.hero._curAction._name == "HEADBUTT")) {
parent._hitPoints = parent._hitPoints - 0.1;
_fallCount = _maxFall;
this._able = false;
}
parent._beingChainsawed = false;
}
} else if (parent._curAction._name != "DIE") {
} else {
parent._alive = false;
}
if (t._rangeGood) {
parent.Update();
}
}
};
}
stop();
Symbol 639 MovieClip [miniboss] Frame 2
stop();
Symbol 639 MovieClip [miniboss] Frame 3
stop();
Symbol 639 MovieClip [miniboss] Frame 4
stop();
Symbol 639 MovieClip [miniboss] Frame 5
stop();
Symbol 639 MovieClip [miniboss] Frame 6
stop();
Symbol 639 MovieClip [miniboss] Frame 7
stop();
Symbol 639 MovieClip [miniboss] Frame 8
stop();
Symbol 639 MovieClip [miniboss] Frame 9
stop();
Symbol 639 MovieClip [miniboss] Frame 10
stop();
Symbol 639 MovieClip [miniboss] Frame 11
stop();
Symbol 639 MovieClip [miniboss] Frame 12
stop();
Symbol 641 MovieClip [miniboss placeholder] Frame 1
#initclip 17
function minibossPlaceholder() {
this.onEnterFrame = function () {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local3 = new Toast.CMiniBossEntity(_root, "miniboss", "miniboss" + _root.slugCount, _local4.x, _local4.y, 6);
_local3.GetClip().swapDepths(500 + _root.slugCount);
_local3.SetWidth(_local3.GetClip()._width * 2);
_local3.SetHeight(_local3.GetClip()._height * 2);
_root.PlatformManager.AddEntity(_local3);
this.swapDepths(0);
this.removeMovieClip();
delete this.onEnterFrame;
};
}
minibossPlaceholder.prototype = new MovieClip();
Object.registerClass("miniboss placeholder", minibossPlaceholder);
#endinitclip
Instance of Symbol 666 MovieClip [firehitter] in Symbol 690 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crossbowArrow) && ((!_root.nest._do) || (_root.nest._do == undefined))) {
_root.nest._do;
_root._flame = _root.attachMovie("arrow fire", "arrow fire", _root.crossbowArrow.getDepth() + 15);
_root._flame.onEnterFrame = function () {
if (((((this._x > 550) || (this._x < 0)) || (this._y < 0)) || (this._y > 400)) || (_root.crossbowArrow._x == undefined)) {
this.removeMovieClip();
}
this._x = _root.crossbowArrow._x + (_root.crossbowArrow._width / 2);
this._y = _root.crossbowArrow._y - (_root.crossbowArrow._height / 2);
};
}
}
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 61
_root.goClip.play();
_root.level._rightBound = 20000;
Symbol 726 MovieClip Frame 85
stop();
Instance of Symbol 692 MovieClip [shine] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("shine", "shine", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
this._mc._alpha = 85;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 694 MovieClip [beginning of cave] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("beginning of cave", "beginning of cave", _root.objLevel + 6000);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 696 MovieClip [shine2] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("shine2", "shine2", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
this._mc._alpha = 85;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._visible = false;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 698 MovieClip [endofcave] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("endofcave", "endofcave", _root.objLevel + 6000);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 726 MovieClip in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
_root.canSwarm = false;
this.swarmCount = 0;
this.swarm = undefined;
_root.nest = this;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._flame)) {
this.play();
}
if (_root.canSwarm) {
this.swarmCount++;
if (this.swarm == undefined) {
_root.swarmWarn._visible = false;
this.swarmHit = false;
} else {
this.swarm._x = this.swarm._x - 12;
if (this.swarm.hitTest(_root.hero._mc) && (!this.swarmHit)) {
this.swarmHit = true;
_root.hero._hitPoints = _root.hero._hitPoints - 1.5;
}
if (this.swarm._x < 0) {
this.swarm.removeMovieClip();
this.swarm = undefined;
}
}
var startX = 18060;
if (this.swarmCount >= 20) {
_root.swarmWarn._visible = false;
}
if (this.swarmCount >= 30) {
this.swarmCount = 0;
this.swarm = _root.level.attachMovie("batSwarm", "batSwarm", 999169, {_x:startX, _y:1120});
}
} else {
this.swarm._x = this.swarm._x - 12;
if (this.swarm.hitTest(_root.hero._mc) && (!this.swarmHit)) {
this.swarmHit = true;
_root.hero._hitPoints = _root.hero._hitPoints - 1.5;
}
if (this.swarm._x < 0) {
this.swarm.removeMovieClip();
this.swarm = undefined;
}
_root.swarmWarn._visible = false;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 732 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 732 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 732 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 732 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 732 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
var _local3 = {x:15300, y:0};
_root.level.localToGlobal(_local3);
if (_local3.x < 0) {
_root.bgSound.stop();
_root.bgSound.attachSound("BuckFuddy Loop");
_root.bgSound.start(0, 99999);
_root.caveDone = true;
_root.level._leftBound = 15300;
_root.level._rightBound = 17850;
_root._canControl = true;
_root.caveCutscene.gotoAndStop(1);
_root.caveCutscene._visible = false;
delete this.onEnterFrame;
}
}
};
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
this._set = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc) && (!this._set)) {
_root.canSwarm = true;
this._set = true;
}
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.canSwarm = false;
}
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
_root._canControl = true;
this.onEnterFrame = function () {
if (this._parent._visible) {
if (this.hitTest(_root.hero._mc) && (!_root.level._sect[5]._visible)) {
_root._canControl = false;
_root.hero._mc._xscale = -Math.abs(_root.hero._mc._xscale);
_root.caveCutscene.play();
_root.level._sect[5]._mc._visible = true;
}
if (((!_root._canControl) && (_root.caveDone2 == undefined)) && (_root.hero._curAction._name != "DIE")) {
_root.hero.SetAction("RUN");
_root.level._x = _root.level._x - (_root.hero._speed * 3);
}
if (_root.caveDone2) {
_root.level._sect[4]._mc._visible = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
Instance of Symbol 730 MovieClip in Symbol 732 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
_root.sorry = this;
}
Instance of Symbol 451 MovieClip in Symbol 733 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
Instance of Symbol 451 MovieClip in Symbol 733 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
Instance of Symbol 451 MovieClip in Symbol 733 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
Instance of Symbol 451 MovieClip in Symbol 733 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
Instance of Symbol 451 MovieClip in Symbol 733 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
Instance of Symbol 451 MovieClip in Symbol 733 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
Instance of Symbol 451 MovieClip in Symbol 733 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 763 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 763 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 763 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 763 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 763 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 763 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 763 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Symbol 771 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 2
stop();
Instance of Symbol 771 MovieClip in Symbol 772 MovieClip [middleisland] Frame 1
onClipEvent (load) {
this._down = 200;
this._downCount = 0;
}
onClipEvent (enterFrame) {
if ((this._downCount == 0) && (_root.hero._curAction._name == "HEADBUTT")) {
if (this.hitTest(_root.hero._mc)) {
this._downCount++;
this.gotoAndStop(2);
_root.metalWall.gotoAndStop(2);
_root.metalLeft._x = -100000000;
_root.metalRight._x = -100000000;
}
}
if (this._downCount > 0) {
this._downCount++;
}
if ((this._downCount >= this._down) && (!_root.metalWall.hitTest(_root.hero._mc))) {
this._downCount = 0;
this.gotoAndStop(1);
_root.metalWall.play();
_root.metalLeft._x = _root.metalLeft._origX;
_root.metalRight._x = _root.metalRight._origX;
}
}
Symbol 780 MovieClip [metal wall] Frame 1
stop();
Symbol 780 MovieClip [metal wall] Frame 2
stop();
Instance of Symbol 776 MovieClip [metalWallCheck] in Symbol 780 MovieClip [metal wall] Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 784 MovieClip [placeholder-crossbow] Frame 1
#initclip 18
function crossbowPlaceholder() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.weaponCount == undefined) {
_root.weaponCount = 0;
}
_root.weaponCount++;
var _local3 = new Toast.CWeapon(_root, "weapon-crossbow", "weapon-crossbow" + _root.weaponCount, _local4.x, _local4.y);
_local3.GetClip().swapDepths(1800 + _root.weaponCount);
_local3._mc._origX = this._x;
_local3._mc._origParent = this._parent;
_local3._mc._origY = this._y;
this.swapDepths(0);
this.removeMovieClip();
}
crossbowPlaceholder.prototype = new MovieClip();
Object.registerClass("placeholder-crossbow", crossbowPlaceholder);
#endinitclip
Symbol 786 MovieClip [butterbat placeholder] Frame 1
#initclip 19
function butterbatPlaceholder() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local3 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local3);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local4 = new Toast.CButterBatEntity(_root, "butterbat", "butterbat" + _root.slugCount, _local3.x, _local3.y, 2);
_local4.GetClip().swapDepths(500 + _root.slugCount);
_root.PlatformManager.AddEntity(_local4);
this.swapDepths(0);
this.removeMovieClip();
}
butterbatPlaceholder.prototype = new MovieClip();
Object.registerClass("butterbat placeholder", butterbatPlaceholder);
#endinitclip
Instance of Symbol 763 MovieClip [boattoaster] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (enterFrame) {
var co = {x:_parent.toast._mc._x, y:0};
_parent.globalToLocal(co);
this._x = co.x;
if ((_root.boatBatCount > 4) && (this._done == undefined)) {
_root.level._rightBound = 15025;
_root.goClip.play();
this._done = true;
}
}
Instance of Symbol 765 MovieClip [cavedepth] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("cavedepth", "cavedepth", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 780 MovieClip [metal wall] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
_root.metalWall = this;
}
Instance of Symbol 314 MovieClip [Platform] "metalLeft" in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.metalLeft = this;
_root.metalLeft._origX = this._x;
}
Instance of Symbol 314 MovieClip [Platform] "metalRight" in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.metalRight = this;
_root.metalRight._origX = this._x;
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
if (this.hitTest(_root.hero._mc)) {
_root.camTop = 180;
_root.camBottom = 220;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc)) {
_root.camTop = 260;
_root.camBottom = 300;
_root.level._rightBound = 11741;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
var _local3 = {x:this._x, y:0};
this._parent.localToGlobal(_local3);
if (_local3.x < 0) {
_root.level._leftBound = 10270;
this.removeMovieClip();
delete this.onEnterFrame;
}
}
};
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
_root._canControl = true;
this.onEnterFrame = function () {
if (this._parent._visible) {
if (this.hitTest(_root.hero._mc) && (!_root.level._sect[4]._visible)) {
_root._canControl = false;
_root.hero._mc._xscale = -Math.abs(_root.hero._mc._xscale);
_root.caveCutscene.play();
_root.level._sect[4]._mc._visible = true;
}
if (((!_root._canControl) && (_root.caveDone == undefined)) && (_root.hero._curAction._name != "DIE")) {
_root.hero.SetAction("RUN");
_root.level._x = _root.level._x - (_root.hero._speed * 2);
}
if (_root.caveDone) {
_root.level._sect[3]._mc._visible = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
Instance of Symbol 361 MovieClip [toaster] "toast" in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this._mc.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this._mc.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (!this._inside) {
_root.boatPlat._x = -100000;
}
if (this._inside) {
_root.boatPlat._x = _root.boatPlat._origX;
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
if (_root.hero._curAction._name != "RUN") {
}
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if (this._inside) {
var coord = {x:_root.hero._mc._x, y:0};
this._mc._x = coord.x;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
if (this._inside == false) {
_mc._x = _mc._x + _root.PlatformManager._xSpeed;
}
_mc._y = _mc._y + _root.PlatformManager._ySpeed;
}
}
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc)) {
_root.camTop = 260;
_root.camBottom = 320;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 789 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.boatPlat = this;
_root.boatPlat._origX = this._x;
}
Instance of Symbol 788 MovieClip [swimCheck] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
_root.swimCheck1 = this;
}
Instance of Symbol 788 MovieClip [swimCheck] in Symbol 789 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
_root.swimCheck2 = this;
}
Symbol 814 MovieClip Frame 1
stop();
Instance of Symbol 806 MovieClip in Symbol 814 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crossbowArrow)) {
this._parent.play();
_root.goClip.play();
_root.level._rightBound = 22000;
_root.level._sect[6]._mc._visible = true;
}
}
Symbol 814 MovieClip Frame 20
stop();
Instance of Symbol 816 MovieClip [infrontwall] in Symbol 821 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("infrontwall", "infrontwall", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 818 MovieClip [cavebackdepth] in Symbol 821 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("cavebackdepth", "cavebackdepth", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 820 MovieClip [close colum] in Symbol 821 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("close colum", "close colum", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 361 MovieClip [toaster] in Symbol 821 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 821 MovieClip [level1f] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
var _local3 = {x:18000, y:0};
_root.level.localToGlobal(_local3);
if (_local3.x < 0) {
_root.bgSound.stop();
_root.bgSound.attachSound("GaymTheme");
_root.bgSound.start(0, 99999);
_root.caveDone2 = true;
_root.level._leftBound = 18050;
_root.level._rightBound = 20540;
_root._canControl = true;
_root.caveCutscene.gotoAndStop(1);
_root.caveCutscene._visible = false;
delete this.onEnterFrame;
}
}
};
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 821 MovieClip [level1f] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 821 MovieClip [level1f] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 821 MovieClip [level1f] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 832 MovieClip [boss holder] Frame 1
#initclip 20
function bossPlaceholder() {
this.onEnterFrame = function () {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local3 = new Toast.CBossEntity(_root, "boss", "boss" + _root.slugCount, _local4.x, _local4.y, 6);
_local3.GetClip().swapDepths(500 + _root.slugCount);
_local3.SetWidth(_local3.GetClip()._width * 2);
_local3.SetHeight(_local3.GetClip()._height * 2);
_root.PlatformManager.AddEntity(_local3);
this.swapDepths(0);
this.removeMovieClip();
delete this.onEnterFrame;
};
}
bossPlaceholder.prototype = new MovieClip();
Object.registerClass("boss holder", bossPlaceholder);
#endinitclip
Instance of Symbol 829 MovieClip [hole overlay] in Symbol 835 MovieClip [level1g] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("hole overlay", "hole overlay", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 316 MovieClip [cutscene trigger] in Symbol 835 MovieClip [level1g] Frame 1
onClipEvent (load) {
this._visible = false;
this._done = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc) && (!this._done)) {
_root.bgSound.stop();
_root.bgSound.attachSound("Wert Loop");
_root.bgSound.start(0, 99999);
this.removeMovieClip();
this._done = true;
}
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 835 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 835 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 835 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 835 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 835 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 314 MovieClip [Platform] in Symbol 835 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 845 MovieClip Frame 25
this._parent._parent.SetActionDone("IDLE");
Symbol 854 MovieClip Frame 32
this._parent._parent.SetActionDone("FLIP");
Symbol 861 MovieClip Frame 32
this._parent._parent.SetActionDone("FLIPBACK");
Symbol 867 MovieClip Frame 8
this._parent._parent.SetActionDone("HIT");
Instance of Symbol 879 MovieClip in Symbol 927 MovieClip Frame 21
onClipEvent (load) {
this._visible = false;
this._done = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
if (!this._done) {
this._done = true;
_root.hero._hitPoints--;
}
} else {
this._done = false;
}
}
Symbol 927 MovieClip Frame 62
this._parent._parent.SetActionDone("LAZER");
Symbol 939 MovieClip Frame 43
this._parent._parent.SetActionDone("MELEE");
Symbol 951 MovieClip Frame 43
this._parent._parent.SetActionDone("SHOOT");
Symbol 952 MovieClip [boss] Frame 1
if (this.onEnterFrame == undefined) {
this.onEnterFrame = function () {
if (!_root.hero._attacking) {
this._able = true;
}
if (this._hit == undefined) {
this._hit = false;
}
if (this._counter == undefined) {
this._counter = 0;
}
this._counter++;
if (this._counter >= 100) {
this._counter = 0;
parent.SetAction("LAZER");
}
if ((((_root.hero._curWeapon._mc._visible && (_root.hero._curWeapon._name.substr(7, 8) == "chainsaw")) && (this._able)) && (t.hitTest(_root.hero._curWeapon._mc))) && (_root.hero._attacking)) {
this._able = false;
parent._hitPoints--;
this._counter = 0;
parent.SetAction("MELEE");
parent._localGuts = _root.attachMovie("butterlocalguts", "localguts" + this._name, 1100 + t.getDepth(), {_x:_root.hero._mc._x + 10, _y:_root.hero._curWeapon._mc._y - 10});
}
if (_root.hero._mc.hitTest(this) && (parent._curAction._name == "MELEE")) {
if (!this._hit) {
this._hit = true;
_root.hero._hitPoints--;
}
} else {
this._hit = false;
}
if (this.hitTest(_root.crossbowArrow)) {
parent._hitPoints--;
_root.crossbowArrow.removeMovieClip();
}
};
}
stop();
Symbol 952 MovieClip [boss] Frame 2
stop();
Symbol 952 MovieClip [boss] Frame 3
stop();
Symbol 952 MovieClip [boss] Frame 4
stop();
Symbol 952 MovieClip [boss] Frame 5
stop();
Symbol 952 MovieClip [boss] Frame 6
stop();
Symbol 952 MovieClip [boss] Frame 7
stop();
Symbol 952 MovieClip [boss] Frame 8
stop();
Symbol 977 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 986 Button
on (release) {
getURL ("http://www.commonstudios.com", "blank");
}
Symbol 996 Button
on (release) {
getURL ("http://www.commonstudios.com", "blank");
}
Symbol 998 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1001 Button
on (release) {
var s = new Sound();
s.stop("High Liter.wav");
s.attachSound("chowChowButton");
s.start();
s.onSoundComplete = function () {
delete this.onSoundComplete;
_root.gotoAndPlay("BOARD");
};
}
Symbol 1003 Button
on (release) {
_root.gotoAndStop("INSTRUCTIONS");
}
Symbol 1005 Button
on (release) {
gotoAndStop ("CREDITS");
}
Symbol 1013 Button
on (release) {
_root.gotoAndStop("NEWMAIN");
}
Symbol 1029 MovieClip Frame 54
stop();
Symbol 1032 Button
on (release) {
_root.gotoAndPlay("GAME");
}
Symbol 1070 MovieClip Frame 821
_root.gotoAndPlay("GAME");
Instance of Symbol 1069 MovieClip in Symbol 1070 MovieClip Frame 821
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
_root.gotoAndPlay("GAME");
}
Symbol 1071 MovieClip [Level] Frame 1
#initclip 22
function Level() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local3 = new Array();
_local3.push({id:"level1a", x:-207.7, y:148.1, w:2230.8, h:906});
_local3.push({id:"level1b", x:1969.8, y:215.7, w:4107.1, h:1469.1});
_local3.push({id:"level1c", x:6046.9, y:334.1, w:2012.5, h:1136});
_local3.push({id:"level1d", x:8034.2, y:436.1, w:2012.5, h:1136});
_local3.push({id:"level1e", x:15138, y:800, w:2012.5, h:1136});
_local3.push({id:"level1f", x:18000, y:800, w:2012.5, h:1136});
_local3.push({id:"level1g", x:20450, y:335, w:2012.5, h:1136});
this._sect = _local3;
this._sect[0]._mc = this.attachMovie(_local3[0].id, _local3[0].id, 9, {_x:_local3[0].x, _y:_local3[0].y});
this._sect[1]._mc = this.attachMovie(_local3[1].id, _local3[1].id, 10, {_x:_local3[1].x, _y:_local3[1].y, _visible:false});
this._sect[2]._mc = this.attachMovie(_local3[2].id, _local3[2].id, 11, {_x:_local3[2].x, _y:_local3[2].y, _visible:false});
this._sect[3]._mc = this.attachMovie(_local3[3].id, _local3[3].id, 15, {_x:_local3[3].x, _y:_local3[3].y, _visible:false});
this._sect[4]._mc = this.attachMovie(_local3[4].id, _local3[4].id, 19000, {_x:_local3[4].x, _y:_local3[4].y, _visible:false});
this._sect[5]._mc = this.attachMovie(_local3[5].id, _local3[5].id, 19001, {_x:_local3[5].x, _y:_local3[5].y, _visible:false});
this._sect[6]._mc = this.attachMovie(_local3[6].id, _local3[6].id, 18999, {_x:_local3[6].x, _y:_local3[6].y, _visible:false});
_root.PlatformManager.SetLevel(this);
}
Level.prototype = new MovieClip();
Object.registerClass("Level", Level);
#endinitclip
_root.objectDepths = 0;
Symbol 1084 MovieClip Frame 1
stop();
Symbol 1084 MovieClip Frame 2
stop();
Symbol 1086 MovieClip Frame 1
stop();
Symbol 1086 MovieClip Frame 2
stop();
Symbol 1097 MovieClip Frame 1
stop();
Instance of Symbol 1084 MovieClip "chain" in Symbol 1097 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1086 MovieClip "cross" in Symbol 1097 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1097 MovieClip Frame 2
stop();
Symbol 1097 MovieClip Frame 3
stop();
Symbol 1103 Button
on (release) {
_root._dispDebugText = !_root._dispDebugText;
}
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1110 MovieClip [BoostMeter] Frame 1
stop();
Symbol 1112 MovieClip Frame 1
this.sound = new Sound(this);
this.sound.attachSound("gosound");
this.sound.setVolume(_root.fxVolume);
stop();
Symbol 1112 MovieClip Frame 8
this.sound.start();
Symbol 1112 MovieClip Frame 29
this.sound.start();
Symbol 1112 MovieClip Frame 50
this.sound.start();
Symbol 1112 MovieClip Frame 71
this.sound.start();
Symbol 1114 MovieClip Frame 1
this.sound = new Sound(this);
this.sound.attachSound("backsound");
this.sound.setVolume(_root.fxVolume);
stop();
Symbol 1114 MovieClip Frame 12
this.sound.start();
Symbol 1116 Button
on (press) {
if (_root.bgSound.getVolume() >= _root.bgVolume) {
_root.bgSound.setVolume(0);
} else {
_root.bgSound.setVolume(_root.bgVolume);
}
}
Symbol 1128 MovieClip [swarmUp] Frame 1
stop();
Symbol 1142 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1148 Button
on (release) {
_root._paused = false;
this._visible = false;
this.gotoAndStop(1);
_root.PlatformManager._xSpeed = _root.PlatformManager._pauseXSpeed;
_root.PlatformManager._ySpeed = _root.PlatformManager._pauseYSpeed;
_root.hero._xSpeed = _root.hero._pauseXSpeed;
_root.hero._ySpeed = _root.hero._pauseYSpeed;
_root._unpauseBlocked = false;
}
Symbol 1150 Button
on (release) {
_root.fxVolume = 30;
}
Symbol 1152 Button
on (release) {
_root.fxVolume = 0;
}
Symbol 1154 Button
on (release) {
_root._quality = "high";
}
Symbol 1157 Button
on (release) {
_root._quality = "medium";
}
Symbol 1159 Button
on (release) {
_root._quality = "low";
}
Symbol 1160 Button
on (release) {
_root.bgSound.setVolume(_root.bgVolume);
}
Symbol 1161 Button
on (release) {
_root.bgSound.setVolume(0);
}
Symbol 1165 MovieClip [PauseNotice] Frame 52
stop();
Symbol 1166 Button
on (release) {
_root.gotoAndStop("Menu", "NEWMAIN");
this._visible = false;
_root.PauseNotice._visible = false;
}
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1169 MovieClip Frame 125
stop();
Symbol 1186 MovieClip [cutscene - chainsaw] Frame 1
this._visible = false;
stop();
Symbol 1186 MovieClip [cutscene - chainsaw] Frame 2
this._visible = true;
_root._paused = true;
_root._cutscene = true;
_root.bgSound.setVolume(_root.bgVolume / 4);
Symbol 1186 MovieClip [cutscene - chainsaw] Frame 126
this._visible = false;
_root._paused = false;
_root._cutscene = false;
_root.bgSound.setVolume(_root.bgVolume);
Symbol 1187 MovieClip [caveCutscene] Frame 1
stop();
Symbol 1187 MovieClip [caveCutscene] Frame 2
this._visible = true;
Symbol 1187 MovieClip [caveCutscene] Frame 100
stop();
Symbol 1194 MovieClip Frame 1
stop();
Symbol 1194 MovieClip Frame 2
this._visible = true;
Symbol 1194 MovieClip Frame 154
stop();