mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +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:
@@ -47,6 +47,8 @@
|
||||
var/rustle_vary = TRUE
|
||||
/// Path for the item's rustle sound.
|
||||
var/rustle_sound = SFX_RUSTLE
|
||||
/// Path for the item's rustle sound when removing items.
|
||||
var/remove_rustle_sound = null
|
||||
/// The sound to play when we open/access the storage
|
||||
var/open_sound
|
||||
var/open_sound_vary = TRUE
|
||||
@@ -563,7 +565,10 @@ GLOBAL_LIST_EMPTY(cached_storage_typecaches)
|
||||
thing.forceMove(remove_to_loc)
|
||||
|
||||
if(do_rustle && !silent)
|
||||
playsound(parent, SFX_RUSTLE, 50, TRUE, -5)
|
||||
if(remove_rustle_sound)
|
||||
playsound(parent, remove_rustle_sound, 50, TRUE, -5)
|
||||
else
|
||||
playsound(parent, rustle_sound, 50, TRUE, -5)
|
||||
else
|
||||
thing.moveToNullspace()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
evidence_bag sounds made by sadboysuss
|
||||
license: CC-BY-SA 3.0
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user