Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/SFXTRIG/slot_0A_equip.txt

17 lines
415 B
Text
Raw Normal View History

2026-03-25 23:32:36 +01:00
function sfxtrig_equip() /* entry=285 class_id=0x04E2 slot=0x0A */
{
2026-03-26 00:37:17 +01:00
set_info(0x0211, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
}
else {
ITEM.slot_23(0x1000, arg_06);
2026-03-26 00:37:17 +01:00
while (!AudioProcess.isSFXPlayingForObject(arg_0A, arg_06)) {
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
2026-03-26 00:37:17 +01:00
suspend;
}
ITEM.slot_24(0x1000, arg_06);
2026-03-26 00:37:17 +01:00
}
return;
2026-03-25 23:32:36 +01:00
}