The weapon passes through the walls.

Also, NearClipPlane must be set to 0 in the project settings or slightly above 0