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

◆ SpawnVaporEffect()

void VolcanicTrigger::SpawnVaporEffect ( )
inlineprotected

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

84 {
85 vector pos = GetPosition();
86 pos[1] = g_Game.SurfaceY(pos[0], pos[2]) + 0.5; // Snap to terrain surface
87
88 m_VaporParticle = ParticleManager.GetInstance().PlayInWorld(ParticleList.VOLCANO, pos);
89
90 int randSize = Math.RandomIntInclusive(-1,2);
91 int randRate = Math.RandomIntInclusive(-1,2);
92
93 m_VaporParticle.IncrementParticleParam(EmitorParam.SIZE, randSize);
94 m_VaporParticle.IncrementParticleParam(EmitorParam.BIRTH_RATE, randRate);
95 }
DayZGame g_Game
Определения DayZGame.c:3942
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
ParticleSource m_VaporParticle
Определения VolcanicTrigger.c:8
EmitorParam
Определения EnVisual.c:114
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки g_Game, GetPosition(), m_VaporParticle, ParticleManager(), Math::RandomIntInclusive() и ParticleList::VOLCANO.

Используется в EEInit().