Separates announcement noises from words.

This commit is contained in:
SabreML
2020-08-18 14:46:28 +01:00
parent 9eb9548cd8
commit 4a4c93e110
+23 -6
View File
@@ -80,17 +80,26 @@ GLOBAL_VAR_INIT(announcing_vox, 0) // Stores the time of the last announcement
<LI>Do not use punctuation as you would normally, if you want a pause you can use the full stop and comma characters by separating them with spaces, like so: 'Alpha . Test , Bravo'.</LI></UL>\
<font class='bad'>WARNING:</font><BR>Misuse of the announcement system will get you job banned.<HR>"
var/index = 0
for(var/word in GLOB.vox_sounds)
index++
dat += "<A href='?src=[UID()];say_word=[word]'>[capitalize(word)]</A>"
if(index != GLOB.vox_sounds.len)
dat += " / "
// Show alert and voice sounds separately
var/vox_words = GLOB.vox_sounds - vox_alerts
dat = help_format(vox_alerts, dat)
dat = help_format(vox_words, dat)
var/datum/browser/popup = new(src, "announce_help", "Announcement Help", 500, 400)
popup.set_content(dat)
popup.open()
/mob/living/silicon/ai/proc/help_format(word_list, dat)
var/index = 0
for(var/word in word_list)
index++
dat += "<A href='?src=[UID()];say_word=[word]'>[capitalize(word)]</A>"
if(index != length(word_list))
dat += " / "
else
dat += "<HR>"
return dat
/mob/living/silicon/ai/proc/ai_announcement()
if(check_unable(AI_CHECK_WIRELESS | AI_CHECK_RADIO))
return
@@ -183,3 +192,11 @@ GLOBAL_VAR_INIT(announcing_vox, 0) // Stores the time of the last announcement
// to_chat(src, "Downloading [file]")
var/sound/S = sound("[VOX_PATH][file]")
src << browse_rsc(S)
var/vox_alerts = list(
"bizwarn" = 'sound/vox_fem/bizwarn.ogg',
"bloop" = 'sound/vox_fem/bloop.ogg',
"buzwarn" = 'sound/vox_fem/buzwarn.ogg',
"dadeda" = 'sound/vox_fem/dadeda.ogg',
"deeoo" = 'sound/vox_fem/deeoo.ogg'
)