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

◆ SpawnParticles()

override void ContaminatedArea_Local::SpawnParticles ( ParticlePropertiesArray props,
vector centerPos,
vector partPos,
inout int count )
inlineprivate

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

49 {
50 #ifndef NO_GUI
51 partPos[1] = g_Game.SurfaceRoadY(partPos[0], partPos[2]); // Snap particles to ground
52
53 // We make sure that spawned particle is inside the trigger
54 if (!Math.IsInRange(partPos[1], centerPos[1] - m_NegativeHeight, centerPos[1] + m_PositiveHeight))
55 partPos[1] = centerPos[1];
56
57 props.Insert(ParticleProperties(partPos, ParticlePropertiesFlags.PLAY_ON_CREATION, null, g_Game.GetSurfaceOrientation( partPos[0], partPos[2] ), this));
58 ++count;
59 #endif
60 }
DayZGame g_Game
Определения DayZGame.c:4074

Перекрестные ссылки g_Game и Math::IsInRange().