Skip to content

Commit

Permalink
adds silenced smartgun for gms to spawn (#227)
Browse files Browse the repository at this point in the history
GM only option to give out a silenced smartgun, if that ends up being something the mission requires.
  • Loading branch information
AndroBetel committed Apr 14, 2024
1 parent e678d58 commit d12b65f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ Defined in conflicts.dm of the #defines folder.
pixel_shift_x = 14
hud_offset_mod = -4

/obj/item/attachable/smartbarrel/suppressed
name = "suppressed smartgun barrel"
icon_state = "silenced_smartgun"
gun_traits = list(TRAIT_GUN_SILENCED)

// Mateba barrels

/obj/item/attachable/mateba
Expand Down
5 changes: 5 additions & 0 deletions code/modules/projectiles/guns/smartgun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -756,3 +756,8 @@
/obj/item/weapon/gun/smartgun/rmc/Initialize(mapload, ...)
. = ..()
MD.iff_signal = FACTION_TWE

/obj/item/weapon/gun/smartgun/silenced
name = "XM56E smartgun"
desc = "An experimental smartgun variant currently undergoing field testing. This model is outfitted with integrated suppressor and modified internal mechanism."
starting_attachment_types = list(/obj/item/attachable/smartbarrel/suppressed)
Binary file modified icons/obj/items/weapons/guns/attachments/barrel.dmi
Binary file not shown.

0 comments on commit d12b65f

Please sign in to comment.