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

Method Upd_TTStink

src/SB/Game/zNPCHazard.cpp:859–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859void NPCHazard::Upd_TTStink(F32 dt)
860{
861 HAZBall* ball = &this->custdata.ball;
862 ball->rad_cur = LERP(1.0f - this->pam_interp, ball->rad_min, ball->rad_max);
863
864 if (this->flg_hazard & 0x2000 && !(globals.player.DamageTimer > 0.0f))
865 {
866 if (ColPlyrSphere(ball->rad_cur))
867 {
868 HurtThePlayer();
869 g_data_hazshrap[2]->initCB(g_data_hazshrap[2], globals.player.ent.model, NULL, NULL);
870 }
871 }
872
873 TarTarLinger();
874}
875
876void NPCHazard::TarTarFalumpf()
877{

Callers

nothing calls this directly

Calls 2

LERPFunction · 0.85
TarTarLingerFunction · 0.85

Tested by

no test coverage detected