Recomputes the provided obstruction01 value typically returned by LiftWeaponCheckEx from the [0 ... 1] range to distance in meters the weapon penetrates the obstacle.
- Аргументы
-
| obstruction01 | Obstruction progress |
- Возвращает
- Penetration depth in meters
См. определение в файле Weapon_Base.c строка 1980
1981 {
1983 if (baseObstructionLength==0)
1984 {
1986 }
1987
1990 return weaponEnd - Math.Lerp(weaponEnd, baseObstructionLength + effectiveAttachmentLength, obstruction01);
1991 }
float m_ObstructionDistance
float GetEffectiveAttachmentLength()
Returns effective length of attachments that influence total weapon length.
float ApproximateBaseObstructionLength()
Approximate ObstructionDistance for weapons with no configuration. Returned length doesn't account fo...
Перекрестные ссылки ApproximateBaseObstructionLength(), GetEffectiveAttachmentLength(), Math::Lerp(), m_ObstructionDistance, m_ShoulderDistance и m_WeaponLength.