Skip to content

Commit

Permalink
Refactors the machinegun box to be with all the other machineguns. It…
Browse files Browse the repository at this point in the history
…'s not an ideal fix but it's... a fix?
  • Loading branch information
KoishiVibe committed Jul 8, 2024
1 parent bf2a6bb commit 0217d8e
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 57 deletions.
4 changes: 2 additions & 2 deletions code/datums/emergency_calls/supplies.dm
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
new /obj/item/attachable/stock/tactical(W)
if(6)
new /obj/item/weapon/gun/rifle/lmg(W)
new /obj/item/ammo_magazine/rifle/lmg(W)
new /obj/item/ammo_magazine/rifle/lmg(W)
new /obj/item/ammo_magazine/hpr_box(W)
new /obj/item/ammo_magazine/hpr_box(W)
new /obj/item/attachable/verticalgrip (W)
if(7)
new /obj/item/weapon/gun/rifle/l42a(W)
Expand Down
10 changes: 5 additions & 5 deletions code/datums/supply_packs/ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@

/datum/supply_packs/ammo_hpr
contains = list(
/obj/item/ammo_magazine/rifle/lmg,
/obj/item/ammo_magazine/rifle/lmg,
/obj/item/ammo_magazine/hpr_box,
/obj/item/ammo_magazine/hpr_box,
)
name = "M41AE2 HPR Magazines crate (HPR ammo box x2)"
cost = 20
Expand All @@ -287,8 +287,8 @@

