MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / StartFlameParticles

Method StartFlameParticles

ogsr_engine/xrGame/ShootingObject.cpp:318–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void 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}
336void CShootingObject::StopFlameParticles()
337{
338 if (0 == m_sFlameParticlesCurrent.size())

Callers

nothing calls this directly

Calls 6

CreateFunction · 0.85
IsHudModeNowFunction · 0.85
sizeMethod · 0.45
IsLoopedMethod · 0.45
IsPlayingMethod · 0.45
PlayMethod · 0.45

Tested by

no test coverage detected