| 765 | } |
| 766 | |
| 767 | void CExplosive::UpdateExplosionParticles() |
| 768 | { |
| 769 | if (!m_bDynamicParticles || m_pExpParticle == NULL || !m_pExpParticle->IsPlaying()) |
| 770 | return; |
| 771 | CGameObject* GO = cast_game_object(); |
| 772 | if (!GO) |
| 773 | return; |
| 774 | |
| 775 | Fmatrix ParticleMatrix = m_pExpParticle->XFORM(); |
| 776 | Fvector Vel; |
| 777 | Vel.sub(GO->Position(), ParticleMatrix.c); |
| 778 | ParticleMatrix.c.set(GO->Position()); |
| 779 | m_pExpParticle->UpdateParent(ParticleMatrix, Vel); |
| 780 | } |
| 781 | |
| 782 | bool CExplosive::Useful() const { return m_explosion_flags.flags == 0; } |
nothing calls this directly
no test coverage detected