Crusader_Decomp/USECODE/REGRET/DOOR3.unk

1025 lines
23 KiB
Text

/* synthesized appendix for DOOR3 */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x20 slot_20 ===== */
function door3_slot_20() /* entry=452 class_id=0x0A06 slot=0x20 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x21 slot_21 ===== */
function door3_slot_21() /* entry=452 class_id=0x0A06 slot=0x21 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) - 64), Item.getX(arg_06), 0, 0x032A, local_04)) {
for local_04 in nearby_items(shape=0x05A5, origin=arg_06) {
/* loopnext */
}
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x22 slot_22 ===== */
function door3_slot_22() /* entry=452 class_id=0x0A06 slot=0x22 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x23 slot_23 ===== */
function door3_slot_23() /* entry=452 class_id=0x0A06 slot=0x23 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) - 64), 0, 0x0120, local_04)) {
for local_04 in nearby_items(shape=0x05A4, origin=arg_06) {
/* loopnext */
}
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x24 slot_24 ===== */
function door3_slot_24() /* entry=452 class_id=0x0A06 slot=0x24 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x25 slot_25 ===== */
function door3_slot_25() /* entry=452 class_id=0x0A06 slot=0x25 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x26 slot_26 ===== */
function door3_slot_26() /* entry=452 class_id=0x0A06 slot=0x26 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) + 112), 0, 4, local_04)) {
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
else if (Item.getFrame(arg_06) == 1) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) + 112), Item.getX(arg_06), 0, 0x0084, local_04)) {
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
else if (Item.getFrame(arg_06) == 2) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) + 0x0080), 0, 0x0120, local_04)) {
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
else if (Item.getFrame(arg_06) == 3) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) + 0x0080), Item.getX(arg_06), 0, 0x032A, local_04)) {
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x27 slot_27 ===== */
function door3_slot_27() /* entry=452 class_id=0x0A06 slot=0x27 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x28 slot_28 ===== */
function door3_slot_28() /* entry=452 class_id=0x0A06 slot=0x28 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x29 slot_29 ===== */
function door3_slot_29() /* entry=452 class_id=0x0A06 slot=0x29 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x2A slot_2A ===== */
function door3_slot_2A() /* entry=452 class_id=0x0A06 slot=0x2A */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x2B slot_2B ===== */
function door3_slot_2B() /* entry=452 class_id=0x0A06 slot=0x2B */
{
set_info(0x0207, *(arg_06));
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) + 0x0080), 0, 0x0120, local_04)) {
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x2C slot_2C ===== */
function door3_slot_2C() /* entry=452 class_id=0x0A06 slot=0x2C */
{
set_info(0x0207, *(arg_06));
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) + 0x0080), Item.getX(arg_06), 0, 0x032A, local_04)) {
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x2D slot_2D ===== */
function door3_slot_2D() /* entry=452 class_id=0x0A06 slot=0x2D */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 3) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x2E slot_2E ===== */
function door3_slot_2E() /* entry=452 class_id=0x0A06 slot=0x2E */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) - 64), Item.getX(arg_06), 0, 0x0140, local_04)) {
for local_04 in nearby_items(shape=0x00DB, origin=arg_06) {
/* loopnext */
}
local_02 = 0;
while (local_02 > 3) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x2F slot_2F ===== */
function door3_slot_2F() /* entry=452 class_id=0x0A06 slot=0x2F */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 3) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x30 slot_30 ===== */
function door3_slot_30() /* entry=452 class_id=0x0A06 slot=0x30 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) - 64), 0, 0x0281, local_04)) {
for local_04 in nearby_items(shape=0x00D9, origin=arg_06) {
/* loopnext */
}
local_02 = 0;
while (local_02 > 3) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x31 slot_31 ===== */
function door3_slot_31() /* entry=452 class_id=0x0A06 slot=0x31 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x32 slot_32 ===== */
function door3_slot_32() /* entry=452 class_id=0x0A06 slot=0x32 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) - 64), Item.getX(arg_06), 0, 0x0140, local_04)) {
for local_04 in nearby_items(shape=0x0301, origin=arg_06) {
/* loopnext */
}
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x33 slot_33 ===== */
function door3_slot_33() /* entry=452 class_id=0x0A06 slot=0x33 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x34 slot_34 ===== */
function door3_slot_34() /* entry=452 class_id=0x0A06 slot=0x34 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) - 64), 0, 0x0281, local_04)) {
for local_04 in nearby_items(shape=0x00D4, origin=arg_06) {
/* loopnext */
}
local_02 = 0;
while (local_02 > 6) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x35 slot_35 ===== */
function door3_slot_35() /* entry=452 class_id=0x0A06 slot=0x35 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 10, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x36 slot_36 ===== */
function door3_slot_36() /* entry=452 class_id=0x0A06 slot=0x36 */
{
set_info(0x0207, *(arg_06));
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 7, 0x0167, local_04)) {
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 10, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x37 slot_37 ===== */
function door3_slot_37() /* entry=452 class_id=0x0A06 slot=0x37 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 10, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x38 slot_38 ===== */
function door3_slot_38() /* entry=452 class_id=0x0A06 slot=0x38 */
{
set_info(0x0207, *(arg_06));
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 7, 0x0168, local_04)) {
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 10, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x39 slot_39 ===== */
function door3_slot_39() /* entry=452 class_id=0x0A06 slot=0x39 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x3A slot_3A ===== */
function door3_slot_3A() /* entry=452 class_id=0x0A06 slot=0x3A */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 1) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) + 0x0080), Item.getX(arg_06), 0, 0x0236, local_04)) {
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x3B slot_3B ===== */
function door3_slot_3B() /* entry=452 class_id=0x0A06 slot=0x3B */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x3C slot_3C ===== */
function door3_slot_3C() /* entry=452 class_id=0x0A06 slot=0x3C */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 1) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) + 0x0080), 0, 0x0233, local_04)) {
local_02 = 0;
while (local_02 > 7) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x3D slot_3D ===== */
function door3_slot_3D() /* entry=452 class_id=0x0A06 slot=0x3D */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 9) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x3E slot_3E ===== */
function door3_slot_3E() /* entry=452 class_id=0x0A06 slot=0x3E */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 1) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), (Item.getY(arg_06) + 0x0080), Item.getX(arg_06), 0, 0x0236, local_04)) {
for local_04 in nearby_items(shape=0x046A, origin=arg_06) {
if ((Item.getFrame(local_04) == 1) && (Item.getQLo(local_04) != Item.getQLo(arg_06))) {
local_06 = local_04;
}
/* loopnext */
}
if (local_06) {
return;
}
local_02 = 0;
while (local_02 > 9) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x3F slot_3F ===== */
function door3_slot_3F() /* entry=452 class_id=0x0A06 slot=0x3F */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 9) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x40 slot_40 ===== */
function door3_slot_40() /* entry=452 class_id=0x0A06 slot=0x40 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 1) {
if (!Item.legalCreateAtCoords(Item.getZ(arg_06), Item.getY(arg_06), (Item.getX(arg_06) + 0x0080), 0, 0x0233, local_04)) {
for local_04 in nearby_items(shape=0x046C, origin=arg_06) {
if ((Item.getFrame(local_04) == 1) && (Item.getQLo(local_04) != Item.getQLo(arg_06))) {
local_06 = local_04;
}
/* loopnext */
}
if (local_06) {
return;
}
local_02 = 0;
while (local_02 > 9) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x41 slot_41 ===== */
function door3_slot_41() /* entry=452 class_id=0x0A06 slot=0x41 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 8) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x42 slot_42 ===== */
function door3_slot_42() /* entry=452 class_id=0x0A06 slot=0x42 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
for local_04 in nearby_items(shape=0x051A, origin=arg_06) {
if ((Item.getFrame(local_04) == 1) && (Item.getQLo(local_04) != Item.getQLo(arg_06))) {
local_06 = local_04;
}
/* loopnext */
}
if (local_06) {
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
return;
}
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 8, 0x02F1, *(arg_06));
if (!retval) {
local_02 = 0;
while (local_02 > 8) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}
/* ===== slot 0x43 slot_43 ===== */
function door3_slot_43() /* entry=452 class_id=0x0A06 slot=0x43 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) <= 0) {
/* word_to_dword */
/* pop_result */
return;
}
else {
spawn DOOR.slot_22(pid, arg_06);
suspend;
local_02 = 0;
while (local_02 > 8) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
return;
}
/* ===== slot 0x44 slot_44 ===== */
function door3_slot_44() /* entry=452 class_id=0x0A06 slot=0x44 */
{
set_info(0x0207, *(arg_06));
if (Item.getFrame(arg_06) == 0) {
for local_04 in nearby_items(shape=0x022D, origin=arg_06) {
if ((Item.getFrame(local_04) == 1) && (Item.getQLo(local_04) != Item.getQLo(arg_06))) {
local_06 = local_04;
}
/* loopnext */
}
if (local_06) {
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
return;
}
FREE.slot_36(Item.getZ(arg_06), Item.getY(arg_06), Item.getX(arg_06), 8, 0x04CF, *(arg_06));
if (!retval) {
local_02 = 0;
while (local_02 > 8) {
spawn FREE.slot_3B(pid, 5, 0x00000000);
suspend;
local_02 = (1 + local_02);
}
/* word_to_dword */
/* pop_result */
return;
}
else {
/* word_to_dword */
/* pop_result */
return;
}
}
return;
}