Frame 1
function makepercent(n, min, max) {
return(Math.floor(((n - min) / (max - min)) * 100));
}
contextmenu = new ContextMenu();
contextmenu.hideBuiltInItems();
_root.menu = contextmenu;
var loadin = 1;
this.onEnterFrame = function () {
if (loadin) {
var _local2 = makepercent(_root.getBytesLoaded(), 0, _root.getBytesTotal());
_root.percent.text = _local2 + "%";
if (_local2 == 100) {
loadin = 0;
_root.titleanim.play();
}
}
};
this.stop();
Frame 2
this.prevFrame();
Frame 9
function controls() {
var _local2 = 0;
while (_local2 < inputs.length) {
var _local1 = inputs[_local2];
var _local3 = Key.isDown(_local1.kcode);
if (_local3 && (!clicks[_local1.tag])) {
clicks[_local1.tag] = 1;
} else if (!_local3) {
clicks[_local1.tag] = 0;
}
_local2++;
}
}
function doorchecks(id) {
var _local7 = _root.world;
var _local2 = chars[id];
var _local10 = "enter";
var _local6 = _root["doors_" + _local2.r];
var _local4 = 0;
while (_local4 < _local6.length) {
var _local5 = _local7[(_local2.r + "_door_") + _local6[_local4]];
if ((id != gamep.pid) && (_local2.l != "npc_teacher")) {
var _local3 = _local5.getBounds(_local7);
if (((_local2.x - 20) > _local3.xMin) && ((_local2.x + 20) < _local3.xMax)) {
_local2.dooron = _local6[_local4];
return(undefined);
}
} else {
var _local3 = {x:_local5[_local10]._x, y:0};
_local5.localToGlobal(_local3);
_local7.globalToLocal(_local3);
_local3 = _local3.x;
if (((_local2.x - 30) < _local3) && ((_local2.x + 30) > _local3)) {
_local2.dooron = _local6[_local4];
return(undefined);
}
}
_local4++;
}
_local2.dooron = "";
}
function setdoor(nam) {
var _local2 = nam.split("_");
var _local3 = _root.world;
_local3[nam].mc.gotoAndStop(roomcolors[_local2[2]]);
}
function dooropencheck(dub) {
var _local1 = dub._currentframe;
if ((_local1 == 1) || (_local1 > 15)) {
return(0);
}
return(1);
}
function animdoor(nam, clos, nosnd) {
var _local9 = Number(nam.substr(1));
var _local2 = chars[_local9];
var _local3 = ((_local2.dooron == "") ? (_local2.lastdoor) : (_local2.dooron));
if (clos) {
var _local10 = _local2.dontshut;
_local2.dontshut = 0;
}
if (clos) {
var _local8 = (((_local2.r == "hall1") || (_local2.r == "hall2")) ? (gamep[(_local2.r + "_") + _local3]) : (gamep[(_local3 + "_") + _local2.r]));
if ((_local8 == 0) || ((_local8 == 1) && (_local2.w))) {
} else {
return(undefined);
}
}
var _local4 = _root.world[(_local2.r + "_door_") + _local3];
var _local7 = _root.world[(_local3 + "_door_") + _local2.r];
var _local5 = dooropencheck(_local4);
if ((clos && (_local5)) && (!_local10)) {
_local4.gotoAndPlay("open");
_local7.gotoAndPlay("open");
if ((_local2.r == gamep.frame) || (_local2.lastdoor == gamep.frame)) {
snd_play("door_close");
}
} else if ((!clos) && (!_local5)) {
_local4.gotoAndPlay(1);
_local7.gotoAndPlay(1);
if ((!nosnd) && ((_local2.r == gamep.frame) || (_local2.lastdoor == gamep.frame))) {
snd_play("door_open");
}
}
}
function doorbubbles() {
var _local5 = _root.world.other;
var _local2 = 0;
while (_local2 < mainroom.length) {
var _local4 = _root["doors_" + mainroom[_local2]];
var _local3 = 0;
while (_local3 < _local4.length) {
if ((mainroom[_local2] == "hall1") || (mainroom[_local2] == "hall2")) {
gamep[(mainroom[_local2] + "_") + _local4[_local3]] = 0;
}
_local3++;
}
_local2++;
}
}
function shouldstop(nam) {
var _local2 = _root.world;
if ((gamep.mod != "guncontrol") && (nam == "pickup_breakdoor2")) {
_local2.pickup_breakdoor2.stop();
} else if ((gamep.mod == "guncontrol") && (nam == "pickup_breakdoor")) {
_local2.pickup_breakdoor.stop();
}
}
function doorkicked() {
var _local3 = chars[gamep.pid];
var _local2 = _root.world[(_local3.r + "_door_") + _local3.dooron];
if (_local2.knocks == -1) {
return(undefined);
}
if (_local2.knocks > 0) {
var _local4 = gamep[_local3.dooron + "rule"];
if (_local4 == -1) {
_local2.knocks = 0;
} else {
_local2.knocks--;
var _local5 = chars[_local4];
doortext(_local5, _local2);
if (gamep.doornote) {
if (_local2.knocks == 0) {
gamep.doornote--;
}
_root.tute.dooraimnotice._visible = true;
}
return(undefined);
}
}
snd_play("doorkickopen");
_root.tute.dooraimnotice._visible = false;
animdoor(_local3.n, 0, 1);
gamep.todoor = 1;
}
function warnshoot() {
var _local3 = chars[gamep.pid];
var _local2 = _root.world[(_local3.r + "_door_") + _local3.dooron];
if (_local2.knocks == -1) {
return(undefined);
}
if (_local2.knocks > 0) {
var _local4 = chars[gamep[_local3.dooron + "rule"]];
_local2.knocks = _local2.knocks + (_local4.hero ? -1 : 1);
doortext(_local4, _local2);
if (gamep.doornote && (_local2.knocks == 0)) {
gamep.doornote--;
}
return(undefined);
}
updatefearroom(_local3.dooron, 1);
}
function doortext(lub, dub) {
var _local4 = _root.world.other;
var _local2 = _local4["bubble_" + lub.id];
if (dub.knocks == Math.ceil(dub.halfknocks * 3)) {
_local2.gotoAndStop("whimpers");
} else if (dub.knocks == dub.halfknocks) {
if (lub.hero) {
_local2.gotoAndStop("commands");
} else {
_local2.gotoAndStop("screams");
}
} else {
var _local6 = 1;
_local2.gotoAndStop("none");
}
if (!_local6) {
var _local5 = dub.getBounds(_local4);
_local2._x = _local5.xMin;
}
}
function doorshoot() {
var _local2 = chars[gamep.pid];
var _local3 = _root.world[(_local2.r + "_door_") + _local2.dooron];
if (_local3.knocks == -1) {
return(undefined);
}
if (_local3.knocks > 0) {
_local3.knocks = -1;
var _local6 = chars[gamep[_local2.dooron + "rule"]];
_local6.k = 3;
var _local4 = _root.world.other;
var _local5 = _local4["bubble_" + _local6.id];
var _local7 = _local3.getBounds(_local4);
_local5._x = _local7.xMin;
_local5.gotoAndStop("blocked");
if (gamep.doornote) {
gamep.doornote--;
}
return(undefined);
}
updatefearroom(_local2.dooron, 1);
}
function pickupchecks() {
var _local5 = _root.world;
var _local4 = chars[gamep.pid];
var _local2 = 0;
while (_local2 < pickups.length) {
if (gamep[pickups[_local2]]) {
} else {
var _local3 = _local5["pickup_" + pickups[_local2]]._x;
if (((_local4.x - 20) < _local3) && ((_local4.x + 20) > _local3)) {
_local4.pickupon = pickups[_local2];
return(undefined);
}
}
_local2++;
}
_local4.pickupon = "";
}
function pickuping(id) {
var _local2 = chars[id];
var _local3 = _root.world["pickup_" + _local2.pickupon];
_local3.play();
gamep[_local2.pickupon] = 1;
_local2.pickupon = "";
}
function exportarray(arr, kill) {
var _local3 = "[";
var _local1 = 0;
while (_local1 < arr.length) {
var _local4 = typeof(arr[_local1]);
if (arr[_local1] == undefined) {
_local3 = _local3 + (kill ? "" : ",0");
} else {
if (_local1) {
_local3 = _local3 + ", ";
}
if (arr[_local1] instanceof Array) {
_local3 = _local3 + exportarray(arr[_local1]);
} else if (_local4 == "object") {
_local3 = _local3 + exportobject(arr[_local1]);
} else if (_local4 == "string") {
_local3 = _local3 + (("\"" + arr[_local1]) + "\"");
} else if (_local4 == "number") {
_local3 = _local3 + arr[_local1];
}
}
_local1++;
}
_local3 = _local3 + "]";
if (_local3 == "[]") {
_local3 = "0";
}
return(_local3);
}
function exportobject(obj) {
var _local2 = "{";
var _local4 = 0;
for (var _local5 in obj) {
if (_local4) {
_local2 = _local2 + ", ";
}
var _local3 = typeof(obj[_local5]);
if (obj[_local5] == undefined) {
_local2 = _local2 + ((_local5 + ":") + 0);
} else if (_local3 == "string") {
_local2 = _local2 + (((_local5 + ":\"") + obj[_local5]) + "\"");
} else if (_local3 == "number") {
_local2 = _local2 + ((_local5 + ":") + obj[_local5]);
}
_local4++;
}
_local2 = _local2 + "}";
return(_local2);
}
function switchover(nam) {
var _local5 = Number(nam.substr(1));
var _local1 = chars[_local5];
if ((_local1.dooron == undefined) || (_local1.dooron == "")) {
trace(nam);
killbug(_local5);
return(undefined);
}
_local1.n = ((nam == ("a" + _local5)) ? ("b" + _local5) : ("a" + _local5));
dropinchar(_local5);
var _local2 = _local1.dooron;
_local1.dooron = _local1.r;
_local1.r = _local2;
var _local4 = _local1.x;
if (_local1.s == "opendoor") {
dooring(_local5, "close");
} else {
dooring(_local5, "exit");
}
_local1.bothrooms = gamep.charlength + _local5;
_local1.nextx = _local1.x;
_local1.nextn = _local1.n;
chars[_local1.bothrooms] = {x:_local1.x, id:_local1.id, w:1, dupe:1, r:_local1.r};
_local1.r = _local1.dooron;
_local1.dooron = _local2;
_local1.x = _local4;
_local1.n = nam;
}
function roomchange(nam) {
var _local2 = Number(nam.substr(1));
var _local1 = chars[_local2];
var _local5 = _local1.dooron;
_local1.dooron = _local1.r;
_local1.lastdoor = _local1.r;
_local1.r = _local5;
_local1.n = _local1.nextn;
_local1.x = _local1.nextx;
_local1.nextn = "";
if (_local1.retreat) {
_local1.retreat = 0;
}
if (_local1.bothrooms) {
chars[_local1.bothrooms] = undefined;
_local1.bothrooms = 0;
}
if (_local1.lead > -1) {
studentmoved(_local2);
} else if (_local1.l == "npc_teacher") {
_local1.studentswith = _local1.students;
if (gamep[_local1.lastdoor + "rule"] == _local2) {
gamep[_local1.lastdoor + "rule"] = -1;
}
if (gamep[_local1.r + "rule"] == -1) {
gamep[_local1.r + "rule"] = _local2;
_local1.fear = 1;
gatherroom(_local2);
decideroom(_local2);
} else if (gamep[_local1.r + "rule"] > -1) {
_local1.fear = 1;
var _local3 = chars[gamep[_local1.r + "rule"]];
_local3.lastdoor = _local1.lastdoor;
if (random(2)) {
gatherroom(_local2);
decideroom(_local2);
gamep[_local1.r + "rule"] = _local2;
} else {
gatherroom(_local3.id);
decideroom(_local3.id);
gamep[_local1.r + "rule"] = _local3.id;
}
}
return(undefined);
}
if (gamep[_local1.r + "rule"] > -1) {
var _local4 = chars[gamep[_local1.r + "rule"]];
_local1.lead = _local4.id;
_local4.students++;
if (_local4.fear == 0) {
updatefearroom(_local1.r);
}
}
if ((_local1.r != "hall1") && (_local1.r != "hall2")) {
decidestudent(_local2);
}
}
function dooring(id, action, invisible) {
var _local2 = chars[id];
var _local7 = _root.world.chars;
var _local4 = _root.world[(_local2.r + "_door_") + _local2.dooron];
if (((action == "exit") || (_local2.id == gamep.pid)) || (_local2.l == "npc_teacher")) {
var _local8 = ((_local2.s == "doorhold") || (action == "open")) || (action == "close");
_local2.d = ((_local4._rotation == 180) ? -1 : 1);
_local7[_local2.n]._xscale = _local2.d * 100;
if (((_local2.id != gamep.pid) && ((action == "enter") || (action == "exit"))) && (!_local8)) {
var _local10 = "center";
} else {
var _local10 = ((action == "exit") ? "exit" : "enter");
}
var _local5 = {x:_local4[_local10]._x, y:0};
_local4.localToGlobal(_local5);
_local7.globalToLocal(_local5);
_local7[_local2.n]._x = _local5.x;
_local2.x = _local5.x;
}
if (_local2.s == "doorhold") {
startanim(id, "openend", 1, 1);
return(undefined);
}
if ((action == "exit") && (_local2.l != "npc_teacher")) {
} else if ((id == gamep.pid) && (gamep.main)) {
switch (_local2.s) {
case "unaimdoor" :
startanim(_local2.id, "unaimdoor", 1, 1);
gamep.todoor = 1;
return(undefined);
case "aimdoor" :
var _local9 = dooropencheck(_local4);
if (!_local9) {
startanim(id, "kickdoor", 1);
return(undefined);
}
break;
default :
_local9 = dooropencheck(_local4);
if (gamep.gunangle > 0) {
gamep.todoor = 1;
gunangle("up");
return(undefined);
}
if (_local9) {
gamep.todoor = 1;
}
startanim(id, "facetodoor", 1);
return(undefined);
}
}
if ((action == "open") || (action == "enter")) {
if ((_local2.r == "hall1") || (_local2.r == "hall2")) {
gamep[(_local2.r + "_") + _local2.dooron]++;
} else {
gamep[(_local2.dooron + "_") + _local2.r]++;
}
}
startanim(id, action + "door", 1);
if (invisible) {
_local7[_local2.n]._visible = false;
}
}
function weightedrand(weights) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < weights.length) {
_local3 = _local3 + weights[_local1];
_local1++;
}
var _local4 = Math.round(Math.random() * _local3);
_local3 = 0;
_local1 = 0;
while (_local1 < weights.length) {
_local3 = _local3 + weights[_local1];
if (_local4 <= _local3) {
return(_local1);
}
_local1++;
}
}
function simulation() {
gamep.simw--;
if (gamep.simw) {
return(undefined);
}
gamep.simw = gamep.simt;
gamep.simlt = getTimer() - gamep.simtime;
gamep.simtime = getTimer();
var _local1 = 0;
while (_local1 < chars.length) {
if (_local1 == gamep.pid) {
} else {
sim_onscreen(_local1);
}
_local1++;
}
gamep.npcroom = 0;
gamep.kills = 0;
}
function npctext(id, goto, sec) {
var _local4 = _root.world;
var _local3 = _local4.other["bubble_" + id];
_local3.gotoAndStop(goto);
if (goto != "none") {
var _local2 = chars[id];
_local3._x = ((_local2.d == 1) ? (_local2.x) : (_local2.x - 20));
_local2.txtime = ((sec == undefined) ? -1 : (getTimer() + (sec * 1000)));
}
}
function sim_onscreen(id) {
var _local2 = chars[id];
if (((_local2.w || (_local2.k)) || (_local2.dupe)) || (_local2 == undefined)) {
return(undefined);
}
if (_local2.fear == 2) {
if (_local2.l == "npc_teacher") {
switch (_local2.s) {
case "stand_fear" :
if (gamep.frame != _local2.r) {
break;
}
var _local6 = chars[gamep.pid];
if (_local2.d == 1) {
if (_local6.x > _local2.x) {
break;
}
} else if (_local6.x < _local2.x) {
} else {
_local2.d = _local2.d * -1;
startanim(id, _local2.s);
break;
if (gamep.kills) {
npctext(id, "scream", 1);
} else {
if (!((_local2.txtime > -1) && (_local2.txtime < getTimer()))) {
break;
}
_local2.txtime = -1;
npctext(id, "none");
}
}
_local2.d = _local2.d * -1;
startanim(id, _local2.s);
break;
case "cowering" :
if (gamep.kills) {
npctext(id, "scream", 1);
} else {
if (!((_local2.txtime > -1) && (_local2.txtime < getTimer()))) {
break;
}
_local2.txtime = -1;
npctext(id, "none");
}
}
}
return(undefined);
}
var _local6 = chars[gamep.pid];
var _local4 = chars[_local2.lead];
if (_local2.lead == -1) {
_local4 = 0;
}
var _local7 = (gamep.frame == _local2.r) || ((_local2.s == "doorhold") && (gamep.frame == _local2.dooron));
var _local5 = ((_local2.gotodo != undefined) ? (_local2.gotodo) : "");
if (_local7) {
if (_local2.fear == 0) {
_local2.fear = ((random(3) == 0) ? 0 : (((random(4) == 0) ? 2 : 1)));
if ((_local2.fear != 0) && (_local2.s == "teach")) {
npctext(id, "none");
}
} else if ((_local2.fear == 1) && (gamep.kills)) {
_local2.killseen = _local2.killseen + gamep.kills;
var _local19 = (_local4.students ? (_local4.students) : ((_local2.students ? (_local2.students) : 0)));
_local2.fear = ((_local2.killseen > (_local2.tolerance + _local19)) ? 2 : 1);
}
switch (_local5) {
case "hide" :
case "cower" :
case "cowerstand" :
_local2.gotodo = "";
_local5 = "";
}
}
if (_local2.fear == 0) {
return(undefined);
}
if ((_local2.fear == 2) || (_local2.fear == 4)) {
_local2.fear = 2;
if (_local2.l == "npc_teacher") {
if (_local2.hero) {
_local2.fear = 3;
} else {
cutstudentoff(id);
if (random(2)) {
startanim(id, "cower", 1);
} else {
startanim(id, "stand_fear");
}
}
} else {
cutstudentoff(id);
if (_local2.hero) {
_local2.k = 1;
if (_local2.s == "sit") {
startanim(id, "sit_die", 1);
} else {
startanim(id, "stand_die", 1);
}
} else if (_local2.s != "sit") {
startanim(id, "cower", 1);
}
}
return(undefined);
}
var _local10 = (!_local2.strapped) && ((_local2.l != "npc_teacher") || (_local2.students == 0));
var _local21 = (_local2.strapped && (_local2.fear == 3)) && (!_local2.retreat);
if (_local2.dooron != "") {
var _local17 = _root.world[(_local2.r + "_door_") + _local2.dooron];
var _local20 = dooropencheck(_local17);
var _local13 = ((_local2.lastdoor != _local2.dooron) || (((_local4.gotodo == "getout") && (_local4.dooron == _local2.dooron)) && ((_local4.s == "lead") || (_local4.s == "doorhold")))) || ((_local2.r != "hall1") && (_local2.r != "hall2"));
_local13 = _local13 && ((_local20 || ((_local2.l != "npc_teacher") && (!_local7))) || ((_local2.l == "npc_teacher") && ((_local17.knocks == 0) || (_local17.knocks == undefined))));
var _local25 = _local2.dooron == gamep.frame;
}
var _local18 = ((!_local10) && (_local2.students)) && (_local13);
var _local16 = ((_local2.students && (_local2.studentswith)) ? 1 : 0);
var _local15 = 0;
if ((_local5 == "shutdoor") && (_local2.s == "stand")) {
var _local23 = gamep[(_local2.dooron + "_") + _local2.r];
trace((("shut_" + _local23) + "_") + _local2.r);
if (_local23 == 0) {
animdoor(_local2.n, 1);
_local2.gotodo = "";
_local5 = "";
if ((_local2.decision == "hide") || (_local2.decision == "wait")) {
startanim(id, "lead_walk");
_local2.gotodo = ((_local2.decision == "hide") ? "cower" : "stand");
_local5 = _local2.gotodo;
}
}
}
var _local12 = Math.abs(_local6.x - _local2.x);
switch (_local2.decision) {
case "blockdoor" :
if ((_local5 == "") && (_local2.dooron == _local2.gotodoor)) {
blockdoor(id);
waitpositions(_local2.r);
_local2.decision = "";
startanim(id, "stand");
_local2.gotodo = "blockwait";
_local5 = "blockwait";
}
break;
case "wait" :
if (!gamep.npcroom) {
break;
}
decideroom(id);
return(undefined);
}
switch (_local2.s) {
case "sit" :
if (random(3) == 0) {
startanim(id, "unsit", 1);
}
break;
case "gun" :
if (_local7 && (!_local2.retreat)) {
var _local14 = _local6.x < _local2.x;
if ((_local14 && (_local2.d == 1)) || ((!_local14) && (_local2.d == -1))) {
_local2.d = _local2.d * -1;
startanim(id, _local2.s);
break;
}
var _local9 = 0;
var _local22 = ((_local6.d == 1) && (_local14)) || ((_local6.d == -1) && (!_local14));
_local9 = _local9 + ((_local22 && (gamep.gunangle != 2)) ? 1 : 0);
_local9 = _local9 + (((_local12 < 250) || (_local22 && (_local12 < 500))) ? 1 : 0);
_local9 = _local9 + ((_local2.killseen > 0) ? 1 : 0);
_local9 = _local9 + ((_local2.killseen >= _local2.tolerance) ? 1 : 0);
var _local8 = 0;
var _local11 = 0;
switch (_local9) {
case 0 :
_local8 = ((random(30) == 0) ? 1 : 0);
break;
case 1 :
_local8 = ((random(20) == 0) ? 1 : 0);
_local11 = random(30) == 0;
break;
case 2 :
_local8 = ((random(10) == 0) ? 1 : 0);
_local11 = random(20) == 0;
break;
case 3 :
_local8 = ((random(5) == 0) ? 1 : 0);
break;
case 4 :
_local8 = ((random(2) == 0) ? 1 : 0);
}
if (_local8) {
shoot(id);
_local11 = random(3) == 0;
}
if (_local11) {
_local2.fear = 1;
_local2.retreat = 1;
decidedir(id);
}
break;
}
startanim(id, "guntostand", 1);
break;
case "gun_walk" :
case "stand_walk" :
case "lead_walk" :
case "run" :
if (((_local2.d == -1) && (_local2.x == gamep[_local2.r + "leftwall"])) || ((_local2.d == 1) && (_local2.x == gamep[_local2.r + "rightwall"]))) {
_local2.d = _local2.d * -1;
startanim(id, _local2.s);
} else if (_local5 == "shutdoor") {
if (_local2.dooron == _local2.gotodoor) {
startanim(id, "stand");
}
} else if ((_local5 != "") && (_local5 != "getout")) {
if (((_local2.d == 1) && (_local2.x >= _local2.gotox)) || ((_local2.d == -1) && (_local2.x <= _local2.gotox))) {
if (((_local5 == "cower") || (_local5 == "cowerstand")) || (_local5 == "cowerdie")) {
_local2.fear = 2;
cutstudentoff(id);
var _local24 = _root.world.chars;
if (_local2.strapped) {
_local2.k = 3;
_local2.ksteal = 1;
startanim(id, "gun_die" + random(2));
splat(_local2.x, gamep.floor - 150);
snd_play("suicide");
} else if (_local5 == "cowerstand") {
startanim(id, "stand");
_local2.x = _local2.gotox;
_local24[_local2.n]._x = _local2.x;
} else {
if (_local5 == "cowerdie") {
if (_local2.l == "npc_teacher") {
var _local26 = (random(2) ? ("stand_die" + random(2)) : ("run_die" + random(2)));
} else {
var _local26 = ((random(3) == 0) ? "stand_die" : ("run_die" + random(2)));
}
startanim(id, _local26, 1);
_local2.k = 1;
} else {
startanim(id, "cower", 1);
}
_local2.x = _local2.gotox + (random(21) - 10);
_local24[_local2.n]._x = _local2.x;
}
} else {
_local2.gotodo = "wait";
startanim(id, "stand");
}
}
} else if (_local13 && ((((_local7 || (!_local25)) || ((_local4.gotodo == "getout") && (_local4.r == _local2.r))) || (_local2.decision == "changerooms")) || (_local21 && (_local2.r != _local6.r)))) {
if (_local18) {
if (_local20) {
startanim(id, "lead");
} else {
dooring(id, "open");
}
_local2.gotodo = "getout";
if (_local2.decision == "changerooms") {
_local2.decision = "";
}
break;
}
if (_local7) {
dooring(id, "enter");
} else if ((((_local4.gotodo == "getout") && (_local4.r == _local2.r)) && (_local2.dooron == _local4.dooron)) || (((_local4.gotodo != "getout") && (_local4.r != _local2.r)) && (_local2.dooron == _local4.r))) {
dooring(id, "enter");
} else if (((((!_local4) && (_local10)) && (!_local7)) && ((_local2.r == "hall1") || (_local2.r == "hall2"))) && (random(3) == 0)) {
dooring(id, "enter", 1);
} else if ((_local4.r == _local2.r) && ((_local2.x > (_local4.x + 100)) || (_local2.x < (_local4.x - 100)))) {
var _local19 = ((_local4.x < _local2.x) ? -1 : 1);
if (_local19 != _local2.d) {
_local2.d = _local19;
startanim(id, "run");
if ((_local4.s == "gun") && (random(6) == 0)) {
cutstudentoff(id);
}
break;
}
} else {
if (_local21) {
if ((_local2.r == _local6.r) && (_local12 < 600)) {
startanim(id, "stand");
}
} else if ((_local2.strapped && _local7) && (!_local2.retreat)) {
startanim(id, "stand");
} else if ((_local2.fear == 3) && (_local2.l != "npc_teacher")) {
if (_local2.r != _local6.r) {
_local2.fear = 1;
break;
}
if ((((_local2.d == 1) && (_local6.d == -1)) && (_local2.x < (_local6.x - 80))) || (((_local2.d == -1) && (_local6.d == 1)) && (_local2.x > (_local6.x + 80)))) {
if (random(4) == 0) {
_local2.d = _local2.d * -1;
startanim(id, _local2.s);
break;
}
} else {
break;
if ((_local5 == "getout") && _local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
if (_local18 && (!_local16)) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
break;
if (((_local2.strapped && (!_local2.retreat)) && _local7) && (_local12 < 500)) {
if (random(3) == 0) {
startanim(id, "standtogun", 1);
}
} else {
if (_local4.gotodo == "getout") {
_local2.gotodo = "";
} else {
if ((!_local2.strapped) && (((_local5 == "shutdoor") || (_local5 == "wait")) || (_local5 == "blockwait"))) {
if (_local7) {
if (_local5 == "blockwait") {
_local2.x = _local6.x;
var _local24 = _root.world.chars;
_local24[_local2.n]._x = _local2.x;
_local2.d = _local6.d;
startanim(id, "unblocked", 1);
cutstudentoff(id);
}
_local2.gotodo = "";
}
break;
}
if (_local5 == "getout") {
if (_local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
} else if (_local5 == "blockdoor") {
} else if (_local5 != "") {
_local2.d = ((_local2.gotox > _local2.x) ? 1 : -1);
_local15 = 1;
if (_local7) {
_local2.gotodo = "";
}
break;
}
}
if (_local18) {
if (!_local16) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
} else if (_local4.r == _local2.r) {
_local2.d = ((_local4.x < _local2.x) ? -1 : 1);
_local15 = 1;
} else {
if (_local7 && _local10) {
if (random(5) == 0) {
_local2.d = (random(2) ? 1 : -1);
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
_local2.d = ((_local6.x < _local2.x) ? 1 : -1);
if ((_local2.l != "npc_teacher") && random(2)) {
_local2.fear = 3;
}
}
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
decidedir(id);
}
_local15 = 1;
}
}
}
}
break;
if ((_local5 == "getout") && _local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
if (_local18 && (!_local16)) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
break;
if (((_local2.strapped && (!_local2.retreat)) && _local7) && (_local12 < 500)) {
if (random(3) == 0) {
startanim(id, "standtogun", 1);
}
} else {
if (_local4.gotodo == "getout") {
_local2.gotodo = "";
} else {
if ((!_local2.strapped) && (((_local5 == "shutdoor") || (_local5 == "wait")) || (_local5 == "blockwait"))) {
if (_local7) {
if (_local5 == "blockwait") {
_local2.x = _local6.x;
var _local24 = _root.world.chars;
_local24[_local2.n]._x = _local2.x;
_local2.d = _local6.d;
startanim(id, "unblocked", 1);
cutstudentoff(id);
}
_local2.gotodo = "";
}
break;
}
if (_local5 == "getout") {
if (_local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
} else if (_local5 == "blockdoor") {
} else if (_local5 != "") {
_local2.d = ((_local2.gotox > _local2.x) ? 1 : -1);
_local15 = 1;
if (_local7) {
_local2.gotodo = "";
}
break;
}
}
if (_local18) {
if (!_local16) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
} else if (_local4.r == _local2.r) {
_local2.d = ((_local4.x < _local2.x) ? -1 : 1);
_local15 = 1;
} else {
if (_local7 && _local10) {
if (random(5) == 0) {
_local2.d = (random(2) ? 1 : -1);
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
_local2.d = ((_local6.x < _local2.x) ? 1 : -1);
if ((_local2.l != "npc_teacher") && random(2)) {
_local2.fear = 3;
}
}
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
decidedir(id);
}
_local15 = 1;
}
}
}
} else if ((_local4.r == _local2.r) && ((_local2.x > (_local4.x + 100)) || (_local2.x < (_local4.x - 100)))) {
var _local19 = ((_local4.x < _local2.x) ? -1 : 1);
if (_local19 != _local2.d) {
_local2.d = _local19;
startanim(id, "run");
if ((_local4.s == "gun") && (random(6) == 0)) {
cutstudentoff(id);
}
break;
}
} else {
if (_local21) {
if ((_local2.r == _local6.r) && (_local12 < 600)) {
startanim(id, "stand");
}
} else if ((_local2.strapped && (_local7)) && (!_local2.retreat)) {
startanim(id, "stand");
} else if ((_local2.fear == 3) && (_local2.l != "npc_teacher")) {
if (_local2.r != _local6.r) {
_local2.fear = 1;
break;
}
if ((((_local2.d == 1) && (_local6.d == -1)) && (_local2.x < (_local6.x - 80))) || (((_local2.d == -1) && (_local6.d == 1)) && (_local2.x > (_local6.x + 80)))) {
if (random(4) == 0) {
_local2.d = _local2.d * -1;
startanim(id, _local2.s);
break;
}
} else {
break;
if ((_local5 == "getout") && _local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
if (_local18 && (!_local16)) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
break;
if (((_local2.strapped && (!_local2.retreat)) && _local7) && (_local12 < 500)) {
if (random(3) == 0) {
startanim(id, "standtogun", 1);
}
} else {
if (_local4.gotodo == "getout") {
_local2.gotodo = "";
} else {
if ((!_local2.strapped) && (((_local5 == "shutdoor") || (_local5 == "wait")) || (_local5 == "blockwait"))) {
if (_local7) {
if (_local5 == "blockwait") {
_local2.x = _local6.x;
var _local24 = _root.world.chars;
_local24[_local2.n]._x = _local2.x;
_local2.d = _local6.d;
startanim(id, "unblocked", 1);
cutstudentoff(id);
}
_local2.gotodo = "";
}
break;
}
if (_local5 == "getout") {
if (_local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
} else if (_local5 == "blockdoor") {
} else if (_local5 != "") {
_local2.d = ((_local2.gotox > _local2.x) ? 1 : -1);
_local15 = 1;
if (_local7) {
_local2.gotodo = "";
}
break;
}
}
if (_local18) {
if (!_local16) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
} else if (_local4.r == _local2.r) {
_local2.d = ((_local4.x < _local2.x) ? -1 : 1);
_local15 = 1;
} else {
if (_local7 && _local10) {
if (random(5) == 0) {
_local2.d = (random(2) ? 1 : -1);
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
_local2.d = ((_local6.x < _local2.x) ? 1 : -1);
if ((_local2.l != "npc_teacher") && random(2)) {
_local2.fear = 3;
}
}
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
decidedir(id);
}
_local15 = 1;
}
}
}
}
break;
if ((_local5 == "getout") && (_local7)) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
if (_local18 && (!_local16)) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
break;
if (((_local2.strapped && (!_local2.retreat)) && (_local7)) && (_local12 < 500)) {
if (random(3) == 0) {
startanim(id, "standtogun", 1);
}
} else {
if (_local4.gotodo == "getout") {
_local2.gotodo = "";
} else {
if ((!_local2.strapped) && (((_local5 == "shutdoor") || (_local5 == "wait")) || (_local5 == "blockwait"))) {
if (_local7) {
if (_local5 == "blockwait") {
_local2.x = _local6.x;
var _local24 = _root.world.chars;
_local24[_local2.n]._x = _local2.x;
_local2.d = _local6.d;
startanim(id, "unblocked", 1);
cutstudentoff(id);
}
_local2.gotodo = "";
}
break;
}
if (_local5 == "getout") {
if (_local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
} else if (_local5 == "blockdoor") {
} else if (_local5 != "") {
_local2.d = ((_local2.gotox > _local2.x) ? 1 : -1);
_local15 = 1;
if (_local7) {
_local2.gotodo = "";
}
break;
}
}
if (_local18) {
if (!_local16) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
} else if (_local4.r == _local2.r) {
_local2.d = ((_local4.x < _local2.x) ? -1 : 1);
_local15 = 1;
} else {
if (_local7 && _local10) {
if (random(5) == 0) {
_local2.d = (random(2) ? 1 : -1);
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
_local2.d = ((_local6.x < _local2.x) ? 1 : -1);
if ((_local2.l != "npc_teacher") && random(2)) {
_local2.fear = 3;
}
}
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
decidedir(id);
}
_local15 = 1;
}
}
}
case "doorhold" :
if ((_local5 == "getout") && (_local7)) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
if (_local18 && (!_local16)) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
break;
case "stand_fear" :
case "teach" :
case "lead" :
case "stand" :
if (((_local2.strapped && (!_local2.retreat)) && (_local7)) && (_local12 < 500)) {
if (random(3) == 0) {
startanim(id, "standtogun", 1);
}
} else {
if (_local4.gotodo == "getout") {
_local2.gotodo = "";
} else {
if ((!_local2.strapped) && (((_local5 == "shutdoor") || (_local5 == "wait")) || (_local5 == "blockwait"))) {
if (_local7) {
if (_local5 == "blockwait") {
_local2.x = _local6.x;
var _local24 = _root.world.chars;
_local24[_local2.n]._x = _local2.x;
_local2.d = _local6.d;
startanim(id, "unblocked", 1);
cutstudentoff(id);
}
_local2.gotodo = "";
}
break;
}
if (_local5 == "getout") {
if (_local7) {
if (_local2.doormax == undefined) {
_local2.doormax = getTimer() + _local2.doortime;
} else if (getTimer() >= _local2.doormax) {
_local16 = 0;
_local2.dontshut = 1;
}
}
} else if (_local5 == "blockdoor") {
} else if (_local5 != "") {
_local2.d = ((_local2.gotox > _local2.x) ? 1 : -1);
_local15 = 1;
if (_local7) {
_local2.gotodo = "";
}
break;
}
}
if (_local18) {
if (!_local16) {
dooring(id, "enter");
if (_local2.gotodo == "getout") {
_local2.gotodo = "";
_local2.doormax = undefined;
}
}
} else if (_local4.r == _local2.r) {
_local2.d = ((_local4.x < _local2.x) ? -1 : 1);
_local15 = 1;
} else {
if (_local7 && (_local10)) {
if (random(5) == 0) {
_local2.d = (random(2) ? 1 : -1);
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
_local2.d = ((_local6.x < _local2.x) ? 1 : -1);
if ((_local2.l != "npc_teacher") && (random(2))) {
_local2.fear = 3;
}
}
} else if ((_local4 != 0) && (_local4.r == _local2.r)) {
_local2.d = ((_local4.x > _local2.x) ? 1 : -1);
} else {
decidedir(id);
}
_local15 = 1;
}
}
}
if (_local15) {
if (_local10) {
if (random(3) == 0) {
startanim(id, "run");
}
} else if (_local2.strapped) {
startanim(id, "gun_walk");
} else if (_local2.s == "lead") {
startanim(id, "lead_walk");
} else {
startanim(id, "stand_walk");
}
}
}
function decidestudent(id) {
var _local1 = chars[id];
if (_local1.lead != -1) {
var _local3 = chars[_local1.lead];
if (_local3.decision == "wait") {
waitpositions(_local1.r, 0, id);
return(undefined);
}
}
waitpositions(_local1.r, 1, id);
}
function decideroom(id) {
var _local2 = chars[id];
if (_local2.r == gamep.frame) {
return(undefined);
}
_local2.fear = 1;
switch (gamep.frame) {
case "hall1" :
case "class1" :
case "class2" :
case "class3" :
case "class4" :
case "class5" :
case "class6" :
case "toilet1" :
case "toilet2" :
var _local11 = "hall2";
var _local12 = "hall1";
break;
default :
_local11 = "hall1";
_local12 = "hall2";
}
var _local6 = 0;
var _local4 = 0;
switch (_local2.r) {
case "gym" :
_local4 = 1;
_local6 = false;
break;
case "class1" :
case "class2" :
case "class3" :
case "class4" :
case "class6" :
case "toilet2" :
_local4 = 1;
case "class5" :
_local4 = ((_local4 == 0) ? 4 : (_local4));
case "toilet1" :
_local6 = gamep.frame == "hall1";
break;
default :
_local4 = (((_local2.r == "toilet3") || (_local2.r == "toilet4")) ? 0 : 1);
_local6 = gamep.frame == "hall2";
}
_local2.gymexit = _local11;
var _local3 = "";
var _local5 = lifeinroom(_local2.r) - 1;
if ((!_local6) && (_local2.r != "gym")) {
_local3 = ((_local2.hero && (random(4) == 0)) ? "changerooms" : "wait");
trace((("far_" + _local3) + "_") + _local2.r);
} else if (_local2.hero) {
_local4 = ((_local5 > 5) ? 0 : (_local4));
var _local13 = (_local2.strapped ? (weightedrand([0, 3, 7, 0])) : (weightedrand([_local4, 3, 7, _local5])));
switch (_local13) {
case 0 :
_local3 = "hide";
break;
case 1 :
_local3 = "wait";
break;
case 2 :
_local3 = "changerooms";
break;
case 3 :
_local3 = "blockdoor";
}
trace((((((("hero_" + _local3) + "_") + _local2.r) + "_") + _local4) + "_") + _local5);
} else {
if (_local2.strapped) {
_local3 = ((random(4) == 0) ? "changerooms" : "wait");
} else if (_local2.students <= _local4) {
_local3 = "hide";
} else if (_local5 > 5) {
_local3 = "blockdoor";
} else {
_local3 = ((random(2) == 0) ? "changerooms" : "wait");
}
trace((("!hero_" + _local3) + "_") + _local2.r);
}
switch (_local3) {
case "blockdoor" :
_local2.gotodo = "shutdoor";
var _local7 = _local12;
break;
case "changerooms" :
_local2.nextanim = "lead_walk";
if (_local2.r == "gym") {
_local2.d = ((_local2.lastdoor == "hall1") ? 1 : -1);
} else {
var _local9 = _root.world[(_local2.r + "_door_") + _local2.lastdoor];
_local2.d = ((_local9.x > _local2.x) ? 1 : -1);
}
_local2.gotodo = "getout";
break;
case "hide" :
waitpositions(_local2.r, 1);
_local2.gotodo = "shutdoor";
_local7 = _local2.lastdoor;
break;
case "wait" :
if (_local2.decision == "wait") {
} else {
waitpositions(_local2.r);
_local2.gotodo = "shutdoor";
_local7 = _local2.lastdoor;
}
}
if (_local2.gotodo == "shutdoor") {
if (_local2.dooron == _local7) {
_local2.nextanim = "stand";
_local2.gotodoor = _local7;
} else {
var _local10 = _root.world;
var _local9 = _local10[(_local2.r + "_door_") + _local7];
var _local8 = {x:_local9.enter._x, y:0};
_local9.localToGlobal(_local8);
_local10.globalToLocal(_local8);
_local2.d = ((_local8.x > _local2.x) ? 1 : -1);
_local2.gotodoor = _local7;
_local2.nextanim = "stand_walk";
}
}
if ((!_local2.w) && (_local2.nextanim != undefined)) {
startanim(id, _local2.nextanim);
}
_local2.decision = _local3;
}
function killbug(id) {
var _local1 = chars[id];
trace("killed_" + exportobject(_local1));
if (gamep.frame == "hall1") {
var _local3 = gamep.hall2leftwall;
var _local4 = gamep.hall2rightwall;
_local1.r = "hall2";
} else {
var _local3 = gamep.hall1leftwall;
var _local4 = gamep.hall1rightwall;
_local1.r = "hall1";
}
_local1.x = Math.floor(Math.random() * (_local4 - _local3)) + _local3;
dropoutchar("a" + id);
dropoutchar("b" + id);
if (_local1.bothrooms) {
chars.splice(_local1.bothrooms, 1);
_local1.bothrooms = 0;
}
_local1.n = "a" + id;
_local1.w = 0;
_local1.k = 1;
_local1.s = ((_local1.l == "npc_teacher") ? ("run_die" + random(2)) : "stand_die");
dropinchar(id);
}
function waitpositions(room, hiding, single) {
var _local10 = _root.world;
var _local12 = gamep[room + "leftwall"];
var _local15 = gamep[room + "rightwall"];
var _local7 = _local10[(room + "_door_") + _root["doors_" + room][0]].getBounds(_local10);
var _local14 = ((room == "gym") ? 0 : (_local7.xMax - _local7.xMin));
var _local13 = (_local15 - _local12) - _local14;
switch (room) {
case "class1" :
case "class2" :
case "class3" :
case "class4" :
case "class6" :
case "class7" :
case "class8" :
case "class9" :
var _local6 = [_local10[room + "_hide"]._x, _local10[room + "_seat1"]._x, _local10[room + "_seat2"]._x, _local10[room + "_seat3"]._x, _local10[room + "_seat4"]._x, _local10[room + "_seat5"]._x];
break;
case "class5" :
_local6 = [_local10[room + "_hide"]._x, _local10[room + "_hide2"]._x, _local10[room + "_hide3"]._x, _local10[room + "_hide1"]._x];
break;
case "principal" :
case "gym" :
case "toilet2" :
_local6 = [_local10[room + "_hide"]._x];
}
if (single != undefined) {
var _local2 = chars[single];
if (hiding && (_local6.length)) {
var _local5 = random(_local6.length);
_local2.gotox = _local6[_local5];
_local2.gotodo = ((room == "toilet2") ? "cowerstand" : (((_local2.hero && (random(2))) ? "cowerdie" : "cower")));
return(undefined);
}
_local2.gotodo = (hiding ? (((_local2.hero && (random(2))) ? "cowerdie" : "cower")) : "stand");
var _local5 = Math.floor(Math.random() * _local13) + _local12;
_local2.gotox = (((room == "gym") || (_local5 < _local7.xMin)) ? (_local5) : (_local5 + (_local7.xMax - _local7.xMin)));
return(undefined);
}
var _local4 = 0;
while (_local4 < chars.length) {
var _local2 = chars[_local4];
if (((_local2.r != room) || (_local4 == gamep.pid)) || (_local2 == undefined)) {
} else {
var _local9 = _local2.strapped || (_local4 == gamep[room + "rule"]);
var _local8 = ((hiding || (random(6) == 0)) ? 1 : 0);
if ((_local8 && (!_local9)) && (_local6.length)) {
var _local5 = (hiding ? 0 : (random(_local6.length)));
_local2.gotox = _local6[_local5];
_local2.gotodo = ((room == "toilet2") ? "cowerstand" : "cower");
_local6.splice(_local5, 1);
} else {
_local2.gotodo = (_local8 ? "cower" : "stand");
var _local5 = Math.floor(Math.random() * _local13) + _local12;
_local2.gotox = (((room == "gym") || (_local5 < _local7.xMin)) ? (_local5) : (_local5 + (_local7.xMax - _local7.xMin)));
}
}
_local4++;
}
}
function blockdoor(id) {
var _local2 = chars[id];
var _local3 = _root.world[(_local2.lastdoor + "_door_") + _local2.r];
_local3.knocks = lifeinroom(_local2.r) - 1;
_local3.halfknocks = Math.ceil(_local2.students / 2);
}
function lifeinroom(room) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < chars.length) {
var _local1 = chars[_local2];
if (((_local2 == gamep.pid) || (_local1.dupe)) || (_local1 == undefined)) {
} else if ((_local1.k == 3) || (_local1.r != room)) {
} else {
_local3++;
}
_local2++;
}
return(_local3);
}
function updatefear() {
var _local3 = (((gamep.mod == "eagletears") && (random(3) == 0)) ? 3 : 1);
var _local2 = 0;
while (_local2 < chars.length) {
var _local1 = chars[_local2];
if (((_local2 == gamep.pid) || (_local1.dupe)) || (_local1 == undefined)) {
} else if (_local1.fear == 0) {
_local1.fear = _local3;
if (_local1.students) {
decideroom(_local2);
}
}
_local2++;
}
}
function updatefearroom(room, scary) {
var _local2 = 0;
while (_local2 < chars.length) {
var _local1 = chars[_local2];
if (((_local2 == gamep.pid) || (_local1.dupe)) || (_local1 == undefined)) {
} else if ((_local1.fear != 0) || (_local1.r != room)) {
} else {
_local1.fear = (scary ? (((random(4) == 0) ? 4 : 1)) : 1);
}
_local2++;
}
}
function gatherroom(id) {
var _local4 = chars[id];
var _local5 = 0;
var _local2 = 0;
while (_local2 < chars.length) {
if ((_local2 == gamep.pid) || (_local2 == id)) {
} else {
var _local1 = chars[_local2];
if ((((_local1.dupe || (_local1 == undefined)) || (_local1.r != _local4.r)) || (_local1.k)) || (_local1.fear == 2)) {
} else {
if (_local1.students) {
_local1.students = 0;
}
cutstudentoff(_local1.id);
_local1.lead = id;
_local5++;
_local1.fear = 1;
}
}
_local2++;
}
_local4.students = _local5;
_local4.studentswith = _local5;
}
function cutstudentoff(id) {
var _local2 = chars[id];
if (_local2.l == "npc_teacher") {
if (_local2.students != 0) {
var _local1 = 0;
while (_local1 < chars.length) {
var _local3 = chars[_local1];
if (_local3.lead != id) {
} else {
_local3.lead = -1;
_local2.students--;
if (_local2.students == 0) {
break;
}
}
_local1++;
}
}
if (gamep[_local2.r + "rule"] == id) {
gamep[_local2.r + "rule"] = -1;
}
if (gamep[_local2.lastdoor + "rule"] == id) {
gamep[_local2.lastdoor + "rule"] = -1;
}
_local2.gotodo = "";
_local2.decision = "";
return(undefined);
}
if (_local2.lead > -1) {
var _local5 = chars[_local2.lead];
if (_local5.students != 0) {
_local5.students--;
if (_local5.r == _local2.r) {
_local5.studentswith--;
}
}
_local2.lead = -1;
}
}
function studentmoved(id) {
var _local1 = chars[id];
if (_local1.lead > -1) {
var _local2 = chars[_local1.lead];
if (_local2.r == _local1.lastdoor) {
_local2.studentswith--;
if ((_local2.gotodo != "getout") || (_local1.r != _local2.dooron)) {
cutstudentoff(id);
}
}
}
}
function decidedir(id) {
var _local1 = chars[id];
switch (_local1.r) {
case "schoolhall1" :
case "schoolhall2" :
switch (_local1.dooron) {
case "class1" :
case "principal" :
_local1.d = 1;
break;
case "gym" :
_local1.d = -1;
break;
default :
if (gamep.frame == _local1.r) {
var _local2 = chars[gamep.pid];
_local1.d = ((_local2.x < _local1.x) ? 1 : -1);
} else {
_local1.d = (random(2) ? 1 : -1);
}
}
break;
case "gym" :
_local1.d = ((_local1.dooron == "schoolhall1") ? 1 : -1);
break;
default :
_local1.d = (random(2) ? 1 : -1);
}
}
function trigmove_x(distance, angle) {
return(distance * Math.cos(angle));
}
function trigmove_y(distance, angle) {
return(distance * Math.sin(angle));
}
function trigmove_getangle(sx, sy, ex, ey) {
return(Math.atan2(ey - sy, ex - sx));
}
function trigmove_getdist(sx, sy, ex, ey) {
return(Math.sqrt(Math.pow(ex - sx, 2) + Math.pow(ey - sy, 2)));
}
function trigmove_intersection(line1, line2) {
var _local2 = {};
_local2.a = line1.y2 - line1.y1;
_local2.b = line1.x1 - line1.x2;
_local2.c = (_local2.a * line1.x1) + (_local2.b * line1.y1);
var _local1 = {};
_local1.a = line2.y2 - line2.y1;
_local1.b = line2.x1 - line2.x2;
_local1.c = (_local1.a * line2.x1) + (_local1.b * line2.y1);
var _local6 = (_local2.a * _local1.b) - (_local1.a * _local2.b);
if (_local6 == 0) {
return("fail");
}
var _local5 = {};
_local5.x = ((_local1.b * _local2.c) - (_local2.b * _local1.c)) / _local6;
_local5.y = ((_local2.a * _local1.c) - (_local1.a * _local2.c)) / _local6;
return(_local5);
}
function rad2deg(radians) {
return((radians * 180) / Math.PI);
}
function deg2rad(degrees) {
return((degrees * Math.PI) / 180);
}
function lightup() {
var _local2 = _root.world;
var _local3 = {x:0, y:0};
_local2.globalToLocal(_local3);
_local2.darken._x = _local3.x;
_local2.darken.gotoAndPlay(2);
}
function shoot(id, sword) {
var _local40 = 0;
if (id) {
var _local13 = chars[id];
} else {
var _local13 = chars[gamep.pid];
}
if (!sword) {
lightup();
}
var _local5 = _root.world.chars;
gamep.shotpop = 3 + random(3);
if (_local13.l == "adam_ar15") {
snd_play("ar" + (random(4) + 1));
_local5[_local13.n].mc.mc.gotoAndStop(random(10) + 2);
if (_local13.s == "unaimdoor") {
doorshoot();
return(undefined);
}
if (_local13.s == "aimdoor") {
warnshoot();
}
} else if (_local13.l == "adam_unarmed") {
_local5[_local13.n].mc.play();
pistolsnd();
} else if (!sword) {
pistolsnd();
startanim(id, "shoot", 1);
_local5[_local13.n].mc.mc.gotoAndStop(random(3) + 2);
}
var _local39 = {x:_local5[_local13.n].mc.bullet_start._x, y:_local5[_local13.n].mc.bullet_start._y};
var _local6 = {x:_local5[_local13.n].mc.bullet_exit._x, y:_local5[_local13.n].mc.bullet_exit._y};
_local5[_local13.n].mc.localToGlobal(_local39);
_local5[_local13.n].mc.localToGlobal(_local6);
_local5.globalToLocal(_local39);
_local5.globalToLocal(_local6);
var _local15 = trigmove_getangle(_local39.x, _local39.y, _local6.x, _local6.y);
var _local41 = {x:((_local13.d == 1) ? (gamep.rightwall) : (gamep.leftwall)), y:gamep.floor};
var _local42 = trigmove_getdist(_local6.x, _local6.y, _local41.x, _local41.y);
var _local14 = {x:trigmove_x(_local42, _local15), y:trigmove_y(_local42, _local15)};
_local5 = _root.world.bulletpaths;
_local5.createEmptyMovieClip("mc", 1);
_local5.mc.lineStyle(4, 16777215);
_local5.mc._x = _local6.x;
_local5.mc._y = _local6.y;
_local5.mc.lineTo(_local14.x, _local14.y);
var _local11 = _local5.mc.getBounds(_root.world);
if (sword) {
_local5.mc.removeMovieClip();
}
_local5 = _root.world;
var _local10 = {xMin:0, xMax:_local11.xMax - _local11.xMin, yMin:0, yMax:_local11.yMax - _local11.yMin};
var _local43 = Math.floor(_local15) > -1;
var _local37 = (_local43 && (_local13.d == 1)) || ((!_local43) && (_local13.d == -1));
var _local23 = -1;
var _local9 = 0;
if (_local13.d == 1) {
var _local19 = chars.sortOn("x", Array.NUMERIC | Array.RETURNINDEXEDARRAY);
} else {
var _local19 = chars.sortOn("x", (Array.DESCENDING | Array.NUMERIC) | Array.RETURNINDEXEDARRAY);
}
var _local3 = 0;
var _local12 = 0;
while (_local12 < _local19.length) {
var _local7 = chars[_local19[_local12]];
if (_local7 == undefined) {
} else {
if (_local7.dupe) {
_local7 = chars[_local7.id];
var _local16 = _local7.nextn;
var _local26 = _local7.dooron;
} else {
var _local16 = _local7.n;
var _local26 = _local7.r;
}
if (((_local26 != _local13.r) || (_local19[_local12] == gamep.pid)) || (_local19[_local12] == _local13.id)) {
} else if ((sword && (!_local7.k)) && (_local7.s != "cowering")) {
} else {
var _local2 = _local5.chars[_local16].getBounds(_local5);
if (((_local11.xMin > _local2.xMax) || (_local11.xMax < _local2.xMin)) || (_local11.yMax < _local2.yMin)) {
} else {
var _local8 = {xMin:_local2.xMin - _local11.xMin, xMax:_local2.xMax - _local11.xMin, yMin:_local2.yMin - _local11.yMin, yMax:_local2.yMax - _local11.yMin};
if (_local37) {
var _local25 = Math.floor((1 - (_local8.xMax / _local10.xMax)) + (_local8.yMin / _local10.yMax));
var _local24 = Math.floor((1 - (_local8.xMin / _local10.xMax)) + (_local8.yMax / _local10.yMax));
} else {
var _local25 = Math.floor((_local8.xMin / _local10.xMax) + (_local8.yMin / _local10.yMax));
var _local24 = Math.floor((_local8.xMax / _local10.xMax) + (_local8.yMax / _local10.yMax));
}
if (_local25 == _local24) {
if (_local23 != -1) {
break;
}
} else {
var _local18 = {x1:_local6.x, y1:_local6.y, x2:_local14.x + _local6.x, y2:_local14.y + _local6.y};
if (_local13.d == 1) {
var _local20 = ((_local2.xMin > _local6.x) ? (_local2.xMin) : (_local6.x));
_local9 = trigmove_intersection(_local18, {x1:_local20, y1:_local2.yMax, x2:_local20, y2:_local2.yMin});
} else {
var _local20 = ((_local2.xMax < _local6.x) ? (_local2.xMax) : (_local6.x));
_local9 = trigmove_intersection(_local18, {x1:_local20, y1:_local2.yMax, x2:_local20, y2:_local2.yMin});
}
if (_local9.y < _local2.yMin) {
_local9 = trigmove_intersection(_local18, {x1:_local2.xMin, y1:_local2.yMin, x2:_local2.xMax, y2:_local2.yMin});
}
var _local17 = 0;
var _local4 = 1;
while (_local4 < 200) {
_local3 = {x:trigmove_x(_local4, _local15) + _local9.x, y:trigmove_y(_local4, _local15) + _local9.y};
if ((((_local3.x < _local2.xMin) || (_local3.x > _local2.xMax)) || (_local3.y > _local2.yMax)) || (_local3.y < _local2.yMin)) {
break;
}
_local5.localToGlobal(_local3);
if (_local5.chars[_local16].hitTest(_local3.x, _local3.y, true)) {
_local5.globalToLocal(_local3);
_local17 = 1;
break;
}
_local4 = _local4 + 2;
}
if (!_local17) {
} else {
_local23 = _local7.id;
break;
}
}
}
}
}
_local12++;
}
if (_local23 == -1) {
return(0);
}
_local14 = _local3;
var _local7 = chars[_local23];
if (_local7.r != _local13.r) {
dropoutchar(_local7.n);
_local7.r = _local7.dooron;
_local7.n = _local7.nextn;
_local7.x = _local7.nextx;
_local7.nextn = "";
if (_local7.bothrooms) {
chars.splice(_local7.bothrooms, 1);
_local7.bothrooms = 0;
}
} else if (_local7.bothrooms) {
dropoutchar(_local7.nextn);
chars.splice(_local7.bothrooms, 1);
_local7.bothrooms = 0;
}
if (!sword) {
_local5 = _local5.bulletpaths;
_local5.createEmptyMovieClip("mc", 1);
_local5.mc.lineStyle(4, 16777215);
_local5.mc._x = _local6.x;
_local5.mc._y = _local6.y;
_local5.mc.lineTo(_local14.x - _local6.x, _local14.y - _local6.y);
}
_local5 = _root.world.chars;
var _local38 = ((_local14.y < (gamep.floor + _local5[_local7.n].neck._y)) ? 1 : 0);
var _local45 = (((!_local38) && (_local14.y < (gamep.floor + _local5[_local7.n].hips._y))) ? 1 : 0);
var _local36 = "";
var _local46 = ((((((_local7.s == "enterdoor") || (_local7.s == "exitdoor")) || (_local7.s == "doorhold")) || (_local7.s == "opendoor")) || (_local7.s == "openend")) || (_local7.s == "closedoor")) || (_local7.s == "closeend");
switch (_local7.s) {
case "cower" :
case "cowering" :
squib(_local15, _local14.x, _local14.y, _local7.x, gamep.floor);
splat(_local14.x, _local14.y);
splatsnd(_local23);
startanim(_local23, "cower_die", 1);
_local7.k = 3;
gamep.kills++;
if (_local13.l == "npc_teacher") {
_local7.ksteal = 1;
}
break;
case "run" :
case "enterdoor" :
case "exitdoor" :
case "opendoor" :
case "closedoor" :
case "closeend" :
case "openend" :
case "doorhold" :
case "unblocked" :
case "unsit" :
_local36 = (_local38 ? "run_headshot" : "run_die");
_local36 = _local36 + random(2);
_local7.d = _local13.d;
_local5[_local7.n]._xscale = 100 * _local7.d;
case "sit" :
if (_local7.s == "sit") {
_local36 = (_local38 ? "sit_headshot" : "sit_die");
}
case "standtogun" :
case "gun" :
case "shoot" :
case "guntostand" :
case "gun_walk" :
if (((((_local7.s == "standtogun") || (_local7.s == "guntostand")) || (_local7.s == "shoot")) || (_local7.s == "gun")) || (_local7.s == "gun_walk")) {
_local36 = "gun_die" + random(2);
}
case "stand" :
case "stand_fear" :
case "teach" :
case "lead" :
case "stand_walk" :
case "lead_walk" :
if ((((((_local7.s == "stand_fear") || (_local7.s == "teach")) || (_local7.s == "lead")) || (_local7.s == "stand_walk")) || (_local7.s == "lead_walk")) || ((_local7.s == "stand") && (_local7.l == "npc_teacher"))) {
_local36 = "stand_die" + random(2);
} else if (_local7.s == "stand") {
_local36 = (_local38 ? "stand_headshot" : "stand_die");
}
if (_local38 || (_local45)) {
_local7.k = 3;
if (_local13.l == "npc_teacher") {
_local7.ksteal = 1;
}
splat(_local14.x, _local14.y);
splatsnd(_local23);
} else {
_local7.k = 2;
}
cutstudentoff(_local23);
gamep.kills++;
squib(_local15, _local14.x, _local14.y, _local7.x, gamep.floor);
startanim(_local23, _local36, 1);
break;
case "sit_die" :
case "run_die0" :
case "run_die1" :
case "cower_die" :
case "stand_die" :
case "stand_die0" :
case "stand_die1" :
if (_local7.k < 3) {
_local7.k = 3;
splat(_local14.x, _local14.y);
splatsnd(_local23);
gamep.kills++;
} else if (!penetration(_local14.x)) {
_local40 = 1;
}
default :
squib(_local15, _local14.x, _local14.y, _local7.x, gamep.floor);
}
if (_local46 && (_local7.k)) {
if ((_local7.r == "hall1") || (_local7.r == "hall2")) {
gamep[(_local7.r + "_") + _local7.dooron]--;
} else {
gamep[(_local7.dooron + "_") + _local7.r]--;
}
}
return((_local40 ? 0 : 1));
}
function splat(x, y) {
var _local2 = _root.world.splatter;
var _local4 = _local2.getNextHighestDepth();
var _local3 = "s" + _local4;
var _local5 = random(4) + 1;
_local2.attachMovie("splatter_" + _local5, _local3, _local4);
var _local6 = random(2);
x = x + (random(60) - 30);
y = y - (random(80) - 20);
_local2[_local3]._x = x;
_local2[_local3]._y = y;
_local2[_local3]._xscale = (_local6 ? -100 : 100);
killgot(1);
}
function squib(angle, x, y, ox, oy) {
if (angle != "sword") {
snd_play("squib" + (random(4) + 1));
}
var _local2 = _root.world.bulletpaths;
var _local6 = _local2.getNextHighestDepth() + 1;
var _local4 = "s" + _local6;
var _local8 = ((angle == "sword") ? "swordsquib_" : "squib_");
_local2.attachMovie(_local8 + (random(4) + 1), _local4, _local6);
_local2[_local4]._x = x;
_local2[_local4]._y = y;
var _local7 = chars[gamep.pid];
var _local3 = trigmove_getangle(x, y, ox, oy);
if (angle != "sword") {
_local3 = ((((_local7.d == 1) && (_local3 < angle)) || ((_local7.d == -1) && (_local3 > angle))) ? 1.55 : (_local3));
}
_local2[_local4]._rotation = rad2deg(_local3) - 180;
}
function shotpopped() {
if (!gamep.shotpop) {
return(undefined);
}
gamep.shotpop--;
if (gamep.shotpop) {
return(undefined);
}
var _local3 = _root.world.bulletpaths;
_local3.mc.removeMovieClip();
var _local2 = chars[gamep.pid];
_local3 = _root.world.chars;
_local3[_local2.n].mc.mc.gotoAndStop(1);
}
function comeinadam() {
gamep.breakdoor = 1;
var _local2 = chars[gamep.pid];
var _local3 = _root.world.chars;
_local3[_local2.n].mc.play();
}
function mompopped(lastone) {
if (lastone) {
gamep.canaim = 1;
return(undefined);
}
gamep.canshoot = 1;
}
function gunangle(dir) {
var _local1 = gamep.pid;
var _local2 = chars[_local1];
switch (dir) {
case "up" :
if ((gamep.gunangle == 0) && (_local2.s != "unaimdoor")) {
return(undefined);
}
if (gamep.main) {
if (_local2.s == "unaimdoor") {
startanim(_local1, "unaimdoor", 1, 1);
gamep.gunangle = 1;
} else {
startanim(_local1, "raisegun");
}
gamep.canmove = 0;
gamep.canaim = 0;
} else {
startanim(_local1, "raisegun", 1);
}
gamep.gunangle--;
break;
case "down" :
if (((gamep.gunangle + 1) == gamep.gunangles) || (_local2.s == "unaimdoor")) {
return(undefined);
}
if (gamep.main) {
if (_local2.s == "aimdoor") {
startanim(_local1, "aimdoor", 1, 1);
gamep.gunangle = -1;
} else {
startanim(_local1, "lowergun");
}
gamep.canmove = 0;
gamep.canaim = 0;
} else {
startanim(_local1, "lowergun", 1);
}
gamep.gunangle++;
}
}
function penetration(xp) {
var _local8 = chars[gamep.pid];
var _local6 = _root.world.chars;
var _local5 = xp;
var _local7 = (gamep.mod == "eagletears") && (gamep.gunangle == -1);
var _local3 = 0;
while (_local3 < chars.length) {
var _local2 = chars[_local3];
if ((((((_local2 == undefined) || (_local2.r != _local8.r)) || (_local2.dupe)) || (_local2.k == 3)) || (_local3 == gamep.pid)) || (((!_local7) && (_local2.k == 0)) && (_local2.s != "cowering"))) {
} else if (_local7) {
if (_local2.s == "cowering") {
startanim(_local3, "cower_die", 1);
splat(_local2.x, gamep.floor - 20);
} else if (_local2.k == 0) {
splat(_local2.x, gamep.floor - (50 + random(100)));
if (_local2.l == "npc_teacher") {
startanim(_local3, "run_die" + random(2), 1);
} else if (_local2.s == "sit") {
startanim(_local3, "sit_die", 1);
} else {
startanim(_local3, "run_headshot" + random(2), 1);
}
} else {
splat(_local2.x, gamep.floor - 20);
}
splatsnd(_local3);
_local2.k = 3;
gamep.kills++;
} else {
var _local4 = _local6[_local2.n].getBounds(_local6);
if ((_local4.xMin < _local5) && (_local4.xMax > _local5)) {
if (_local2.s == "cowering") {
startanim(_local3, "cower_die", 1);
}
splat(_local5, gamep.floor - 10);
splatsnd(_local3);
_local2.k = 3;
gamep.kills++;
return(1);
}
}
_local3++;
}
return(0);
}
function stabground() {
snd_play("stabground" + (random(2) + 1));
if (gamep.mod == "eagletears") {
penetration();
return(undefined);
}
if (!shoot(gamep.pid, 1)) {
return(undefined);
}
gamep.swordkills++;
swordkills();
}
function slash() {
var _local26 = gamep.pid;
var _local3 = chars[_local26];
var _local6 = _root.world.chars;
if (gamep.slash == 0) {
gamep.slash = 1;
_local6[_local3.n].torso.play();
return(undefined);
}
var _local24 = {x:_local6[_local3.n].torso.slashl._x, y:0};
var _local25 = {x:_local6[_local3.n].torso.slashr._x, y:0};
_local6[_local3.n].torso.localToGlobal(_local24);
_local6[_local3.n].torso.localToGlobal(_local25);
_local6.globalToLocal(_local24);
_local6.globalToLocal(_local25);
var _local19 = {};
_local19.xMin = ((_local24.x < _local25.x) ? (_local24.x) : (_local25.x));
_local19.xMax = ((_local24.x == _local19.xMin) ? (_local25.x) : (_local24.x));
var _local9 = [];
var _local18 = [];
var _local27 = gamep.kills;
var _local13 = 0;
for ( ; _local13 < chars.length ; _local13++) {
var _local2 = chars[_local13];
if (((((_local2 == undefined) || (_local2.r != _local3.r)) || (_local2.k)) || (_local13 == gamep.pid)) || ((_local2.s == "cowering") && (gamep.mod != "eagletears"))) {
} else {
if (_local2.dupe) {
var _local20 = _local2.id;
_local2 = chars[_local20];
var _local12 = _local2.nextn;
var _local23 = _local2.dooron;
} else {
var _local20 = _local13;
var _local12 = _local2.n;
var _local23 = _local2.r;
}
var _local7 = _local6[_local12].getBounds(_local6);
if (gamep.mod == "eagletears") {
} else if ((_local7.xMin > _local19.xMax) || (_local7.xMax < _local19.xMin)) {
continue;
}
if (!_local9.length) {
var _local10 = 0;
while (_local10 < 13) {
_local9[_local10] = {x:_local6[_local3.n].torso["squib" + _local10]._x, y:_local6[_local3.n].torso["squib" + _local10]._y};
_local6[_local3.n].torso.localToGlobal(_local9[_local10]);
_local18[_local10] = {x:_local9[_local10].x, y:_local9[_local10].y};
_local6.globalToLocal(_local9[_local10]);
_local10++;
}
}
if (gamep.mod != "eagletears") {
var _local15 = 0;
var _local10 = 0;
while (_local10 < 13) {
var _local4 = _local9[_local10];
if (((_local7.yMin > _local4.y) || ((_local3.d == 1) && (_local7.xMin > _local4.x))) || ((_local3.d == -1) && (_local7.xMax < _local4.x))) {
} else {
var _local14 = Math.floor(_local6[_local12]._width);
var _local8 = 4;
while (_local8 < _local14) {
var _local5 = ((_local3.d == 1) ? (_local7.xMin + _local8) : (_local7.xMax - _local8));
if (((_local3.d == 1) && (_local5 > _local4.x)) || ((_local3.d == -1) && (_local5 < _local4.x))) {
break;
}
var _local11 = {x:_local5, y:0};
_local6.localToGlobal(_local11);
if (_local6[_local12].hitTest(_local11.x, _local18[_local10].y, true)) {
_local15++;
squib("sword", _local5, _local4.y, _local5 + (5 * _local3.d), _local4.y);
break;
}
_local8 = _local8 + 4;
}
}
_local10++;
}
if (_local15 == 0) {
continue;
}
} else {
if (_local2.l == "npc_teacher") {
}
if (_local2.r != _local3.r) {
dropoutchar(_local2.n);
_local2.r = _local2.dooron;
_local2.n = _local2.nextn;
_local2.x = _local2.nextx;
_local2.nextn = "";
if (_local2.bothrooms) {
chars.splice(_local2.bothrooms, 1);
_local2.bothrooms = 0;
}
} else if (_local2.bothrooms) {
dropoutchar(_local2.nextn);
chars.splice(_local2.bothrooms, 1);
_local2.bothrooms = 0;
}
snd_play("squib" + (random(4) + 1));
cutstudentoff(_local20);
gamep.kills++;
if (gamep.mod == "eagletears") {
if (_local2.l == "npc_teacher") {
var _local21 = "gun_die" + random(2);
} else {
switch (_local2.s) {
case "sit" :
var _local21 = "sit_headshot";
break;
case "cowering" :
_local21 = "cower_die";
break;
default :
_local21 = "stand_headshot";
}
}
} else {
switch (_local2.s) {
case "run" :
case "enterdoor" :
case "exitdoor" :
case "opendoor" :
case "closedoor" :
case "closeend" :
case "openend" :
case "doorhold" :
case "unblocked" :
case "unsit" :
var _local21 = "run_die" + random(2);
break;
case "sit" :
_local21 = "sit_die";
break;
case "standtogun" :
case "gun" :
case "shoot" :
case "guntostand" :
case "gun_walk" :
_local21 = "gun_die" + random(2);
break;
case "stand" :
case "stand_fear" :
case "teach" :
case "lead" :
case "stand_walk" :
case "lead_walk" :
_local21 = ((_local2.l == "npc_teacher") ? ("stand_die" + random(2)) : "stand_die");
}
}
startanim(_local20, _local21, 1);
var _local22 = ((((((_local2.s == "enterdoor") || (_local2.s == "exitdoor")) || (_local2.s == "doorhold")) || (_local2.s == "opendoor")) || (_local2.s == "openend")) || (_local2.s == "closedoor")) || (_local2.s == "closeend");
if (_local22 && (_local2.k)) {
if ((_local2.r == "hall1") || (_local2.r == "hall2")) {
gamep[(_local2.r + "_") + _local2.dooron]--;
} else {
gamep[(_local2.dooron + "_") + _local2.r]--;
}
}
if (gamep.mod == "eagletears") {
} else if ((_local7.xMin < _local19.xMin) || (_local7.xMax > _local19.xMax)) {
_local2.k = 2;
continue;
}
_local2.k = 3;
splat(_local6[_local12]._x, gamep.floor - (Math.random() * ((gamep.floor - 20) - (_local7.yMin + 20))));
splatsnd(_local13);
}
}
}
gamep.swordkills = gamep.swordkills + ((_local27 == gamep.kills) ? -1 : 1);
swordkills();
}
function swordkills() {
if (gamep.mod == "eagletears") {
return(undefined);
}
if (gamep.swordkills < 0) {
gamep.swordkills = 0;
}
switch (gamep.swordkills) {
case 0 :
gamep.swordframe = 1;
return;
case 1 :
case 4 :
gamep.swordframe = 2;
return;
case 5 :
case 11 :
gamep.swordframe = 3;
return;
case 12 :
case 14 :
gamep.swordframe = 4;
return;
case 15 :
case 24 :
gamep.swordframe = 5;
return;
case 25 :
gamep.swordframe = 6;
}
}
function startgame(mod) {
_root.gotoAndStop("clear");
_root.gotoAndStop("game");
var _local3 = _root.world;
chars = new Array();
gamep.simw = 1;
gamep.kills = 0;
gamep.simtime = getTimer();
gamep.cansuicide = 0;
gamep.centercam = 0;
gamep.canaim = 0;
stopsounds();
switch (mod) {
case "historical" :
snd_play("bg1", 1);
_local3.gotoAndStop("house");
gamep.mod = "historical";
gamep.main = 0;
gamep.gunangle = 1;
gamep.gunangles = 2;
gamep.shootmompos = _local3.mompos._x;
gamep.canmove = 1;
gamep.canshoot = 0;
gamep.tute = 1;
gamep.ar15 = 0;
gamep.keys = 0;
gamep.glock = 0;
advancetute();
switcharea("living");
gamep.pid = chars.length;
addchar("living", "adam_unarmed", _local3.point_start._x, "stand", -1);
break;
case "historical_main" :
snd_play("bg2", 1);
_local3.gotoAndStop("school");
gamep.mod = "historical";
gamep.doornote = 2;
gamep.main = 1;
gamep.gunangle = 0;
gamep.gunangles = 3;
gamep.canmove = 0;
gamep.canshoot = 0;
gamep.tute = 9;
advancetute();
gamep.pid = chars.length;
switcharea("hall1");
addchar("hall1", "adam_ar15", _local3.point_start._x, "enterschool", 1);
break;
case "guncontrol" :
snd_play("bg1", 1);
_local3.gotoAndStop("house2");
gamep.mod = "guncontrol";
gamep.main = 0;
gamep.canmove = 1;
gamep.gunangle = 1;
gamep.canshoot = 0;
gamep.ar15 = 0;
gamep.sword = 0;
gamep.tute = "x";
switcharea("mom");
gamep.pid = chars.length;
addchar("mom", "adam_unarmed", _local3.point_start._x, "stand", 1);
break;
case "guncontrol_main" :
snd_play("bg2", 1);
_local3.gotoAndStop("school");
gamep.mod = "guncontrol";
gamep.main = 1;
gamep.canmove = 0;
gamep.gunangle = -1;
gamep.canshoot = 0;
gamep.tute = 9;
advancetute();
gamep.swordframe = 1;
gamep.swordkills = 0;
gamep.pid = chars.length;
switcharea("hall1");
addchar("hall1", "adam_katana", _local3.point_start._x, "enterschool", 1);
break;
case "eagletears" :
snd_play("bg2", 1);
_local3.gotoAndStop("school");
gamep.mod = "eagletears";
gamep.main = 1;
gamep.gunangle = 0;
gamep.gunangles = 3;
gamep.canmove = 0;
gamep.canshoot = 0;
gamep.tute = 9;
advancetute();
gamep.pid = chars.length;
switcharea("hall1");
addchar("hall1", "adam_ar15", _local3.point_start._x, "enterschool", 1);
}
if (gamep.main) {
gamep.canskip = 1;
killgot(1);
var _local4 = 0;
while (_local4 < mainroom.length) {
gamep[mainroom[_local4] + "leftwall"] = (_local3[mainroom[_local4] + "_wall_left"]._x + _local3[mainroom[_local4] + "_wall_left"]._width) + 15;
gamep[mainroom[_local4] + "rightwall"] = _local3[mainroom[_local4] + "_wall_right"]._x - 15;
_local4++;
}
gamep.lasteach = -1;
addchar("toilet1", "kids", _local3.toilet1_init._x, "stand", 1);
var _local2 = "class1";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "teach", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat2"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat3"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", -1);
_local2 = "class2";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "teach", 1, 1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat2"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat3"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", 1);
_local2 = "class3";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "teach", 1, 1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat2"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", -1);
_local2 = "class4";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "stand", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat2"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat3"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", 1);
_local2 = "class6";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "teach", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_init2"]._x, "stand", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat3"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", -1);
_local2 = "class7";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "teach", -1, 1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat2"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat3"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", 1);
_local2 = "class8";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "teach", -1, 1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat2"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat3"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", -1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", -1);
_local2 = "class9";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "teach", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat1"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat2"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat3"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat4"]._x, "sit", 1);
addchar(_local2, "kids", _local3[_local2 + "_seat5"]._x, "sit", 1);
_local2 = "gym";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "stand", -1);
addchar(_local2, "kids", _local3[_local2 + "_init1"]._x, "stand", 1);
addchar(_local2, "kids", _local3[_local2 + "_init2"]._x, "stand", -1);
addchar(_local2, "kids", _local3[_local2 + "_init3"]._x, "stand", 1);
addchar(_local2, "kids", _local3[_local2 + "_init4"]._x, "stand", 1);
addchar(_local2, "kids", _local3[_local2 + "_init5"]._x, "stand", -1);
addchar(_local2, "kids", _local3[_local2 + "_init6"]._x, "stand", 1);
addchar(_local2, "kids", _local3[_local2 + "_init7"]._x, "stand", -1);
addchar(_local2, "kids", _local3[_local2 + "_init8"]._x, "stand", -1);
_local2 = "principal";
addchar(_local2, "npc_teacher", _local3[_local2 + "_init"]._x, "stand", -1);
_local4 = 0;
while (_local4 < mainroom.length) {
if (((mainroom[_local4] == "hall1") || (mainroom[_local4] == "hall2")) || (gamep[mainroom[_local4] + "rule"] != undefined)) {
} else {
gamep[mainroom[_local4] + "rule"] = -1;
}
_local4++;
}
} else {
var _local5 = ["living", "mom"];
var _local4 = 0;
while (_local4 < _local5.length) {
gamep[_local5[_local4] + "leftwall"] = (_local3[_local5[_local4] + "_wall_left"]._x + _local3[_local5[_local4] + "_wall_left"]._width) + 15;
gamep[_local5[_local4] + "rightwall"] = _local3[_local5[_local4] + "_wall_right"]._x - 15;
_local4++;
}
gamep.living_mom = 0;
gamep.mom_living = 0;
}
gamep.charlength = chars.length;
gamep.unpause = 1;
}
function advancetute() {
gamep.tute++;
_root.tute.gotoAndStop(gamep.tute);
}
function switcharea(nam) {
_root.bg.gotoAndStop(roomcolors[nam]);
gamep.frame = nam;
var _local2 = _root.world;
gamep.leftwall = (_local2[nam + "_wall_left"]._x + _local2[nam + "_wall_left"]._width) + 15;
gamep.rightwall = _local2[nam + "_wall_right"]._x - 15;
var _local4 = {x:_local2[nam + "_wall_right"]._x + _local2[nam + "_wall_right"]._width, y:0};
_local2.localToGlobal(_local4);
gamep.cammin = (_local2._x - _local4.x) + Stage.width;
_local4 = {x:_local2[nam + "_wall_left"]._x, y:0};
_local2.localToGlobal(_local4);
gamep.cammax = _local2._x - _local4.x;
gamep.movedp = 1;
gamep.npcroom = 1;
}
function chararea(id, nam) {
var _local1 = chars[id];
_local1.dooron = _local1.r;
_local1.r = nam;
dooring(id, "exit");
if (id == gamep.pid) {
switcharea(nam);
}
}
function addchar(frame, lnkag, sx, sf, dir, hero) {
var _local5 = chars.length;
var _local10 = "a" + _local5;
var _local2 = {id:_local5, r:frame, n:_local10, nextn:"", s:sf, x:sx, d:dir, w:0, dooron:""};
if ((lnkag == "kids") || (lnkag == "npc_teacher")) {
_local2.hero = (hero ? 1 : ((((lnkag == "kids") && (random(4) == 0)) ? 1 : 0)));
_local2.fear = 0;
_local2.k = 0;
_local2.killseen = 0;
if (lnkag == "npc_teacher") {
_local2.strapped = ((gamep.mod == "eagletears") ? 1 : 0);
gamep.lasteach = _local5;
_local2.killsteals = 0;
_local2.students = 0;
_local2.studentswith = 0;
_local2.lead = -1;
_local2.lastdoor = ((((((frame == "class1") || (frame == "class2")) || (frame == "class3")) || (frame == "class4")) || (frame == "gym")) ? "hall1" : "hall2");
_local2.tolerance = random(7) + 5;
_local2.doortime = (_local2.tolerance - 2) * 500;
gamep[frame + "rule"] = _local5;
var _local6 = _root.world.other;
var _local7 = "bubble_" + _local5;
_local6.attachMovie("textbubbles", _local7, _local6.getNextHighestDepth());
_local6[_local7]._y = gamep.floor;
} else {
_local2.tolerance = random(8) + 1;
_local2.lead = gamep.lasteach;
var _local8 = chars[gamep.lasteach];
_local8.students++;
_local8.studentswith++;
}
} else {
_local2.w = (gamep.main ? 2 : 0);
_local2.pickupon = "";
}
if (lnkag == "kids") {
var _local9 = ((gamep.mod == "historical") ? (random(5) < 2) : (((gamep.mod == "guncontrol") ? (random(5) == 0) : (random(5) != 0))));
lnkag = (_local9 ? "npc_fatkid" : "npc_kid");
lnkag = lnkag + (random(2) ? "g" : "");
}
_local2.l = lnkag;
chars.push(_local2);
dropinchar(_local5);
}
function dropinchar(id) {
var _local2 = chars[id];
var _local3 = _root.world.chars;
_local3.attachMovie(_local2.l, _local2.n, _local3.getNextHighestDepth());
_local3[_local2.n]._x = _local2.x;
_local3[_local2.n]._y = gamep.floor;
if (_local2.w == 1) {
_local3[_local2.n].gotoAndStop(_local2.s);
_local3[_local2.n].mc.gotoAndStop("complete");
} else if (_local2.w == 2) {
startanim(id, _local2.s, 1);
} else {
startanim(id, _local2.s);
}
_local3[_local2.n]._xscale = 100 * _local2.d;
}
function dropoutchar(id) {
if (isNaN(id)) {
var _local5 = id;
} else {
var _local2 = chars[id];
var _local5 = _local2.n;
}
var _local4 = _root.world.chars;
_local4[_local5].removeMovieClip();
}
function objectivepoints() {
var _local2 = chars[gamep.pid];
switch (gamep.tute) {
case "x" :
if (gamep.ar15) {
gamep.canmove = 0;
_local2.pickupon = "ar15";
gamep.ar15 = 0;
gamep.tute = "v";
var _local3 = _root.world;
_local3.pickup_ar15.nextFrame();
}
break;
case "v" :
break;
case "y" :
gamep.canmove = 1;
gamep.tute = "z";
pickups = ["sword"];
var _local3 = _root.world;
_local3.pickup_sword.play();
break;
case "z" :
if (gamep.sword) {
gamep.tute = 8;
advancetute();
snd_play("getkatana");
}
break;
case 2 :
if (_local2.pickupon != "") {
advancetute();
}
break;
case 3 :
if ((_local2.r == "mom") && (gamep.glock)) {
advancetute();
}
break;
case 4 :
if ((_local2.r == "mom") && (_local2.x >= gamep.shootmompos)) {
advancetute();
gamep.canmove = 0;
gamep.canaim = 1;
}
break;
case 5 :
if (gamep.gunangle == 0) {
advancetute();
gamep.canaim = 0;
gamep.canshoot = 1;
}
break;
case 6 :
if (gamep.canaim) {
advancetute();
}
break;
case 7 :
if (gamep.gunangle == 1) {
advancetute();
gamep.canaim = 0;
gamep.canmove = 1;
pickups = ["ar15", "keys"];
doors = [];
_local3 = _root.world;
_local3.pickup_ar15.play();
_local3.pickup_keys.play();
}
break;
case 8 :
if (gamep.ar15 && (gamep.keys)) {
advancetute();
}
break;
case 12 :
gamep.canaim = 0;
gamep.canmove = 0;
gamep.canshoot = 0;
if (gamep.cansuicide && (clicks.s == 1)) {
startanim(gamep.pid, "suicide", 1, 1);
} else {
if (!gamep.todeath) {
break;
}
switch (_local2.s) {
case "unaimdoor" :
startanim(_local2.id, "unaimdoor", 1, 1);
break;
case "aimdoor" :
startanim(_local2.id, "unfacedoor", 1);
break;
case "stand" :
if ((gamep.gunangle == 1) || (_local2.l == "adam_katana")) {
startanim(gamep.pid, "suicide");
gamep.todeath = 0;
} else {
gunangle(((gamep.gunangle == 2) ? "up" : "down"));
}
}
}
}
}
function player() {
var _local2 = chars[gamep.pid];
if (_local2.w) {
return(undefined);
}
objectivepoints();
if ((gamep.tute == 12) || (gamep.canaim == -1)) {
} else if (((gamep.mod == "eagletears") && (clicks.a == 1)) && (clicks.x == 1)) {
clicks.a = 2;
clicks.x = 2;
if (_local2.s == "unaimdoor") {
} else {
snd_play("demon");
if (_local2.l == "adam_katana") {
gamep.gunangle = 0;
_local2.l = "adam_ar15";
} else {
gamep.swordframe = 1;
gamep.gunangle = -1;
_local2.l = "adam_katana";
}
dropoutchar(gamep.pid);
dropinchar(gamep.pid);
lightup();
}
} else if (clicks.a == 1) {
clicks.a = 2;
if (_local2.pickupon != "") {
pickuping(gamep.pid);
} else if (_local2.dooron != "") {
dooring(gamep.pid, "enter");
return(undefined);
}
}
if (gamep.canshoot) {
if (_local2.l == "adam_katana") {
if ((_local2.s == "stand") || (_local2.s == "walk")) {
if ((gamep.slash == 0) && (clicks.s == 1)) {
clicks.s = 2;
slash();
} else if ((gamep.slash == 2) && (clicks.s == 0)) {
gamep.slash = 3;
var _local4 = _root.world.chars;
_local4[_local2.n].torso.play();
}
}
} else if (clicks.s == 1) {
clicks.s = 2;
shoot();
if (gamep.tute == 6) {
var _local4 = _root.world;
_local4.mombed.play();
gamep.canshoot = 0;
}
}
}
if (gamep.canaim == -1) {
gamep.canaim = 1;
} else if (gamep.canaim) {
if (_local2.l == "adam_katana") {
if (clicks.down == 1) {
startanim(gamep.pid, "stabground", 1);
return(undefined);
}
} else if (clicks.up == 1) {
clicks.up = 2;
gunangle("up");
} else if (clicks.down == 1) {
clicks.down = 2;
gunangle("down");
}
}
var _local3 = 0;
if (gamep.canmove) {
if (clicks.left) {
clicks.left = 2;
_local3 = -1;
} else if (clicks.right) {
clicks.right = 2;
_local3 = 1;
}
}
if (_local3 != 0) {
if (_local2.s == "unaimdoor") {
startanim(_local2.id, "unaimdoor", 1, 1);
} else if (_local2.s == "aimdoor") {
if (_local2.d != _local3) {
var _local4 = _root.world.chars;
_local2.d = _local2.d * -1;
_local4[_local2.n]._xscale = 100 * _local2.d;
}
_root.tute.dooraimnotice._visible = false;
startanim(_local2.id, "unfacedoor", 1);
} else if (_local2.d != _local3) {
startanim(_local2.id, "turn", 1);
} else {
startanim(_local2.id, "walk");
}
} else if (_local2.s == "walk") {
startanim(_local2.id, "stand");
}
}
function movechar(nam, x) {
var _local3 = Number(nam.substr(1));
var _local2 = chars[_local3];
var _local5 = _local2.x;
_local2.x = _local2.x + (x * _local2.d);
if (_local2.x < gamep[_local2.r + "leftwall"]) {
_local2.x = gamep[_local2.r + "leftwall"];
}
if (_local2.x > gamep[_local2.r + "rightwall"]) {
_local2.x = gamep[_local2.r + "rightwall"];
}
if (_local5 == _local2.x) {
return(undefined);
}
var _local4 = _root.world.chars;
_local4[_local2.n]._x = _local2.x;
if (_local3 == gamep.pid) {
gamep.movedp = 1;
pickupchecks();
}
doorchecks(_local3);
}
function movetorso(y) {
var _local4 = gamep.pid;
var _local3 = chars[_local4];
var _local2 = _root.world.chars[_local3.n];
if (gamep.torso == undefined) {
gamep.torso = _local2.torso._y;
}
_local2.torso._y = gamep.torso + y;
}
function startanim(id, goto, w, pl) {
var _local2 = chars[id];
_local2.s = goto;
_local2.w = (w ? 1 : 0);
var _local3 = _root.world.chars;
if ((id == gamep.pid) && (gamep.gunangle != -1)) {
_local3[_local2.n].gotoAndStop((goto + "_") + gamep.gunangle);
} else {
_local3[_local2.n].gotoAndStop(goto);
if (_local2.l == "npc_teacher") {
switch (_local2.s) {
case "doorhold" :
_local3[_local2.nextn].gotoAndStop(goto);
npctext(id, "none");
break;
case "openend" :
_local3[_local2.nextn].gotoAndStop("closeend");
npctext(id, "none");
break;
case "teach" :
npctext(id, "teach");
break;
case "gun" :
npctext(id, "threat");
break;
case "stand_fear" :
npctext(id, "plead");
break;
default :
npctext(id, "none");
}
}
}
if (pl) {
_local3[_local2.n].mc.play();
}
if ((_local2.s != "doorhold") && ((_local2.d * 100) != _local3[_local2.n]._xscale)) {
_local3[_local2.n]._xscale = _local2.d * 100;
}
}
function finishanim(nam) {
var _local3 = Number(nam.substr(1));
var _local2 = chars[_local3];
_local2.w = 0;
var _local4 = _root.world.chars;
switch (_local2.s) {
case "suicide" :
_root.gotoAndStop("score");
return(undefined);
case "turn" :
_local2.d = _local2.d * -1;
_local4[_local2.n]._xscale = 100 * _local2.d;
_local2.s = "walk";
break;
case "unblocked" :
_local2.d = _local2.d * -1;
_local4[_local2.n]._xscale = 100 * _local2.d;
_local2.s = "stand_fear";
_local2.fear = 2;
break;
case "lowergun" :
case "raisegun" :
if (gamep.main) {
gamep.canmove = 1;
gamep.canaim = 1;
}
if (gamep.todoor) {
gamep.todoor = 0;
dooring(_local3, "enter");
return(undefined);
}
_local2.s = "stand";
break;
case "aimdoor" :
gamep.canmove = 1;
gamep.canaim = -1;
_local2.s = "unaimdoor";
break;
case "unaimdoor" :
case "facetodoor" :
case "kickdoor" :
_local2.s = "aimdoor";
if (gamep.todoor) {
gamep.todoor = 0;
dooring(_local3, "enter");
return(undefined);
}
gamep.canmove = 1;
gamep.canaim = -1;
break;
case "cower" :
_local2.s = "cowering";
break;
case "enterdoor" :
chararea(_local3, _local2.dooron);
return(undefined);
case "opendoor" :
case "closedoor" :
_local2.s = "doorhold";
break;
case "enterschool" :
gamep.canmove = 1;
gamep.canaim = 1;
gamep.canshoot = 1;
advancetute();
_root.tute.dooraimnotice._visible = false;
_root.tute.skipnotice._visible = false;
starttimelimit();
_local2.s = "stand";
break;
case "standtogun" :
case "shoot" :
_local2.s = "gun";
break;
case "openend" :
case "exitdoor" :
if ((_local2.r == "hall1") || (_local2.r == "hall2")) {
gamep[(_local2.r + "_") + _local2.dooron]--;
} else {
gamep[(_local2.dooron + "_") + _local2.r]--;
}
if (_local3 == gamep.pid) {
_local2.dooron = "";
gamep.canmove = 1;
if (gamep.main) {
gamep.canaim = 1;
}
}
default :
if (_local2.nextanim != undefined) {
_local2.s = _local2.nextanim;
_local2.nextanim = undefined;
} else {
_local2.s = "stand";
}
}
startanim(_local3, _local2.s);
}
function starttimelimit() {
gamep.timestart = getTimer();
gamep.fulltime = 660;
gamep.timeleft = gamep.fulltime;
}
function killgot(got) {
if (gamep.canskip == 2) {
return(undefined);
}
if (gamep.canskip) {
if (got) {
gamep.canskip = 0;
_root.tute.skipnotice._visible = false;
} else {
var _local2 = chars[gamep.pid];
if (clicks.x) {
gamep.tute = 11;
advancetute();
gamep.todeath = 1;
gamep.centercam = 1;
gamep.movedp = 1;
gamep.canskip = 2;
_root.tute.skipnotice._visible = false;
}
return(undefined);
}
}
if (got) {
gamep.lastkill = getTimer() + 30000;
} else if (gamep.lastkill < getTimer()) {
gamep.canskip = 1;
_root.tute.skipnotice._visible = true;
}
}
function timelimit() {
if (gamep.tute == 12) {
return(undefined);
}
var _local4 = gamep.fulltime - Math.floor((getTimer() - gamep.timestart) / 800);
if (_local4 == gamep.timeleft) {
return(undefined);
}
gamep.timeleft = _local4;
var _local3 = Math.floor(_local4 / 60);
_local3 = ((_local3 < 10) ? ("0" + _local3) : ("" + _local3));
var _local2 = _local4 % 60;
_local2 = ((_local2 < 10) ? ("0" + _local2) : ("" + _local2));
var _local5 = _root.tute.timeclock;
_local5.text = ((("[ " + _local3) + ":") + _local2) + " ]";
if (_local2 == "00") {
switch (_local3) {
case "09" :
gamep.songpart = 0;
songsnd();
break;
case "08" :
updatefear();
break;
case "00" :
gamep.tute = 11;
advancetute();
gamep.todeath = 1;
gamep.centercam = 1;
gamep.movedp = 1;
}
}
}
function stats() {
stopsounds();
gamep.unpause = 1;
_root.modes.text = gamep.mod.toUpperCase() + " MODE";
_root.playerend.text = ((gamep.mod == "guncontrol") ? "+1 FAILED SUICIDE\n+1 STOMACH PUMP\n+1 COURT CASE" : "+1 SUICIDE");
var _local6 = 0;
var _local5 = 0;
var _local7 = 0;
var _local8 = 0;
var _local9 = 0;
var _local4 = 0;
var _local10 = 0;
var _local3 = 0;
while (_local3 < chars.length) {
var _local2 = chars[_local3];
if (((_local3 == gamep.pid) || (_local2.dupe)) || (_local2 == undefined)) {
} else {
_local4++;
switch (_local2.k) {
case 0 :
_local7++;
break;
case 1 :
_local8++;
break;
case 2 :
_local9++;
break;
case 3 :
if (_local2.l == "npc_teacher") {
_local5++;
} else {
_local6++;
}
if (!_local2.ksteal) {
break;
}
_local10++;
}
}
_local3++;
}
var _local11 = _local6 + _local5;
var _local12 = _local4 - _local11;
_root.survive.text = ((_local12 < 10) ? ("0" + _local12) : (_local12));
_root.total.text = _local4;
_root.deaths.text = ((((_local11 + " DEAD (") + _local5) + " TEACHERS + ") + _local6) + " STUDENTS)";
_root.breakdown.text = ((((("[ " + _local7) + " HID ]\n[ ") + _local8) + " PLAYED DEAD ]\n[ ") + _local9) + " WOUNDED ]";
if (gamep.mod == "eagletears") {
_root.breakdown.text = _root.breakdown.text + (("\n[ " + _local10) + " KILLSTEALS ]");
}
var _local13 = makepercent(_local11, 0, _local4);
_root.perc.perc.text = _local13 + "%";
if ((_local13 > sav.data[gamep.mod]) || (sav.data[gamep.mod] == undefined)) {
sav.data[gamep.mod] = _local13;
sav.flush();
}
}
function startmenu() {
_root.gotoAndStop("menu");
if (sav.data.historical == undefined) {
_root.eagletears._visible = false;
_root.guncontrol._visible = false;
_root.historical.gotoAndStop(1);
_root.historical.perc.text = "0%";
} else if (sav.data.guncontrol == undefined) {
_root.eagletears._visible = false;
_root.guncontrol.gotoAndStop(1);
_root.guncontrol.perc.text = "0%";
_root.historical.gotoAndStop(2);
_root.historical.perc.text = sav.data.historical + "%";
} else {
_root.eagletears.perc.text = ((sav.data.eagletears == undefined) ? "0%" : (sav.data.eagletears + "%"));
_root.guncontrol.gotoAndStop(2);
_root.guncontrol.perc.text = sav.data.guncontrol + "%";
_root.historical.gotoAndStop(2);
_root.historical.perc.text = sav.data.historical + "%";
}
}
function makepercent(n, min, max) {
return(Math.floor(((n - min) / (max - min)) * 100));
}
function cam() {
if (!gamep.movedp) {
return(undefined);
}
gamep.movedp = 0;
var _local5 = chars[gamep.pid];
var _local3 = _root.world;
if (gamep.centercam) {
var _local7 = gamep.posc;
} else {
var _local7 = ((_local5.d == 1) ? (gamep.posl) : (gamep.posr));
}
var _local4 = {x:_local5.x, y:0};
_local3.localToGlobal(_local4);
var _local6 = _local7 - _local4.x;
var _local2 = Math.ceil(_local6 * 0.12);
if (_local2 != _local6) {
gamep.movedp = 1;
}
_local2 = _local2 + _local3._x;
if (_local2 < gamep.cammin) {
_local2 = gamep.cammin;
} else if (_local2 > gamep.cammax) {
_local2 = gamep.cammax;
}
_local3._x = _local2;
_local4 = {x:0, y:0};
_root.world.globalToLocal(_local4);
gamep.windowl = _local4.x;
_local4 = {x:Stage.width, y:0};
_root.world.globalToLocal(_local4);
gamep.windowr = _local4.x;
}
function snd_play(snd, loop, id) {
if (id) {
var _local4 = chars[id];
if (_local4.r != gamep.frame) {
return(undefined);
}
}
var _local2 = "aud_" + snd;
if (_root[_local2] == undefined) {
_root.attachMovie("empty", "mc" + _local2, _root.getNextHighestDepth());
_root[_local2] = new Sound(_root["mc" + _local2]);
}
sndsplaying[snd] = 1;
_root[_local2].attachSound(snd + ".wav");
if (loop) {
_root[_local2].start(0, 9999);
} else {
_root[_local2].start();
}
if (id) {
var _local5 = 0;
var _local6 = 100;
if (_local4.x < gamep.windowl) {
var _local3 = _local4.x - gamep.windowl;
_local5 = ((_local3 < (-gamep.pandist)) ? -100 : (Math.ceil((_local3 / gamep.pandist) * 100)));
} else if (_local4.x > gamep.windowr) {
var _local3 = _local4.x - gamep.windowr;
_local5 = ((_local3 > gamep.pandist) ? 100 : (Math.floor((_local3 / gamep.pandist) * 100)));
}
if (_local5 != 0) {
var _local3 = Math.abs(_local3);
_local3 = _local3 - gamep.pandist;
if (_local3 < 1) {
} else if (_local3 > gamep.voldist) {
_local6 = 10;
} else {
_local6 = Math.floor((_local3 / gamep.voldist) * 90) + 10;
}
}
_root[_local2].setPan(_local5);
_root[_local2].setVolume(_local6);
}
}
function stopsounds() {
for (var _local1 in sndsplaying) {
if (sndsplaying[_local1]) {
snd_stop(_local1);
}
}
}
function snd_stop(snd) {
var _local2 = "aud_" + snd;
_root[_local2].stop();
sndsplaying[snd] = 0;
}
function walksnd() {
snd_play("swamp" + (random(3) + 1));
}
function kicksnd() {
snd_play("doorkick" + (random(2) + 1));
}
function katanasnd() {
snd_play("katana" + (random(2) + 1));
}
function rustlesnd() {
snd_play("rustle" + (random(4) + 1));
}
function stepsnd(nam) {
var _local1 = Number(nam.substr(1));
snd_play("step" + (random(10) + 1), 0, _local1);
}
function splatsnd(id) {
snd_play("splat" + (random(2) + 1), 0, id);
}
function pistolsnd() {
snd_play("pistol" + (random(2) + 1));
}
function dropsnd(nam) {
var _local1 = Number(nam.substr(1));
snd_play("dropped" + (random(4) + 1), 0, _local1);
}
function dropgun(nam) {
var _local1 = Number(nam.substr(1));
snd_play("droppistol", 0, _local1);
}
function poursnd(nam) {
var _local1 = Number(nam.substr(1));
snd_play("pour", 0, _local1);
}
function messagesnd(stawp) {
var _local2 = "aud_msg";
if (_root[_local2] == undefined) {
_root.attachMovie("empty", "mc" + _local2, _root.getNextHighestDepth());
_root[_local2] = new Sound(_root["mc" + _local2]);
_root[_local2].attachSound("message_m.wav");
gamep.msglast = 0;
gamep.msgplay = 0;
if (stawp) {
return(undefined);
}
}
if (stawp) {
gamep.msglast = 0;
gamep.msgplay = 0;
_root[_local2].stop();
} else if (gamep.msgplay) {
gamep.msgplay = 0;
gamep.msglast = _root[_local2].position / 1000;
_root[_local2].stop();
} else {
gamep.msgplay = 1;
_root[_local2].start(gamep.msglast);
}
}
function songsnd() {
var _local2 = "aud_music";
switch (gamep.songpart) {
case 0 :
if (_root[_local2] == undefined) {
_root.attachMovie("empty", "mc" + _local2, _root.getNextHighestDepth());
_root[_local2] = new Sound(_root["mc" + _local2]);
}
sndsplaying.music = 1;
_root[_local2].attachSound("intro.wav");
_root[_local2].onSoundComplete = songsnd;
_root[_local2].start();
_root[_local2].setVolume(2);
gamep.introing = 1;
gamep.introstart = getTimer();
gamep.introlen = 99000 /* 0x0182B8 */;
break;
case 1 :
_root[_local2].attachSound("intro_loop.wav");
_root[_local2].onSoundComplete = songsnd;
_root[_local2].start(0, 9);
break;
case 2 :
_root[_local2].attachSound("ost.wav");
_root[_local2].start();
}
gamep.songpart++;
}
function introvol() {
if (!gamep.introing) {
return(undefined);
}
var _local3 = "aud_music";
var _local2 = Math.floor(((getTimer() - gamep.introstart) / gamep.introlen) * 98) + 2;
_root[_local3].setVolume(_local2);
if (_local2 == 100) {
gamep.introing = 0;
}
}
sav = SharedObject.getLocal("tsoshe");
gamep = {floor:313, chairl:22.9, chairr:22.9, unpause:0};
mainroom = ["hall1", "hall2", "class1", "class2", "class3", "class4", "class5", "class6", "class7", "class8", "class9", "principal", "gym", "toilet1", "toilet2", "toilet3", "toilet4"];
inputs = new Array();
inputs.push({tag:"left", desc:"Move", kcode:37});
inputs.push({tag:"right", desc:"Move", kcode:39});
inputs.push({tag:"up", desc:"Angle", kcode:38});
inputs.push({tag:"down", desc:"Angle", kcode:40});
inputs.push({tag:"a", desc:"Interact", kcode:65});
inputs.push({tag:"s", desc:"Shoot", kcode:83});
inputs.push({tag:"x", desc:"DemonSword", kcode:88});
clicks = new Object();
var i = 0;
while (i < inputs.length) {
var sub = inputs[i];
clicks[sub.tag] = 0;
i++;
}
gamep.simt = 14;
roomcolors = {living:"g", mom:"v", hall1:"c", hall2:"c", gym:"o", class5:"r", class4:"y", class1:"t", class2:"v", class3:"g", class6:"t", class7:"v", class8:"r", class9:"g", principal:"y", toilet1:"b", toilet2:"p", toilet3:"b", toilet4:"p"};
_root.onEnterFrame = function () {
if (gamep.unpause) {
controls();
player();
cam();
shotpopped();
if (gamep.main) {
simulation();
timelimit();
introvol();
killgot();
}
}
};
gamep.posl = 160;
gamep.posr = Stage.width - 160;
gamep.posc = Math.floor(Stage.width / 2);
gamep.pandist = 400;
gamep.voldist = 600;
sndsplaying = {};
startmenu();
Frame 18
this.nextFrame();
Instance of Symbol 1181 MovieClip in Frame 18
on (press) {
_root.gotoAndStop("credits");
}
Frame 19
this.stop();
Frame 20
this.prevFrame();
Frame 24
this.nextFrame();
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
getURL ("http://googumproduce.com/");
}
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
getURL ("http://twitter.com/googumproduce");
}
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
getURL ("http://kukishi.tumblr.com/");
}
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
getURL ("http://usa.gov/Contact/Elected.shtml");
}
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
getURL ("http://nraila.org/get-involved-locally/secure/stay-informed");
}
Instance of Symbol 1197 MovieClip in Frame 24
on (press) {
_root.messagesnd();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
getURL ("http://googumproduce.com/");
}
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
getURL ("http://kukishi.tumblr.com/");
}
Instance of Symbol 1181 MovieClip in Frame 24
on (press) {
_root.messagesnd(1);
_root.startmenu();
}
Frame 25
this.stop();
Frame 26
this.prevFrame();
Frame 31
this.nextFrame();
Frame 32
this.stop();
Frame 33
this.prevFrame();
Frame 56
this.nextFrame();
Frame 57
this.stop();
_root.stats();
Instance of Symbol 1181 MovieClip in Frame 57
on (press) {
_root.startmenu();
}
Frame 58
this.prevFrame();
Symbol 8 MovieClip Frame 1
stop();
Symbol 8 MovieClip Frame 31
this.stop();
_root.gotoAndStop("load");
Symbol 21 MovieClip Frame 73
stop();
_root.finishanim(_parent._name);
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 7
stop();
Symbol 33 MovieClip Frame 15
stop();
Symbol 33 MovieClip Frame 21
stop();
Symbol 33 MovieClip Frame 28
stop();
_root.finishanim(_parent._name);
Symbol 38 MovieClip Frame 64
stop();
_root.finishanim(_parent._name);
Symbol 42 MovieClip Frame 9
_root.walksnd();
Symbol 42 MovieClip Frame 24
stop();
_root.finishanim(_parent._name);
Symbol 48 MovieClip Frame 9
_root.movechar(_parent._name, 9);
Symbol 48 MovieClip Frame 17
_root.movechar(_parent._name, 6);
Symbol 48 MovieClip Frame 25
_root.movechar(_parent._name, 9);
Symbol 48 MovieClip Frame 33
_root.movechar(_parent._name, 8);
_root.walksnd();
Symbol 48 MovieClip Frame 41
_root.movechar(_parent._name, 11);
Symbol 60 MovieClip Frame 41
_root.animdoor(_parent._name);
Symbol 60 MovieClip Frame 65
_root.walksnd();
Symbol 60 MovieClip Frame 89
stop();
_root.finishanim(_parent._name);
Symbol 68 MovieClip Frame 25
_root.animdoor(_parent._name, 1);
_root.walksnd();
Symbol 68 MovieClip Frame 57
stop();
_root.finishanim(_parent._name);
_root.walksnd();
Symbol 80 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 8
_root.movechar(_parent._name, 10);
Symbol 92 MovieClip Frame 16
_root.movechar(_parent._name, 6);
Symbol 92 MovieClip Frame 24
_root.movechar(_parent._name, 11);
Symbol 92 MovieClip Frame 32
_root.movechar(_parent._name, 7);
_root.walksnd();
Symbol 92 MovieClip Frame 40
_root.movechar(_parent._name, 4);
Symbol 93 MovieClip Frame 7
_root.movechar(_parent._name, 10);
Symbol 93 MovieClip Frame 15
_root.movechar(_parent._name, 6);
Symbol 93 MovieClip Frame 22
_root.movechar(_parent._name, 11);
Symbol 93 MovieClip Frame 30
_root.movechar(_parent._name, 7);
_root.walksnd();
Symbol 93 MovieClip Frame 37
_root.movechar(_parent._name, 4);
Symbol 94 MovieClip Frame 7
_root.movechar(_parent._name, 10);
Symbol 94 MovieClip Frame 14
_root.movechar(_parent._name, 6);
Symbol 94 MovieClip Frame 21
_root.movechar(_parent._name, 11);
Symbol 94 MovieClip Frame 28
_root.movechar(_parent._name, 7);
_root.walksnd();
Symbol 94 MovieClip Frame 35
_root.movechar(_parent._name, 4);
Symbol 100 MovieClip Frame 1
_root.walksnd();
Symbol 100 MovieClip Frame 15
_root.walksnd();
Symbol 100 MovieClip Frame 23
_root.rustlesnd();
Symbol 100 MovieClip Frame 36
stop();
_root.finishanim(_parent._name);
Symbol 112 MovieClip Frame 22
_root.walksnd();
Symbol 112 MovieClip Frame 31
_root.rustlesnd();
Symbol 112 MovieClip Frame 43
_root.walksnd();
Symbol 112 MovieClip Frame 62
_root.rustlesnd();
Symbol 112 MovieClip Frame 78
stop();
_root.finishanim(_parent._name);
Symbol 116 MovieClip Frame 1
_root.rustlesnd();
Symbol 116 MovieClip Frame 25
stop();
_root.finishanim(_parent._name);
Symbol 120 MovieClip Frame 1
_root.rustlesnd();
Symbol 120 MovieClip Frame 25
stop();
_root.finishanim(_parent._name);
Symbol 121 MovieClip Frame 1
_root.rustlesnd();
Symbol 121 MovieClip Frame 25
stop();
_root.finishanim(_parent._name);
Symbol 122 MovieClip Frame 1
_root.rustlesnd();
Symbol 122 MovieClip Frame 25
stop();
_root.finishanim(_parent._name);
Symbol 129 MovieClip Frame 1
_root.walksnd();
Symbol 129 MovieClip Frame 15
_root.rustlesnd();
Symbol 129 MovieClip Frame 25
_root.walksnd();
Symbol 129 MovieClip Frame 49
stop();
_root.finishanim(_parent._name);
Symbol 136 MovieClip Frame 1
_root.walksnd();
Symbol 136 MovieClip Frame 16
_root.rustlesnd();
Symbol 136 MovieClip Frame 25
_root.walksnd();
Symbol 136 MovieClip Frame 49
stop();
_root.finishanim(_parent._name);
Symbol 143 MovieClip Frame 1
_root.walksnd();
Symbol 143 MovieClip Frame 14
_root.rustlesnd();
Symbol 143 MovieClip Frame 25
_root.walksnd();
Symbol 143 MovieClip Frame 49
stop();
_root.finishanim(_parent._name);
Symbol 153 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 28
_root.snd_play("dropar15");
Symbol 183 MovieClip Frame 71
_root.snd_play("rustle4");
Symbol 183 MovieClip Frame 120
stop();
_root.gamep.cansuicide = 1;
_root.snd_play("rustle1");
Symbol 183 MovieClip Frame 123
_root.snd_play("suicideshot");
Symbol 183 MovieClip Frame 157
_root.dropgun(_parent._name);
Symbol 183 MovieClip Frame 183
_root.snd_play("swampdrop");
Symbol 183 MovieClip Frame 297
stop();
_root.finishanim(_parent._name);
Symbol 192 MovieClip Frame 21
_root.rustlesnd();
Symbol 192 MovieClip Frame 55
stop();
_root.finishanim(_parent._name);
Symbol 196 MovieClip Frame 33
_root.rustlesnd();
Symbol 196 MovieClip Frame 49
stop();
_root.finishanim(_parent._name);
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 14
_root.rustlesnd();
Symbol 204 MovieClip Frame 34
stop();
_root.finishanim(_parent._name);
Symbol 209 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 18
_root.rustlesnd();
Symbol 210 MovieClip Frame 34
stop();
_root.finishanim(_parent._name);
Symbol 220 MovieClip Frame 19
_root.kicksnd();
Symbol 220 MovieClip Frame 41
_root.doorkicked();
Symbol 220 MovieClip Frame 65
_root.walksnd();
Symbol 220 MovieClip Frame 72
stop();
_root.finishanim(_parent._name);
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 26
_root.walksnd();
Symbol 227 MovieClip Frame 50
_root.walksnd();
Symbol 227 MovieClip Frame 56
_root.rustlesnd();
Symbol 227 MovieClip Frame 72
stop();
_root.finishanim(_parent._name);
Symbol 241 MovieClip Frame 12
_root.poursnd(_parent._name);
Symbol 241 MovieClip Frame 60
stop();
Symbol 247 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 247 MovieClip Frame 35
stop();
Symbol 254 MovieClip Frame 20
_root.stepsnd(_parent._name);
Symbol 254 MovieClip Frame 36
_root.stepsnd(_parent._name);
Symbol 254 MovieClip Frame 44
stop();
_root.finishanim(_parent._name);
Symbol 259 MovieClip Frame 7
_root.movechar(_parent._name, 28);
Symbol 259 MovieClip Frame 14
_root.movechar(_parent._name, 22);
Symbol 259 MovieClip Frame 21
_root.movechar(_parent._name, 18);
_root.stepsnd(_parent._name);
Symbol 259 MovieClip Frame 28
_root.movechar(_parent._name, 12);
Symbol 265 MovieClip Frame 1
_root.movechar(_parent._name, 18);
Symbol 265 MovieClip Frame 9
_root.movechar(_parent._name, 8);
Symbol 265 MovieClip Frame 17
_root.movechar(_parent._name, 14);
Symbol 265 MovieClip Frame 18
_root.dropsnd(_parent._name);
Symbol 265 MovieClip Frame 49
stop();
Symbol 275 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 275 MovieClip Frame 8
_root.movechar(_parent._name, 14);
Symbol 275 MovieClip Frame 15
_root.movechar(_parent._name, 21);
Symbol 275 MovieClip Frame 22
_root.movechar(_parent._name, 23);
Symbol 275 MovieClip Frame 23
_root.dropsnd(_parent._name);
Symbol 275 MovieClip Frame 36
_root.movechar(_parent._name, 22);
Symbol 275 MovieClip Frame 43
_root.movechar(_parent._name, 26);
Symbol 275 MovieClip Frame 50
_root.movechar(_parent._name, 6);
Symbol 275 MovieClip Frame 57
stop();
Symbol 288 MovieClip Frame 1
_root.movechar(_parent._name, 18);
Symbol 288 MovieClip Frame 9
_root.movechar(_parent._name, 8);
Symbol 288 MovieClip Frame 17
_root.movechar(_parent._name, 14);
Symbol 288 MovieClip Frame 18
_root.dropsnd(_parent._name);
Symbol 288 MovieClip Frame 78
stop();
Symbol 306 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 306 MovieClip Frame 8
_root.movechar(_parent._name, 14);
Symbol 306 MovieClip Frame 15
_root.movechar(_parent._name, 21);
Symbol 306 MovieClip Frame 18
_root.dropsnd(_parent._name);
Symbol 306 MovieClip Frame 22
_root.movechar(_parent._name, 23);
Symbol 306 MovieClip Frame 36
_root.movechar(_parent._name, 22);
Symbol 306 MovieClip Frame 43
_root.movechar(_parent._name, 26);
Symbol 306 MovieClip Frame 50
_root.movechar(_parent._name, 6);
Symbol 306 MovieClip Frame 117
stop();
Symbol 320 MovieClip Frame 9
_root.movechar(_parent._name, 5);
Symbol 320 MovieClip Frame 17
_root.movechar(_parent._name, 8);
Symbol 320 MovieClip Frame 25
_root.movechar(_parent._name, 26);
Symbol 320 MovieClip Frame 27
_root.dropsnd(_parent._name);
Symbol 320 MovieClip Frame 89
stop();
Symbol 329 MovieClip Frame 9
_root.movechar(_parent._name, 4);
Symbol 329 MovieClip Frame 17
_root.movechar(_parent._name, 11);
Symbol 329 MovieClip Frame 41
_root.movechar(_parent._name, 12);
Symbol 329 MovieClip Frame 42
_root.dropsnd(_parent._name);
Symbol 329 MovieClip Frame 65
_root.movechar(_parent._name, 11);
Symbol 329 MovieClip Frame 73
stop();
Symbol 333 MovieClip Frame 9
_root.movechar(_parent._name, 14);
Symbol 333 MovieClip Frame 17
_root.movechar(_parent._name, 16);
Symbol 333 MovieClip Frame 24
stop();
_root.finishanim(_parent._name);
Symbol 348 MovieClip Frame 34
_root.switchover(_parent._name);
Symbol 348 MovieClip Frame 48
_root.stepsnd(_parent._name);
Symbol 348 MovieClip Frame 56
_root.roomchange(_parent._name);
Symbol 348 MovieClip Frame 71
_root.stepsnd(_parent._name);
Symbol 348 MovieClip Frame 78
stop();
_root.dropoutchar(_parent._name);
Symbol 353 MovieClip Frame 23
_root.stepsnd(_parent._name);
Symbol 353 MovieClip Frame 47
_root.stepsnd(_parent._name);
Symbol 353 MovieClip Frame 63
_root.stepsnd(_parent._name);
Symbol 353 MovieClip Frame 78
stop();
_root.finishanim(_parent._name);
Symbol 364 MovieClip [splatter_2] Frame 60
stop();
Symbol 370 MovieClip [splatter_4] Frame 51
stop();
Symbol 380 MovieClip [splatter_3] Frame 76
stop();
Symbol 385 MovieClip [squib_1] Frame 16
this.removeMovieClip();
Symbol 389 MovieClip [squib_2] Frame 12
this.removeMovieClip();
Symbol 394 MovieClip [squib_3] Frame 16
this.removeMovieClip();
Symbol 400 MovieClip [squib_4] Frame 20
stop();
this.removeMovieClip();
Symbol 412 MovieClip [splatter_1] Frame 64
stop();
Symbol 422 MovieClip Frame 12
_root.poursnd(_parent._name);
Symbol 422 MovieClip Frame 60
stop();
Symbol 429 MovieClip Frame 20
_root.dropsnd(_parent._name);
Symbol 429 MovieClip Frame 35
stop();
Symbol 436 MovieClip Frame 20
_root.stepsnd(_parent._name);
Symbol 436 MovieClip Frame 36
_root.stepsnd(_parent._name);
Symbol 436 MovieClip Frame 44
stop();
_root.finishanim(_parent._name);
Symbol 442 MovieClip Frame 7
_root.movechar(_parent._name, 25);
Symbol 442 MovieClip Frame 14
_root.movechar(_parent._name, 19);
Symbol 442 MovieClip Frame 21
_root.movechar(_parent._name, 16);
_root.stepsnd(_parent._name);
Symbol 442 MovieClip Frame 28
_root.movechar(_parent._name, 12);
Symbol 449 MovieClip Frame 1
_root.movechar(_parent._name, 18);
Symbol 449 MovieClip Frame 9
_root.movechar(_parent._name, 8);
Symbol 449 MovieClip Frame 17
_root.movechar(_parent._name, 14);
Symbol 449 MovieClip Frame 18
_root.dropsnd(_parent._name);
Symbol 449 MovieClip Frame 49
stop();
Symbol 459 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 459 MovieClip Frame 8
_root.movechar(_parent._name, 14);
Symbol 459 MovieClip Frame 15
_root.movechar(_parent._name, 21);
Symbol 459 MovieClip Frame 18
_root.dropsnd(_parent._name);
Symbol 459 MovieClip Frame 22
_root.movechar(_parent._name, 23);
Symbol 459 MovieClip Frame 36
_root.movechar(_parent._name, 22);
Symbol 459 MovieClip Frame 43
_root.movechar(_parent._name, 26);
Symbol 459 MovieClip Frame 50
_root.movechar(_parent._name, 6);
Symbol 459 MovieClip Frame 57
stop();
Symbol 469 MovieClip Frame 1
_root.movechar(_parent._name, 18);
Symbol 469 MovieClip Frame 9
_root.movechar(_parent._name, 8);
Symbol 469 MovieClip Frame 17
_root.movechar(_parent._name, 14);
Symbol 469 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 469 MovieClip Frame 78
stop();
Symbol 479 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 479 MovieClip Frame 8
_root.movechar(_parent._name, 14);
Symbol 479 MovieClip Frame 15
_root.movechar(_parent._name, 21);
Symbol 479 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 479 MovieClip Frame 22
_root.movechar(_parent._name, 23);
Symbol 479 MovieClip Frame 36
_root.movechar(_parent._name, 22);
Symbol 479 MovieClip Frame 43
_root.movechar(_parent._name, 26);
Symbol 479 MovieClip Frame 50
_root.movechar(_parent._name, 6);
Symbol 479 MovieClip Frame 117
stop();
Symbol 487 MovieClip Frame 9
_root.movechar(_parent._name, 5);
Symbol 487 MovieClip Frame 17
_root.movechar(_parent._name, 8);
Symbol 487 MovieClip Frame 25
_root.movechar(_parent._name, 26);
Symbol 487 MovieClip Frame 26
_root.dropsnd(_parent._name);
Symbol 487 MovieClip Frame 89
stop();
Symbol 497 MovieClip Frame 9
_root.movechar(_parent._name, 4);
Symbol 497 MovieClip Frame 17
_root.movechar(_parent._name, 11);
Symbol 497 MovieClip Frame 41
_root.movechar(_parent._name, 12);
Symbol 497 MovieClip Frame 43
_root.dropsnd(_parent._name);
Symbol 497 MovieClip Frame 65
_root.movechar(_parent._name, 11);
Symbol 497 MovieClip Frame 80
stop();
Symbol 501 MovieClip Frame 9
_root.movechar(_parent._name, 14);
Symbol 501 MovieClip Frame 17
_root.movechar(_parent._name, 16);
Symbol 501 MovieClip Frame 24
stop();
_root.finishanim(_parent._name);
Symbol 513 MovieClip Frame 34
_root.switchover(_parent._name);
Symbol 513 MovieClip Frame 48
_root.stepsnd(_parent._name);
Symbol 513 MovieClip Frame 56
_root.roomchange(_parent._name);
Symbol 513 MovieClip Frame 71
_root.stepsnd(_parent._name);
Symbol 513 MovieClip Frame 78
stop();
_root.dropoutchar(_parent._name);
Symbol 519 MovieClip Frame 23
_root.stepsnd(_parent._name);
Symbol 519 MovieClip Frame 47
_root.stepsnd(_parent._name);
Symbol 519 MovieClip Frame 63
_root.stepsnd(_parent._name);
Symbol 519 MovieClip Frame 78
stop();
_root.finishanim(_parent._name);
Symbol 533 MovieClip Frame 14
_root.poursnd(_parent._name);
Symbol 533 MovieClip Frame 62
stop();
Symbol 539 MovieClip Frame 16
_root.dropsnd(_parent._name);
Symbol 539 MovieClip Frame 29
stop();
Symbol 546 MovieClip Frame 18
_root.stepsnd(_parent._name);
Symbol 546 MovieClip Frame 34
_root.stepsnd(_parent._name);
Symbol 546 MovieClip Frame 42
stop();
_root.finishanim(_parent._name);
Symbol 552 MovieClip Frame 7
_root.movechar(_parent._name, 45);
Symbol 552 MovieClip Frame 14
_root.movechar(_parent._name, 30);
Symbol 552 MovieClip Frame 21
_root.movechar(_parent._name, 30);
_root.stepsnd(_parent._name);
Symbol 552 MovieClip Frame 28
_root.movechar(_parent._name, 16);
Symbol 560 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 560 MovieClip Frame 18
_root.movechar(_parent._name, 26);
Symbol 560 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 560 MovieClip Frame 83
stop();
Symbol 569 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 569 MovieClip Frame 8
_root.movechar(_parent._name, 10);
Symbol 569 MovieClip Frame 16
_root.movechar(_parent._name, 25);
Symbol 569 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 569 MovieClip Frame 22
_root.movechar(_parent._name, 16);
Symbol 569 MovieClip Frame 38
_root.movechar(_parent._name, 22);
Symbol 569 MovieClip Frame 46
_root.movechar(_parent._name, 37);
Symbol 569 MovieClip Frame 54
_root.movechar(_parent._name, 4);
Symbol 569 MovieClip Frame 139
stop();
Symbol 581 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 581 MovieClip Frame 18
_root.dropsnd(_parent._name);
_root.movechar(_parent._name, 26);
Symbol 581 MovieClip Frame 83
stop();
Symbol 600 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 600 MovieClip Frame 8
_root.movechar(_parent._name, 10);
Symbol 600 MovieClip Frame 16
_root.movechar(_parent._name, 25);
Symbol 600 MovieClip Frame 18
_root.dropsnd(_parent._name);
Symbol 600 MovieClip Frame 22
_root.movechar(_parent._name, 16);
Symbol 600 MovieClip Frame 38
_root.movechar(_parent._name, 22);
Symbol 600 MovieClip Frame 46
_root.movechar(_parent._name, 37);
Symbol 600 MovieClip Frame 54
_root.movechar(_parent._name, 4);
Symbol 600 MovieClip Frame 139
stop();
Symbol 611 MovieClip Frame 15
_root.movechar(_parent._name, 16);
Symbol 611 MovieClip Frame 21
_root.movechar(_parent._name, 23);
Symbol 611 MovieClip Frame 23
_root.dropsnd(_parent._name);
Symbol 611 MovieClip Frame 58
stop();
Symbol 620 MovieClip Frame 9
_root.movechar(_parent._name, 5);
Symbol 620 MovieClip Frame 17
_root.movechar(_parent._name, 6);
Symbol 620 MovieClip Frame 38
_root.movechar(_parent._name, 6);
Symbol 620 MovieClip Frame 40
_root.dropsnd(_parent._name);
Symbol 620 MovieClip Frame 64
_root.movechar(_parent._name, 18);
Symbol 620 MovieClip Frame 72
stop();
Symbol 624 MovieClip Frame 9
_root.movechar(_parent._name, 14);
Symbol 624 MovieClip Frame 17
_root.movechar(_parent._name, 16);
Symbol 624 MovieClip Frame 24
stop();
_root.finishanim(_parent._name);
Symbol 639 MovieClip Frame 36
_root.switchover(_parent._name);
Symbol 639 MovieClip Frame 48
_root.stepsnd(_parent._name);
Symbol 639 MovieClip Frame 55
_root.roomchange(_parent._name);
Symbol 639 MovieClip Frame 68
_root.stepsnd(_parent._name);
Symbol 639 MovieClip Frame 74
stop();
_root.dropoutchar(_parent._name);
Symbol 648 MovieClip Frame 20
_root.stepsnd(_parent._name);
Symbol 648 MovieClip Frame 42
_root.stepsnd(_parent._name);
Symbol 648 MovieClip Frame 58
_root.stepsnd(_parent._name);
Symbol 648 MovieClip Frame 74
stop();
_root.finishanim(_parent._name);
Symbol 659 MovieClip Frame 14
_root.poursnd(_parent._name);
Symbol 659 MovieClip Frame 62
stop();
Symbol 665 MovieClip Frame 16
_root.dropsnd(_parent._name);
Symbol 665 MovieClip Frame 29
stop();
Symbol 672 MovieClip Frame 18
_root.stepsnd(_parent._name);
Symbol 672 MovieClip Frame 34
_root.stepsnd(_parent._name);
Symbol 672 MovieClip Frame 42
stop();
_root.finishanim(_parent._name);
Symbol 677 MovieClip Frame 7
_root.movechar(_parent._name, 48);
Symbol 677 MovieClip Frame 14
_root.movechar(_parent._name, 34);
Symbol 677 MovieClip Frame 21
_root.movechar(_parent._name, 32);
_root.stepsnd(_parent._name);
Symbol 677 MovieClip Frame 28
_root.movechar(_parent._name, 16);
Symbol 685 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 685 MovieClip Frame 18
_root.movechar(_parent._name, 26);
Symbol 685 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 685 MovieClip Frame 83
stop();
Symbol 694 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 694 MovieClip Frame 8
_root.movechar(_parent._name, 10);
Symbol 694 MovieClip Frame 16
_root.movechar(_parent._name, 25);
Symbol 694 MovieClip Frame 18
_root.dropsnd(_parent._name);
Symbol 694 MovieClip Frame 22
_root.movechar(_parent._name, 16);
Symbol 694 MovieClip Frame 38
_root.movechar(_parent._name, 22);
Symbol 694 MovieClip Frame 46
_root.movechar(_parent._name, 37);
Symbol 694 MovieClip Frame 54
_root.movechar(_parent._name, 4);
Symbol 694 MovieClip Frame 139
stop();
Symbol 703 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 703 MovieClip Frame 18
_root.movechar(_parent._name, 26);
Symbol 703 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 703 MovieClip Frame 83
stop();
Symbol 713 MovieClip Frame 1
_root.movechar(_parent._name, 22);
Symbol 713 MovieClip Frame 8
_root.movechar(_parent._name, 10);
Symbol 713 MovieClip Frame 16
_root.movechar(_parent._name, 25);
Symbol 713 MovieClip Frame 19
_root.dropsnd(_parent._name);
Symbol 713 MovieClip Frame 22
_root.movechar(_parent._name, 16);
Symbol 713 MovieClip Frame 38
_root.movechar(_parent._name, 22);
Symbol 713 MovieClip Frame 46
_root.movechar(_parent._name, 37);
Symbol 713 MovieClip Frame 62
_root.movechar(_parent._name, 4);
Symbol 713 MovieClip Frame 139
stop();
Symbol 721 MovieClip Frame 15
Symbol 721 MovieClip Frame 21
_root.movechar(_parent._name, 23);
Symbol 721 MovieClip Frame 22
_root.dropsnd(_parent._name);
Symbol 721 MovieClip Frame 58
stop();
Symbol 730 MovieClip Frame 9
_root.movechar(_parent._name, 5);
Symbol 730 MovieClip Frame 17
_root.movechar(_parent._name, 6);
Symbol 730 MovieClip Frame 38
_root.movechar(_parent._name, 6);
Symbol 730 MovieClip Frame 39
_root.dropsnd(_parent._name);
Symbol 730 MovieClip Frame 64
_root.movechar(_parent._name, 18);
Symbol 730 MovieClip Frame 72
stop();
Symbol 734 MovieClip Frame 9
_root.movechar(_parent._name, 14);
Symbol 734 MovieClip Frame 17
_root.movechar(_parent._name, 16);
Symbol 734 MovieClip Frame 24
stop();
_root.finishanim(_parent._name);
Symbol 748 MovieClip Frame 36
_root.switchover(_parent._name);
Symbol 748 MovieClip Frame 48
_root.stepsnd(_parent._name);
Symbol 748 MovieClip Frame 55
_root.roomchange(_parent._name);
Symbol 748 MovieClip Frame 68
_root.stepsnd(_parent._name);
Symbol 748 MovieClip Frame 74
stop();
_root.dropoutchar(_parent._name);
Symbol 756 MovieClip Frame 20
_root.stepsnd(_parent._name);
Symbol 756 MovieClip Frame 42
_root.stepsnd(_parent._name);
Symbol 756 MovieClip Frame 58
_root.stepsnd(_parent._name);
Symbol 756 MovieClip Frame 74
stop();
_root.finishanim(_parent._name);
Symbol 766 MovieClip Frame 1
this.gotoAndStop(_root.gamep.swordframe);
Symbol 776 MovieClip Frame 1
if (_root.gamep.swordframe == 1) {
stop();
this._visible = false;
}
Symbol 776 MovieClip Frame 17
stop();
Symbol 784 MovieClip Frame 1
stop();
_root.gamep.slash = 0;
Symbol 784 MovieClip Frame 42
stop();
_root.gamep.slash = 2;
Symbol 784 MovieClip Frame 43
_root.katanasnd();
Symbol 784 MovieClip Frame 47
_root.slash();
Symbol 790 MovieClip Frame 7
_root.movechar(_parent._name, 8);
Symbol 790 MovieClip Frame 14
_root.movechar(_parent._name, 8);
_root.movetorso(-5);
Symbol 790 MovieClip Frame 21
_root.movechar(_parent._name, 7);
_root.movetorso(-3);
Symbol 790 MovieClip Frame 28
_root.movechar(_parent._name, 8);
_root.movetorso(0);
_root.walksnd();
Symbol 790 MovieClip Frame 35
_root.movechar(_parent._name, 7);
Symbol 801 MovieClip Frame 17
_root.walksnd();
Symbol 801 MovieClip Frame 41
stop();
_root.finishanim(_parent._name);
Symbol 809 MovieClip Frame 25
_root.walksnd();
Symbol 809 MovieClip Frame 49
_root.walksnd();
Symbol 809 MovieClip Frame 57
stop();
_root.finishanim(_parent._name);
Symbol 814 MovieClip [swordsquib_1] Frame 17
this.removeMovieClip();
Symbol 824 MovieClip Frame 1
this.gotoAndStop(_root.gamep.swordframe);
Symbol 832 MovieClip Frame 1
this.gotoAndStop(_root.gamep.swordframe);
Symbol 837 MovieClip Frame 25
_root.walksnd();
Symbol 837 MovieClip Frame 50
_root.walksnd();
Symbol 837 MovieClip Frame 66
stop();
_root.finishanim(_parent._name);
Symbol 878 MovieClip Frame 44
_root.snd_play("dropkatana");
Symbol 878 MovieClip Frame 65
stop();
_root.gamep.cansuicide = 1;
Symbol 878 MovieClip Frame 68
_root.snd_play("pillcap");
Symbol 878 MovieClip Frame 92
_root.snd_play("pilltake");
Symbol 878 MovieClip Frame 175
_root.snd_play("pilldrop1");
Symbol 878 MovieClip Frame 197
_root.snd_play("pilldrop2");
Symbol 878 MovieClip Frame 219
_root.walksnd();
Symbol 878 MovieClip Frame 240
_root.snd_play("swampdrop");
Symbol 878 MovieClip Frame 323
stop();
_root.finishanim(_parent._name);
Symbol 884 MovieClip Frame 41
stop();
_root.finishanim(_parent._name);
Symbol 888 MovieClip Frame 49
stop();
_root.finishanim(_parent._name);
Symbol 907 MovieClip Frame 17
_root.kicksnd();
Symbol 907 MovieClip Frame 41
_root.doorkicked();
Symbol 907 MovieClip Frame 65
_root.walksnd();
Symbol 907 MovieClip Frame 72
stop();
_root.finishanim(_parent._name);
Symbol 915 MovieClip Frame 1
stop();
Symbol 915 MovieClip Frame 41
_root.walksnd();
Symbol 915 MovieClip Frame 65
_root.walksnd();
Symbol 915 MovieClip Frame 79
stop();
_root.finishanim(_parent._name);
Symbol 929 MovieClip Frame 45
_root.stabground();
Symbol 929 MovieClip Frame 114
stop();
_root.finishanim(_parent._name);
Symbol 930 MovieClip [adam_katana] Frame 1
_root.movetorso(0);
Symbol 944 MovieClip Frame 70
stop();
_root.finishanim(_parent._name);
Symbol 948 MovieClip Frame 35
stop();
_root.finishanim(_parent._name);
Symbol 951 MovieClip Frame 29
stop();
_root.finishanim(_parent._name);
Symbol 960 MovieClip Frame 1
_root.movechar(_parent._name, 30);
Symbol 960 MovieClip Frame 8
_root.movechar(_parent._name, 22);
_root.stepsnd(_parent._name);
Symbol 960 MovieClip Frame 15
_root.movechar(_parent._name, 20);
Symbol 964 MovieClip Frame 1
_root.movechar(_parent._name, 30);
Symbol 964 MovieClip Frame 8
_root.movechar(_parent._name, 22);
_root.stepsnd(_parent._name);
Symbol 964 MovieClip Frame 15
_root.movechar(_parent._name, 20);
Symbol 968 MovieClip Frame 1
_root.movechar(_parent._name, 30);
Symbol 968 MovieClip Frame 8
_root.movechar(_parent._name, 22);
_root.stepsnd(_parent._name);
Symbol 968 MovieClip Frame 15
_root.movechar(_parent._name, 20);
Symbol 974 MovieClip Frame 22
_root.dropsnd(_parent._name);
Symbol 974 MovieClip Frame 29
stop();
Symbol 980 MovieClip Frame 16
_root.dropsnd(_parent._name);
Symbol 980 MovieClip Frame 29
stop();
Symbol 985 MovieClip Frame 10
_root.dropgun(_parent._name);
Symbol 985 MovieClip Frame 22
_root.dropsnd(_parent._name);
Symbol 985 MovieClip Frame 29
stop();
Symbol 989 MovieClip Frame 10
_root.dropgun(_parent._name);
Symbol 989 MovieClip Frame 16
_root.dropsnd(_parent._name);
Symbol 989 MovieClip Frame 29
stop();
Symbol 994 MovieClip Frame 7
_root.movechar(_parent._name, 50);
_root.stepsnd(_parent._name);
Symbol 994 MovieClip Frame 14
_root.movechar(_parent._name, 33);
Symbol 994 MovieClip Frame 21
_root.movechar(_parent._name, 23);
_root.stepsnd(_parent._name);
Symbol 994 MovieClip Frame 28
_root.movechar(_parent._name, 7);
Symbol 999 MovieClip Frame 8
_root.movechar(_parent._name, 12);
Symbol 999 MovieClip Frame 15
_root.movechar(_parent._name, 20);
_root.dropsnd(_parent._name);
Symbol 999 MovieClip Frame 22
stop();
Symbol 1006 MovieClip Frame 1
_root.movechar(_parent._name, 36);
Symbol 1006 MovieClip Frame 8
_root.movechar(_parent._name, 40);
Symbol 1006 MovieClip Frame 11
_root.dropsnd(_parent._name);
Symbol 1006 MovieClip Frame 16
_root.movechar(_parent._name, 38);
Symbol 1006 MovieClip Frame 24
_root.movechar(_parent._name, 29);
Symbol 1006 MovieClip Frame 40
stop();
Symbol 1009 MovieClip Frame 8
_root.movechar(_parent._name, 35);
Symbol 1009 MovieClip Frame 14
stop();
_root.finishanim(_parent._name);
Symbol 1015 MovieClip Frame 8
stop();
Symbol 1025 MovieClip Frame 15
_root.animdoor(_parent._name);
_root.switchover(_parent._name);
Symbol 1025 MovieClip Frame 29
_root.stepsnd(_parent._name);
Symbol 1025 MovieClip Frame 36
_root.roomchange(_parent._name);
Symbol 1025 MovieClip Frame 43
_root.stepsnd(_parent._name);
Symbol 1025 MovieClip Frame 57
_root.stepsnd(_parent._name);
Symbol 1025 MovieClip Frame 64
stop();
_root.dropoutchar(_parent._name);
Symbol 1029 MovieClip Frame 15
_root.stepsnd(_parent._name);
Symbol 1029 MovieClip Frame 29
_root.stepsnd(_parent._name);
Symbol 1029 MovieClip Frame 43
_root.stepsnd(_parent._name);
Symbol 1029 MovieClip Frame 50
_root.animdoor(_parent._name, 1);
Symbol 1029 MovieClip Frame 57
_root.stepsnd(_parent._name);
Symbol 1029 MovieClip Frame 63
stop();
_root.finishanim(_parent._name);
Symbol 1035 MovieClip Frame 1
_root.animdoor(_parent._name);
Symbol 1035 MovieClip Frame 2
_root.switchover(_parent._name);
Symbol 1035 MovieClip Frame 22
_root.stepsnd(_parent._name);
Symbol 1035 MovieClip Frame 29
_root.stepsnd(_parent._name);
Symbol 1035 MovieClip Frame 43
stop();
_root.finishanim(_parent._name);
_root.stepsnd(_parent._name);
Symbol 1040 MovieClip Frame 15
_root.roomchange(_parent._name);
_root.stepsnd(_parent._name);
Symbol 1040 MovieClip Frame 29
_root.stepsnd(_parent._name);
Symbol 1040 MovieClip Frame 39
_root.animdoor(_parent._name, 1);
Symbol 1040 MovieClip Frame 43
stop();
_root.dropoutchar(_parent._name);
Symbol 1043 MovieClip Frame 15
_root.stepsnd(_parent._name);
Symbol 1043 MovieClip Frame 36
_root.stepsnd(_parent._name);
Symbol 1043 MovieClip Frame 42
stop();
_root.finishanim(_parent._name);
Symbol 1045 MovieClip Frame 15
_root.stepsnd(_parent._name);
Symbol 1045 MovieClip Frame 22
_root.stepsnd(_parent._name);
Symbol 1045 MovieClip Frame 36
_root.stepsnd(_parent._name);
Symbol 1045 MovieClip Frame 42
stop();
_root.finishanim(_parent._name);
Symbol 1053 MovieClip Frame 1
_root.movechar(_parent._name, 57);
Symbol 1053 MovieClip Frame 10
_root.dropsnd(_parent._name);
Symbol 1053 MovieClip Frame 22
_root.movechar(_parent._name, 32);
Symbol 1053 MovieClip Frame 36
_root.movechar(_parent._name, 61);
_root.stepsnd(_parent._name);
Symbol 1053 MovieClip Frame 43
_root.movechar(_parent._name, 29);
_root.stepsnd(_parent._name);
Symbol 1053 MovieClip Frame 50
stop();
_root.finishanim(_parent._name);
Symbol 1077 MovieClip [swordsquib_2] Frame 25
this.removeMovieClip();
Symbol 1083 MovieClip [swordsquib_3] Frame 21
this.removeMovieClip();
Symbol 1091 MovieClip [swordsquib_4] Frame 22
this.removeMovieClip();
Instance of Symbol 1165 MovieClip in Symbol 1169 MovieClip Frame 1
on (press) {
_root.startgame("historical");
}
Instance of Symbol 1168 MovieClip in Symbol 1169 MovieClip Frame 2
on (press) {
_root.startgame("historical_main");
}
Instance of Symbol 1165 MovieClip in Symbol 1174 MovieClip Frame 1
on (press) {
_root.startgame("guncontrol");
}
Instance of Symbol 1168 MovieClip in Symbol 1174 MovieClip Frame 2
on (press) {
_root.startgame("guncontrol_main");
}
Instance of Symbol 1165 MovieClip in Symbol 1178 MovieClip Frame 1
on (press) {
_root.startgame("eagletears");
}
Symbol 1197 MovieClip Frame 1
stop();
Symbol 1210 MovieClip Frame 1
stop();
Symbol 1223 MovieClip Frame 1
stop();
Symbol 1223 MovieClip Frame 2
_root.setdoor(this._name);
Symbol 1223 MovieClip Frame 7
_root.setdoor(this._name);
Symbol 1223 MovieClip Frame 15
stop();
_root.setdoor(this._name);
Symbol 1223 MovieClip Frame 16
_root.setdoor(this._name);
Symbol 1223 MovieClip Frame 24
_root.setdoor(this._name);
Symbol 1230 MovieClip Frame 1
stop();
Symbol 1230 MovieClip Frame 2
stop();
Symbol 1230 MovieClip Frame 3
stop();
_root.snd_play("keys");
Symbol 1235 MovieClip Frame 1
stop();
Symbol 1235 MovieClip Frame 2
_root.snd_play("slidingdoor");
Symbol 1235 MovieClip Frame 20
stop();
Symbol 1235 MovieClip Frame 21
stop();
_root.snd_play("getar15");
Symbol 1242 MovieClip Frame 1
stop();
Symbol 1242 MovieClip Frame 2
_root.snd_play("getpistol");
Symbol 1242 MovieClip Frame 51
stop();
Symbol 1268 MovieClip Frame 1
stop();
Symbol 1268 MovieClip Frame 75
stop();
_root.mompopped();
Symbol 1268 MovieClip Frame 139
stop();
_root.mompopped();
Symbol 1268 MovieClip Frame 183
stop();
_root.mompopped();
Symbol 1268 MovieClip Frame 276
stop();
_root.mompopped(1);
Symbol 1283 MovieClip Frame 1
_root.shouldstop(this._name);
Symbol 1283 MovieClip Frame 44
_root.snd_play("ar2");
Symbol 1283 MovieClip Frame 48
_root.snd_play("glass");
Symbol 1283 MovieClip Frame 101
_root.comeinadam();
Symbol 1283 MovieClip Frame 104
stop();
Symbol 1288 MovieClip Frame 1
stop();
_root.setdoor(this._name);
Symbol 1288 MovieClip Frame 2
_root.setdoor(this._name);
Symbol 1288 MovieClip Frame 7
_root.setdoor(this._name);
Symbol 1288 MovieClip Frame 15
stop();
_root.setdoor(this._name);
Symbol 1288 MovieClip Frame 16
_root.setdoor(this._name);
Symbol 1288 MovieClip Frame 24
_root.setdoor(this._name);
Symbol 1311 MovieClip Frame 1
_root.shouldstop(this._name);
Symbol 1311 MovieClip Frame 43
_root.snd_play("sledgehammer");
Symbol 1311 MovieClip Frame 47
_root.snd_play("glass");
Symbol 1311 MovieClip Frame 109
_root.comeinadam();
Symbol 1311 MovieClip Frame 112
stop();
Symbol 1327 MovieClip Frame 1
_root.snd_play("slidingdoor");
Symbol 1327 MovieClip Frame 20
stop();
Symbol 1327 MovieClip Frame 23
_root.snd_play("safe");
Symbol 1327 MovieClip Frame 195
stop();
_root.gamep.tute = "y";
Symbol 1330 MovieClip Frame 1
stop();
Symbol 1330 MovieClip Frame 6
stop();
Symbol 1330 MovieClip Frame 8
stop();
Symbol 1333 MovieClip Frame 2
_root.doors_living = ["mom"];
_root.doors_mom = ["living"];
_root.pickups = ["glock"];
Symbol 1333 MovieClip Frame 9
_root.doors_hall1 = ["class1", "class2", "class3", "class4", "class5", "gym", "toilet1", "toilet2"];
_root.doors_hall2 = ["class6", "class7", "class8", "class9", "principal", "gym", "toilet3", "toilet4"];
_root.doors_class1 = ["hall1"];
_root.doors_class2 = ["hall1"];
_root.doors_class3 = ["hall1"];
_root.doors_class4 = ["hall1"];
_root.doors_class5 = ["hall1"];
_root.doors_class6 = ["hall2"];
_root.doors_class7 = ["hall2"];
_root.doors_class8 = ["hall2"];
_root.doors_class9 = ["hall2"];
_root.doors_principal = ["hall2"];
_root.doors_toilet1 = ["hall1"];
_root.doors_toilet2 = ["hall1"];
_root.doors_toilet3 = ["hall2"];
_root.doors_toilet4 = ["hall2"];
_root.doors_gym = ["hall1", "hall2"];
_root.doorbubbles();
Symbol 1333 MovieClip Frame 19
_root.pickups = ["ar15"];
Symbol 1342 MovieClip Frame 153
_root.startgame(_root.gamep.mod + "_main");
Symbol 1342 MovieClip Frame 244
stop();
Symbol 1350 MovieClip Frame 1
stop();