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

Method StartParticles

ogsr_engine/xrGame/ShootingObject.cpp:203–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201//////////////////////////////////////////////////////////////////////////
202
203void CShootingObject::StartParticles(CParticlesObject*& pParticles, LPCSTR particles_name, const Fvector& pos, const Fvector& vel, bool auto_remove_flag)
204{
205 if (!particles_name)
206 return;
207
208 if (pParticles != NULL)
209 {
210 UpdateParticles(pParticles, pos, vel);
211 return;
212 }
213
214 pParticles = CParticlesObject::Create(particles_name, (BOOL)auto_remove_flag);
215
216 UpdateParticles(pParticles, pos, vel);
217 BOOL hudMode = IsHudModeNow() && m_bParticlesHudMode;
218 pParticles->Play(hudMode);
219}
220
221void CShootingObject::StopParticles(CParticlesObject*& pParticles)
222{

Callers 10

PlayTeleParticlesMethod · 0.45
NotificateDestroyMethod · 0.45
Play1Method · 0.45
Play2Method · 0.45
PlayWheel1Method · 0.45
PlayWheel2Method · 0.45
destroy_objectMethod · 0.45
PlayHitParticlesMethod · 0.45

Calls 3

CreateFunction · 0.85
IsHudModeNowFunction · 0.85
PlayMethod · 0.45

Tested by

no test coverage detected