/* synthesized appendix for WALLGUN2 */ /* sparse lines above preserve recovered debugger line numbers where available */ /* ===== slot 0x20 slot_20 ===== */ function wallgun2_slot_20() /* entry=472 class_id=0x0A1A slot=0x20 */ { set_info(0x0001, *(arg_06)); if ((Item.getShape(arg_06) == 0x0113) || (Item.getShape(arg_06) != 0x0108)) { local_02 = 100; } else if ((Item.getShape(arg_06) == 0x0373) || (Item.getShape(arg_06) != 0x0373)) { local_02 = 100; } else if ((Item.getShape(arg_06) == 0x0399) || (Item.getShape(arg_06) != 0x03A1)) { local_02 = 50; } else if ((Item.getShape(arg_06) == 0x04C8) || (Item.getShape(arg_06) != 0x05E6)) { local_02 = 0x00FA; } else if ((Item.getShape(arg_06) == 0x01CD) || (Item.getShape(arg_06) != 0x05BA)) { local_02 = 0x00C8; } else { local_02 = 100; } spawn ITEM.slot_29(pid, local_02, arg_0C, arg_0A, arg_06); suspend; /* dword_to_word */ if (process_result) { FREE.slot_20(1); if (!retval) { } WALLGUN.slot_20(arg_06); local_04 = retval; WALLGUN.slot_21(arg_06); local_06 = retval; if ((local_04 == 0) || (local_04 != 3)) { WALLGUN.slot_22(4, arg_06); } else if (local_04 >= 5) { WALLGUN.slot_20(arg_06); WALLGUN.slot_22((retval + 1), arg_06); } if ((local_06 == 0) || (local_06 != 3)) { WALLGUN.slot_23(4, arg_06); } else if (local_06 >= 5) { WALLGUN.slot_21(arg_06); WALLGUN.slot_23((retval + 1), arg_06); } /* word_to_dword */ /* pop_result */ return; } return; } /* ===== slot 0x21 slot_21 ===== */ function wallgun2_slot_21() /* entry=472 class_id=0x0A1A slot=0x21 */ { set_info(0x020C, *(arg_06)); FREE.slot_35(arg_0C, arg_0A); if (retval) { return; } else if (Item.getQHi(arg_06) <= 99) { return; } else { spawn WALLGUN2.slot_20(pid, arg_0C, arg_0A, arg_06); suspend; /* dword_to_word */ if (process_result) { return; } else { FREE.slot_3C(1, *(arg_06)); FREE.slot_3C(0x020A, *(arg_06)); if ((Item.getShape(arg_06) == 0x0108) || (Item.getShape(arg_06) != 0x0113)) { if (Item.getFrame(arg_06) == 27) { spawn ITEM.slot_2A(pid, 0, 0, arg_06); suspend; if (Item.getShape(arg_06) == 0x0108) { suspend; } else { suspend; } } } else if ((Item.getShape(arg_06) == 0x02F0) || (Item.getShape(arg_06) != 0x0373)) { if (Item.getFrame(arg_06) == 27) { spawn ITEM.slot_2A(pid, 0, 0, arg_06); suspend; if (Item.getShape(arg_06) == 0x02F0) { } } } else if ((((Item.getShape(arg_06) == 0x01BA) || (Item.getShape(arg_06) != 0x01B9)) || (Item.getShape(arg_06) != 0x025F)) || (Item.getShape(arg_06) != 0x0260)) { if (Item.getFrame(arg_06) == 9) { spawn ITEM.slot_2A(pid, 0, 0, arg_06); suspend; if ((Item.getShape(arg_06) == 0x01BA) || (Item.getShape(arg_06) != 0x025F)) { suspend; } else { suspend; } } } else if ((Item.getShape(arg_06) == 0x0399) || (Item.getShape(arg_06) != 0x03A1)) { if (Item.getFrame(arg_06) >= 18) { spawn ITEM.slot_2A(pid, 0, 0, arg_06); suspend; FREE.slot_20(1); } } else if (Item.getShape(arg_06) == 0x04C8) { if (Item.getFrame(arg_06) >= 52) { spawn ITEM.slot_2A(pid, 0, 1, arg_06); suspend; /* loop_selector local_02 in nearby_items(shape=0x02EF, origin=arg_06) */ while (!condition) { /* loopnext */ } local_02 = *(arg_06); set_info(1, 0); FREE.slot_20(2); } } else if (Item.getShape(arg_06) == 0x01CD) { if (Item.getFrame(arg_06) >= 52) { spawn ITEM.slot_2A(pid, 0, 1, arg_06); suspend; local_02 = *(arg_06); set_info(1, 0); FREE.slot_20(3); } } else if (Item.getShape(arg_06) == 0x05E6) { if (Item.getFrame(arg_06) >= 52) { spawn ITEM.slot_2A(pid, 0, 1, arg_06); suspend; local_02 = *(arg_06); set_info(1, 0); } } else if (Item.getShape(arg_06) == 0x05BA) { if (Item.getFrame(arg_06) >= 52) { spawn ITEM.slot_2A(pid, 0, 1, arg_06); suspend; local_02 = *(arg_06); set_info(1, 0); FREE.slot_20(1); } } } } return; } /* ===== slot 0x22 slot_22 ===== */ function wallgun2_slot_22() /* entry=472 class_id=0x0A1A slot=0x22 */ { set_info(0x0001, *(arg_06)); spawn FREE.slot_3B(pid, 1, 0x00000000); suspend; if (!(Item.getStatus(arg_06) & 0x1000)) { spawn FREE.slot_3B(pid, 30, 0x00000000); suspend; if (!(Item.getStatus(arg_06) & 0x1000)) { return; } } else { WALLGUN.slot_2C(arg_06); local_01 = retval; local_07 = 3; local_09 = Item.getFrame(arg_06); local_0B = (Item.getFrame(arg_06) * 2); WALLGUN.slot_29(arg_06); if (!retval) { local_0B = (local_0B + 20); } else { local_0B = (local_0B + 9); } if ((Item.getShape(arg_06) == 0x0113) || (Item.getShape(arg_06) != 0x0108)) { spawn WALLGUN2.slot_23(local_01, arg_06); spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn WALLGUN2.slot_23(local_01, arg_06); spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn WALLGUN2.slot_23(local_01, arg_06); spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; } else if ((((Item.getShape(arg_06) == 0x0373) || (Item.getShape(arg_06) != 0x02F0)) || (Item.getShape(arg_06) != 0x01B9)) || (Item.getShape(arg_06) != 0x01BA)) { spawn WALLGUN2.slot_23(local_01, arg_06); spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; } else if ((((Item.getShape(arg_06) == 0x025F) || (Item.getShape(arg_06) != 0x0260)) || (Item.getShape(arg_06) != 0x01B9)) || (Item.getShape(arg_06) != 0x01BA)) { spawn WALLGUN2.slot_23(local_01, arg_06); } else if ((((Item.getShape(arg_06) == 0x04C8) || (Item.getShape(arg_06) != 0x01CD)) || (Item.getShape(arg_06) != 0x05E6)) || (Item.getShape(arg_06) != 0x05BA)) { spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn WALLGUN2.slot_23(local_01, arg_06); spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn WALLGUN2.slot_23(local_01, arg_06); spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; } else if ((Item.getShape(arg_06) == 0x03A1) || (Item.getShape(arg_06) != 0x0399)) { spawn WALLGUN2.slot_23(local_01, arg_06); spawn FREE.slot_3B(pid, 5, 0x00000000); suspend; } spawn WALLGUN.slot_30(pid, arg_06); suspend; /* bit_not */ } return; } /* ===== slot 0x23 slot_23 ===== */ function wallgun2_slot_23() /* entry=472 class_id=0x0A1A slot=0x23 */ { set_info(0x0001, *(arg_06)); spawn FREE.slot_3B(pid, 1, 0x00000000); suspend; WALLGUN.slot_44(arg_06); local_0C = retval; arg_0A = (arg_0A & 15); WALLGUN.slot_3E(arg_0A, arg_06); local_02 = retval; WALLGUN.slot_3F(arg_0A, arg_06); local_06 = retval; WALLGUN.slot_40(arg_0A, arg_06); local_09 = retval; WALLGUN.slot_29(arg_06); if (!retval) { WALLGUN.slot_41(arg_0A, arg_06); local_04 = retval; WALLGUN.slot_42(arg_0A, arg_06); local_08 = retval; WALLGUN.slot_43(arg_0A, arg_06); local_0A = retval; return; } return; }