| 805 | } |
| 806 | |
| 807 | void 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 | |
| 832 | S32 NPCHazard::KickSteamyStinky() |
| 833 | { |
nothing calls this directly
no test coverage detected