Bandage sounds (#89295)

## About The Pull Request
a `heal_begin_sound` and `heal_end_sound` has been added to medical
healing items, they will play when a heal is begun and once it is
successfully complete, so far sounds only for gauze.


github is having issues at the time of this post so you'll have to do
with a discord link for preview for now:
https://discord.com/channels/326822144233439242/326831214667235328/1334538845227585648
## Changelog
🆑 grungussuss
sound: gauze now makes sounds when applied
/🆑
This commit is contained in:
grungussuss
2025-02-08 15:19:01 +11:00
committed by GitHub
parent e6672540d2
commit af66da3690
12 changed files with 35 additions and 0 deletions
+2
View File
@@ -253,6 +253,8 @@ GLOBAL_LIST_INIT(announcer_keys, list(
#define SFX_SEATBELT_UNBUCKLE "unbuckle"
#define SFX_HEADSET_EQUIP "headset_equip"
#define SFX_HEADSET_PICKUP "headset_pickup"
#define SFX_BANDAGE_BEGIN "bandage_begin"
#define SFX_BANDAGE_END "bandage_end"
// Standard is 44.1khz
#define MIN_EMOTE_PITCH 40000
@@ -36,6 +36,10 @@
var/apply_verb = "treating"
/// Whether this item can be used on dead bodies
var/works_on_dead = FALSE
/// The sound this makes when starting healing with this item
var/heal_begin_sound = null
/// The sound this makes when healed successfully with this item
var/heal_end_sound = null
/obj/item/stack/medical/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers)
if(!isliving(interacting_with))
@@ -375,6 +379,8 @@
apply_verb = "wrapping"
works_on_dead = TRUE
var/obj/item/bodypart/gauzed_bodypart
heal_end_sound = SFX_BANDAGE_END
heal_begin_sound = SFX_BANDAGE_BEGIN
/obj/item/stack/medical/gauze/Destroy(force)
. = ..()
@@ -444,6 +450,7 @@
span_warning("You begin wrapping the wounds on [user == patient ? "your" : "[patient]'s"] [limb.plaintext_zone] with [src]..."),
visible_message_flags = ALWAYS_SHOW_SELF_MESSAGE,
)
playsound(src, heal_begin_sound, 30, TRUE, MEDIUM_RANGE_SOUND_EXTRARANGE)
if(!do_after(user, treatment_delay, target = patient))
return
@@ -455,6 +462,8 @@
span_green("You bandage the wounds on [user == patient ? "your" : "[patient]'s"] [limb.plaintext_zone]."),
visible_message_flags = ALWAYS_SHOW_SELF_MESSAGE,
)
if(heal_end_sound)
playsound(patient, heal_end_sound, 30, TRUE, MEDIUM_RANGE_SOUND_EXTRARANGE)
limb.apply_gauze(src)
/obj/item/stack/medical/gauze/twelve
+14
View File
@@ -799,4 +799,18 @@
'sound/items/handling/headset/headset_pickup2.ogg',
'sound/items/handling/headset/headset_pickup3.ogg',
)
if(SFX_BANDAGE_BEGIN)
soundin = pick(
'sound/items/gauze/bandage_begin1.ogg',
'sound/items/gauze/bandage_begin2.ogg',
'sound/items/gauze/bandage_begin3.ogg',
'sound/items/gauze/bandage_begin4.ogg',
)
if(SFX_BANDAGE_END)
soundin = pick(
'sound/items/gauze/bandage_end1.ogg',
'sound/items/gauze/bandage_end2.ogg',
'sound/items/gauze/bandage_end3.ogg',
'sound/items/gauze/bandage_end4.ogg',
)
return soundin
+10
View File
@@ -0,0 +1,10 @@
{
bandage_begin1.ogg
bandage_begin2.ogg
bandage_begin3.ogg
bandage_begin4.ogg
bandage_end1.ogg
bandage_end2.ogg
bandage_end3.ogg
bandage_end4.ogg
} - made by sadboyssuss
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.