Updated the sound system (#18724)

* sdaf

* sdaf

* sdfa

* sadf

* sfda

* gfd

* reduce thrusters volume

* sdafsadsdaf

* sdfa

* Reduced some sound ranges and made some/more not ignore walls for loops

* health analyzers too

* ivdrip adjustment

* most tools now use play_tool_sound to have the sound played, reduced range for it
This commit is contained in:
Fluffy
2024-03-25 20:40:36 +00:00
committed by GitHub
parent 9faac2d684
commit 1b40dbce82
174 changed files with 1251 additions and 817 deletions
+1 -1
View File
@@ -317,7 +317,7 @@
var/mob/abstract/observer/observer = new /mob/abstract/observer(src)
spawning = 1
sound_to(src, sound(null, repeat = 0, wait = 0, volume = 85, channel = 1))
src.stop_sound_channel(CHANNEL_LOBBYMUSIC) // stop the jams for observers
observer.started_as_observer = 1
close_spawn_windows()
@@ -393,7 +393,7 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
client.autohiss_mode = client.prefs.autohiss_setting
src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // MAD JAMS cant last forever yo)
src.stop_sound_channel(CHANNEL_LOBBYMUSIC) // MAD JAMS cant last forever yo)
if(mind)
mind.active = 0 //we wish to transfer the key manually
+1 -1
View File
@@ -73,7 +73,7 @@
on_hear_say("[track][accent_icon ? accent_icon + " " : ""]<span class='game say'><span class='name'>[speaker_name]</span>[alt_name] [verb], <span class='message'><span class='body'>\"[message]\"</span></span></span>")
if (speech_sound && (get_dist(speaker, src) <= world.view && src.z == speaker.z))
var/turf/source = speaker? get_turf(speaker) : get_turf(src)
playsound_simple(source, speech_sound, sound_vol, use_random_freq = TRUE)
playsound(source, speech_sound, sound_vol, vary = TRUE)
return TRUE
/mob/proc/cant_hear()
+1 -1
View File
@@ -1157,7 +1157,7 @@
if(isturf(loc) && rand(1,1000) == 1)
var/turf/T = loc
if (T.get_lumcount() < 0.01) // give a little bit of tolerance for near-dark areas.
playsound_simple(null, pick(GLOB.scarySounds), 50, TRUE)
playsound(null, pick(GLOB.scarySounds), 50, TRUE)
if(HAS_TRAIT(src, TRAIT_ORIGIN_DARK_AFRAID))
if(T.get_lumcount() < 0.1)
@@ -253,7 +253,7 @@
if(has_jetpack)
jetpack = new /obj/item/tank/jetpack/carbondioxide/synthetic(src)
playsound(get_turf(src), spawn_sound, 75, pitch_toggle)
playsound(get_turf(src), spawn_sound, 75, pitch_toggle, ignore_walls = FALSE)
/mob/living/silicon/robot/SetName(pickedName as text)
custom_name = pickedName
@@ -393,14 +393,14 @@
//This is triggered randomly periodically by the bear
/mob/living/simple_animal/hostile/bear/proc/growl_soft()
var/sound = pick(quiet_sounds)
playsound(src, sound, 50, 1,3, usepressure = 0)
playsound(src, sound, 50, 1,3, pressure_affected = 0)
//Plays a loud sound from a selection of four
//Played when bear is attacking or dies
/mob/living/simple_animal/hostile/bear/proc/growl_loud()
var/sound = pick(loud_sounds)
playsound(src, sound, 85, 1, 5, usepressure = 0)
playsound(src, sound, 85, 1, 5, pressure_affected = 0)
//A special bear subclass which is more powerful and has the ability to teleport around to seek out prey.
//It dislikes other bears and refuses to cooperate with them. If two of them see each other, one or both will teleport away
@@ -68,7 +68,7 @@
if(prob(10))
custom_emote(VISIBLE_MESSAGE, pick( list("shrieks!","roars!", "screeches!", "snarls!", "bellows!", "screams!") ) )
var/sound = pick(loud_sounds)
playsound(src, sound, 90, 1, 15, usepressure = 0)
playsound(src, sound, 90, 1, 15, pressure_affected = 0)
/mob/living/simple_animal/hostile/true_changeling/death(gibbed)
@@ -346,7 +346,7 @@
faction = "worms"
/mob/living/simple_animal/hostile/greatwormking/Destroy()
playsound(src.loc, 'sound/hallucinations/wail.ogg', 200, 1, usepressure = 0)
playsound(src.loc, 'sound/hallucinations/wail.ogg', 200, 1, pressure_affected = 0)
for(var/mob/living/L in SSmobs.greatworms)
L.death()
for(var/obj/structure/S in SSmobs.greatasses)
+3
View File
@@ -251,6 +251,9 @@
var/authed = TRUE
var/player_age = "Requires database"
///Override for sound_environmentironments. If this is set the user will always hear a specific type of reverb (Instead of the area defined reverb)
var/sound_environment_override = SOUND_ENVIRONMENT_NONE
///the icon currently used for the typing indicator's bubble
var/atom/movable/typing_indicator/typing_indicator
/// User is thinking in character. Used to revert to thinking state after stop_typing
+4
View File
@@ -1314,3 +1314,7 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HURT)
/mob/get_client()
return client
///Can the mob hear
/mob/proc/can_hear()
return !isdeaf(src)
+1 -1
View File
@@ -105,7 +105,7 @@
/mob/proc/AIize(move=1)
if(client)
src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1) // stop the jams for AIs)
src.stop_sound_channel(CHANNEL_LOBBYMUSIC) // stop the jams for AIs)
//The destination the mob will be spawned at
var/final_destination = loc