Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gunmod test #76370

Merged
merged 23 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion data/json/itemgroups/Weapons_Mods_Ammo/gunmod.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
[ "rifle_scope_high_end_mount", 20 ],
[ "modern_handguard", 20 ],
[ "bipod_handguard", 10 ],
[ "high_end_folding_stock", 10 ]
[ "high_end_folding_stock", 10 ],
[ "muzzle_weight", 10 ]
]
},
{
Expand Down Expand Up @@ -161,6 +162,13 @@
"subtype": "collection",
"entries": [ { "item": "stock_mount" }, { "item": "folding_stock" } ]
},
{
"type": "item_group",
"id": "c96_mods",
"//": "Default possible mods for the C96 and M714.",
"subtype": "distribution",
"entries": [ { "item": "stock_mauser", "prob": 40 } ]
},
{
"type": "item_group",
"id": "mosin_mods",
Expand Down
14 changes: 7 additions & 7 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
{ "group": "nested_bfr", "prob": 100 },
{ "group": "nested_m1911-460", "prob": 3 },
{ "group": "nested_makarov", "prob": 100 },
{ "group": "nested_mauser_c96", "prob": 39 },
{ "group": "nested_mauser_c96", "prob": 39, "contents-group": "c96_mods" },
{ "group": "nested_chiappa_rhino", "prob": 5 },
{ "group": "nested_pistol_flintlock", "prob": 150 },
{ "group": "nested_raging_bull", "prob": 100 },
Expand All @@ -161,7 +161,11 @@
"type": "item_group",
"id": "guns_pistol_collectible",
"//": "Highly rare or collectable factory-made pistols that are possible for civilians to own; only likely to show up in gun collections, museums or similar. Pistols that are of historic or collectors value and which fall under NFA regulations, i.e. pistols which are integrally suppressed, have a burst or fully-automatic capability, or have a non-detachable buttstock, can be placed within this item group. These weapons are always unloaded.",
"items": [ { "item": "mauser_c96", "prob": 50 }, { "item": "colt_navy", "prob": 40 }, { "item": "colt_army", "prob": 40 } ]
"items": [
{ "item": "mauser_c96", "prob": 50, "contents-group": "c96_mods" },
{ "item": "colt_navy", "prob": 40 },
{ "item": "colt_army", "prob": 40 }
]
},
{
"type": "item_group",
Expand Down Expand Up @@ -404,8 +408,7 @@
{ "group": "nested_scar_l", "prob": 50 },
{ "group": "nested_scar_h", "prob": 50 },
{ "group": "nested_m110a1", "prob": 50 },
{ "group": "nested_M24", "prob": 15 },
{ "group": "nested_acr_300blk", "prob": 15 }
{ "group": "nested_M24", "prob": 15 }
]
},
{
Expand Down Expand Up @@ -437,7 +440,6 @@
{ "group": "nested_arx160", "prob": 40 },
{ "group": "nested_psl", "prob": 10 },
{ "group": "nested_iwi_tavor_x95_300blk", "prob": 10 },
{ "group": "nested_acr_300blk", "prob": 15 },
{ "group": "nested_type99", "prob": 20 },
{ "group": "nested_type99_sniper", "prob": 5 },
{ "group": "nested_ak308", "prob": 25 },
Expand Down Expand Up @@ -465,8 +467,6 @@
{ "group": "modular_m4a1", "prob": 45 },
{ "item": "m14ebr", "prob": 15 },
{ "item": "arx160", "prob": 10 },
{ "item": "modular_m16_auto_rifle", "variant": "modular_acr", "prob": 25 },
{ "item": "acr_300blk", "prob": 15 },
{ "item": "hk417_13", "prob": 40 },
{ "item": "m2carbine", "prob": 5 },
{ "item": "ak308", "prob": 10 },
Expand Down
41 changes: 41 additions & 0 deletions data/json/items/gunmod/stock.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,47 @@
"handling_modifier": -10,
"flags": [ "COLLAPSED_STOCK", "IRREMOVABLE" ]
},
{
"id": "stock_mauser",
"type": "GUNMOD",
"name": { "str": "Mauser C96 stock" },
"description": "The hollow removable wooden pistol stock of the C96 Mauser pistol, which doubles as a holster. It fits both the original clip-loaded C96 and later magazine-fed reproductions, but a gun with an extended magazine won't fit without modification.",
"copy-from": "pistol_stock",
"volume": "700 ml",
"integral_volume": "700 ml",
"integral_weight": "590 g",
"integral_longest_side": "35 cm",
"weight": "590 g",
"material": [ "wood" ],
"color": "brown",
"location": "stock mount",
"mod_targets": [ "mauser_c96", "mauser_m714" ],
"min_skills": [ [ "weapon", 1 ] ],
"pocket_data": [
{
"pocket_type": "CONTAINER",
"holster": true,
"rigid": true,
"item_restriction": [ "mauser_c96", "mauser_m714" ],
"max_contains_volume": "650 ml",
"max_contains_weight": "1815 g",
"max_item_length": "32 cm",
"moves": 50
}
],
"use_action": { "type": "holster" },
"flags": [ "BELTED", "BELT_CLIP", "OVERSIZE" ],
"armor_data": {
"armor": [
{
"material": [ { "type": "wood", "thickness": 5 } ],
"encumbrance": [ 3, 4 ],
"covers": [ "leg_l", "leg_r" ],
"specifically_covers": [ "leg_hip_r", "leg_hip_l" ]
}
]
}
},
{
"id": "stock_none",
"type": "GUNMOD",
Expand Down
21 changes: 21 additions & 0 deletions data/json/items/gunmod/underbarrel.json
Original file line number Diff line number Diff line change
Expand Up @@ -610,5 +610,26 @@
"moves": 150
},
"flags": [ "BIPOD", "SLOW_WIELD", "ZERO_WEIGHT" ]
},
{
"id": "muzzle_weight",
"type": "GUNMOD",
"name": { "str": "muzzle weight" },
"description": "A small weight attached below the barrel of a firearm to reduce muzzle climb, increasing bulk but allowing for faster follow-up shots. Mainly used on competition handguns, but it can be added to combat pistols, too.",
"//": "Based on https://stores.sjcguns.com/sjc-full-size-m-p-frame-weight/, which was selected as an 'average' WRT weight. This model does not extend beyond the barrel or the slide, and so is compatible with compensators, suppressors, etc. Realistically every distinct model and chambering of pistol would need a custom-made weight, but that level of granularity doesn't seem to square with that of existing gunmods.",
"weight": "179 g",
"volume": "68 ml",
"longest_side": "68 mm",
"integral_longest_side": "0 cm",
"handling_modifier": 2,
"price": "175 USD",
"price_postapoc": "5 USD",
"install_time": "1 m",
"material": [ "aluminum" ],
"symbol": ":",
"color": "white",
"location": "underbarrel",
"mod_targets": [ "smg", "pistol" ],
"min_skills": [ [ "weapon", 3 ], [ "gun", 1 ] ]
}
]
24 changes: 24 additions & 0 deletions data/json/recipes/weapon/mods.json
Original file line number Diff line number Diff line change
Expand Up @@ -1473,5 +1473,29 @@
"using": [ [ "soldering_standard", 20 ], [ "welding_standard", 20 ] ],
"tools": [ [ [ "m240", -1 ] ], [ [ "small_repairkit", 40 ], [ "large_repairkit", 40 ] ] ],
"components": [ [ [ "sheet_metal_small", 5 ] ] ]
},
{
"type": "recipe",
"activity_level": "MODERATE_EXERCISE",
"result": "muzzle_weight",
"category": "CC_WEAPON",
"subcategory": "CSC_WEAPON_MODS",
"skill_used": "fabrication",
"skills_required": [ [ "pistol", 3 ], [ "gun", 1 ] ],
"proficiencies": [ { "proficiency": "prof_metalworking" }, { "proficiency": "prof_blacksmithing" } ],
"difficulty": 4,
"time": "5 h",
"book_learn": [ [ "manual_pistol", 3 ], [ "text_gunsmith", 3 ] ],
"qualities": [
{ "id": "ANVIL", "level": 1 },
{ "id": "HAMMER", "level": 1 },
{ "id": "HAMMER_FINE", "level": 1 },
{ "id": "SAW_M", "level": 2 },
{ "id": "SAW_M_FINE", "level": 1 },
{ "id": "SCREW", "level": 1 }
],
"tools": [ [ [ "forge", 150 ], [ "oxy_torch", 150 ] ], [ [ "metalworking_tongs_any", 1, "LIST" ] ] ],
"byproducts": [ [ "scrap_aluminum", 3 ] ],
"components": [ [ [ "material_aluminium_ingot", 1 ] ] ]
reddragon7799 marked this conversation as resolved.
Show resolved Hide resolved
}
]
Loading