Uh, not needed

This commit is contained in:
SDraw 2022-12-25 20:15:46 +03:00
parent b2945ac7e2
commit 46616f8b77
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
2 changed files with 0 additions and 11 deletions

View file

@ -290,9 +290,6 @@ namespace ml_amt
m_customProneLimit = (l_customTransform != null);
m_proneLimit = m_customProneLimit ? Mathf.Clamp(l_customTransform.localPosition.y, 0f, 1f) : Settings.ProneLimit;
if(m_proneLimit > m_crouchLimit)
Utils.Swap(ref m_proneLimit, ref m_crouchLimit);
l_customTransform = PlayerSetup.Instance._avatar.transform.Find("LocomotionOffset");
m_customLocomotionOffset = (l_customTransform != null);
m_locomotionOffset = m_customLocomotionOffset ? l_customTransform.localPosition : Vector3.zero;

View file

@ -12,13 +12,5 @@ namespace ml_amt
{
return Matrix4x4.TRS(p_pos ? p_transform.position : Vector3.zero, p_rot ? p_transform.rotation : Quaternion.identity, p_scl ? p_transform.localScale : Vector3.one);
}
// Usefull
public static void Swap<T>(ref T lhs, ref T rhs)
{
T temp = lhs;
lhs = rhs;
rhs = temp;
}
}
}