We've previously covered crosshairs and aiming in other recipes, but we're going to handle it in a different manner now. Rather than always have our pawn fire at the direct center of the screen, we'll change some behaviors so that our projectiles fire using the gun's rotation. Both look and feel more accurate and realistic.
We'll do this by drawing a trace from the barrel (socket) of our weapon, and using the weapon's rotator to draw the crosshair at the end of the trace.
Start by having your IDE open and ready to make some changes. We won't have to create any new classes, but we will alter the behavior of our existing ones by adding some functions.