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

Method Upd_TTSpill

src/SB/Game/zNPCHazard.cpp:807–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807void NPCHazard::Upd_TTSpill(F32 dt)
808{
809 HAZBall* ball = &this->custdata.ball;
810 if (this->flg_hazard & 0x8 && HAZ_AvailablePool() > 5)
811 {
812 if (KickSteamyStinky())
813 {
814 this->flg_hazard |= 0x40;
815 }
816 }
817
818 ball->rad_cur = LERP(this->pam_interp, ball->rad_max, ball->rad_min);
819
820 if (this->flg_hazard & 0x2000 && !(globals.player.DamageTimer > 0.0f))
821 {
822 if (ColPlyrSphere(ball->rad_cur))
823 {
824 HurtThePlayer();
825 g_data_hazshrap[2]->initCB(g_data_hazshrap[2], globals.player.ent.model, NULL, NULL);
826 }
827 }
828
829 TarTarLinger();
830}
831
832S32 NPCHazard::KickSteamyStinky()
833{

Callers

nothing calls this directly

Calls 4

HAZ_AvailablePoolFunction · 0.85
KickSteamyStinkyFunction · 0.85
LERPFunction · 0.85
TarTarLingerFunction · 0.85

Tested by

no test coverage detected