Skip to content

Commit

Permalink
slot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gristlebee committed Feb 11, 2025
1 parent 5d87db9 commit 6fceeed
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/attachments/shoulder_sling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
render_plane = BELOW_OBJ_LAYER
wield_delay = 0.2 SECONDS

var/check_size = TRUE
var/check_size = FALSE

/obj/item/attachment/sling/apply_attachment(obj/item/gun/gun, mob/user)
. = ..()
Expand Down
5 changes: 5 additions & 0 deletions code/modules/projectiles/guns/ballistic/pistol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
muzzleflash_iconstate = "muzzle_flash_light"
light_range = 1

refused_attachments = list(
/obj/item/attachment/gun,
/obj/item/attachment/sling
)


/obj/item/gun/ballistic/automatic/pistol/candor
name = "\improper Candor"
Expand Down
4 changes: 4 additions & 0 deletions code/modules/projectiles/guns/energy.dm
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
ATTACHMENT_SLOT_RAIL = list(
"x" = 19,
"y" = 18,
),
ATTACHMENT_SLOT_SCOPE = list(
"x" = 21,
"y" = 24,
)
)

Expand Down
10 changes: 10 additions & 0 deletions code/modules/projectiles/guns/energy/laser.dm
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@
ammo_x_offset = 3
manufacturer = MANUFACTURER_SHARPLITE

unique_attachments = list(
/obj/item/attachment/scope,
/obj/item/attachment/long_scope,
)
slot_available = list(
ATTACHMENT_SLOT_MUZZLE = 1,
ATTACHMENT_SLOT_RAIL = 1,
ATTACHMENT_SLOT_SCOPE = 1
)

/obj/item/ammo_casing/energy/laser/accelerator
projectile_type = /obj/projectile/beam/laser/accelerator
select_name = "accelerator"
Expand Down
11 changes: 11 additions & 0 deletions code/modules/projectiles/guns/manufacturer/eoehoma/lasers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@
charge_sections = 2
slot_flags = 0

unique_attachments = list(
/obj/item/attachment/scope,
/obj/item/attachment/long_scope,
)

slot_available = list(
ATTACHMENT_SLOT_MUZZLE = 1,
ATTACHMENT_SLOT_RAIL = 1,
ATTACHMENT_SLOT_SCOPE = 1
)

/obj/item/gun/energy/disabler/e60
name = "E-60"
desc = "A self-defense weapon that exhausts organic targets, weakening them until they collapse."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@

load_sound = 'sound/weapons/gun/gauss/pistol_reload.ogg'

refused_attachments = list(
/obj/item/attachment/gun,
/obj/item/attachment/sling
)

/obj/item/ammo_casing/energy/kalix/pistol
fire_sound = 'sound/weapons/gun/energy/kalixpistol.ogg'
e_cost = 1250 //10 shots per cell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ NO_MAG_GUN_HELPER(automatic/smg/cobra/indie)
slot_available = list(
ATTACHMENT_SLOT_MUZZLE = 1,
ATTACHMENT_SLOT_RAIL = 1,
ATTACHMENT_SLOT_STOCK = 1
ATTACHMENT_SLOT_STOCK = 1,
ATTACHMENT_SLOT_SCOPE = 1
)
slot_offsets = list(
ATTACHMENT_SLOT_MUZZLE = list(
Expand All @@ -484,6 +485,10 @@ NO_MAG_GUN_HELPER(automatic/smg/cobra/indie)
ATTACHMENT_SLOT_STOCK = list(
"x" = 17,
"y" = 18,
),
ATTACHMENT_SLOT_SCOPE = list(
"x" = 21,
"y" = 24,
)
)

Expand Down

0 comments on commit 6fceeed

Please sign in to comment.