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

Generic Guns: Bandoliers and bugfixes #37666

Merged
merged 2 commits into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion data/mods/Generic_Guns/ammo/grenade.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"copy-from": "grenade_ammo",
"type": "AMMO",
"name": "HEDP grenade cartridge",
"description": "A grenade cartridge with a 'High Explosive Dual Purpose' load and a high number of damaging fragments. Good for armored or soft targets.",
"description": "A grenade cartridge with a high explosive dual purpose load, capable of producing good penetration and a high number of damaging fragments. Good for armored or soft targets.",
"extend": { "effects": [ "FRAG", "EXPLOSIVE" ] }
},
{
Expand Down
9 changes: 4 additions & 5 deletions data/mods/Generic_Guns/ammo/rocket.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@
"copy-from": "84x246mm_he",
"name": { "str": "rocket, antipersonnel", "str_pl": "rocket, antipersonnel" },
"description": "A large anti-personnel rocket for a military rocket launcher. Designed to be highly effective against personnel.",
"material": [ "steel", "powder" ],
"volume": "1250 ml",
"weight": "3200 g",
"ammo_type": "ammo_rocket"
},
{
"id": "rocket_hedp",
"type": "AMMO",
"copy-from": "84x246mm_hedp",
"name": { "str": "rocket, multipurpose", "str_pl": "rocket, multipurpose" },
"description": "An anti-tank rocket with a high explosive dual purpose warhead for a military rocket launcher. Designed to be highly effective against vehicles and structures, and retains some effectiveness against personnel."
"description": "An anti-tank rocket with a high explosive dual purpose warhead for a military rocket launcher. Designed to be highly effective against vehicles and structures, and retains some effectiveness against personnel.",
"ammo_type": "ammo_rocket"
},
{
"id": "rocket_smoke",
"type": "AMMO",
"copy-from": "84x246mm_smoke",
"name": { "str": "rocket, smoke", "str_pl": "rocket, smoke" },
"description": "A rocket loaded with a smoke warhead for a military rocket launcher. Commonly used for signaling, target designation, and for screening troop movements."
"description": "A rocket loaded with a smoke warhead for a military rocket launcher. Commonly used for signaling, target designation, and for screening troop movements.",
"ammo_type": "ammo_rocket"
}
]
83 changes: 83 additions & 0 deletions data/mods/Generic_Guns/bandoliers/bandolier.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
[
{
"id": "bandolier_pistol",
"copy-from": "bandolier_pistol",
"type": "ARMOR",
"name": { "str": "pistol bandolier" },
"use_action": {
"type": "bandolier",
"capacity": 18,
"ammo": [ "ammo_pistol_tiny", "ammo_pistol", "ammo_pistol_magnum" ],
"draw_cost": 20
}
},
{
"id": "bandolier_rifle",
"copy-from": "bandolier_rifle",
"type": "ARMOR",
"name": { "str": "rifle bandolier" },
"use_action": { "type": "bandolier", "capacity": 16, "ammo": [ "ammo_rifle", "ammo_rifle_huge" ], "draw_cost": 20 }
},
{
"id": "bandolier_shotgun",
"copy-from": "bandolier_shotgun",
"type": "ARMOR",
"name": { "str": "waist shotgun bandolier" },
"use_action": { "type": "bandolier", "capacity": 25, "ammo": [ "ammo_shot", "signal_flare" ], "draw_cost": 25 }
},
{
"id": "torso_bandolier_shotgun",
"copy-from": "torso_bandolier_shotgun",
"type": "ARMOR",
"name": { "str": "torso shotgun bandolier" },
"use_action": { "type": "bandolier", "capacity": 50, "ammo": [ "ammo_shot", "signal_flare" ], "draw_cost": 35 }
},
{
"id": "flintlock_pouch",
"copy-from": "flintlock_pouch",
"type": "ARMOR",
"name": { "str": "paper cartridge pouch", "str_pl": "paper cartridge pouches" },
"use_action": { "type": "bandolier", "capacity": 14, "ammo": [ "ammo_black_powder", "blunderbuss", "shotcanister" ], "draw_cost": 20 }
},
{
"id": "bandolier_wrist",
"copy-from": "bandolier_wrist",
"type": "ARMOR",
"name": { "str": "wrist bandolier" },
"use_action": { "type": "bandolier", "capacity": 4, "ammo": [ "ammo_pistol_magnum", "ammo_rifle" ], "draw_cost": 20 }
},
{
"id": "grenade_pouch",
"copy-from": "grenade_pouch",
"type": "ARMOR",
"name": { "str": "grenade pouch", "str_pl": "grenade pouches" },
"use_action": { "type": "bandolier", "capacity": 4, "ammo": [ "ammo_grenade" ], "draw_cost": 20 }
},
{
"id": "ammo_pouch",
"copy-from": "ammo_pouch",
"type": "ARMOR",
"name": { "str": "ammo pouch", "str_pl": "ammo pouches" },
"use_action": {
"type": "bandolier",
"capacity": 60,
"ammo": [
"pebble",
"ammo_black_powder",
"ammo_pistol_tiny",
"ammo_pistol",
"ammo_pistol_magnum",
"ammo_rifle",
"ammo_rifle_huge",
"ammo_shot",
"signal_flare",
"stimpack_ammo",
"ampoule",
"blunderbuss",
"shotcanister",
"paintball"
],
"draw_cost": 35
}
}
]
11 changes: 9 additions & 2 deletions data/mods/Generic_Guns/firearms/shot.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "GUN",
"name": "sporting shotgun",
"ammo": "ammo_shot",
"description": "A tube magazine fed shotgun, a simple and long-popular design among law enforcement, civilians and in some military applications. Though reloading is slow and the recoil can be stout, shotgun ammo comes in many varieties and are suitable for anything from large game to small birds.",
"description": "A simple, popular design, sporting shotguns are used by law enforcement, civilians and occasionally militaries. Its internal magazine is small by modern standards, and reloading can be quite slow. Shotshells come in many varieties, and shotguns are suitable for anything from some large game to small birds.",
"clip_size": 6
},
{
Expand All @@ -30,7 +30,14 @@
"type": "GUN",
"name": "tactical shotgun",
"ammo": "ammo_shot",
"description": "A detachable magazine fed shotgun, mostly oriented towards overly enthusiastic civilians. Featuring rails and a menancing black finish and furniture, this sort of shotgun doesn't really look like it has a sporting use. Though such systems tend to not work well overall, the box magazine feed reduces the lengthy reloading times associated with shotguns. These can be tuned to run somewhat reliably for competition use.",
"description": "A detachable magazine fed shotgun, mostly oriented towards overly enthusiastic civilians. Featuring rails and a menacing black appearance, this sort of shotgun doesn't really look like it has a sporting use. The magazines reduce lengthy reloading times associated with shotguns. Though known for being somewhat finicky, these can be tuned to run with some reliability.",
"magazines": [ [ "ammo_shot", [ "shot_mag" ] ] ]
},
{
"id": "bio_shotgun_gun",
"copy-from": "bio_shotgun_gun",
"type": "GUN",
"name": "bionic shotgun",
"ammo": "ammo_shot"
}
]
2 changes: 1 addition & 1 deletion data/mods/Generic_Guns/gg_ammunition_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "ammunition_type",
"id": "ammo_black_powder",
"//": "a combination flintlock and cap and ball type ammo. Just roll with it.",
"name": "standard pistol ammo",
"name": "black powder ammo",
"default": "black_powder_ball"
},
{
Expand Down
14 changes: 7 additions & 7 deletions data/mods/Generic_Guns/robots/active_bots.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@
}
]
},
{
"id": "mon_crows_m240",
"copy-from": "mon_turret_rifle",
"type": "MONSTER",
"default_faction": "military"
},
{
"id": "mon_turret_rifle",
"copy-from": "mon_turret_rifle",
Expand Down Expand Up @@ -91,6 +85,12 @@
}
]
},
{
"id": "mon_crows_m240",
"copy-from": "mon_turret_rifle",
"type": "MONSTER",
"default_faction": "military"
},
{
"id": "mon_secubot",
"copy-from": "mon_secubot",
Expand All @@ -104,7 +104,7 @@
"cooldown": 1,
"move_cost": 150,
"gun_type": "rifle_assault",
"ammo_type": "556",
"ammo_type": "rifle_ball",
"fake_skills": [ [ "gun", 8 ], [ "rifle", 8 ] ],
"fake_dex": 12,
"ranges": [ [ 0, 30, "DEFAULT" ] ],
Expand Down
2 changes: 1 addition & 1 deletion data/mods/Generic_Guns/robots/broken_bots.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"type": "GENERIC",
"id": "broken_talon_m202a1",
"copy-from": "broken_talon_m202a1",
"name": "broken rocket TALON UGV",
"name": "broken launcher TALON UGV",
"description": "A broken TALON UGV, with its casing broken and fluid drained. Could be gutted for parts."
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,6 @@
"copy-from": "belt40mm",
"type": "MAGAZINE",
"name": "grenade belt",
"ammo_type": [ "40x53mm", "ammo_grenade" ]
"ammo_type": [ "ammo_grenade", "40x53mm" ]
}
]