Skip to content

Commit

Permalink
worpep
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterDude committed Sep 4, 2024
1 parent 63c4c20 commit e01c1d3
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 37 deletions.
21 changes: 21 additions & 0 deletions code/game/objects/structures/gun_rack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,24 @@

/obj/structure/gun_rack/m41/recon/unloaded
populate_type = /obj/item/weapon/gun/rifle/m41aMK1/forecon/unloaded

/obj/structure/gun_rack/flamer
name = "M240A1 incinerator rack"
icon_state = "m240"
desc = "ARMAT-produced gun rack for storage of long guns. While initial model was supposed to be extremely modifiable, USCM comissioned racks with fixed slots which only fit M240A1 incinerators. Some say they were cheaper, and some say the main reason was marine's ability to easily break anything more complex than a tungsten ball."
max_stored = 2
initial_stored = 2
allowed_type = /obj/item/weapon/gun/flamer
populate_type = /obj/item/weapon/gun/flamer

/obj/structure/gun_rack/flamer/unloaded
populate_type = /obj/item/weapon/gun/flamer/unloaded

/obj/structure/gun_rack/mk221
name = "M120 shotgun rack"
icon_state = "mk221"
desc = "ARMAT-produced gun rack for storage of long guns. While initial model was supposed to be extremely modifiable, USCM comissioned racks with fixed slots which only fit M120 tactical shotguns. Some say they were cheaper, and some say the main reason was marine's ability to easily break anything more complex than a tungsten ball."
max_stored = 2
initial_stored = 2
allowed_type = /obj/item/weapon/gun/shotgun/combat
populate_type = /obj/item/weapon/gun/shotgun/combat
17 changes: 16 additions & 1 deletion code/modules/cm_marines/equipment/guncases.dm
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

//------------
/obj/item/storage/box/guncase/flamer
name = "\improper M240 incinerator case"
name = "\improper M240A1 incinerator case"
desc = "A gun case containing a M240A1 incinerator unit. It does come loaded, but you'll still have to find extra tanks as you go."
storage_slots = 4
can_hold = list(/obj/item/weapon/gun/flamer, /obj/item/ammo_magazine/flamer_tank, /obj/item/attachable/attached_gun/extinguisher)
Expand All @@ -159,6 +159,21 @@
new /obj/item/ammo_magazine/flamer_tank(src)
new /obj/item/attachable/attached_gun/extinguisher/pyro(src)

/obj/item/storage/box/guncase/flamer/fuel
name = "\improper M240A1 fuel case"
desc = "A case containing four fuel canisters for the M240A1 incinerator unit."
icon_state = "fuelbox"
storage_slots = 6
can_hold = list(/obj/item/ammo_magazine/flamer_tank)

/obj/item/storage/box/guncase/flamer/fuel/fill_preset_inventory()
new /obj/item/ammo_magazine/flamer_tank(src)
new /obj/item/ammo_magazine/flamer_tank(src)
new /obj/item/ammo_magazine/flamer_tank(src)
new /obj/item/ammo_magazine/flamer_tank(src)
new /obj/item/ammo_magazine/flamer_tank(src)
new /obj/item/ammo_magazine/flamer_tank(src)

//------------
/obj/item/storage/box/guncase/m56d
name = "\improper M56D heavy machine gun case"
Expand Down
3 changes: 3 additions & 0 deletions code/modules/projectiles/guns/flamer/flamer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@
current_mag = /obj/item/ammo_magazine/flamer_tank/EX
flags_gun_features = GUN_WY_RESTRICTED|GUN_WIELDED_FIRING_ONLY

/obj/item/weapon/gun/flamer/unloaded
current_mag = null

/obj/item/weapon/gun/flamer/deathsquad/nolock
flags_gun_features = GUN_WIELDED_FIRING_ONLY

Expand Down
Binary file modified icons/obj/items/storage.dmi
Binary file not shown.
Binary file modified icons/obj/structures/gun_racks.dmi
Binary file not shown.
Loading

0 comments on commit e01c1d3

Please sign in to comment.