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;
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 }
ref map< string, ref array< ref DustKickupEffectDistanceData > > m_EffectRanges
Перекрестные ссылки ammoType и m_EffectRanges.
Используется в PlayParticle().