How would I create an orbit style 'SpringArmCamera' with CUSTOM Pitch, and Yaw Logic?

I want to create a Yaw and Pitch functionality because if I just Bind the Axis and ‘AddControllerYawInput’ & ‘AddControllerPitchInput’ its not smooth and I can call variables like booleans…

edit(and I want to have this logic in my CameraPawn.)