mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-14 09:28:26 +01:00
Sounds, New Announcer, announce uses local reverb
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user