Command console messages are now actually spoken after being inputted. (#14448)

This commit is contained in:
Matt Atlas
2022-10-22 22:30:50 +02:00
committed by GitHub
parent 5417c672e9
commit 7dd823c7e5
4 changed files with 50 additions and 1 deletions

View File

@@ -172,8 +172,11 @@
if(!input || !can_still_topic())
SSnanoui.update_uis(src)
return
program.computer.listening = TRUE
usr.say(input)
program.computer.listening = FALSE
var/affected_zlevels = GetConnectedZlevels(GET_Z(program.computer))
crew_announcement.Announce(input, zlevels = affected_zlevels)
crew_announcement.Announce(program.computer.registered_message, zlevels = affected_zlevels)
set_announcement_cooldown(TRUE)
addtimer(CALLBACK(src, .proc/set_announcement_cooldown, FALSE), 600) //One minute cooldown
if("message")