Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA .357 Custom Item Addition #193

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0ac9b91
Da Revolva
Mar 27, 2024
b1f8fc5
Oopsiedaisies
Mar 27, 2024
2803a43
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Mar 30, 2024
9661ab5
Oopsiedaisies
Mar 27, 2024
e747764
Revert "Oopsiedaisies"
Mar 30, 2024
c3cee8a
Auto stash before revert of "Oopsiedaisies"
Mar 30, 2024
38e537c
Name alterration
Max-023 Mar 30, 2024
c3991c7
Resprites
Mar 30, 2024
0e65c01
Update code/modules/projectiles/guns/revolvers.dm
Max-023 Mar 30, 2024
ce06c20
Belt/Pouch Fixes
Mar 30, 2024
7a7f2a3
M44 Custom Case
Mar 30, 2024
b90fe2c
Attachment Overlays
Mar 31, 2024
4b9e162
Text Adjustments
Mar 31, 2024
6c995e9
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Mar 31, 2024
24810a3
Smartgunner Belt Fix
Apr 1, 2024
d26c27c
Sprite Adjustments
Apr 1, 2024
b254812
Missed One
Apr 1, 2024
ecb8f8e
Grip Fix
Apr 1, 2024
5769a6d
Belt Clipping Fix
Apr 1, 2024
763913d
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Apr 3, 2024
0fae340
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Apr 5, 2024
49133af
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Apr 7, 2024
4e9b759
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Apr 8, 2024
807e1ae
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Apr 10, 2024
5f29030
Changes
Apr 10, 2024
2aa51ac
Merge branch 'master' of https://github.com/PvE-CMSS13/PvE-CMSS13
Apr 23, 2024
9715676
Auto stash before merge of "revolver" and "origin/revolver"
Apr 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
list("M276 Pattern Ammo Load Rig", round(scale * 15), /obj/item/storage/belt/marine, VENDOR_ITEM_REGULAR),
list("M276 Pattern M40 Grenade Rig", round(scale * 10), /obj/item/storage/belt/grenade, VENDOR_ITEM_REGULAR),
list("M276 Pattern General Pistol Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m4a3, VENDOR_ITEM_REGULAR),
list("M276 Pattern M44 Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m44, VENDOR_ITEM_REGULAR),
list("M276 Pattern General Revolver Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m44, VENDOR_ITEM_REGULAR),
list("M276 Pattern M82F Holster Rig", round(scale * 5), /obj/item/storage/belt/gun/flaregun, VENDOR_ITEM_REGULAR),
list("M276 G8-A General Utility Pouch", round(scale * 15), /obj/item/storage/backpack/general_belt, VENDOR_ITEM_REGULAR),

Expand Down Expand Up @@ -265,7 +265,7 @@
list("M276 Pattern Ammo Load Rig", round(scale * 15), /obj/item/storage/belt/marine/standard, VENDOR_ITEM_REGULAR),
list("M276 Pattern M40 Grenade Rig", round(scale * 10), /obj/item/storage/belt/grenade, VENDOR_ITEM_REGULAR),
list("M276 Pattern General Pistol Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m4a3/standard, VENDOR_ITEM_REGULAR),
list("M276 Pattern M44 Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m44/standard, VENDOR_ITEM_REGULAR),
list("M276 Pattern General Revolver Holster Rig", round(scale * 15), /obj/item/storage/belt/gun/m44/standard, VENDOR_ITEM_REGULAR),
list("M276 Pattern M82F Holster Rig", round(scale * 5), /obj/item/storage/belt/gun/flaregun, VENDOR_ITEM_REGULAR),
list("M276 G8-A General Utility Pouch", round(scale * 15), /obj/item/storage/backpack/general_belt/standard, VENDOR_ITEM_REGULAR),

Expand Down
7 changes: 5 additions & 2 deletions code/game/objects/items/storage/belt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1232,13 +1232,15 @@
"icon_y" = -5))

/obj/item/storage/belt/gun/m44
name = "\improper M276 pattern M44 holster rig"
desc = "The M276 is the standard load-bearing equipment of the USCM. It consists of a modular belt with various clips. This version is for the M44 magnum revolver, along with six small pouches for speedloaders. It smells faintly of hay."
name = "\improper M276 pattern revolver pistol holster rig"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be just "M276 pattern revolver holster rig"

desc = "The M276 is the standard load-bearing equipment of the USCM. It consists of a modular belt with various clips. This version is for revolver pistols of various types, along with six small pouches for speedloaders."
icon_state = "m44r_holster"
storage_slots = 7
can_hold = list(
/obj/item/weapon/gun/revolver/m44,
/obj/item/weapon/gun/revolver/cmb,
/obj/item/ammo_magazine/revolver,
/obj/item/ammo_magazine/revolver/cmb,
)
has_gamemode_skin = TRUE
holster_slots = list(
Expand Down Expand Up @@ -1637,6 +1639,7 @@
/obj/item/weapon/gun/flare,
/obj/item/weapon/gun/pistol,
/obj/item/weapon/gun/revolver/m44,
/obj/item/weapon/gun/revolver/cmb/marine,
/obj/item/ammo_magazine/revolver,
/obj/item/ammo_magazine/pistol,
/obj/item/ammo_magazine/smartgun,
Expand Down
7 changes: 6 additions & 1 deletion code/modules/client/preferences_gear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,12 @@ var/global/list/gear_datums_by_name = list()

/datum/gear/weapon/m44_custom_revolver
display_name = "M44 Custom Revolver"
path = /obj/item/weapon/gun/revolver/m44/custom
path = /obj/item/storage/box/guncase/m44/custom
allowed_origins = USCM_ORIGINS

/datum/gear/weapon/sa_357
display_name = "SA .357 Service Revolver"
path = /obj/item/storage/box/guncase/cmb
allowed_origins = USCM_ORIGINS

/datum/gear/weapon/m1911
Expand Down
34 changes: 34 additions & 0 deletions code/modules/cm_marines/equipment/guncases.dm
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,23 @@
new /obj/item/ammo_magazine/revolver/marksman(src)
new /obj/item/ammo_magazine/revolver/marksman(src)

//M44 Combat Revolver Custom
/obj/item/storage/box/guncase/m44/custom
name = "\improper M44 Custom Revolver case"
desc = "A gun case containing an M44 Custom Revolver loaded with marksman ammo."
storage_slots = 7
can_hold = list(/obj/item/attachable/flashlight, /obj/item/weapon/gun/revolver/m44/custom, /obj/item/ammo_magazine/revolver)

/obj/item/storage/box/guncase/m44/fill_preset_inventory()
new /obj/item/attachable/flashlight(src)
new /obj/item/weapon/gun/revolver/m44/custom/mp(src)
new /obj/item/ammo_magazine/revolver/marksman(src)
new /obj/item/ammo_magazine/revolver/marksman(src)
new /obj/item/ammo_magazine/revolver/marksman(src)
new /obj/item/ammo_magazine/revolver/marksman(src)
new /obj/item/ammo_magazine/revolver/marksman(src)
new /obj/item/ammo_magazine/revolver/marksman(src)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a lot of non-standard ammo for apparently no reason, and also a flashlight? dont think thats necessary


//M4A3 Service Pistol
/obj/item/storage/box/guncase/m4a3
name = "\improper M4A3 Service Pistol case"
Expand All @@ -401,3 +418,20 @@
new /obj/item/ammo_magazine/pistol(src)
new /obj/item/ammo_magazine/pistol(src)
new /obj/item/ammo_magazine/pistol(src)

//SA .357 Service Revolver
/obj/item/storage/box/guncase/cmb
name = "\improper SA .357 Service Revolver case"
desc = "A gun case containing an SA .357 Spearhead preloaded with standard ammunition."
storage_slots = 7
can_hold = list(/obj/item/attachable/flashlight, /obj/item/weapon/gun/revolver/cmb/marine, /obj/item/ammo_magazine/revolver)

/obj/item/storage/box/guncase/cmb/fill_preset_inventory()
new /obj/item/attachable/flashlight(src)
new /obj/item/weapon/gun/revolver/cmb/marine(src)
new /obj/item/ammo_magazine/revolver/cmb/normalpoint(src)
new /obj/item/ammo_magazine/revolver/cmb/normalpoint(src)
new /obj/item/ammo_magazine/revolver/cmb/normalpoint(src)
new /obj/item/ammo_magazine/revolver/cmb/normalpoint(src)
new /obj/item/ammo_magazine/revolver/cmb/normalpoint(src)
new /obj/item/ammo_magazine/revolver/cmb/normalpoint(src)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont think custom revolver needs that many speedloaders and a flashlight, make it 2 just like with 1911

besides, you can still scavenge ammo from CMBs and security groundside, i think that would be interesting

16 changes: 15 additions & 1 deletion code/modules/projectiles/guns/revolvers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@
icon_state = "m44rc"
item_state = "m44rc"

/obj/item/weapon/gun/revolver/m44/custom/mp //loadout w/ ammo
current_mag = /obj/item/ammo_magazine/internal/revolver/m44/marksman
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont think loadout equipment should have buffs.....


//----------------------------------------------
// Blade Runner Blasters.
/obj/item/weapon/gun/revolver/m44/custom/pkd_special
Expand Down Expand Up @@ -736,7 +739,7 @@
return ..()

/obj/item/weapon/gun/revolver/cmb/set_gun_attachment_offsets()
attachable_offset = list("muzzle_x" = 29, "muzzle_y" = 22,"rail_x" = 11, "rail_y" = 25, "under_x" = 20, "under_y" = 18, "stock_x" = 20, "stock_y" = 18)
attachable_offset = list("muzzle_x" = 30, "muzzle_y" = 20,"rail_x" = 12, "rail_y" = 23, "under_x" = 20, "under_y" = 17, "stock_x" = 20, "stock_y" = 17)

/obj/item/weapon/gun/revolver/cmb/set_gun_config_values()
..()
Expand All @@ -751,3 +754,14 @@

/obj/item/weapon/gun/revolver/cmb/normalpoint
current_mag = /obj/item/ammo_magazine/internal/revolver/cmb

//-------------------------------------------------------
//MARINE REVOLVER //Spearhead exists in Alien cannon, this one is based on the Dark Descent model.

/obj/item/weapon/gun/revolver/cmb/marine
name = "\improper SA .357 revolver"
desc = "An automatic revolver chambered in .357, recognizably similar to its civilian counterpart. In Limited Service with the USCM, typically provided to more veteran units."
icon = 'icons/obj/items/weapons/guns/guns_by_faction/uscm.dmi'
icon_state = "mspearhead"
item_state = "mspearhead"
current_mag = /obj/item/ammo_magazine/internal/revolver/cmb
1 change: 1 addition & 0 deletions code/modules/projectiles/magazines/revolvers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
/obj/item/ammo_magazine/internal/revolver/cmb
default_ammo = /datum/ammo/bullet/revolver/small
caliber = ".357"
max_rounds = 6
gun_type = /obj/item/weapon/gun/revolver/cmb

/obj/item/ammo_magazine/internal/revolver/cmb/hollowpoint
Expand Down
Binary file modified icons/obj/items/clothing/belts.dmi
Binary file not shown.
Binary file modified icons/obj/items/weapons/guns/guns_by_faction/colony.dmi
Binary file not shown.
Binary file modified icons/obj/items/weapons/guns/guns_by_faction/uscm.dmi
Binary file not shown.
Loading