Headset sounds (#89211)

## About The Pull Request


https://github.com/user-attachments/assets/48d08963-8fc9-4bd0-bf76-7e296e71231b
## Changelog
🆑 grungussuss
sound: headsets now have sounds
/🆑
This commit is contained in:
grungussuss
2025-01-27 13:11:24 +01:00
committed by GitHub
parent 596854f9e0
commit baa9ffbf5c
13 changed files with 34 additions and 0 deletions
+2
View File
@@ -251,6 +251,8 @@ GLOBAL_LIST_INIT(announcer_keys, list(
#define SFX_CLOWN_CAR_LOAD "clown_car_load"
#define SFX_SEATBELT_BUCKLE "buckle"
#define SFX_SEATBELT_UNBUCKLE "unbuckle"
#define SFX_HEADSET_EQUIP "headset_equip"
#define SFX_HEADSET_PICKUP "headset_pickup"
// Standard is 44.1khz
#define MIN_EMOTE_PITCH 40000
@@ -30,6 +30,10 @@ GLOBAL_LIST_INIT(channel_tokens, list(
interaction_flags_mouse_drop = FORBID_TELEKINESIS_REACH
slot_flags = ITEM_SLOT_EARS
dog_fashion = null
equip_sound = SFX_HEADSET_EQUIP
pickup_sound = SFX_HEADSET_PICKUP
drop_sound = 'sound/items/handling/headset/headset_drop1.ogg'
sound_vary = TRUE
var/obj/item/encryptionkey/keyslot2 = null
/// A list of all languages that this headset allows the user to understand. Populated by language encryption keys.
var/list/language_list
+11
View File
@@ -788,4 +788,15 @@
'sound/machines/buckle/unbuckle2.ogg',
'sound/machines/buckle/unbuckle3.ogg',
)
if(SFX_HEADSET_EQUIP)
soundin = pick(
'sound/items/equip/headset_equip1.ogg',
'sound/items/equip/headset_equip2.ogg',
)
if(SFX_HEADSET_PICKUP)
soundin = pick(
'sound/items/handling/headset/headset_pickup1.ogg',
'sound/items/handling/headset/headset_pickup2.ogg',
'sound/items/handling/headset/headset_pickup3.ogg',
)
return soundin
+3
View File
@@ -184,6 +184,9 @@
desc = "A neon-blue pair of headphones. They look neo-futuristic."
icon_state = "decker_hat"
inhand_icon_state = null
equip_sound = SFX_HEADSET_EQUIP
pickup_sound = SFX_HEADSET_PICKUP
drop_sound = 'sound/items/handling/headset/headset_drop1.ogg'
/obj/item/clothing/head/costume/yuri
name = "yuri initiate helmet"
+3
View File
@@ -26,6 +26,9 @@
force = 0
w_class = WEIGHT_CLASS_SMALL
custom_price = PAYCHECK_CREW * 2.5
equip_sound = SFX_HEADSET_EQUIP
pickup_sound = SFX_HEADSET_PICKUP
drop_sound = 'sound/items/handling/headset/headset_drop1.ogg'
instrument_range = 1
circuit_type = /obj/item/circuit_component/synth/headphones
shell_capacity = SHELL_CAPACITY_TINY
+5
View File
@@ -1,2 +1,7 @@
sneakers equip1 made by sadboysuss
license: CC-BY-SA 3.0
{
headset_equip1.ogg
headset_equip2.ogg
} - made by sadboysuss
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
{
headset_pickup1.ogg
headset_pickup2.ogg
headset_pickup3.ogg
headset_drop1.ogg
} - made by sadboysuss
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.