Problems with resident Evil 2 Remake style Camera


I am looking to create a camera system similar to the one in RE2 Remake but keep on running into problems. I have a main character, controlled via root motion, I want the camera to be set behind the player to the right, just above the shoulder. I don’t want it to be a static follow camera, e.g. when the player breaths I want the camera to move with the player movement. If the user has a weapon drawn and the right mouse is held then aim animation state is active, from there I want the camera to follow the rotation of the aim up and down and player to rotate using mouse also.

I know it is a lot to ask but i’alt textm just looking to see if anyone has any ideas, know any scripts available, or just advice to getting it like an RE2 Camera.

Many thanks in advance.

public void RotatePlayer()
float yawCamera = camera.transform.rotation.eulerAngles.y;
transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.Euler(0,yawCamera,0), turnspeed * Time.fixedDeltaTime);

try this as