New Weapons

Pretty simple stuff only at the moment, as this is my first mod (pretty much first attempt at coding too.)
So far added 3 weapons and an ammo type. The general aim is for homemade weapons and ammunition for mid to late game characters.

AMMO
-Sabot rounds
-sabot nails
basically a step up from nails, still low damage but still relatively easy to make.
-sabot flechette
the armor piercing variant of the sabot round, still relatively low damage but almost all peircing.
-sabot bearings
the hollowpoint of the sabot family, higher damage but barely any armor piercing at all.

Making the rounds uses the hotplate, a mold, a cutting tool and plastic chunks, in addition to whatever is inside the sabot.

WEAPONS
-sabot Autocannon
high rate of fire, lowish damage and accuracy. Kinda like a minigun.
Ingame description:
A heavily modified nailgun, utilizing both an electronic rotary loading system and replacement of the springloaded nail driver with a pneumatic one, this weapon fires at an astonishing rate.
However, it has become restricted to sabot clad ammunition."

-EM Driver
high damage, low firerate. uses UPS and sabot rounds.
still not too sure about this one really, seems a bit superfluous considering the rebar rifle, which is really what I’m basing it off.

Still need to test these further and balance them, and make and add the weapon crafting recipes to the game.
Once I figure out how do more stuff I’ll be trying to add to it too, like weapon mods or something. And more guns and ammo.
Anyway, suggestions and recommendations would be nice. Thanks in advance!
EDIT:
Okay, Preliminary work seems to be complete, and I don’t think this breaks anything, and the guns don’t seem overpowered, so here is release 1.0
NOTES: -EM Driver description says that a recipe was found even though it is auto learned. gonna leave it like that until I figure out how to add it to a book.
-Nail Autocannon with sabot bearings devastates at close range. Not sure if a feature or overpowered.

Please tell me if something doesn’t work or is too powerful (or weak).

ranged.json

{
    "id": "nailgat",
    "type": "GUN",
    "symbol": "(",
    "color": "yellow",
    "name": "nail autorifle",
    "description": "A heavily modified nailgun, utilizing both an electronic rotary loading system and replacment of the springloaded nail driver with a pneumatic one, this weapon fires  at an astonishing rate. However, it has become restricted to sabot clad ammunition.",
    "price": 4000,
    "material": ["plastic", "steel"],
    "flags": ["MODE_BURST","WATERPROOF_GUN"],
    "skill": "rifle",
    "ammo": "sab",
    "weight": 1000,
    "volume": 14,
    "bashing": 8,
    "cutting": 0,
    "to_hit": -3,
    "ranged_damage": 2,
    "range": 12,
    "dispersion": 20,
    "recoil": -3,
    "durability": 8,
    "burst": 50,
    "clip_size": 400,
    "reload": 750,
    "valid_mod_locations": [["grip", 1 ],["sights", 1 ],["stock", 1 ]]
  },
  {
    "id": "emdriver",
    "type": "GUN",
    "symbol": "(",
    "color": "yellow",
    "name": "EM driver",
    "description": "An Electro Magnetic Driver, you barely understand why it works, but thankfully the instructions you found were very detailed. Apparently the plastic sabot you use is vaporised by the current and forms a plasma cloud around the projectile, which helps produce the required magnectic fields.",
    "price": 4000,
    "material": ["plastic", "steel"],
    "ammo_effects": "TRAIL",
    "flags": ["USE_UPS_40","RELOAD_ONE"],
    "skill": "rifle",
    "ammo": "sab",
    "weight": 1000,
    "volume": 17,
    "bashing": 7,
    "cutting": 0,
    "to_hit": -4,
    "ranged_damage": 40,
    "range": 20,
    "dispersion": -8,
    "recoil": 10,
    "durability": 8,
    "burst": 0,
    "clip_size": 5,
    "reload": 350
  },

ammo.json

{ "type" : "AMMO", "id" : "sabnail", "price" : 100, "name" : "sabot nails", "symbol" : "=", "color" : "cyan", "description" : "A box of nails with handcrafted plastic sabots. While this dramatically increases their accuracy and range and slightly increases their damage, it restricts their use to specialised weapons.", "material" : ["iron", "plastic"], "volume" : 1, "weight" : 4, "bashing" : 1, "cutting" : 0, "to_hit" : 0, "ammo_type" : "sab", "casing" : "NULL", "damage" : 6, "pierce" : 4, "range" : 6, "dispersion" : 30, "recoil" : 6, "count" : 50 }, { "type" : "AMMO", "id" : "sabflc", "price" : 100, "name" : "sabot flechette", "symbol" : "=", "color" : "cyan", "description" : "A box of handcrafted flecehettes encased in plastic sabots. These provide high range, accuracy and can pierce armor. However, they do not cause much damage to the target in comparison to conventional weapons.", "material" : ["steel", "plastic"], "volume" : 1, "weight" : 4, "bashing" : 1, "cutting" : 0, "to_hit" : 0, "ammo_type" : "sab", "casing" : "NULL", "damage" : 8, "pierce" : 6, "range" : 20, "dispersion" : 18, "recoil" : 7, "count" : 50 }, { "type" : "AMMO", "id" : "sabball", "price" : 100, "name" : "sabot bearings", "symbol" : "=", "color" : "cyan", "description" : "A box of bearings in handcrafted plastic sabots. These rounds cause significant trauma, but bad aerodynamics reduce accuracy and they have negligable ability to penetrate armor.", "material" : ["iron", "plastic"], "volume" : 1, "weight" : 4, "bashing" : 1, "cutting" : 0, "to_hit" : 0, "ammo_type" : "sab", "casing" : "NULL", "damage" : 10, "pierce" : 1, "range" : 0, "dispersion" : 35, "recoil" : 6, "count" : 50 },

ammo_types.json

{ "type" : "ammunition_type", "id" : "sab", "name" : "sabot rounds", "default" : "sabnail" },

recipes.json

[code]{
“type” : “recipe”,
“result”: “nailgat”,
“category”: “CC_WEAPON”,
“subcategory”: “CSC_WEAPON_RANGED”,
“skill_used”: “mechanics”,
“skills_required”: [“gun”,4],
“difficulty”: 5,
“time”: 20000,
“reversible”: false,
“autolearn”: true,
“tools”: [
[
[“goggles_welding”, -1]
],
[
[“hacksaw”, -1], [“toolset”, -1]
],
[
[“screwdriver”, -1], [“toolset”, -1]
],
[
[“wrench”, -1], [“toolset”, -1]
],
[
[“welder”, 200], [“welder_crude”, 300], [“toolset”, 6]
]
],
“components”: [
[
[“pipe”, 2]
],
[
[“nailgun”, 1]
],
[
[“duct_tape”, 150],
[“superglue”, 1]
],
[
[ “2x4”, 1],
[ “stick”, 1 ]
],
[
[“metal_tank_small”, 1]
],
[
[“e_scrap”, 2]
],
[
[“steel_chunk”, 2],
[ “scrap”, 6 ]
]
]
},{
“type” : “recipe”,
“result”: “emdriver”,
“category”: “CC_WEAPON”,
“subcategory”: “CSC_WEAPON_RANGED”,
“skill_used”: “electronics”,
“skills_required”: [“gun”,5],
“difficulty”: 7,
“time”: 20000,
“reversible”: false,
“autolearn”: true,
“tools”: [
[
[“goggles_welding”, -1]
],
[
[“hacksaw”, -1], [“toolset”, -1]
],
[
[“screwdriver”, -1], [“toolset”, -1]
],
[
[“wrench”, -1], [“toolset”, -1]
],
[
[“welder”, 200], [“welder_crude”, 300], [“toolset”, 6]
],
[
[“soldering_iron”, 50 ]
]
],
“components”: [
[
[“pipe”, 1]
],
[
[“rebar”, 2]
],
[
[“duct_tape”, 50],
[“superglue”, 1]
],
[
[“metal_tank_small”, 1]
],
[
[“e_scrap”, 6]
],
[
[ “small_storage_battery”, 1 ],
[ “UPS_off”, 1 ]
],
[
[“steel_chunk”, 3],
[ “scrap”, 9 ]
]
]
},{

    "type" : "recipe",

“result”: “sabnail”,
“category”: “CC_AMMO”,
“subcategory”: “CSC_AMMO_OTHER”,
“skill_used”: “fabrication”,
“difficulty”: 4,
“time”: 25000,
“reversible”: false,
“autolearn”: true,
“qualities”:[
{“id”:“CUT”,“level”:1,“amount”:1}
],
“tools”: [
[
[“mold_plastic”, -1]
],
[
[“hotplate”, 5],
[“toolset”, 1],
[“fire”, -1]
]
],
“components”: [
[
[“plastic_chunk”, 2]
],
[
[“nail”, 50]
]
]
},{

“type” : “recipe”,
“result”: “sabflc”,
“category”: “CC_AMMO”,
“subcategory”: “CSC_AMMO_OTHER”,
“skill_used”: “fabrication”,
“difficulty”: 7,
“time”: 35000,
“reversible”: false,
“autolearn”: true,
“qualities”:[
{“id”:“CUT”,“level”:1,“amount”:1}
],
“tools”: [
[
[“mold_plastic”, -1]
],
[
[“hotplate”, 5],
[“toolset”, 1],
[“fire”, -1]
]
],
“components”: [
[
[“plastic_chunk”, 2]
],
[
[“steel_chunk”, 1],
[ “scrap”, 3 ]
]
]
},{

“type” : “recipe”,
“result”: “sabball”,
“category”: “CC_AMMO”,
“subcategory”: “CSC_AMMO_OTHER”,
“skill_used”: “fabrication”,
“difficulty”: 7,
“time”: 30000,
“reversible”: false,
“autolearn”: true,
“qualities”:[
{“id”:“CUT”,“level”:1,“amount”:1}
],
“tools”: [
[
[“mold_plastic”, -1]
],
[
[“hotplate”, 5],
[“toolset”, 1],
[“fire”, -1]
]
],
“components”: [
[
[“plastic_chunk”, 2]
],
[
[“bearing”, 50]
]
]
},[/code]

Remember that miniguns need external power. Gatling guns could have a crank to use.

Hmmm, maybe have the basic 9mm gattling use a crank, and it have an mod/upgrade which uses a plutonium cell, power converter and a cordless drill to increase firerate and accuraccy, what with the ability to have a firm grip on the weapon?
Anyway, thanks for the advice Zaweri.

So where’s the code?

Also why would you sabot a nail? Are you aware of the actual uses of a sabot? They achieve absolutely nothing when it comes to ammo effectiveness, probably decrease it a bit actually, they just allow for a cannon to fire projectiles that are smaller than its bore (and judging by the descriptions you wrote it seems that the sabots are better that their “unupgraded” versions).

Also I know that everyone here is driven by rule of cool but why not name the mini guns improvised assault rifles or (smgs for pistol cartridges), those stench the willing suspension of disbelief way less and mechanically behave like the same thing (in game obviously).

@John
The reasoning that I had was that converting nails to a sabot would help improve the seal in the barrel, which should improve accuracy and velocity in a pneumatic system. would still be pretty weak, I guess, but better than just standard nails. I also have been toying with the name of the nail gattling, just haven’t really decided what it should be yet.

@Ninja
What would be the best way to upload it? This is my first attempt at coding for cataclysm (or anything else), and still haven’t really figured out github very well.
Just past the entries I made in the .JSONs here?

Either code tag it, or just put the text here.

Alright, just going to finish the recipes for weapons and ammo and then I’ll edit the main post with the code.

I like this a lot, perhaps we can collaborate and expand the idea together? I have been working on many ‘improvised’ melee weapons in my spare time. I already worked up the proper weapons, groups, and recipes for two. I wanted to expand upon the the ‘melee’ section of mid-end game though, along with some early options. The only two I have worked on thus far are simple edits/expansions of existing weapons, the electrified machete and nail-bat. I had/have ideas for items ranging from the Power Fist (ala Fallout) to the Chainlock (more proper chain-like weapon).

@Excaerious
I’d be happy collaborate, although I can’t promise much as my time at the moment is quite limited with university.

Ordinarily I’d say a 9mm gatling could probably just use the gas blowback, but yeah you’d probably still need an electric motor or something.
As to the nail gatling-- wait, autocannon? I guess some of the stuff I was gonna say is a bit superfluous now. I’d still say add an extra pipe and maybe a steel chain to the recipe. As to the EM driver, probably a power converter and some amplifier circuits.
EM driver feels a bit too similar to the bolt driver, but more nail weapons are always a plus and it should act as a nice counterpart to the current coilgun.

Also are small metal tanks craftable/lootable now? IIRC even stripping one off a car or something only gave you the regular metal tank.

Anyway, +1 some nice ideas.

Last note: the weights for the weapons are incredibly light. 1000 = 1 lb unloaded iirc. You’re probably looking at a minimum weight of around 3~4lbs each.