| 1759 | } |
| 1760 | |
| 1761 | void 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 | |
| 1782 | void NPCHazard::Upd_OilGlob(F32 dt) |
| 1783 | { |
nothing calls this directly
no test coverage detected