/tg/ Station 13 - Modules - TypesVar Details - Proc Details

radio

Vars

anonymizemakes anyone who is talking through this anonymous.
broadcastingWhether the radio will transmit dialogue it hears nearby into its radio channel.
canhear_rangeBoth the range around the radio in which mobs can hear what it receives and the range the radio can hear
channelsassociative list of the encrypted radio channels this radio is currently set to listen/broadcast to, of the form: list(channel name = TRUE or FALSE)
commandIf true, use_command can be toggled at will.
empedTracks the number of EMPs currently stacked.
freerangeIf true, the radio has access to the full spectrum.
freqlockFrequency lock to stop the user from untuning specialist radios.
frequencythe "default" radio frequency this radio is set to, listens and transmits to this frequency by default. wont work if the channel is encrypted
independentIf true, can say/hear on the special CentCom channel.
keyslotEncryption key handling
listeningWhether the radio is currently receiving radio messages from its radio frequencies.
onif FALSE, broadcasting and listening dont matter and this radio shouldnt do anything
overlay_mic_activeoverlay when speaking a message (is displayed simultaniously with speaker_active)
overlay_mic_idleoverlay when mic is on
overlay_speaker_activeoverlay when recieving a message
overlay_speaker_idleoverlay when speaker is on
perform_update_iconWhen set to FALSE, will avoid calling update_icon() in set_broadcasting and co. Used to save time on updating icon several times over initialization.
secure_radio_connectionsassociative list of the encrypted radio channels this radio can listen/broadcast to, of the form: list(channel name = channel frequency)
should_be_broadcastingused for tracking what broadcasting should be in the absence of things forcing it off, eg its set to broadcast but gets emp'd temporarily
should_be_listeningused for tracking what listening should be in the absence of things forcing it off, eg its set to listen but gets emp'd temporarily
should_update_iconIf TRUE, will set the icon in initializations.
subspace_switchableIf true, subspace_transmission can be toggled at will.
subspace_transmissionIf true, the radio transmits and receives on subspace exclusively.
syndieIf true, hears all well-known channels automatically, and can say/hear on the Syndicate channel. Also protects from radio jammers.
translate_binaryIf true, can hear the special binary channel.
unscrewedWhether wires are accessible. Toggleable by screwdrivering.
use_commandIf true, broadcasts will be large and BOLD.

Procs

can_receiveChecks if this radio can receive on the given frequency.
get_broadcastingsimple getter for the broadcasting variable. necessary due to VAR_PROTECTED
get_frequencysimple getter for the frequency variable. necessary due to VAR_PROTECTED
get_listeningsimple getter for the listening variable. necessary due to VAR_PROTECTED
is_onsimple getter for the on variable. necessary due to VAR_PROTECTED
readd_listening_radio_channelsgoes through all radio channels we should be listening for and readds them to the global list
set_broadcastingsetter for broadcasting that makes us not hearing sensitive if not broadcasting and hearing sensitive if broadcasting hearing sensitive in this case only matters for the purposes of listening for words said in nearby tiles, talking into us directly bypasses hearing
set_listeningsetter for the listener var, adds or removes this radio from the global radio list if we are also on
set_onsetter for the on var that sets both broadcasting and listening to off or whatever they were supposed to be
talk_into_implHandles talking into the radio

Var Details

anonymize

makes anyone who is talking through this anonymous.

broadcasting

Whether the radio will transmit dialogue it hears nearby into its radio channel.

canhear_range

Both the range around the radio in which mobs can hear what it receives and the range the radio can hear

channels

associative list of the encrypted radio channels this radio is currently set to listen/broadcast to, of the form: list(channel name = TRUE or FALSE)

command

If true, use_command can be toggled at will.

emped

Tracks the number of EMPs currently stacked.

freerange

If true, the radio has access to the full spectrum.

freqlock

Frequency lock to stop the user from untuning specialist radios.

frequency

the "default" radio frequency this radio is set to, listens and transmits to this frequency by default. wont work if the channel is encrypted

independent

If true, can say/hear on the special CentCom channel.

keyslot

Encryption key handling

listening

Whether the radio is currently receiving radio messages from its radio frequencies.

on

if FALSE, broadcasting and listening dont matter and this radio shouldnt do anything

overlay_mic_active

overlay when speaking a message (is displayed simultaniously with speaker_active)

overlay_mic_idle

overlay when mic is on

overlay_speaker_active

overlay when recieving a message

overlay_speaker_idle

overlay when speaker is on

perform_update_icon

When set to FALSE, will avoid calling update_icon() in set_broadcasting and co. Used to save time on updating icon several times over initialization.

secure_radio_connections

associative list of the encrypted radio channels this radio can listen/broadcast to, of the form: list(channel name = channel frequency)

should_be_broadcasting

used for tracking what broadcasting should be in the absence of things forcing it off, eg its set to broadcast but gets emp'd temporarily

should_be_listening

used for tracking what listening should be in the absence of things forcing it off, eg its set to listen but gets emp'd temporarily

should_update_icon

If TRUE, will set the icon in initializations.

subspace_switchable

If true, subspace_transmission can be toggled at will.

subspace_transmission

If true, the radio transmits and receives on subspace exclusively.

syndie

If true, hears all well-known channels automatically, and can say/hear on the Syndicate channel. Also protects from radio jammers.

translate_binary

If true, can hear the special binary channel.

unscrewed

Whether wires are accessible. Toggleable by screwdrivering.

use_command

If true, broadcasts will be large and BOLD.

Proc Details

can_receive

Checks if this radio can receive on the given frequency.

get_broadcasting

simple getter for the broadcasting variable. necessary due to VAR_PROTECTED

get_frequency

simple getter for the frequency variable. necessary due to VAR_PROTECTED

get_listening

simple getter for the listening variable. necessary due to VAR_PROTECTED

is_on

simple getter for the on variable. necessary due to VAR_PROTECTED

readd_listening_radio_channels

goes through all radio channels we should be listening for and readds them to the global list

set_broadcasting

setter for broadcasting that makes us not hearing sensitive if not broadcasting and hearing sensitive if broadcasting hearing sensitive in this case only matters for the purposes of listening for words said in nearby tiles, talking into us directly bypasses hearing

set_listening

setter for the listener var, adds or removes this radio from the global radio list if we are also on

set_on

setter for the on var that sets both broadcasting and listening to off or whatever they were supposed to be

talk_into_impl

Handles talking into the radio

Unlike most speech related procs, spans and message_mods are not guaranteed to be lists