sm64pc/src/game/behaviors/water_mist_particle.inc.c
2019-08-25 00:46:40 -04:00

22 lines
579 B
C

// water_mist_particle.c.inc
// TODO: Is this really "mist"?
void bhv_water_mist_spawn_loop(void) {
func_802ADBBC(0x20000);
spawn_object(o, MODEL_MIST, bhvWaterMist);
}
void bhv_water_mist_loop(void) {
f32 sp1C;
if (o->oTimer == 0) {
o->oMoveAngleYaw = gMarioObject->oMoveAngleYaw;
translate_object_xz_random(o, 10.0f);
}
obj_move_using_fvel_and_gravity();
o->oOpacity -= 42;
sp1C = (254 - o->oOpacity) / 254.0 * 1.0 + 0.5; // seen this before
obj_scale(sp1C);
if (o->oOpacity < 2)
mark_object_for_deletion(o);
}