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 строка 1986
1987 {
1989 if (baseObstructionLength==0)
1990 {
1992 }
1993
1996 return weaponEnd - Math.Lerp(weaponEnd, baseObstructionLength + effectiveAttachmentLength, obstruction01);
1997 }
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.