Added syncing of head angles

This commit is contained in:
jonbons 2024-12-15 19:30:02 -06:00
parent 01ac535afd
commit 1b2fc9b3ef
No known key found for this signature in database

View File

@ -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));
} }