Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/SICBOXNS/slot_06_gotHit.txt

37 lines
1,018 B
Text

function sicboxns_gotHit() /* entry=157 class_id=0x02E0 slot=0x06 */
{
var
referent, /* [BP+00h] type=0x69 */
ref, /* [BP+0Ah] type=0x69 */
vel, /* [BP+0Ch] type=0x69 */
item; /* [BP-02h] type=0x24 */
set_info(0x020C, *(arg_06));
process_exclude();
FREE.slot_2B(vel, ref);
if (retval && (Item.getFrame(arg_06) >= 4)) {
spawn ITEM.slot_27(pid, 100, vel, ref, arg_06);
suspend;
/* dword_to_word */
if (process_result) {
return;
}
else {
FREE.slot_33(0x0254, global[0x003C]);
/* loop_selector item in nearby_items(shape=DOOR_CORNER_LOWER_RIGHT, origin=arg_06) */
while (!condition) {
/* loopnext */
}
for item in nearby_items(shape=0x02E1, origin=arg_06) {
/* loopnext */
}
for item in nearby_items(shape=HEALTH_STATION_TOP, origin=arg_06) {
/* loopnext */
}
for item in nearby_items(shape=HEALTH_STATION_BACK, origin=arg_06) {
/* loopnext */
}
}
}
return;
}