From 49e8e8647cccf770679c54f6d7bfc1cec107ff92 Mon Sep 17 00:00:00 2001 From: Boris Egorov Date: Wed, 27 Mar 2024 20:32:08 -0400 Subject: [PATCH] .45 COF-5150 Pistol and MOD Adds 2 .45 pistols to make the caliber more present in the game. Due to difficulties with dream maker I was unable to test it in my own burgerstation instance, the code is up to spec though I'm still uncertain how common or uncommon it will be. --- .../ranged/bullet/magazine/pistol/cof.dm | 106 ++++++++++++++++++ .../weapons/ranged/pistol/cof_handgun.dmi | Bin 0 -> 608 bytes .../weapons/ranged/pistol/cof_handgun_2.dmi | Bin 0 -> 599 bytes 3 files changed, 106 insertions(+) create mode 100644 code/_core/obj/item/weapon/ranged/bullet/magazine/pistol/cof.dm create mode 100644 icons/obj/item/weapons/ranged/pistol/cof_handgun.dmi create mode 100644 icons/obj/item/weapons/ranged/pistol/cof_handgun_2.dmi diff --git a/code/_core/obj/item/weapon/ranged/bullet/magazine/pistol/cof.dm b/code/_core/obj/item/weapon/ranged/bullet/magazine/pistol/cof.dm new file mode 100644 index 0000000000..669e07de10 --- /dev/null +++ b/code/_core/obj/item/weapon/ranged/bullet/magazine/pistol/cof.dm @@ -0,0 +1,106 @@ +/obj/item/weapon/ranged/bullet/magazine/pistol/cof_handgun + name = ".45 COF-5150 Pistol" + desc = "You're so dead, you're so fucking dead!" + desc_extended = "A large framed handgun chambering standard .45 magazines and ammunition. Known to be remarkably accurate, but with a high level of recoil and lower effective fire rate. Has found use by some Solarian police forces and small enforcer unions for the high degree of accuracy and larger then average calibre round." + value = 500 + + tier = 2 + + company_type = "Solarian" + + icon = 'icons/obj/item/weapons/ranged/pistol/cof_handgun.dmi' + shoot_delay = 3 + shoot_sounds = list('sound/weapons/ranged/pistol/1984/shoot.ogg') + + movement_spread_base = 0.007 + inaccuracy_modifier = 0.3 + movement_inaccuracy_modifier = 0 + + automatic = FALSE + + size = SIZE_2 + weight = 7 + + heat_max = 0.07 + + bullet_length_min = 20 + bullet_length_best = 23 + bullet_length_max = 24 + + bullet_diameter_min = 11 + bullet_diameter_best = 11.43 + bullet_diameter_max = 12 + + attachment_whitelist = list( + /obj/item/attachment/barrel/charger = TRUE, + /obj/item/attachment/barrel/charger/advanced = TRUE, + /obj/item/attachment/barrel/compensator = TRUE, + /obj/item/attachment/barrel/extended = TRUE, + /obj/item/attachment/barrel/gyro = TRUE, + /obj/item/attachment/barrel/laser_charger = FALSE, + /obj/item/attachment/barrel/suppressor = TRUE, + /obj/item/attachment/barrel_mod/reinforced_barrel = TRUE, + /obj/item/attachment/stock_mod/reinforced_stock = TRUE, + + /obj/item/attachment/sight/laser_sight = TRUE, + /obj/item/attachment/sight/quickfire_adapter = TRUE, + /obj/item/attachment/sight/red_dot = TRUE, + /obj/item/attachment/sight/scope = FALSE, + /obj/item/attachment/sight/scope/large = FALSE, + /obj/item/attachment/sight/targeting_computer = TRUE, + + + + /obj/item/attachment/undermount/angled_grip = FALSE, + /obj/item/attachment/undermount/bipod = FALSE, + /obj/item/attachment/undermount/burst_adapter = FALSE, + /obj/item/attachment/undermount/vertical_grip = FALSE + ) + + attachment_barrel_offset_x = 29 - 16 + attachment_barrel_offset_y = 21 - 16 + + attachment_sight_offset_x = 12 - 16 + attachment_sight_offset_y = 20 - 16 + + attachment_undermount_offset_x = 25 - 16 + attachment_undermount_offset_y = 16 - 16 + + rarity = RARITY_COMMON + + +/obj/item/weapon/ranged/bullet/magazine/pistol/cof_handgun/get_static_spread() + return 0.003 + +/obj/item/weapon/ranged/bullet/magazine/pistol/cof_handgun/get_skill_spread(var/mob/living/L) + return max(0,0.01 - (0.03 * L.get_skill_power(SKILL_RANGED))) + +/obj/item/weapon/ranged/bullet/magazine/pistol/cof_handgun/mod + name = ".45 COF-5150 Pistol MOD" + desc_extended = "A large framed handgun chambering standard .45 magazines and ammunition. This model used the COF-5150 as a base and was modified extensively with an extended black steel slide, improved night sights, stainless steel safety lever, chamber, and barrel. \ + A custom aluminum frame replaces the old polymer frame of the original model, and a set of black plastic grips holds a badge depicting a special operations unit logo with green text reading 'MHU'. \ + The accuracy, and stopping power of this pistol could make some revolvers jealous at the cost of being cumbersome to handle." + value = 1200 + icon = 'icons/obj/item/weapons/ranged/pistol/cof_handgun_2.dmi' + shoot_delay = 4 + + damage_mod = 1.35 + + tier = 3 + + movement_spread_base = 0.005 + inaccuracy_modifier = 0.2 + movement_inaccuracy_modifier = 0 + + size = SIZE_2 + weight = 8 + + heat_max = 0.11 + + rarity = RARITY_RARE + +/obj/item/weapon/ranged/bullet/magazine/pistol/tactical/mod/get_static_spread() + return 0 + +/obj/item/weapon/ranged/bullet/magazine/pistol/tactical/mod/get_skill_spread(var/mob/living/L) + return max(0,0.03 - (0.03 * L.get_skill_power(SKILL_RANGED))) \ No newline at end of file diff --git a/icons/obj/item/weapons/ranged/pistol/cof_handgun.dmi b/icons/obj/item/weapons/ranged/pistol/cof_handgun.dmi new file mode 100644 index 0000000000000000000000000000000000000000..b510d159827c65471d7a354c5c2a91c97cced1a3 GIT binary patch literal 608 zcmV-m0-ybfP)VgGHvj+t0d!JMQvg8b*k%9#0Ev23Sad{Xb7OL8aCB*JZU6vyoKseCa&`CgQ*iP1 zZiFBZg}I8bZ7RP1!*&GLwXMrc82D8_6C<3t z0EXlUF`0BjA~Q7|%S|XLV1HBcv$=J z-gv-J^s5HLQ-e7BJTGmeG)AWRhTzU$5#u4;-?&T+4QBQj5Cod@l zcG544P{O4I@dvIhmnb0Os1&E=sFAqFDK`dQ1NC#~F~ zYy;8z7=bQQ%Y*8}U)!2tcXF#%e=1i1TL9k>;0_30;2{#%g^Q0vxO zMD7WwMt^=5a|~NwYA)uZw1S2nn*7CLv6xSjzt_;