This is another camera set-up with some improvements and disadvantages over the previous one. It allows the player to zoom in by right clicking and when the player dies, the camera does not snap to their position like in the previous set-up. The main disadvantage I have with this implementation is that it intersects the player pawn which is very bad. A combination of the two implementation’s could render the best results so far.
The code was modified from here.
Here it is in action: