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

Method ~CScriptParticles

ogsr_engine/xrGame/script_particles.cpp:94–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94CScriptParticles::~CScriptParticles()
95{
96 if (m_particles)
97 {
98 // destroy particles
99 m_particles->remove_owner();
100 if (!m_particles->IsLooped() && (m_particles->IsPlaying() || m_particles->LifeTime() > 0))
101 m_particles->SetAutoRemove(true);
102 else
103 m_particles->PSI_destroy();
104 m_particles = nullptr;
105 }
106}
107
108void CScriptParticles::Play(bool bHudMode) const
109{

Callers

nothing calls this directly

Calls 6

remove_ownerMethod · 0.80
LifeTimeMethod · 0.80
IsLoopedMethod · 0.45
IsPlayingMethod · 0.45
SetAutoRemoveMethod · 0.45
PSI_destroyMethod · 0.45

Tested by

no test coverage detected