mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-20 04:02:39 +00:00
15 lines
496 B
C
15 lines
496 B
C
// tower_door.c.inc
|
|
|
|
void bhv_tower_door_loop(void) {
|
|
if (o->oTimer == 0)
|
|
o->oMoveAngleYaw -= 0x4000;
|
|
if ((o->oInteractStatus & INT_STATUS_INTERACTED) || check_mario_attacking(&gMarioStates[0])) {
|
|
obj_explode_and_spawn_coins(80.0f, 0);
|
|
create_sound_spawner(SOUND_GENERAL_WALL_EXPLOSION);
|
|
|
|
if (!(o->oInteractStatus & INT_STATUS_INTERACTED)) {
|
|
network_send_collect_item(o);
|
|
}
|
|
o->oInteractStatus &= ~INT_STATUS_INTERACTED;
|
|
}
|
|
}
|