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

Method Upd_BoneBlast

src/SB/Game/zNPCHazard.cpp:1410–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1408}
1409
1410void NPCHazard::Upd_BoneBlast(F32 dt)
1411{
1412 xVec3 pos_emit = { 0.0f, 0.0f, 0.0f };
1413 HAZBall* ball = &this->custdata.ball;
1414
1415 ball->rad_cur = LERP(this->pam_interp, ball->rad_min, ball->rad_max);
1416
1417 if (this->flg_hazard & 0x2000 && !(globals.player.DamageTimer > 0.0f) &&
1418 ColPlyrSphere(ball->rad_cur))
1419 {
1420 HurtThePlayer();
1421 }
1422
1423 g_parf_default.custom_flags = 0x100;
1424 xVec3Copy(&pos_emit, &this->pos_hazard);
1425 xVec3Copy(&g_parf_default.pos, &pos_emit);
1426
1427 xParEmitterEmitCustom(g_pemit_default, dt, &g_parf_default);
1428}
1429
1430void NPCHazard::Upd_OilBubble(F32 dt)
1431{

Callers

nothing calls this directly

Calls 3

LERPFunction · 0.85
xVec3CopyFunction · 0.85
xParEmitterEmitCustomFunction · 0.50

Tested by

no test coverage detected