2019-08-25 04:46:40 +00:00
|
|
|
// flame_mario.c.inc
|
|
|
|
|
|
|
|
void bhv_black_smoke_upward_loop(void) {
|
|
|
|
spawn_object_with_scale(o, MODEL_BURN_SMOKE, bhvBlackSmokeBowser, o->header.gfx.scale[0]);
|
|
|
|
}
|
|
|
|
|
|
|
|
void bhv_black_smoke_bowser_loop(void) {
|
|
|
|
if (o->oTimer == 0) {
|
|
|
|
o->oForwardVel = RandomFloat() * 2 + 0.5;
|
|
|
|
o->oMoveAngleYaw = RandomU16();
|
|
|
|
o->oVelY = 8;
|
|
|
|
o->oBlackSmokeBowserUnkF4 = o->header.gfx.scale[0];
|
|
|
|
}
|
|
|
|
o->oMoveAngleYaw += o->oAngleVelYaw;
|
|
|
|
o->oPosY += o->oVelY;
|
|
|
|
}
|
|
|
|
|
|
|
|
void bhv_black_smoke_mario_loop(void) {
|
|
|
|
if (o->oTimer == 0) {
|
2020-03-02 03:42:52 +00:00
|
|
|
cur_obj_set_pos_relative(gMarioObject, 0, 0, -30.0f);
|
2019-08-25 04:46:40 +00:00
|
|
|
o->oForwardVel = RandomFloat() * 2 + 0.5;
|
|
|
|
o->oMoveAngleYaw = (gMarioObject->oMoveAngleYaw + 0x7000) + RandomFloat() * 8192.0f;
|
|
|
|
o->oVelY = 8;
|
|
|
|
}
|
|
|
|
o->oMoveAngleYaw += o->oAngleVelYaw;
|
|
|
|
o->oPosY += o->oVelY;
|
|
|
|
}
|
|
|
|
|
|
|
|
void bhv_flame_mario_loop(void) {
|
2020-03-02 03:42:52 +00:00
|
|
|
cur_obj_scale(2.0f);
|
2019-08-25 04:46:40 +00:00
|
|
|
if (o->oTimer != 0)
|
|
|
|
if (o->oTimer & 1)
|
|
|
|
spawn_object(o, MODEL_BURN_SMOKE, bhvBlackSmokeMario);
|
|
|
|
gMarioObject->prevObj = o; // weird?
|
2020-03-02 03:42:52 +00:00
|
|
|
obj_set_parent_relative_pos(o, 40, -120, 0);
|
2019-08-25 04:46:40 +00:00
|
|
|
if (!(gMarioObject->oMarioParticleFlags & 0x800)) {
|
|
|
|
o->parentObj->oActiveParticleFlags &= ~0x800;
|
2020-03-02 03:42:52 +00:00
|
|
|
obj_mark_for_deletion(o);
|
2019-08-25 04:46:40 +00:00
|
|
|
gMarioObject->prevObj = NULL;
|
|
|
|
}
|
|
|
|
}
|