Why is my projectile not shooting straight near my character?

Yes, a laser sight would solve your design, assuming that works in your world.

Another option is to add a helmet-visor HUD that draws a target indicator at the spot in the world where a ray-cast from the gun hits something.