| 316 | } |
| 317 | |
| 318 | void CShootingObject::StartFlameParticles() |
| 319 | { |
| 320 | if (0 == m_sFlameParticlesCurrent.size()) |
| 321 | return; |
| 322 | |
| 323 | //если партиклы циклические |
| 324 | if (m_pFlameParticles && m_pFlameParticles->IsLooped() && m_pFlameParticles->IsPlaying()) |
| 325 | { |
| 326 | UpdateFlameParticles(); |
| 327 | return; |
| 328 | } |
| 329 | |
| 330 | StopFlameParticles(); |
| 331 | m_pFlameParticles = CParticlesObject::Create(*m_sFlameParticlesCurrent, FALSE); |
| 332 | UpdateFlameParticles(); |
| 333 | BOOL hudMode = IsHudModeNow() && m_bParticlesHudMode; |
| 334 | m_pFlameParticles->Play(hudMode); |
| 335 | } |
| 336 | void CShootingObject::StopFlameParticles() |
| 337 | { |
| 338 | if (0 == m_sFlameParticlesCurrent.size()) |