Skip to content

Commit

Permalink
Add Colt Anaconda (#74719)
Browse files Browse the repository at this point in the history
* add colt anaconda

* Thank you Boomstick!

Co-authored-by: DoctorBoomstick <[email protected]>

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* migrate gun in GG

* Satisfy DPS test

---------

Co-authored-by: DoctorBoomstick <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 25, 2024
1 parent 54e8796 commit 213997e
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 7 deletions.
5 changes: 4 additions & 1 deletion data/json/itemgroups/Weapons_Mods_Ammo/guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@
{ "group": "modular_deagle_44", "prob": 5 },
{ "group": "modular_deagle_50", "prob": 1 },
{ "group": "nested_deagle_with_kits", "prob": 1 },
{ "item": "sw629", "prob": 30 }
{ "item": "sw629", "prob": 30 },
{ "item": "colt_anaconda_8", "prob": 11 },
{ "item": "colt_anaconda_6", "prob": 16 },
{ "item": "colt_anaconda_4", "prob": 5 }
]
},
{
Expand Down
26 changes: 21 additions & 5 deletions data/json/itemgroups/Weapons_Mods_Ammo/guns_by_calibre.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
{
"type": "item_group",
"id": "guns_pistol_common_44",
"items": [ { "group": "nested_sw629", "prob": 5 } ]
"items": [ { "group": "nested_sw629", "prob": 5 }, { "group": "nested_colt_anaconda", "prob": 4 } ]
},
{
"type": "item_group",
Expand Down Expand Up @@ -158,7 +158,12 @@
{
"type": "item_group",
"id": "guns_pistol_common_everyday_carry_44",
"items": [ { "item": "sw629", "prob": 5, "charges": [ 0, -1 ] } ]
"items": [
{ "item": "sw629", "prob": 150, "charges": [ 0, -1 ] },
{ "item": "colt_anaconda_8", "prob": 33, "charges": [ 0, -1 ] },
{ "item": "colt_anaconda_6", "prob": 50, "charges": [ 0, -1 ] },
{ "item": "colt_anaconda_4", "prob": 16, "charges": [ 0, -1 ] }
]
},
{
"type": "item_group",
Expand Down Expand Up @@ -242,7 +247,12 @@
{
"type": "item_group",
"id": "guns_pistol_common_display_44",
"items": [ { "item": "sw629", "prob": 5 } ]
"items": [
{ "item": "sw629", "prob": 150 },
{ "item": "colt_anaconda_8", "prob": 33 },
{ "item": "colt_anaconda_6", "prob": 50 },
{ "item": "colt_anaconda_4", "prob": 16 }
]
},
{
"type": "item_group",
Expand Down Expand Up @@ -301,7 +311,7 @@
{
"type": "item_group",
"id": "guns_pistol_rare_44",
"items": [ { "group": "nested_sw629", "prob": 40 } ]
"items": [ { "group": "nested_sw629", "prob": 40 }, { "group": "nested_colt_anaconda", "prob": 30 } ]
},
{
"type": "item_group",
Expand Down Expand Up @@ -360,7 +370,13 @@
{
"type": "item_group",
"id": "guns_pistol_rare_display_44",
"items": [ { "item": "sw629", "prob": 15 }, { "group": "modular_deagle_44", "prob": 10 } ]
"items": [
{ "item": "sw629", "prob": 150 },
{ "group": "modular_deagle_44", "prob": 100 },
{ "item": "colt_anaconda_8", "prob": 33 },
{ "item": "colt_anaconda_6", "prob": 50 },
{ "item": "colt_anaconda_4", "prob": 16 }
]
},
{
"type": "item_group",
Expand Down
17 changes: 17 additions & 0 deletions data/json/itemgroups/Weapons_Mods_Ammo/nested_guns.json
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,23 @@
"ammo": 100,
"entries": [ { "item": "sw629", "charges": [ 0, 6 ] }, { "group": "on_hand_44" } ]
},
{
"id": "nested_colt_anaconda",
"type": "item_group",
"//": "this is a distribution for the gun, reasonable number of backup mags, and some ammo to repack",
"subtype": "collection",
"ammo": 100,
"entries": [
{
"distribution": [
{ "item": "colt_anaconda_8", "prob": 97, "charges": [ 0, 6 ] },
{ "item": "colt_anaconda_6", "prob": 143, "charges": [ 0, 6 ] },
{ "item": "colt_anaconda_4", "prob": 51, "charges": [ 0, 6 ] }
]
},
{ "group": "on_hand_44" }
]
},
{
"id": "nested_usp_45",
"type": "item_group",
Expand Down
95 changes: 95 additions & 0 deletions data/json/items/gun/44.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,100 @@
}
],
"melee_damage": { "bash": 10 }
},
{
"id": "colt_anaconda_8",
"copy-from": "pistol_revolver",
"looks_like": "sw_619",
"type": "GUN",
"name": { "str": ".44 long barrel hunting revolver" },
"description": "A large-frame revolver with a modern plastic handle. Too large for law enforcement, it was mostly used by sport shooters and hunters, for the manufacturer deemed it to be the most accurate .44-calibre revolver in their line. This one has an extended 8-inch barrel.",
"variant_type": "gun",
"variants": [
{
"id": "colt_anaconda_8",
"name": { "str": "Colt Anaconda" },
"description": "A large-frame double-action revolver with a modern plastic handle. Too large for law enforcement, it was mostly used by sport shooters and hunters, for Colt deemed it to be the most accurate .44-calibre revolver in their line. This one has an extended 8-inch barrel."
}
],
"weight": "1672 g",
"volume": "1384 ml",
"//": "350 x 153 x 70, but trimmed massively",
"longest_side": "350 mm",
"barrel_length": "203 mm",
"price": "1499 USD",
"price_postapoc": "15 USD",
"material": [ "steel", "plastic" ],
"symbol": "(",
"color": "dark_gray",
"ammo": [ "44" ],
"dispersion": 280,
"durability": 8,
"blackpowder_tolerance": 56,
"clip_size": 6,
"valid_mod_locations": [
[ "barrel", 1 ],
[ "grip", 1 ],
[ "mechanism", 2 ],
[ "rail", 1 ],
[ "sights", 1 ],
[ "stock", 1 ],
[ "underbarrel", 1 ]
],
"pocket_data": [
{
"pocket_type": "MAGAZINE",
"rigid": true,
"ammo_restriction": { "44": 6 },
"allowed_speedloaders": [ "44_speedloader6" ]
}
],
"melee_damage": { "bash": 7 }
},
{
"id": "colt_anaconda_6",
"copy-from": "colt_anaconda_8",
"type": "GUN",
"name": { "str": ".44 hunting revolver" },
"description": "A large-frame revolver with a modern plastic handle. Too large for law enforcement, it was mostly used by sport shooters and hunters, for the manufacturer deemed it to be the most accurate .44-calibre revolver in their line. This one has a 6-inch barrel.",
"variant_type": "gun",
"variants": [
{
"id": "colt_anaconda",
"name": { "str": "Colt Anaconda" },
"description": "A large-frame double-action revolver with a modern plastic handle. Too large for law enforcement, it was mostly used by sport shooters and hunters, for Colt deemed it to be the most accurate .44-calibre revolver in their line. This one has a 6-inch barrel."
}
],
"weight": "1499 g",
"volume": "1299 ml",
"//": "300 x 153 x 70, but trimmed massively",
"longest_side": "300 mm",
"barrel_length": "153 mm",
"price": "1499 USD",
"symbol": "(",
"color": "dark_gray"
},
{
"id": "colt_anaconda_4",
"copy-from": "colt_anaconda_8",
"type": "GUN",
"name": { "str": ".44 short barrel hunting revolver" },
"description": "A large-frame revolver with a modern plastic handle. Too large for law enforcement, it was mostly used by sport shooters and hunters, for the manufacturer deemed it to be the most accurate .44-calibre revolver in their line. This one has a shortened 4-inch barrel.",
"variant_type": "gun",
"variants": [
{
"id": "colt_anaconda",
"name": { "str": "Colt Anaconda" },
"description": "A large-frame double-action revolver with a modern plastic handle. Too large for law enforcement, it was mostly used by sport shooters and hunters, for Colt deemed it to be the most accurate .44-calibre revolver in their line. This one has a shortened 4-inch barrel."
}
],
"weight": "1499 g",
"volume": "1053 ml",
"//": "240 x 153 x 70, but trimmed massively",
"longest_side": "240 mm",
"barrel_length": "102 mm",
"price": "1499 USD",
"symbol": "(",
"color": "dark_gray"
}
]
3 changes: 3 additions & 0 deletions data/json/npcs/NC_EVAC_BROKER.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
{ "item": "sw_619", "prob": 30 },
{ "item": "sw_610", "prob": 30 },
{ "item": "sw629", "prob": 5 },
{ "item": "colt_anaconda_8", "prob": 2 },
{ "item": "colt_anaconda_6", "prob": 3 },
{ "item": "colt_anaconda_4", "prob": 1 },
{ "item": "makarov", "prob": 5 },
{ "item": "m9", "prob": 50 }
]
Expand Down
3 changes: 3 additions & 0 deletions data/json/npcs/NC_SCAVENGER.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
{ "item": "sw_619", "prob": 30 },
{ "item": "sw_610", "prob": 30 },
{ "item": "sw629", "prob": 5 },
{ "item": "colt_anaconda_8", "prob": 2 },
{ "item": "colt_anaconda_6", "prob": 3 },
{ "item": "colt_anaconda_4", "prob": 1 },
{ "item": "makarov", "prob": 5 },
{ "item": "m9", "prob": 50 }
]
Expand Down
13 changes: 12 additions & 1 deletion data/mods/Generic_Guns/firearms/gg_firearms_migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,18 @@
"replace": "pistol_magnum_pipe"
},
{
"id": [ "sw_619", "sw629", "bfr", "sw_500", "raging_bull", "chiappa_rhino", "colt_python" ],
"id": [
"sw_619",
"sw629",
"bfr",
"sw_500",
"raging_bull",
"chiappa_rhino",
"colt_python",
"colt_anaconda_8",
"colt_anaconda_6",
"colt_anaconda_4"
],
"type": "MIGRATION",
"replace": "pistol_magnum_revolver"
},
Expand Down

0 comments on commit 213997e

Please sign in to comment.