2019-08-25 04:46:40 +00:00
|
|
|
// water_mist_particle.c.inc
|
|
|
|
// TODO: Is this really "mist"?
|
|
|
|
|
|
|
|
void bhv_water_mist_spawn_loop(void) {
|
2020-03-02 03:42:52 +00:00
|
|
|
clear_particle_flags(0x20000);
|
2019-08-25 04:46:40 +00:00
|
|
|
spawn_object(o, MODEL_MIST, bhvWaterMist);
|
|
|
|
}
|
|
|
|
|
|
|
|
void bhv_water_mist_loop(void) {
|
|
|
|
f32 sp1C;
|
|
|
|
if (o->oTimer == 0) {
|
|
|
|
o->oMoveAngleYaw = gMarioObject->oMoveAngleYaw;
|
2020-03-02 03:42:52 +00:00
|
|
|
obj_translate_xz_random(o, 10.0f);
|
2019-08-25 04:46:40 +00:00
|
|
|
}
|
2020-03-02 03:42:52 +00:00
|
|
|
cur_obj_move_using_fvel_and_gravity();
|
2019-08-25 04:46:40 +00:00
|
|
|
o->oOpacity -= 42;
|
|
|
|
sp1C = (254 - o->oOpacity) / 254.0 * 1.0 + 0.5; // seen this before
|
2020-03-02 03:42:52 +00:00
|
|
|
cur_obj_scale(sp1C);
|
2019-08-25 04:46:40 +00:00
|
|
|
if (o->oOpacity < 2)
|
2020-03-02 03:42:52 +00:00
|
|
|
obj_mark_for_deletion(o);
|
2019-08-25 04:46:40 +00:00
|
|
|
}
|