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

Method UpdateParticles

ogsr_engine/xrGame/ShootingObject.cpp:230–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void CShootingObject::UpdateParticles(CParticlesObject*& pParticles, const Fvector& pos, const Fvector& vel)
231{
232 if (!pParticles)
233 return;
234
235 Fmatrix particles_pos;
236 particles_pos.set(get_ParticlesXFORM());
237 particles_pos.c.set(pos);
238
239 pParticles->SetXFORM(particles_pos);
240
241 if (!pParticles->IsAutoRemove() && !pParticles->IsLooped() && !pParticles->PSI_alive())
242 {
243 pParticles->Stop();
244 CParticlesObject::Destroy(pParticles);
245 }
246}
247
248void CShootingObject::LoadShellParticles(LPCSTR section, LPCSTR prefix)
249{

Callers

nothing calls this directly

Calls 6

DestroyFunction · 0.85
SetXFORMMethod · 0.80
IsAutoRemoveMethod · 0.80
setMethod · 0.45
IsLoopedMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected