mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-04 10:59:22 +00:00
Scaled locomotion steps
Funny C# properties Minor fixes
This commit is contained in:
parent
fc60219a4e
commit
28aca1bb49
11 changed files with 343 additions and 410 deletions
|
@ -98,7 +98,7 @@ namespace ml_amt
|
|||
m_localTweaker = PlayerSetup.Instance.gameObject.AddComponent<MotionTweaker>();
|
||||
m_localTweaker.SetIKOverrideCrouch(Settings.IKOverrideCrouch);
|
||||
m_localTweaker.SetCrouchLimit(Settings.CrouchLimit);
|
||||
m_localTweaker.SetIKOverrideCrouch(Settings.IKOverrideProne);
|
||||
m_localTweaker.SetIKOverrideProne(Settings.IKOverrideProne);
|
||||
m_localTweaker.SetProneLimit(Settings.ProneLimit);
|
||||
m_localTweaker.SetPoseTransitions(Settings.PoseTransitions);
|
||||
m_localTweaker.SetAdjustedMovement(Settings.AdjustedMovement);
|
||||
|
@ -260,13 +260,10 @@ namespace ml_amt
|
|||
{
|
||||
try
|
||||
{
|
||||
if(Settings.OverrideFix)
|
||||
if(Settings.OverrideFix && (__instance.animator != null))
|
||||
{
|
||||
if(__instance.animator != null)
|
||||
{
|
||||
__instance.animator.enabled = false;
|
||||
__instance.animator.WriteDefaultValues();
|
||||
}
|
||||
__instance.animator.enabled = false;
|
||||
__instance.animator.WriteDefaultValues();
|
||||
}
|
||||
}
|
||||
catch(System.Exception l_exception)
|
||||
|
@ -278,13 +275,10 @@ namespace ml_amt
|
|||
{
|
||||
try
|
||||
{
|
||||
if(Settings.OverrideFix)
|
||||
if(Settings.OverrideFix && (__instance.animator != null))
|
||||
{
|
||||
if(__instance.animator != null)
|
||||
{
|
||||
__instance.animator.enabled = true;
|
||||
__instance.animator.Update(0f);
|
||||
}
|
||||
__instance.animator.enabled = true;
|
||||
__instance.animator.Update(0f);
|
||||
}
|
||||
}
|
||||
catch(System.Exception l_exception)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue