Running into projectiles FPS game

Wondering if anyone would happen to know the best way to avoid a projectile’s spawn location being affected by moving around?
For my first person game I keep running into the spawning bullets and moving it further away doesn’t really help. Moving backwards makes it look weird also. Any ideas?
I need to keep collision with the player since it’s a multiplayer game.
Should I replace the projectile with a raycast?