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,40 @@
|
|||
function npc_only_gotHit() /* entry=192 class_id=0x0366 slot=0x06 */
|
||||
{
|
||||
set_info(0x020C, *(arg_06));
|
||||
process_exclude();
|
||||
if ((arg_0A > 0x0100) || (arg_0A == World.getControlledNPCNum())) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
local_02 = arg_0A;
|
||||
local_04 = Intrinsic000D(local_02);
|
||||
local_06 = Item.getQLo(arg_06);
|
||||
if ((Intrinsic000D(local_02) == Item.getQLo(arg_06)) && (Actor.isDead(local_02) != 0)) {
|
||||
if (Item.getMapNum(arg_06) == 0) {
|
||||
if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCompletelyOn(*(arg_06), local_02) != 0)) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
spawn FREE.slot_3B(pid, 2, 0x00000000);
|
||||
suspend;
|
||||
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
||||
suspend;
|
||||
while (!(1)) {
|
||||
if ((Item.getSurfaceWeight(arg_06) == 0) && (Item.isNpc(local_02) != 1)) {
|
||||
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, 5, 0x00000000);
|
||||
suspend;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue