mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 10:29:22 +00:00
Limits reset on avatar clear
This commit is contained in:
parent
de2cd0fd56
commit
7161e65e3f
1 changed files with 3 additions and 0 deletions
|
@ -134,6 +134,9 @@ namespace ml_amt
|
||||||
m_massCenter = Vector3.zero;
|
m_massCenter = Vector3.zero;
|
||||||
m_ikLimits = null;
|
m_ikLimits = null;
|
||||||
m_parameters.Clear();
|
m_parameters.Clear();
|
||||||
|
|
||||||
|
PlayerSetup.Instance.avatarCrouchLimit = Mathf.Max(Mathf.Clamp01(Settings.CrouchLimit), Mathf.Clamp01(Settings.CrouchLimit));
|
||||||
|
PlayerSetup.Instance.avatarProneLimit = Mathf.Min(Mathf.Clamp01(Settings.CrouchLimit), Mathf.Clamp01(Settings.CrouchLimit));
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void OnSetupAvatar()
|
internal void OnSetupAvatar()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue