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

Method UpdateExplosionParticles

ogsr_engine/xrGame/Explosive.cpp:767–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767void CExplosive::UpdateExplosionParticles()
768{
769 if (!m_bDynamicParticles || m_pExpParticle == NULL || !m_pExpParticle->IsPlaying())
770 return;
771 CGameObject* GO = cast_game_object();
772 if (!GO)
773 return;
774
775 Fmatrix ParticleMatrix = m_pExpParticle->XFORM();
776 Fvector Vel;
777 Vel.sub(GO->Position(), ParticleMatrix.c);
778 ParticleMatrix.c.set(GO->Position());
779 m_pExpParticle->UpdateParent(ParticleMatrix, Vel);
780}
781
782bool CExplosive::Useful() const { return m_explosion_flags.flags == 0; }

Callers

nothing calls this directly

Calls 6

PositionMethod · 0.80
cast_game_objectFunction · 0.70
IsPlayingMethod · 0.45
subMethod · 0.45
setMethod · 0.45
UpdateParentMethod · 0.45

Tested by

no test coverage detected