/datum/supply_packs/ammo_hpr_holo
contains = list(
/obj/item/ammo_magazine/rifle/lmg/holo_target,
/obj/item/ammo_magazine/rifle/lmg/holo_target,
/obj/item/ammo_magazine/hpr_box/holo_target,
/obj/item/ammo_magazine/hpr_box/holo_target,
)
name = "M41AE2 HPR Holo-Target Magazines crate (HPR HT ammo box x2)"
cost = 30
Expand Down Expand Up @@ -412,7 +412,7 @@
/obj/item/ammo_magazine/rifle/m41aMK1,
/obj/item/ammo_magazine/rifle/m41aMK1/ap,
/obj/item/ammo_magazine/rifle/m4ra,
/obj/item/ammo_magazine/rifle/lmg,
/obj/item/ammo_magazine/hpr_box,
/obj/item/ammo_magazine/pistol,
/obj/item/ammo_magazine/pistol,
/obj/item/ammo_magazine/pistol,
Expand Down
8 changes: 4 additions & 4 deletions code/game/gamemodes/colonialmarines/whiskey_outpost.dm
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,10 @@
if(80 to 82)
crate = new /obj/structure/closet/crate/ammo(T)
choosemax = rand(2, 3)
randomitems = list(/obj/item/ammo_magazine/rifle/lmg/holo_target,
/obj/item/ammo_magazine/rifle/lmg/holo_target,
/obj/item/ammo_magazine/rifle/lmg,
/obj/item/ammo_magazine/rifle/lmg,
randomitems = list(/obj/item/ammo_magazine/hpr_box/holo_target,
/obj/item/ammo_magazine/hpr_box/holo_target,
/obj/item/ammo_magazine/hpr_box,
/obj/item/ammo_magazine/hpr_box,
)

if(83 to 86)
Expand Down
4 changes: 2 additions & 2 deletions code/game/machinery/vending/vendor_types/requisitions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@
list("M44 Heavy Speed Loader (.44)", round(scale * 10.5), /obj/item/ammo_magazine/revolver/heavy, VENDOR_ITEM_REGULAR),
list("M44 Marksman Speed Loader (.44)", round(scale * 5.7), /obj/item/ammo_magazine/revolver/marksman, VENDOR_ITEM_REGULAR),
list("M4A3 HP Magazine (9mm)", round(scale * 2), /obj/item/ammo_magazine/pistol/hp, VENDOR_ITEM_REGULAR),
list("M41AE2 Holo Target Rounds (10x24mm)", round(scale * 2), /obj/item/ammo_magazine/rifle/lmg/holo_target, VENDOR_ITEM_REGULAR),
list("M41AE2 Holo Target Rounds (10x24mm)", round(scale * 2), /obj/item/ammo_magazine/hpr_box/holo_target, VENDOR_ITEM_REGULAR),

list("RESTRICTED FIREARM AMMUNITION", -1, null, null),
list("VP78 Magazine", round(scale * 11.2), /obj/item/ammo_magazine/pistol/vp78, VENDOR_ITEM_REGULAR),
list("SU-6 Smartpistol Magazine (.45)", round(scale * 12,8), /obj/item/ammo_magazine/pistol/smart, VENDOR_ITEM_REGULAR),
list("M240 Incinerator Tank", round(scale * 3), /obj/item/ammo_magazine/flamer_tank, VENDOR_ITEM_REGULAR),
list("M41AE2 Box Magazine (10x24mm)", round(scale * 3), /obj/item/ammo_magazine/rifle/lmg, VENDOR_ITEM_REGULAR),
list("M41AE2 Box Magazine (10x24mm)", round(scale * 3), /obj/item/ammo_magazine/hpr_box, VENDOR_ITEM_REGULAR),
list("M41A MK1 Magazine (10x24mm)", round(scale * 4.5), /obj/item/ammo_magazine/rifle/m41aMK1, VENDOR_ITEM_REGULAR),
list("M41A MK1 AP Magazine (10x24mm)", round(scale * 2), /obj/item/ammo_magazine/rifle/m41aMK1/ap, VENDOR_ITEM_REGULAR),
list("M56D Drum Magazine", round(scale * 2), /obj/item/ammo_magazine/m56d, VENDOR_ITEM_REGULAR),
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/storage/pouch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@

/obj/item/storage/pouch/magazine/large/pmc_lmg/fill_preset_inventory()
for(var/i = 1 to storage_slots)
new /obj/item/ammo_magazine/rifle/lmg(src)
new /obj/item/ammo_magazine/hpr_box(src)

/obj/item/storage/pouch/magazine/large/pmc_sniper/fill_preset_inventory()
for(var/i = 1 to storage_slots)
Expand Down
8 changes: 4 additions & 4 deletions code/modules/cm_marines/equipment/guncases.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
name = "\improper M41AE2 heavy pulse rifle case"
desc = "A plastic hard weapon case containing the M41AE2 Heavy Pulse Rifle and three magazines."
storage_slots = 4
can_hold = list(/obj/item/weapon/gun/rifle/lmg, /obj/item/ammo_magazine/rifle/lmg)
can_hold = list(/obj/item/weapon/gun/rifle/lmg, /obj/item/ammo_magazine/hpr_box)

/obj/item/storage/box/guncase/lmg/fill_preset_inventory()
new /obj/item/weapon/gun/rifle/lmg(src)
new /obj/item/ammo_magazine/rifle/lmg(src)
new /obj/item/ammo_magazine/rifle/lmg(src)
new /obj/item/ammo_magazine/rifle/lmg(src)
new /obj/item/ammo_magazine/hpr_box(src)
new /obj/item/ammo_magazine/hpr_box(src)
new /obj/item/ammo_magazine/hpr_box(src)

//------------
/obj/item/storage/box/guncase/m41aMK1
Expand Down
4 changes: 2 additions & 2 deletions code/modules/cm_marines/equipment/kit_boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@

/obj/item/storage/box/kit/heavy_support/fill_preset_inventory()
new /obj/item/weapon/gun/rifle/lmg(src)
new /obj/item/ammo_magazine/rifle/lmg(src)
new /obj/item/ammo_magazine/rifle/lmg/holo_target(src)
new /obj/item/ammo_magazine/hpr_box(src)
new /obj/item/ammo_magazine/hpr_box/holo_target(src)
new /obj/item/attachable/bipod(src)
new /obj/item/stack/folding_barricade/three(src)
new /obj/item/clothing/glasses/welding(src)
Expand Down
6 changes: 3 additions & 3 deletions code/modules/gear_presets/other.dm
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
new_human.equip_to_slot_or_del(new /obj/item/storage/belt/gun/m4a3, WEAR_WAIST)
new_human.equip_to_slot_or_del(new /obj/item/tool/crowbar, WEAR_IN_BACK)
spawn_merc_weapon(new_human,1,6)
spawn_weapon(/obj/item/weapon/gun/rifle/lmg, /obj/item/ammo_magazine/rifle/lmg, new_human, 0, 5) //HPR mini-spec
new_human.equip_to_slot_or_del(new /obj/item/ammo_magazine/rifle/lmg/holo_target, WEAR_IN_BACK)
new_human.equip_to_slot_or_del(new /obj/item/ammo_magazine/rifle/lmg/holo_target, WEAR_IN_BACK)
spawn_weapon(/obj/item/weapon/gun/rifle/lmg, /obj/item/ammo_magazine/hpr_box, new_human, 0, 5) //HPR mini-spec
new_human.equip_to_slot_or_del(new /obj/item/ammo_magazine/hpr_box/holo_target, WEAR_IN_BACK)
new_human.equip_to_slot_or_del(new /obj/item/ammo_magazine/hpr_box/holo_target, WEAR_IN_BACK)
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/explosive/C4, WEAR_R_STORE)

