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

Method PlayTeleParticles

ogsr_engine/xrGame/GraviZone.cpp:233–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void CBaseGraviZone ::PlayTeleParticles(CGameObject* pObject)
234{
235 CParticlesPlayer* PP = smart_cast<CParticlesPlayer*>(pObject);
236 if (!PP)
237 return;
238
239 shared_str particle_str = NULL;
240
241 //разные партиклы для объектов разного размера
242 if (pObject->Radius() < SMALL_OBJECT_RADIUS)
243 {
244 if (!m_sTeleParticlesSmall)
245 return;
246 particle_str = m_sTeleParticlesSmall;
247 }
248 else
249 {
250 if (!m_sTeleParticlesBig)
251 return;
252 particle_str = m_sTeleParticlesBig;
253 }
254
255 PP->StartParticles(particle_str, Fvector().set(0, 1, 0), ID());
256}
257void CBaseGraviZone ::StopTeleParticles(CGameObject* pObject)
258{
259 CParticlesPlayer* PP = smart_cast<CParticlesPlayer*>(pObject);

Callers

nothing calls this directly

Calls 4

IDFunction · 0.85
RadiusMethod · 0.45
StartParticlesMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected