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

Method StartFlyParticles

ogsr_engine/xrGame/CustomRocket.cpp:568–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566 m_pEngineParticles = NULL;
567}
568void CCustomRocket::StartFlyParticles()
569{
570 if (m_flyingSound._handle())
571 m_flyingSound.play_at_pos(0, XFORM().c, sm_Looped);
572
573 VERIFY(m_pFlyParticles == NULL);
574
575 if (!m_sFlyParticles)
576 return;
577 m_pFlyParticles = CParticlesObject::Create(*m_sFlyParticles, FALSE);
578
579 UpdateParticles();
580 m_pFlyParticles->Play(false);
581
582 VERIFY(m_pFlyParticles);
583 VERIFY3(m_pFlyParticles->IsLooped(), "must be a looped particle system for rocket fly: %s", *m_sFlyParticles);
584}
585void CCustomRocket::StopFlyParticles()
586{
587 if (m_flyingSound._handle())

Callers

nothing calls this directly

Calls 6

XFORMFunction · 0.85
CreateFunction · 0.85
_handleMethod · 0.80
play_at_posMethod · 0.45
PlayMethod · 0.45
IsLoopedMethod · 0.45

Tested by

no test coverage detected