Crusader_Decomp/USECODE/REGRET/MBARREL.unk

52 lines
1.2 KiB
Text

/* synthesized appendix for MBARREL */
/* sparse lines above preserve recovered debugger line numbers where available */
/* ===== slot 0x05 hit ===== */
function mbarrel_hit() /* entry=120 class_id=0x01DD slot=0x05 */
{
set_info(0x020B, *(arg_06));
process_exclude();
local_02 = arg_0C;
if (arg_0C < 10) {
FREE.slot_20(3);
local_08 = retval;
FREE.slot_20(3);
local_0A = retval;
spawn ITEM.slot_2C(pid, arg_06);
suspend;
}
return;
}
/* ===== slot 0x06 gotHit ===== */
function mbarrel_gotHit() /* entry=120 class_id=0x01DD slot=0x06 */
{
set_info(0x020C, *(arg_06));
process_exclude();
FREE.slot_35(arg_0C, arg_0A);
if (retval) {
return;
}
else {
spawn ITEM.slot_29(pid, 100, arg_0C, arg_0A, arg_06);
suspend;
/* dword_to_word */
if (process_result) {
FREE.slot_20(1);
if (!retval) {
}
return;
}
else if (Item.getFrame(arg_06) == 0) {
local_09 = Item.getZ(arg_06);
local_06 = Item.getX(arg_06);
local_08 = Item.getY(arg_06);
local_0B = Item.getQLo(arg_06);
spawn ITEM.slot_2C(pid, arg_06);
suspend;
FREE.slot_20(3);
}
}
return;
}