Gun line traces from center of map when not aiming at an object?

Here’s the tracelogic

It find the crosshair from the camera and then does another traceline from the end ofthe gun to the end of the first traceline ( i did this as over the shoulder close to wall the traceline would screw up as it was from the camera.

Cheers