Rotate Camera Blueprint with players

Ok, so i’ve managed to get the camera rotating correctly. The only issues is now that when my players surpass a certain rotation, the camera flips to the other side of the players and the players movement is affected by it, as i am using the cameras direction for the players controls. Any idea what could be wrong?

I’m getting each actors rotation, summing them together and dividing that by 2(Similarly to how the center point is calculated in the first picture). The division is clearly causing the camera to flip, but also makes the camera actor rotate correctly otherwise. I’ve tried normalizing the value but it doesn’t seem to help.

-Samuelb