This commit is contained in:
SDraw 2022-09-15 00:39:16 +03:00
parent 31782d2ed6
commit 73e0cd6077
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
2 changed files with 4 additions and 3 deletions

View file

@ -237,14 +237,15 @@ namespace ml_amt
if(!m_detectPose && m_avatarReady && !m_compatibleAvatar && PlayerSetup.Instance._inVr)
{
PlayerSetup.Instance._movementSystem.ChangeCrouch(false);
PlayerSetup.Instance.animatorManager.SetAnimatorParameterBool("Crouching", false);
PlayerSetup.Instance._movementSystem.ChangeProne(false);
PlayerSetup.Instance.animatorManager.SetAnimatorParameterBool("Crouching", false);
PlayerSetup.Instance.animatorManager.SetAnimatorParameterBool("Prone", false);
}
}
public void SetProneLimit(float p_value)
{
m_proneLimit = Mathf.Clamp(p_value, 0f, 1f);
if(!m_customProneLimit)
m_proneLimit = Mathf.Clamp(p_value, 0f, 1f);
}
}
}