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

Method UpdateFlameParticles

ogsr_engine/xrGame/ShootingObject.cpp:348–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void 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//подсветка от выстрела
369void CShootingObject::UpdateLight()

Callers

nothing calls this directly

Calls 7

DestroyFunction · 0.85
SetXFORMMethod · 0.80
sizeMethod · 0.45
setMethod · 0.45
IsLoopedMethod · 0.45
IsPlayingMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected