To add or modify guns you’ll need to get to know the .json files. They’re in the json folder in the data folder in your Cataclysm folder. Those are just simple text editing, no need to hardcode or recompile or any of that fun stuff. Also check out this thread, it has lots of helpful information about modding.