# Baby's First Weapon Addition

**URL:** https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678
**Category:** The Toolbox
**Created:** [May 27, 2015, 2:44am UTC](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678 "2015-05-27T02:44:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Shopkeeper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/shopkeeper/32/453_2.png) [@Shopkeeper](https://discourse.cataclysmdda.org/u/Shopkeeper)
#### Post date: [May 27, 2015, 2:44am UTC](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678/1 "2015-05-27T02:44:23Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Rivet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rivet/32/11_2.png) [@Rivet](https://discourse.cataclysmdda.org/u/Rivet)
#### Post date: [May 27, 2015, 2:52am UTC](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678/2 "2015-05-27T02:52:57Z")

</div>

I recommend renaming the in-game name to something that would make sense to people who haven’t played the Metro games, as I did when I added the tihar, helsing, and ashot.

Other than that, it sounds like a cool idea!

---

<div class="post-metadata">

### Author: ![Shopkeeper](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/shopkeeper/32/453_2.png) [@Shopkeeper](https://discourse.cataclysmdda.org/u/Shopkeeper)
#### Post date: [May 27, 2015, 3:01am UTC](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678/3 "2015-05-27T03:01:02Z")

</div>

Alrighty, easy enough. Now just to try and unravel the enigma that is GitHub.

---

<div class="post-metadata">

### Author: ![jokermatt999](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)
#### Post date: [June 2, 2015, 10:56am UTC](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678/4 "2015-06-02T10:56:25Z")

</div>

Congrats on your first merge! 🙂

Btw, the doubled up sight mod was an issue with the 50 caliber rifle you used as a base. Thanks to you and Rivet (who I swear is a typo/error fixing _machine_) for catching it.

---

<div class="post-metadata">

### Author: ![Agoelia](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/agoelia/32/435_2.png) [@Agoelia](https://discourse.cataclysmdda.org/u/Agoelia)
#### Post date: [August 7, 2015, 6:19pm UTC](https://discourse.cataclysmdda.org/t/babys-first-weapon-addition/9678/5 "2015-08-07T18:19:31Z")

</div>

So did you manage to merge it with the latest experimental in the end?