/datum/equipment_preset/other/freelancer/standard/proc/load_freelancer_shotgunner(mob/living/carbon/human/new_human)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@
unload_sound = 'sound/weapons/handling/hpr_unload.ogg'
fire_sound = "gun_pulse"
aim_slowdown = SLOWDOWN_ADS_LMG
current_mag = /obj/item/ammo_magazine/rifle/lmg
current_mag = /obj/item/ammo_magazine/hpr_box
attachable_allowed = list(
/obj/item/attachable/suppressor,
/obj/item/attachable/reddot,
Expand Down
30 changes: 30 additions & 0 deletions code/modules/projectiles/magazines/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,36 @@
gun_type = /obj/item/weapon/gun/minigun
w_class = SIZE_MEDIUM

//-------------------------------------------------------
//M41AE2 HEAVY PULSE RIFLE

/obj/item/ammo_magazine/hpr_box
name = "\improper M41AE2 ammo box (10x24mm)"
desc = "A semi-rectangular box of rounds for the M41AE2 Heavy Pulse Rifle."
icon_state = "m41ae2"
max_rounds = 300
gun_type = /obj/item/weapon/gun/rifle/lmg
flags_magazine = AMMUNITION_CANNOT_REMOVE_BULLETS|AMMUNITION_REFILLABLE|AMMUNITION_SLAP_TRANSFER
ammo_band_icon = "+m41ae2_band"
ammo_band_icon_empty = "+m41ae2_band_e"
w_class = SIZE_MEDIUM
reload_delay = 5

/obj/item/ammo_magazine/hpr_box/holo_target
name = "\improper M41AE2 ammo box (10x24mm holo-target)"
desc = "A semi-rectangular box of holo-target rounds for the M41AE2 Heavy Pulse Rifle."
default_ammo = /datum/ammo/bullet/rifle/holo_target
max_rounds = 300
ammo_band_color = AMMO_BAND_COLOR_HOLOTARGETING

/obj/item/ammo_magazine/hpr_box/heap
name = "\improper M41AE2 HEAP ammo box (10x24mm)"
desc = "A semi-rectangular box of rounds for the M41AE2 Heavy Pulse Rifle. This one contains the standard Armor-Piercing explosive tipped round of the USCM."
default_ammo = /datum/ammo/bullet/rifle/heap
max_rounds = 300
gun_type = /obj/item/weapon/gun/rifle/lmg
ammo_band_color = AMMO_BAND_COLOR_HEAP

//M60

/obj/item/ammo_magazine/m60
Expand Down
30 changes: 0 additions & 30 deletions code/modules/projectiles/magazines/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -294,36 +294,6 @@
gun_type = /obj/item/weapon/gun/rifle/ar10
w_class = SIZE_MEDIUM

//-------------------------------------------------------
//M41AE2 HEAVY PULSE RIFLE

/obj/item/ammo_magazine/rifle/lmg
name = "\improper M41AE2 ammo box (10x24mm)"
desc = "A semi-rectangular box of rounds for the M41AE2 Heavy Pulse Rifle."
icon_state = "m41ae2"
max_rounds = 300
gun_type = /obj/item/weapon/gun/rifle/lmg
flags_magazine = AMMUNITION_CANNOT_REMOVE_BULLETS|AMMUNITION_REFILLABLE|AMMUNITION_SLAP_TRANSFER
ammo_band_icon = "+m41ae2_band"
ammo_band_icon_empty = "+m41ae2_band_e"
w_class = SIZE_MEDIUM
reload_delay = 5

/obj/item/ammo_magazine/rifle/lmg/holo_target
name = "\improper M41AE2 ammo box (10x24mm holo-target)"
desc = "A semi-rectangular box of holo-target rounds for the M41AE2 Heavy Pulse Rifle."
default_ammo = /datum/ammo/bullet/rifle/holo_target
max_rounds = 300
ammo_band_color = AMMO_BAND_COLOR_HOLOTARGETING

/obj/item/ammo_magazine/rifle/lmg/heap
name = "\improper M41AE2 HEAP ammo box (10x24mm)"
desc = "A semi-rectangular box of rounds for the M41AE2 Heavy Pulse Rifle. This one contains the standard Armor-Piercing explosive tipped round of the USCM."
default_ammo = /datum/ammo/bullet/rifle/heap
max_rounds = 300
gun_type = /obj/item/weapon/gun/rifle/lmg
ammo_band_color = AMMO_BAND_COLOR_HEAP

//-------------------------------------------------------
//UPP TYPE 71 RIFLE

Expand Down
4 changes: 2 additions & 2 deletions code/modules/vehicles/interior/interactable/vendors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@
list("M2C Box Magazine", 0, /obj/item/ammo_magazine/m2c, VENDOR_ITEM_REGULAR),
list("M240 Incinerator Tank", 1, /obj/item/ammo_magazine/flamer_tank, VENDOR_ITEM_REGULAR),
list("M41A MK1 Magazine (10x24mm)", 0, /obj/item/ammo_magazine/rifle/m41aMK1, VENDOR_ITEM_REGULAR),
list("M41AE2 Box Magazine (10x24mm)", 0, /obj/item/ammo_magazine/rifle/lmg, VENDOR_ITEM_REGULAR),
list("M41AE2 Holo Target Rounds (10x24mm)", 0, /obj/item/ammo_magazine/rifle/lmg/holo_target, VENDOR_ITEM_REGULAR),
list("M41AE2 Box Magazine (10x24mm)", 0, /obj/item/ammo_magazine/hpr_box, VENDOR_ITEM_REGULAR),
list("M41AE2 Holo Target Rounds (10x24mm)", 0, /obj/item/ammo_magazine/hpr_box/holo_target, VENDOR_ITEM_REGULAR),
list("M44 Heavy Speed Loader (.44)", 0, /obj/item/ammo_magazine/revolver/heavy, VENDOR_ITEM_REGULAR),
list("M44 Marksman Speed Loader (.44)", 0, /obj/item/ammo_magazine/revolver/marksman, VENDOR_ITEM_REGULAR),
list("M4A3 HP Magazine (9mm)", 0, /obj/item/ammo_magazine/pistol/hp, VENDOR_ITEM_REGULAR),
Expand Down
2 changes: 1 addition & 1 deletion maps/map_files/LV522_Chances_Claim/LV522_Chances_Claim.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -50725,7 +50725,7 @@
dir = 4
},
/obj/structure/closet/crate/ammo,
/obj/item/ammo_magazine/rifle/lmg/holo_target,
/obj/item/ammo_magazine/hpr_box/holo_target,
/obj/item/weapon/gun/rifle/lmg{
current_mag = null
},
Expand Down

0 comments on commit 0217d8e

Please sign in to comment.