mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
Lowers the sound and makes it respect prefs (#5161)
This commit is contained in:
@@ -71,6 +71,8 @@
|
||||
var/dist = get_dist(M.loc, distant_source.loc)
|
||||
var/vol = clamp(50-((dist-7)*5), 10, 50) //Every tile decreases sound volume by 5
|
||||
if(takeoff)
|
||||
M.playsound_local(distant_source, takeoff_sound, vol)
|
||||
if(M.client.prefs.toggles & SOUND_SHIP_AMBIENCE)
|
||||
M.playsound_local(distant_source, takeoff_sound, vol)
|
||||
else
|
||||
M.playsound_local(distant_source, landing_sound, vol)
|
||||
if(M.client.prefs.toggles & SOUND_SHIP_AMBIENCE)
|
||||
M.playsound_local(distant_source, landing_sound, vol)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user