Enable Vertical Camera Movement
When it is locked on the target
Disconnect node on the begining of function UpdateIgnoreLookInput (you can even remove this function and all its calls).
Modify function UpdateCameraLock so it won't modify Pitch value of controller.
Create function GetIsCameraFree and mark it as Pure.
Add condition to Horizontal Camera Input event.