mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Adds the "speaker name" port to the voice activator circuit component (#61602)
Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
co-authored by
Watermelon914
parent
3e43e7321f
commit
a80026018a
@@ -11,7 +11,9 @@
|
||||
var/datum/port/output/message_port
|
||||
/// The language heard
|
||||
var/datum/port/output/language_port
|
||||
/// The speaker
|
||||
/// The speaker name port, usually the name of the person who spoke.
|
||||
var/datum/port/output/speaker_name
|
||||
/// The speaker entity that is currently speaking. Not necessarily the person who is speaking.
|
||||
var/datum/port/output/speaker_port
|
||||
/// The trigger sent when this event occurs
|
||||
var/datum/port/output/trigger_port
|
||||
@@ -20,6 +22,7 @@
|
||||
message_port = add_output_port("Message", PORT_TYPE_STRING)
|
||||
language_port = add_output_port("Language", PORT_TYPE_STRING)
|
||||
speaker_port = add_output_port("Speaker", PORT_TYPE_ATOM)
|
||||
speaker_name = add_output_port("Speaker Name", PORT_TYPE_STRING)
|
||||
trigger_port = add_output_port("Triggered", PORT_TYPE_SIGNAL)
|
||||
become_hearing_sensitive(ROUNDSTART_TRAIT)
|
||||
|
||||
@@ -31,4 +34,5 @@
|
||||
if(message_language)
|
||||
language_port.set_output(initial(message_language.name))
|
||||
speaker_port.set_output(speaker)
|
||||
speaker_name.set_output(speaker.GetVoice())
|
||||
trigger_port.set_output(COMPONENT_SIGNAL)
|
||||
|
||||
Reference in New Issue
Block a user