summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-05-24 05:34:49 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-05-24 05:34:49 -0700
commit9179affa3ea791c0760c897d31d6337b93948600 (patch)
treecaf07c0ec518c711d1423a59c444ad23fc23d2be /json
parentUCP in even more places (diff)
downloadcataclysm-dda-mod_hk-loadout-9179affa3ea791c0760c897d31d6337b93948600.tar.xz
Add PSG1A1 and MSG90A2 sniper rifles
Diffstat (limited to 'json')
-rw-r--r--json/itemgroups/Weapons_Mods_Ammo/guns.json24
-rw-r--r--json/itemgroups/military.json8
-rw-r--r--json/items/gun/308.json37
3 files changed, 69 insertions, 0 deletions
diff --git a/json/itemgroups/Weapons_Mods_Ammo/guns.json b/json/itemgroups/Weapons_Mods_Ammo/guns.json
index 8ed3651..c9d1f4a 100644
--- a/json/itemgroups/Weapons_Mods_Ammo/guns.json
+++ b/json/itemgroups/Weapons_Mods_Ammo/guns.json
@@ -6,5 +6,29 @@
"items": [
{ "item": "hk_ucp", "prob": 35, "charges-min": 0, "charges-max": 10 }
]
+ },
+ {
+ "type": "item_group",
+ "id": "guns_rifle_rare",
+ "//": "Less common rifles including those only used by police/paramilitary forces.",
+ "items": [
+ { "item": "hk_psg1a1", "prob": 15, "charges-min": 0, "charges-max": 20 }
+ ]
+ },
+ {
+ "type": "item_group",
+ "id": "guns_rifle_rare_display",
+ "//": "Less common rifles found exclusively in gun stores.",
+ "items": [
+ { "item": "hk_psg1a1", "prob": 15, "charges-min": 0, "charges-max": 20 }
+ ]
+ },
+ {
+ "type": "item_group",
+ "id": "guns_rifle_milspec",
+ "//": "Military specification rifles only ever found at military sites.",
+ "items": [
+ { "item": "hk_msg90a2", "prob": 50, "charges-min": 0, "charges-max": 20 }
+ ]
}
]
diff --git a/json/itemgroups/military.json b/json/itemgroups/military.json
index d36926b..ecf974f 100644
--- a/json/itemgroups/military.json
+++ b/json/itemgroups/military.json
@@ -7,5 +7,13 @@
{ "item": "hk_ucp", "prob": 6 },
{ "item": "46mm", "prob": 7 }
]
+ },
+ {
+ "type": "item_group",
+ "id": "military_standard_sniper_rifles",
+ "subtype": "distribution",
+ "entries": [ { "item": "m2010", "prob": 20, "charges": [ 0, 5 ] },
+ { "item": "m110a1", "prob": 70, "charges": [ 0, 20 ] },
+ { "item": "hk_msg90a2", "prob": 10, "charges": [ 0, 20]} ]
}
]
diff --git a/json/items/gun/308.json b/json/items/gun/308.json
new file mode 100644
index 0000000..e7de193
--- /dev/null
+++ b/json/items/gun/308.json
@@ -0,0 +1,37 @@
+[
+ {
+ "id": "hk_psg1a1",
+ "copy-from": "rifle_base",
+ "looks_like": "ar15",
+ "type": "GUN",
+ "name": { "str": "H&K PSG1A1", "str_pl": "H&K PSG1A1" },
+ "description": "The H&K PSG1A1 is a semi-automatic sniper rifle based the G3 rifle. It is exceptionally accurate for a semi-automatic rifle.",
+ "weight": "6670 g",
+ "volume": "7000 ml",
+ "price": 205000,
+ "to_hit": -1,
+ "bashing": 12,
+ "material": [ "steel", "plastic" ],
+ "symbol": "(",
+ "color": "dark_gray",
+ "ammo": "308",
+ "dispersion": 75,
+ "min_cycle_recoil": 2700,
+ "durability": 8,
+ "barrel_length": "650 ml",
+ "default_mods": [ "rifle_scope", "adjustable_stock" ],
+ "magazines": [ [ "308", [ "g3mag", "g3bigmag", "g3_makeshiftmag" ] ] ]
+ },
+ {
+ "id": "hk_msg90a2",
+ "copy-from": "hk_psg1a1",
+ "looks_like": "hk_psg1a1",
+ "name": { "str": "H&K MSG90A2", "str_pl": "H&K MSG90A2" },
+ "description": "The H&K MSG90A2 is a semi-automatic sniper rifle based the G3 rifle. It is exceptionally accurate for a semi-automatic rifle. This is the military version.",
+ "weight": "5280 g",
+ "volume": "6750 ml",
+ "price": 255000,
+ "barrel_length": "600 ml",
+ "default_mods": [ "rifle_scope", "adjustable_stock", "suppressor" ]
+ },
+]