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

25 lines
536 B
Text
Raw Normal View History

2026-03-25 23:32:13 +01:00
function art_gotHit() /* entry=234 class_id=0x0435 slot=0x06 */
{
var
referent, /* [BP+00h] type=0x69 */
ref, /* [BP+0Ah] type=0x69 */
vel, /* [BP+0Ch] type=0x69 */
fram; /* [BP-02h] type=0x69 */
2026-03-26 00:37:17 +01:00
set_info(0x020C, *(arg_06));
process_exclude();
fram = Item.getFrame(arg_06);
FREE.slot_2C(vel, ref);
2026-03-26 00:37:17 +01:00
if (!retval) {
if (fram <= 7) {
spawn ITEM.slot_28(pid, 1, 0, arg_06);
2026-03-26 00:37:17 +01:00
suspend;
return;
}
else {
spawn ITEM.slot_28(pid, 0, 0, arg_06);
2026-03-26 00:37:17 +01:00
suspend;
}
}
return;
2026-03-25 23:32:13 +01:00
}