wip: Revert OctoPlayer

This commit is contained in:
Alexandre Coirier
2026-05-25 22:46:50 +02:00
parent 746c6ce13c
commit a234ba2a7d
4 changed files with 114 additions and 141 deletions
@@ -175,14 +175,14 @@ namespace Unheimlich.Features.Player
float targetYaw = Mathf.Atan2(targetDirection.x, targetDirection.z) * Mathf.Rad2Deg;
float targetPitch = -Mathf.Asin(targetDirection.y) * Mathf.Rad2Deg;
float currentYaw = PlayerController.Instance.Movement.Yaw;
float currentPitch = PlayerController.Instance.Movement.Pitch;
float currentYaw = PlayerController.Instance.Movement.State.Yaw;
float currentPitch = PlayerController.Instance.Movement.State.Pitch;
float newYaw = Mathf.LerpAngle(currentYaw, targetYaw, Settings.aimAssistStrength * Time.deltaTime);
float newPitch = Mathf.Lerp(currentPitch, targetPitch, Settings.aimAssistStrength * Time.deltaTime);
PlayerController.Instance.Movement.Yaw = newYaw;
PlayerController.Instance.Movement.Pitch = newPitch;
PlayerController.Instance.Movement.State.Yaw = newYaw;
PlayerController.Instance.Movement.State.Pitch = newPitch;
}
_hasAimAssistTarget = false;