Added syncing of head angles
This commit is contained in:
parent
01ac535afd
commit
1b2fc9b3ef
@ -204,6 +204,7 @@ public class Plugin : BaseUnityPlugin
|
|||||||
//rot.z = Mathf.Clamp(-tid.fNPRoll * rotationReductionFactor, rollLimits.lower, rollLimits.upper);
|
//rot.z = Mathf.Clamp(-tid.fNPRoll * rotationReductionFactor, rollLimits.lower, rollLimits.upper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__instance.HeadRotation = rot; // sync head angles
|
||||||
__instance.ProceduralWeaponAnimation.SetHeadRotation(rot);
|
__instance.ProceduralWeaponAnimation.SetHeadRotation(rot);
|
||||||
//Logger.LogInfo(string.Format("TIR DATA Final pos = {0}; Final rot = {1}", pos, rot));
|
//Logger.LogInfo(string.Format("TIR DATA Final pos = {0}; Final rot = {1}", pos, rot));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user