I decided to try and get my feet wet with Cataclysm and GitHub by creating a custom weapon. So, I took a look at the CDDA Raw JSON, then clobbered together a weapon and associated recipe using the .50 caliber rifle as a base.
[spoiler=Heavy Automatic Shotgun]{
âtypeâ: ârecipeâ,
âresultâ: âm2browning_shotâ GUN, recipe,
âcategoryâ: âCC_WEAPONâ recipe_category,
âsubcategoryâ: âCSC_WEAPON_RANGEDâ,
âskill_usedâ: âmechanicsâ item_group, skill,
âskills_requiredâ: [
âgunâ skill,
4
],
âdifficultyâ: 6,
âtimeâ: 180000,
âreversibleâ: false,
âautolearnâ: true,
âqualitiesâ: [
{
âidâ: âSAW_M_FINEâ tool_quality,
âlevelâ: 1,
âamountâ: 1
},
{
âidâ: âSCREW_FINEâ tool_quality,
âlevelâ: 1,
âamountâ: 1
}
],
âtoolsâ: [
[
[
âgoggles_weldingâ ARMOR, recipe,
-1
]
],
[
[
âoxy_torchâ TOOL,
6
],
[
âwelderâ TOOL,
30
],
[
âwelder_crudeâ TOOL, recipe,
30
],
[
âtoolsetâ TOOL,
30
]
],
[
[
âsmall_repairkitâ TOOL, recipe,
150
],
[
âlarge_repairkitâ TOOL,
30
]
]
],
âcomponentsâ: [
[
[
âm2browningâ GUN,
1
]
],
[
[
â2x4â GENERIC, recipe,
1
]
]
],
[
[
âpipeâ GENERIC, recipe,
1
]
],
[
[
âsteel_chunkâ GENERIC, recipe,
3
],
[
âscrapâ GENERIC,
9
]
]
]
}
{
âidâ: âm2browning_shotâ GUN, recipe,
âtypeâ: âGUNâ,
âsymbolâ: â(â,
âcolorâ: âdark_grayâ,
ânameâ: âHeavy Automatic Shotgunâ,
âdescriptionâ: âA cut down M2 Browning heavy machine gun, re-chambered and re-bored for shotgun shells, and completely redesigned to be wielded by one user.â,
âpriceâ: 750000,
âmaterialâ: [
âhardsteelâ material,
âwoodâ material
],
âskillâ: âshotgunâ skill,
âammoâ: âshotâ ammunition_type,
âweightâ: 16500,
âvolumeâ: 16,
âbashingâ: 12,
âcuttingâ: 0,
âto_hitâ: -1,
âdispersionâ: 150,
âsight_dispersionâ: 75,
âaim_speedâ: 5,
ârecoilâ: 180,
âdurabilityâ: 8,
âburstâ: 5,
âclip_sizeâ: 20,
âreloadâ: 800,
âloudnessâ: 200,
âvalid_mod_locationsâ: [
[
âaccessoriesâ,
4
],
[
âbarrelâ,
1
],
[
âboreâ,
1
],
[
âsightsâ,
1
],
[
âmechanismâ,
4
],
[
âmuzzleâ,
1
],
[
âsightsâ,
1
]
]
}[/spoiler]
Now Iâm not the smartest guy, but I do pride myself on being clever enough to make things work. My question to anyone who has more actual experience, does this seem reasonable? Iâm still trying to figure how to get this on to GitHub and wanted some feedback beforehand if I missed something incredibly obvious.