Crusader_Decomp/USECODE/REGRET/NPC_ONLY.unk

45 lines
1.3 KiB
Text

/* synthesized appendix for NPC_ONLY */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x06 gotHit ===== */
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;
}