| 201 | ////////////////////////////////////////////////////////////////////////// |
| 202 | |
| 203 | void CShootingObject::StartParticles(CParticlesObject*& pParticles, LPCSTR particles_name, const Fvector& pos, const Fvector& vel, bool auto_remove_flag) |
| 204 | { |
| 205 | if (!particles_name) |
| 206 | return; |
| 207 | |
| 208 | if (pParticles != NULL) |
| 209 | { |
| 210 | UpdateParticles(pParticles, pos, vel); |
| 211 | return; |
| 212 | } |
| 213 | |
| 214 | pParticles = CParticlesObject::Create(particles_name, (BOOL)auto_remove_flag); |
| 215 | |
| 216 | UpdateParticles(pParticles, pos, vel); |
| 217 | BOOL hudMode = IsHudModeNow() && m_bParticlesHudMode; |
| 218 | pParticles->Play(hudMode); |
| 219 | } |
| 220 | |
| 221 | void CShootingObject::StopParticles(CParticlesObject*& pParticles) |
| 222 | { |
no test coverage detected