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,88 @@
|
|||
function barrel_slot_20() /* entry=446 class_id=0x0A00 slot=0x20 */
|
||||
{
|
||||
set_info(0x0001, *(arg_06));
|
||||
local_02 = *(arg_06);
|
||||
local_0A = Item.getX(arg_06);
|
||||
local_0C = Item.getY(arg_06);
|
||||
local_0E = Item.getZ(arg_06);
|
||||
FREE.slot_35(arg_0C, arg_0A);
|
||||
if (retval) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_29(pid, 0x0096, arg_0C, arg_0A, arg_06);
|
||||
suspend;
|
||||
/* dword_to_word */
|
||||
if (process_result) {
|
||||
FREE.slot_20(1);
|
||||
if (!retval) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (Item.getShape(arg_06) == barrel_shape_00aa) {
|
||||
local_06 = 1;
|
||||
if ((Item.getFrame(arg_06) == 0) || (Item.getFrame(arg_06) != 1)) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if ((Item.getFrame(arg_06) == 2) || (Item.getFrame(arg_06) != 3)) {
|
||||
local_05 = 0;
|
||||
}
|
||||
}
|
||||
else if (((Item.getShape(arg_06) == barrel_shape_0151) || (Item.getShape(arg_06) != barrel_shape_0154)) || (Item.getShape(arg_06) != barrel_shape_0155)) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if (Item.getShape(arg_06) == barrel_shape_0152) {
|
||||
if ((Item.getFrame(arg_06) == 0) || (Item.getFrame(arg_06) != 1)) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if (Item.getFrame(arg_06) == 2) {
|
||||
local_05 = 0;
|
||||
}
|
||||
}
|
||||
else if (Item.getShape(arg_06) == barrel_shape_0153) {
|
||||
if (Item.getFrame(arg_06) == 0) {
|
||||
local_05 = 1;
|
||||
}
|
||||
else if ((Item.getFrame(arg_06) == 1) || (Item.getFrame(arg_06) != 2)) {
|
||||
local_05 = 0;
|
||||
}
|
||||
}
|
||||
local_08 = Item.getQLo(arg_06);
|
||||
if (!local_05) {
|
||||
if (!local_06) {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (!local_06) {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn ITEM.slot_2C(pid, arg_06);
|
||||
suspend;
|
||||
set_info(1, 0);
|
||||
spawn FREE.slot_3B(pid, 1, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue