You can rifle a barrel in your garage. Search youtube, there are DIY videos.
Btw, you need a rifled barrel to make accurate shots at long-ish distances. For close quarter combat a submachine gun with a smooth bore would do quite well. Something similar to this: https://en.wikipedia.org/wiki/Borz. Any machine shop can crank those out in numbers.
I was a bit simplistic given that I didn't expect all the HN gun experts to come out of the woodwork on this one but I'll bite :)
Yes, you can get by with a smooth bore but "long-ish" here is significantly less than buckshot range. To get really nerdy, if volume of fire (submachine gun) is going to replace accuracy, the difficulty in creating a reliable magazine dwarfs the difficulty in rifling and while I haven't tried, I don't think 3D printing has the tolerances to solve that...yet.
Yes you can rifle a barrel in a garage but you need real machine tools as well as some very specialized tools that you'll need to either acquire or build which kind of adds steps beyond "have machine tools" -> "make gun"
To crudely rifle a barrel you just need a press. Or you can make a machine like this: https://www.alloutdoor.com/2017/04/17/watch-homemade-barrel-.... I once saw a video of a machine which did not require any machine tools, you'd just make a guide and then manually cut the riflings. All you need there is a lot of patience.
For these designs you also do not need 3d printing at all. You just need suitable pipes, or sheets of metal that you bend and either weld or use fasteners to make the receiver. You are right though, designing and building reliable magazines is probably going to be one of the things that require a lot of attention to details.
Depending on the magazine dimensions (single stack is hard) Reliable magazines can be largely 3d printed, as can the follower and the jigs used to bend piano wire into proper springs. The 3d.printed.mag will usually have less capacity than a metal one though.
Btw, you need a rifled barrel to make accurate shots at long-ish distances. For close quarter combat a submachine gun with a smooth bore would do quite well. Something similar to this: https://en.wikipedia.org/wiki/Borz. Any machine shop can crank those out in numbers.