| 980 | } |
| 981 | |
| 982 | void CCustomZone::PlayObjectIdleParticles(CGameObject* pObject) |
| 983 | { |
| 984 | CParticlesPlayer* PP = smart_cast<CParticlesPlayer*>(pObject); |
| 985 | if (!PP) |
| 986 | return; |
| 987 | |
| 988 | shared_str particle_str = NULL; |
| 989 | |
| 990 | //разные партиклы для объектов разного размера |
| 991 | if (pObject->Radius() < SMALL_OBJECT_RADIUS) |
| 992 | { |
| 993 | if (!m_sIdleObjectParticlesSmall) |
| 994 | return; |
| 995 | particle_str = m_sIdleObjectParticlesSmall; |
| 996 | } |
| 997 | else |
| 998 | { |
| 999 | if (!m_sIdleObjectParticlesBig) |
| 1000 | return; |
| 1001 | particle_str = m_sIdleObjectParticlesBig; |
| 1002 | } |
| 1003 | |
| 1004 | //запустить партиклы на объекте |
| 1005 | //. new |
| 1006 | PP->StopParticles(particle_str, BI_NONE, true); |
| 1007 | |
| 1008 | PP->StartParticles(particle_str, Fvector().set(0, 1, 0), ID()); |
| 1009 | if (!IsEnabled()) |
| 1010 | PP->StopParticles(particle_str, BI_NONE, true); |
| 1011 | } |
| 1012 | |
| 1013 | void CCustomZone::StopObjectIdleParticles(CGameObject* pObject) |
| 1014 | { |
nothing calls this directly
no test coverage detected