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

Method Upd_OilBurst

src/SB/Game/zNPCHazard.cpp:1761–1780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759}
1760
1761void NPCHazard::Upd_OilBurst(F32 dt)
1762{
1763 HAZBall* ball = &this->custdata.ball;
1764
1765 ball->rad_cur = LERP(this->pam_interp, ball->rad_min, ball->rad_max);
1766
1767 if (this->flg_hazard & 0x2000 && !(globals.player.DamageTimer > 0.0f))
1768 {
1769 if (ColPlyrSphere(0.75f * ball->rad_cur))
1770 {
1771 HurtThePlayer();
1772 }
1773 }
1774
1775 if (this->flg_hazard & 0x8)
1776 {
1777 xSndPlay3D(xStrHash("Tar_saucehit"), 0.77f, 0.0f, 0x80, 0x0, &this->pos_hazard, 3.0f, 15.0f,
1778 SND_CAT_GAME, 0.0f);
1779 }
1780}
1781
1782void NPCHazard::Upd_OilGlob(F32 dt)
1783{

Callers

nothing calls this directly

Calls 3

LERPFunction · 0.85
xSndPlay3DFunction · 0.70
xStrHashFunction · 0.50

Tested by

no test coverage detected