| 1408 | } |
| 1409 | |
| 1410 | void NPCHazard::Upd_BoneBlast(F32 dt) |
| 1411 | { |
| 1412 | xVec3 pos_emit = { 0.0f, 0.0f, 0.0f }; |
| 1413 | HAZBall* ball = &this->custdata.ball; |
| 1414 | |
| 1415 | ball->rad_cur = LERP(this->pam_interp, ball->rad_min, ball->rad_max); |
| 1416 | |
| 1417 | if (this->flg_hazard & 0x2000 && !(globals.player.DamageTimer > 0.0f) && |
| 1418 | ColPlyrSphere(ball->rad_cur)) |
| 1419 | { |
| 1420 | HurtThePlayer(); |
| 1421 | } |
| 1422 | |
| 1423 | g_parf_default.custom_flags = 0x100; |
| 1424 | xVec3Copy(&pos_emit, &this->pos_hazard); |
| 1425 | xVec3Copy(&g_parf_default.pos, &pos_emit); |
| 1426 | |
| 1427 | xParEmitterEmitCustom(g_pemit_default, dt, &g_parf_default); |
| 1428 | } |
| 1429 | |
| 1430 | void NPCHazard::Upd_OilBubble(F32 dt) |
| 1431 | { |
nothing calls this directly
no test coverage detected