Maybe I'm overestimating the difficulty of making guns. But I'm aware of zero conflicts in which small arms were manufactured in situ. Even in e.g. Myanmar/Burma. The fact that even remote conflicts go through the trouble of importing arms suggests this might be more difficult than you suggest.