Skip to content

Commit

Permalink
bang
Browse files Browse the repository at this point in the history
  • Loading branch information
Striders13 committed Nov 30, 2023
1 parent 95547b8 commit 4f97e45
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
11 changes: 11 additions & 0 deletions massmeta/code/datums/components/crafting/weapon_ammo.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/datum/crafting_recipe/improvisedslug
name = "Improvised Shotgun Shell"
result = /obj/item/ammo_casing/shotgun/improvised
reqs = list(
/obj/item/stack/sheet/iron = 2,
/obj/item/stack/cable_coil = 1,
/datum/reagent/fuel = 10,
)
tool_behaviors = list(TOOL_SCREWDRIVER)
time = 1.2 SECONDS
category = CAT_WEAPON_AMMO
16 changes: 16 additions & 0 deletions massmeta/code/modules/ammunition/ballistic/shotgun.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/obj/item/ammo_casing/shotgun/improvised
name = "improvised shell"
desc = "An extremely weak shotgun shell with multiple small pellets made out of metal shards."
icon_state = "improvshell"
projectile_type = /obj/projectile/bullet/pellet/shotgun_improvised
custom_materials = list(/datum/material/iron=SMALL_MATERIAL_AMOUNT*2.5)
pellets = 10
variance = 25

/obj/item/ammo_casing/shotgun/scatterlaser
name = "scatter laser shell"
desc = "An advanced shotgun shell that uses a micro laser to replicate the effects of a scatter laser weapon in a ballistic package."
icon_state = "lshell"
projectile_type = /obj/projectile/beam/scatter
pellets = 6
variance = 35
9 changes: 9 additions & 0 deletions massmeta/code/modules/projectiles/projectile/beams.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/obj/projectile/beam/scatter
name = "laser pellet"
icon_state = "scatterlaser"
damage = 12
wound_bonus = -20
bare_wound_bonus = 0
damage_falloff_tile = -0.45
wound_falloff_tile = -2.5

10 changes: 10 additions & 0 deletions massmeta/code/modules/projectiles/projectile/bullets/shotgun.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/obj/projectile/bullet/pellet/shotgun_improvised
damage = 6
wound_bonus = -20
bare_wound_bonus = 7.5
demolition_mod = 2
embedding = null

/obj/projectile/bullet/pellet/shotgun_improvised/Initialize(mapload)
. = ..()
range = rand(3, 8)
4 changes: 4 additions & 0 deletions massmeta/includes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
#include "code\game\objects\items\maintenance_loot.dm"
#include "code\modules\reagents\chemistry\reagents\nitrium.dm"
#include "code\modules\mob\living\simple_animal\hostile\megafauna\colossus.dm"
#include "code\datums\components\crafting\weapon_ammo.dm"
#include "code\modules\ammunition\ballistic\shotgun.dm"
#include "code\modules\projectiles\projectile\bullets\shotgun.dm"
#include "code\modules\projectiles\projectile\beams.dm"

0 comments on commit 4f97e45

Please sign in to comment.