MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / FodBombBubbles

Method FodBombBubbles

src/SB/Game/zNPCHazard.cpp:414–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414void NPCHazard::FodBombBubbles(F32 dt)
415{
416 static const xVec3 vel_spread = { 2.0f, 12.0f, 2.0 };
417 static const xVec3 pos_spread = { 0.1f, 2.0f, 0.1f };
418 static const xVec3 pos_offsetFirst = { 0.0f, -0.5f, 0.0f };
419 static const xVec3 pos_offsetLater = { 0.0f, -1.0f, 0.0f };
420
421 if (this->flg_hazard & 0x8)
422 {
423 xVec3 pos_emit = this->pos_hazard;
424 pos_emit += pos_offsetFirst;
425
426 zFX_SpawnBubbleTrail(&pos_emit, 0x100, &pos_spread, &vel_spread);
427 }
428 else if (this->tmr_remain < 0.2f)
429 {
430 F32 tym = LERP(1.0f - this->tmr_remain / 0.2f, 0.75f, 1.0f);
431 xVec3 pos_emit = this->pos_hazard;
432 pos_emit += pos_offsetLater;
433
434 zFX_SpawnBubbleSlam(&pos_emit, 0x18, PI, 4.0f * tym, tym);
435 }
436}
437
438void NPCHazard::Upd_CattleProd(F32 dt)
439{

Callers

nothing calls this directly

Calls 3

LERPFunction · 0.85
zFX_SpawnBubbleSlamFunction · 0.85
zFX_SpawnBubbleTrailFunction · 0.70

Tested by

no test coverage detected