mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #6466 from Heroman3003/boompref
Makes lightning strikes respect weather sound pref
This commit is contained in:
@@ -65,7 +65,8 @@
|
|||||||
var/sound = get_sfx("thunder")
|
var/sound = get_sfx("thunder")
|
||||||
for(var/mob/M in player_list)
|
for(var/mob/M in player_list)
|
||||||
if((P && M.z in P.expected_z_levels) || M.z == T.z)
|
if((P && M.z in P.expected_z_levels) || M.z == T.z)
|
||||||
M.playsound_local(get_turf(M), soundin = sound, vol = 70, vary = FALSE, is_global = TRUE)
|
if(M.is_preference_enabled(/datum/client_preference/weather_sounds))
|
||||||
|
M.playsound_local(get_turf(M), soundin = sound, vol = 70, vary = FALSE, is_global = TRUE)
|
||||||
|
|
||||||
if(cosmetic) // Everything beyond here involves potentially damaging things. If we don't want to do that, stop now.
|
if(cosmetic) // Everything beyond here involves potentially damaging things. If we don't want to do that, stop now.
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user