/proc/priority_announce(text, title = "", sound = 'sound/ai/attention.ogg', type) if(!text) return var/announcement if(type == "Priority") announcement += "

Priority Announcement

" if (title && length(title) > 0) announcement += "

[html_encode(title)]

" else if(type == "Captain") announcement += "

Captain Announces

" GLOB.news_network.SubmitArticle(text, "Captain's Announcement", "Station Announcements", null) else announcement += "

[command_name()] Update

" if (title && length(title) > 0) announcement += "

[html_encode(title)]

" if(title == "") GLOB.news_network.SubmitArticle(text, "Central Command Update", "Station Announcements", null) else GLOB.news_network.SubmitArticle(title + "

" + text, "Central Command", "Station Announcements", null) announcement += "
[html_encode(text)]
" announcement += "
" var/s = sound(sound) for(var/mob/M in GLOB.player_list) if(!isnewplayer(M) && M.can_hear()) to_chat(M, announcement) if(M.client.prefs.toggles & SOUND_ANNOUNCEMENTS) SEND_SOUND(M, s) /proc/print_command_report(text = "", title = null, announce=TRUE) if(!title) title = "Classified [command_name()] Update" if(announce) priority_announce("A report has been downloaded and printed out at all communications consoles.", "Incoming Classified Message", 'sound/ai/commandreport.ogg') for(var/obj/machinery/computer/communications/C in GLOB.machines) if(!(C.stat & (BROKEN|NOPOWER)) && (C.z in GLOB.station_z_levels)) var/obj/item/paper/P = new /obj/item/paper(C.loc) P.name = "paper - '[title]'" P.info = text C.messagetitle.Add("[title]") C.messagetext.Add(text) P.update_icon() /proc/minor_announce(message, title = "Attention:", alert) if(!message) return for(var/mob/M in GLOB.player_list) if(!isnewplayer(M) && M.can_hear()) to_chat(M, "[title]
[message]

") if(M.client.prefs.toggles & SOUND_ANNOUNCEMENTS) if(alert) SEND_SOUND(M, sound('sound/misc/notice1.ogg')) else SEND_SOUND(M, sound('sound/misc/notice2.ogg'))