Sounds, New Announcer, announce uses local reverb

This commit is contained in:
QuoteFox
2021-03-23 15:50:11 +00:00
parent 43a0ce2b0a
commit f2da13b759
35 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -34,7 +34,8 @@
if(!isnewplayer(M) && M.can_hear())
to_chat(M, announcement)
if(M.client.prefs.toggles & SOUND_ANNOUNCEMENTS)
SEND_SOUND(M, s)
// SEND_SOUND(M, s)
M.playsound_local(get_turf(M), s, 70, FALSE, pressure_affected = FALSE, use_reverb = TRUE)
/proc/print_command_report(text = "", title = null, announce=TRUE)
if(!title)
@@ -76,6 +76,8 @@
controller.onlyOpen(door)
else
controller.cycleClose(door)
playsound(src, 'sound/AI/airlock.ogg', 35, 0, -1)
else
controller.onlyClose(door)
sleep(20)
@@ -140,13 +142,16 @@
onlyClose(interiorAirlock)
if("cycle_exterior")
cycleClose(exteriorAirlock)
playsound(src, 'sound/AI/airlock.ogg', 35, 0, -1)
if("cycle_interior")
cycleClose(interiorAirlock)
playsound(src, 'sound/AI/airlock.ogg', 35, 0, -1)
if("open_exterior")
onlyOpen(exteriorAirlock)
if("open_interior")
onlyOpen(interiorAirlock)
/obj/machinery/doorButtons/airlock_controller/proc/onlyOpen(obj/machinery/door/airlock/A)
if(A)
busy = CLOSING
+2
View File
@@ -385,9 +385,11 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
if(imp?.radio.on)
if(message_mode == MODE_HEADSET)
imp.radio.talk_into(src, message, , spans, language)
playsound(src, 'sound/effects/radio_send.ogg', 35, 1, -1)
return ITALICS | REDUCE_RANGE
if(message_mode == MODE_DEPARTMENT || message_mode in GLOB.radiochannels)
imp.radio.talk_into(src, message, message_mode, spans, language)
playsound(src, 'sound/effects/radio_send.ogg', 35, 1, -1)
return ITALICS | REDUCE_RANGE
switch(message_mode)