I have seen some fairly sophisticated homemade guns. I could be a blank firing gun that was converted, or a multi-barrel muzzle loader.
I made a 4 barrel muzzleloader from hardware store parts in 1984, for about $12. Four shots in five seconds. .45 caliber, electrically fired. Legal, as it was a muzzleloader.