mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Voice Announcement System for AIs and Captains (#11548)
* Voice Announcement System * Fixes shit the linter complained about * Uses topic instead of JSON files * fixes alex's problems * use /dev/urandom on linux * GenerateToken * update the config in theory * Allow downloading sounds via Get Server Logs
This commit is contained in:
@@ -274,6 +274,10 @@
|
||||
/datum/config_entry/string/invoke_youtubedl
|
||||
protection = CONFIG_ENTRY_LOCKED | CONFIG_ENTRY_HIDDEN
|
||||
|
||||
/datum/config_entry/string/voice_announce_url_base
|
||||
|
||||
/datum/config_entry/string/voice_announce_dir
|
||||
|
||||
/datum/config_entry/flag/show_irc_name
|
||||
|
||||
/datum/config_entry/flag/see_own_notes //Can players see their own admin notes
|
||||
|
||||
@@ -7,6 +7,7 @@ SUBSYSTEM_DEF(communications)
|
||||
|
||||
var/silicon_message_cooldown
|
||||
var/nonsilicon_message_cooldown
|
||||
var/last_voice_announce_open = 0
|
||||
|
||||
/datum/controller/subsystem/communications/proc/can_announce(mob/living/user, is_silicon)
|
||||
if(is_silicon && silicon_message_cooldown > world.time)
|
||||
|
||||
Reference in New Issue
Block a user