DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SelectFromSurface()

override void EffCloudDust::SelectFromSurface ( SurfaceInfo surfaceInfo)
inlineprivate

См. определение в файле EffCloudDust.c строка 31

32 {
33 int particleID = surfaceInfo.GetCloudEffectParticleId();
34 string soundSet = surfaceInfo.GetCloudEffectSoundSetName();
35 EffectSound effectSound = null;
36
37 if (soundSet != "")
38 {
39 if (m_EffectSound == null || m_EffectSound.GetSoundSet() != soundSet)
40 {
41 effectSound = SEffectManager.CreateSound(soundSet, vector.Zero, 3, 3, true);
42 SetEffectSound(effectSound);
43 }
44 }
45 else
46 {
47 if (m_EffectSound)
48 {
49 SetEffectSound(null);
50 }
51 }
52
53 if (m_ParticleID != particleID)
54 {
55 if (particleID != 0)
56 {
57 SetParticleState(particleID);
58 }
59 else
60 {
61 Stop();
62 }
63 }
64 }
override void SetParticleState(int state)
Определения EffCloudDust.c:66
override void Stop()
Stops all elements this effect consists of.
Определения EffectParticle.c:224
EffectSound m_EffectSound
Name of sound set that is going to be played when particle starts playback.
Определения EffectParticle.c:18
int m_ParticleID
The ID in the ParticleList to create Particle from.
Определения EffectParticle.c:14
void SetEffectSound(EffectSound effectSound)
Set effect sound play with particle.
Определения EffectParticle.c:599
proto int GetCloudEffectParticleId()
proto string GetCloudEffectSoundSetName()

Перекрестные ссылки SEffectManager::CreateSound(), SurfaceInfo::GetCloudEffectParticleId(), SurfaceInfo::GetCloudEffectSoundSetName(), EffectParticle::m_EffectSound, EffectParticle::m_ParticleID, EffectParticle::SetEffectSound(), SetParticleState(), EffectParticle::Stop() и vector::Zero.

Используется в DustEffectManager::CreateCloudEffect().