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

◆ DetermineParticles()

array< string > DustKickupEffects::DetermineParticles ( string ammoType,
float fraction,
float depth )
inlineprivate

Determines what particles should play based on the ammo type and distance of the weapon from the ground.

calculating the actual distance from the hir fraction * the depth of the trace

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

177 {
179 float distance = fraction * depth;
180 array<ref DustKickupEffectDistanceData> distances = m_EffectRanges.Get(ammoType);
181 if (!distances)
182 return null;
183
184 foreach (DustKickupEffectDistanceData data : distances)
185 {
186 if (distance >= data.m_MinDistance && distance < data.m_MaxDistance)
187 return data.m_Variants;
188 }
189
190 return null;
191 }
string ammoType
Определения DustKickupEffects.c:24
ref map< string, ref array< ref DustKickupEffectDistanceData > > m_EffectRanges
Определения DustKickupEffects.c:49

Перекрестные ссылки ammoType и m_EffectRanges.

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