Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Blundir committed Jul 22, 2024
1 parent 8348bf7 commit 5a2a7f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion code/modules/projectiles/guns/smgs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,15 @@
/obj/item/attachable/attached_gun/grenade/m203,
/obj/item/attachable/stock/smg/collapsible/mp5a5,
)
starting_attachment_types = list(/obj/item/attachable/stock/smg/collapsible/mp5a5)

/obj/item/weapon/gun/smg/mp5/mp5a5/handle_starting_attachment()
..()
var/obj/item/attachable/stock/smg/collapsible/mp5a5/S = new(src)
S.hidden = FALSE
S.flags_attach_features &= ~ATTACH_REMOVABLE
S.Attach(src)
S.apply_on_weapon(src)
update_attachable(S.slot)

/obj/item/weapon/gun/smg/mp5/mp5a5/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 26, "muzzle_y" = 17,"rail_x" = 8, "rail_y" = 19, "under_x" = 19, "under_y" = 13, "stock_x" = 39, "stock_y" = 11)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
/obj/item/explosive/grenade/flashbang,
)
preload = /obj/item/explosive/grenade/slug/baton
disallowed_grenade_types = list(/obj/item/explosive/grenade/spawnergrenade, /obj/item/explosive/grenade/alien, /obj/item/explosive/grenade/incendiary/molotov)

//-------------------------------------------------------
//M79 Grenade Launcher subtype of the M81
Expand Down

0 comments on commit 5a2a7f2

Please sign in to comment.