| 92 | } |
| 93 | |
| 94 | CScriptParticles::~CScriptParticles() |
| 95 | { |
| 96 | if (m_particles) |
| 97 | { |
| 98 | // destroy particles |
| 99 | m_particles->remove_owner(); |
| 100 | if (!m_particles->IsLooped() && (m_particles->IsPlaying() || m_particles->LifeTime() > 0)) |
| 101 | m_particles->SetAutoRemove(true); |
| 102 | else |
| 103 | m_particles->PSI_destroy(); |
| 104 | m_particles = nullptr; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | void CScriptParticles::Play(bool bHudMode) const |
| 109 | { |
nothing calls this directly
no test coverage detected