Pseudocode decompialtion improvements and docs
This commit is contained in:
parent
f869a181a3
commit
589bfc31ef
1898 changed files with 60634 additions and 6597 deletions
|
|
@ -0,0 +1,59 @@
|
|||
function trigpad_gotHit() /* entry=277 class_id=0x04CD slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
local_02 = arg_0A;
|
||||
FREE.slot_34(arg_0C, arg_0A);
|
||||
if (!retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_04 = arg_0A;
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCompletelyOn(*(arg_06), local_04) != 0)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
while (!(1)) {
|
||||
if (Item.getSurfaceWeight(arg_06) == 0) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
else {
|
||||
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
||||
suspend;
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
/* loopscr value_u8=0x24 */
|
||||
/* loopscr value_u8=0x3D */
|
||||
/* loopscr value_u8=0x40 */
|
||||
/* loopscr value_u8=0x25 */
|
||||
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x6 */
|
||||
while (!condition) {
|
||||
while (!(Item.getStatus(local_06) & 0x1000)) {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
}
|
||||
spawn FREE.slot_3B(pid, 120, 0x00000000);
|
||||
suspend;
|
||||
/* global_address global_id=0x1E */
|
||||
if (Item.getZ() >= (Item.getZ(local_06) - 5)) {
|
||||
ELEVAT.slot_21(Item.getZ(local_06), local_06);
|
||||
if (!retval) {
|
||||
spawn ELEVAT.slot_20(local_06);
|
||||
}
|
||||
}
|
||||
/* loopnext */
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue