| 346 | } |
| 347 | |
| 348 | void CShootingObject::UpdateFlameParticles() |
| 349 | { |
| 350 | if (0 == m_sFlameParticlesCurrent.size()) |
| 351 | return; |
| 352 | if (!m_pFlameParticles) |
| 353 | return; |
| 354 | |
| 355 | Fmatrix pos; |
| 356 | pos.set(get_ParticlesXFORM()); |
| 357 | pos.c.set(get_CurrentFirePoint()); |
| 358 | |
| 359 | m_pFlameParticles->SetXFORM(pos); |
| 360 | |
| 361 | if (!m_pFlameParticles->IsLooped() && !m_pFlameParticles->IsPlaying() && !m_pFlameParticles->PSI_alive()) |
| 362 | { |
| 363 | m_pFlameParticles->Stop(); |
| 364 | CParticlesObject::Destroy(m_pFlameParticles); |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | //подсветка от выстрела |
| 369 | void CShootingObject::UpdateLight() |