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

◆ SpawnParticles()

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

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

47 {
48 partPos[1] = GetGame().SurfaceRoadY(partPos[0], partPos[2]); // Snap particles to ground
49
50 // We make sure that spawned particle is inside the trigger
51 if (!Math.IsInRange(partPos[1], centerPos[1] - m_NegativeHeight, centerPos[1] + m_PositiveHeight))
52 partPos[1] = centerPos[1];
53
54 props.Insert(ParticleProperties(partPos, ParticlePropertiesFlags.PLAY_ON_CREATION, null, GetGame().GetSurfaceOrientation( partPos[0], partPos[2] ), this));
55 ++count;
56 }
proto native float SurfaceRoadY(float x, float z, RoadSurfaceDetection rsd=RoadSurfaceDetection.LEGACY)
proto native CGame GetGame()

Перекрестные ссылки GetGame(), Math::IsInRange() и CGame::SurfaceRoadY().