| 231 | } |
| 232 | |
| 233 | void 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 | } |
| 257 | void CBaseGraviZone ::StopTeleParticles(CGameObject* pObject) |
| 258 | { |
| 259 | CParticlesPlayer* PP = smart_cast<CParticlesPlayer*>(pObject); |
nothing calls this directly
no test coverage detected