Enable Vertical Camera Movement

When it is locked on the target


DynamicTargetingComponent

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.

BP_CombatCharacter

Add condition to Horizontal Camera Input event.