sm64pc/src/game/behaviors/breakable_box.inc.c

13 lines
376 B
C
Raw Normal View History

2019-08-25 04:46:40 +00:00
// breakable_box.c.inc
void bhv_breakable_box_loop(void) {
2020-03-02 03:42:52 +00:00
obj_set_hitbox(o, &sBreakableBoxHitbox);
cur_obj_set_model(MODEL_BREAKABLE_BOX_SMALL);
2019-08-25 04:46:40 +00:00
if (o->oTimer == 0)
2020-03-02 03:42:52 +00:00
breakable_box_init();
if (cur_obj_was_attacked_or_ground_pounded() != 0) {
obj_explode_and_spawn_coins(46.0f, 1);
2019-10-05 19:08:05 +00:00
create_sound_spawner(SOUND_GENERAL_BREAK_BOX);
2019-08-25 04:46:40 +00:00
}
}