mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Update Ambient Sounds 3.0
Adds Lava/Water Idle sounds Adds Snowbirds loops for use on Sif, currently meant to be looped Adds better rain FX, gives storms their own FX too Adds unused rumbly noises for underground
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
direct (bool) If true plays directly to provided atoms instead of from them
|
||||
opacity_check (bool) If true, things behind walls/opaque things won't hear the sounds.
|
||||
pref_check (type) If set to a /datum/client_preference type, will check if the hearer has that preference active before playing it to them.
|
||||
volume_chan (type) If set to a specific volume channel via the incoming argument, we tell the playsound proc to modulate volume based on that channel
|
||||
*/
|
||||
/datum/looping_sound
|
||||
var/list/atom/output_atoms
|
||||
@@ -32,6 +33,7 @@
|
||||
var/extra_range
|
||||
var/opacity_check
|
||||
var/pref_check
|
||||
var/volume_chan
|
||||
|
||||
var/timerid
|
||||
|
||||
@@ -91,7 +93,7 @@
|
||||
continue
|
||||
SEND_SOUND(thing, S)
|
||||
else
|
||||
playsound(thing, S, volume, vary, extra_range, ignore_walls = !opacity_check, preference = pref_check)
|
||||
playsound(thing, S, volume, vary, extra_range, ignore_walls = !opacity_check, preference = pref_check, volume_channel = volume_chan) // CHOMPEdit - Weather volume channel
|
||||
|
||||
/datum/looping_sound/proc/get_sound(starttime, _mid_sounds)
|
||||
if(!_mid_sounds)
|
||||
|
||||
28
code/datums/looping_sounds/environment_sounds.dm
Normal file
28
code/datums/looping_sounds/environment_sounds.dm
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* The purpose of this file is to house environment sound loops that originate from TURFS OR OBJECTS SOLELY FOR ENVIRONMENTAL AMBIENCE.
|
||||
* Lava bubbling is one such thing, the water rushing through a stream is another.
|
||||
*/
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/datum/looping_sound/water
|
||||
mid_sounds = list('sound/effects/weather/water_loop.ogg'=1)
|
||||
mid_length = 6 SECONDS
|
||||
volume = 10
|
||||
volume_chan = VOLUME_CHANNEL_AMBIENCE
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/datum/looping_sound/lava
|
||||
mid_sounds = list(
|
||||
'sound/effects/lava/lava_mid1.ogg'=1,
|
||||
'sound/effects/lava/lava_mid2.ogg'=1,
|
||||
'sound/effects/lava/lava_mid3.ogg'=1,
|
||||
'sound/effects/lava/lava_mid4.ogg'=1,
|
||||
'sound/effects/lava/lava_mid5.ogg'=1
|
||||
)
|
||||
mid_length = 9 SECONDS
|
||||
volume = 40
|
||||
volume_chan = VOLUME_CHANNEL_AMBIENCE
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -1,5 +1,6 @@
|
||||
/datum/looping_sound/weather
|
||||
pref_check = /datum/client_preference/weather_sounds
|
||||
volume_chan = VOLUME_CHANNEL_WEATHER // CHOMPEdit - Weather Volume Channel
|
||||
|
||||
/datum/looping_sound/weather/outside_blizzard
|
||||
mid_sounds = list(
|
||||
@@ -71,28 +72,40 @@
|
||||
/datum/looping_sound/weather/wind/gentle/indoors
|
||||
volume = 5
|
||||
|
||||
// CHOMPEdit Start: Replace Rain sounds with something not-garbage.
|
||||
/datum/looping_sound/weather/rain
|
||||
mid_sounds = list(
|
||||
'sound/effects/weather/acidrain_mid.ogg' = 1
|
||||
'sound/effects/weather/rain/rain_new_1.ogg' = 1,
|
||||
'sound/effects/weather/rain/rain_new_2.ogg' = 1
|
||||
)
|
||||
mid_length = 15 SECONDS
|
||||
start_sound = 'sound/effects/weather/acidrain_start.ogg'
|
||||
start_length = 13 SECONDS
|
||||
end_sound = 'sound/effects/weather/acidrain_end.ogg'
|
||||
volume = 20
|
||||
|
||||
/datum/looping_sound/weather/rain/heavy
|
||||
volume = 40
|
||||
mid_length = 3 SECONDS
|
||||
start_sound = 'sound/effects/weather/rain/start_rain.ogg'
|
||||
start_length = 3 SECONDS
|
||||
end_sound = 'sound/effects/weather/rain/end_rain.ogg'
|
||||
volume = 50
|
||||
|
||||
// CHOMPEdit End: Replace Rain sounds with something not-garbage.
|
||||
/datum/looping_sound/weather/rain/indoors
|
||||
volume = 20
|
||||
|
||||
// CHOMPEdit Start: Proper storm sounds!
|
||||
/datum/looping_sound/weather/storm
|
||||
mid_sounds = list(
|
||||
'sound/effects/weather/indoorrain_mid.ogg' = 1
|
||||
'sound/effects/weather/storm/storm_loop.ogg' = 1
|
||||
)
|
||||
mid_length = 15 SECONDS
|
||||
start_sound = 'sound/effects/weather/indoorrain_start.ogg'
|
||||
start_length = 13 SECONDS
|
||||
end_sound = 'sound/effects/weather/indoorrain_end.ogg'
|
||||
volume = 20 //Sound is already quieter in file
|
||||
mid_length = 3 SECONDS
|
||||
start_sound = list(
|
||||
'sound/effects/weather/storm/storm_start1.ogg' = 1,
|
||||
'sound/effects/weather/storm/storm_start2.ogg' = 1
|
||||
)
|
||||
start_length = 4 SECONDS
|
||||
end_sound = list(
|
||||
'sound/effects/weather/storm/storm_end1.ogg' = 1,
|
||||
'sound/effects/weather/storm/storm_end2.ogg' = 1
|
||||
)
|
||||
volume = 60
|
||||
|
||||
/datum/looping_sound/weather/rain/indoors/heavy
|
||||
volume = 40
|
||||
// CHOMPEdit End: Proper storm sounds!
|
||||
|
||||
/datum/looping_sound/weather/storm/indoors
|
||||
volume = 20
|
||||
Reference in New Issue
Block a user