mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
evidence bag sounds (#87790)
## About The Pull Request completes https://github.com/orgs/tgstation/projects/19/views/1?pane=issue&itemId=84398285 https://github.com/user-attachments/assets/5f4e92eb-3d65-4da7-ba76-24d30f1eddc3 ## Why It's Good For The Game immershun ## Changelog 🆑 grungussuss sound: evidence bags have more sounds now /🆑
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
inhand_icon_state = ""
|
||||
w_class = WEIGHT_CLASS_TINY
|
||||
item_flags = NOBLUDGEON
|
||||
drop_sound = 'sound/items/evidence_bag/evidence_bag_drop.ogg'
|
||||
pickup_sound = 'sound/items/evidence_bag/evidence_bag_pickup.ogg'
|
||||
sound_vary = TRUE
|
||||
|
||||
/obj/item/evidencebag/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -17,6 +20,8 @@
|
||||
)
|
||||
RegisterSignal(atom_storage, COMSIG_STORAGE_STORED_ITEM, PROC_REF(on_insert))
|
||||
RegisterSignal(atom_storage, COMSIG_STORAGE_REMOVED_ITEM, PROC_REF(on_remove))
|
||||
atom_storage.rustle_sound = 'sound/items/evidence_bag/evidence_bag_zip.ogg'
|
||||
atom_storage.remove_rustle_sound = 'sound/items/evidence_bag/evidence_bag_unzip.ogg'
|
||||
|
||||
/obj/item/evidencebag/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers)
|
||||
if(interacting_with == loc || !isitem(interacting_with) || HAS_TRAIT(interacting_with, TRAIT_COMBAT_MODE_SKIP_INTERACTION))
|
||||
@@ -74,6 +79,7 @@
|
||||
return
|
||||
user.visible_message(span_notice("[user] empties [src]."), span_notice("You empty [src]."),\
|
||||
span_hear("You hear someone rustle around in a plastic bag, and remove something."))
|
||||
playsound(src,'sound/items/evidence_bag/evidence_bag_unzip.ogg', 50, TRUE, SHORT_RANGE_SOUND_EXTRARANGE, ignore_walls = FALSE)
|
||||
atom_storage.remove_all()
|
||||
|
||||
/obj/item/storage/box/evidence
|
||||
|
||||
Reference in New Issue
Block a user