Fixes Toggle Ambient Hum SFX Verb on Mobs (#14711)

This commit is contained in:
SleepyGemmy
2022-08-24 15:28:06 +02:00
committed by GitHub
parent 39978fe96c
commit 1404e5aa79
2 changed files with 8 additions and 4 deletions
+2 -4
View File
@@ -34,9 +34,8 @@
else
to_chat(src, SPAN_INFO("You will no longer hear ambient sounds."))
src << sound(null, repeat = 0, wait = 0, volume = 0, channel = 1) // Ambience plays on channel 1.
feedback_add_details("admin_verb", "TSFXAmbi") // If you are copy pasting this, ensure the 2nd parameter is unique to the new proc.
/client/verb/toggle_asfx_hum(var/mob/living/L)
/client/verb/toggle_asfx_hum()
set name = "Toggle Ambient Hum SFX"
set category = "Preferences"
set desc = "Toggles hearing the ambient hum sound effect"
@@ -48,8 +47,7 @@
else
to_chat(src, SPAN_INFO("You will no longer hear the ambient hum sound."))
src << sound(null, repeat = 0, wait = 0, volume = 0, channel = 2) // Ambient hum plays on channel 2.
L.client.ambient_hum_playing = FALSE
feedback_add_details("admin_verb", "TSFXHum")
ambient_hum_playing = FALSE
//
// SFX Toggles