mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-07-13 17:16:11 +01:00
7c8bb85de3
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commit afbdd1d8442973f5d570c30920d9d865b5acd479. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commit de22ad375d3ee4d5930c550da2fd23a29a86e616. * Attempt to normalize example.yml (and another file I guess) * Try again
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
// A fluff structure for certain PoIs involving communications.
|
|
// It makes audible sounds, generally in morse code.
|
|
/obj/structure/prop/transmitter
|
|
name = "transmitter"
|
|
desc = "A machine that appears to be transmitting a message somewhere else. It sounds like it's on a loop."
|
|
icon = 'icons/obj/stationobjs.dmi'
|
|
icon_state = "sensors"
|
|
var/datum/looping_sound/sequence/morse/soundloop
|
|
var/message_to_play = "The quick brown fox jumps over the lazy dog."
|
|
|
|
/obj/structure/prop/transmitter/Initialize()
|
|
soundloop = new(list(src), FALSE)
|
|
set_new_message(message_to_play)
|
|
soundloop.start()
|
|
interaction_message = "On the monitor it displays '[uppertext(message_to_play)]'."
|
|
return ..()
|
|
|
|
/obj/structure/prop/transmitter/Destroy()
|
|
QDEL_NULL(soundloop)
|
|
return ..()
|
|
|
|
/obj/structure/prop/transmitter/vv_edit_var(var_name, var_value)
|
|
if(var_name == "message_to_play")
|
|
set_new_message(var_value)
|
|
return ..()
|
|
|
|
/obj/structure/prop/transmitter/proc/set_new_message(new_message)
|
|
soundloop.set_new_sequence(new_message)
|
|
interaction_message = "On the monitor it displays '[uppertext(new_message)]'."
|