mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-13 11:24:34 +00:00
21 lines
470 B
Plaintext
21 lines
470 B
Plaintext
/**
|
|
* # Speech Relay preset
|
|
*
|
|
* Acts like poly. Says whatever it hears.
|
|
*/
|
|
/obj/item/integrated_circuit/loaded/speech_relay
|
|
|
|
/obj/item/integrated_circuit/loaded/speech_relay/Initialize()
|
|
. = ..()
|
|
var/obj/item/circuit_component/hear/hear = new()
|
|
add_component(hear)
|
|
hear.rel_x = 100
|
|
hear.rel_y = 200
|
|
|
|
var/obj/item/circuit_component/speech/speech = new()
|
|
add_component(speech)
|
|
speech.rel_x = 400
|
|
speech.rel_y = 200
|
|
|
|
speech.message.connect(hear.message_port)
|