Space Station 13 - Modules - TypesVar Details - Proc Details

radio

Vars

broadcastingWhether the radio will transmit dialogue it hears nearby into its radio channel.
canhear_rangethe range which mobs can hear this radio from
channelssee communications.dm for full list. First channes is a "default" for :h
disable_timerHow many times this is disabled by EMPs
freerangeWhether the radio can be re-tuned to restricted channels it has no key for
freqlockWhether the radio is able to have its primary frequency changed. Used for radios with weird primary frequencies, like DS, syndi, etc
frequencythe "default" radio frequency this radio is set to, listens and transmits to this frequency by default. wont work if the channel is encrypted
has_loudspeakerWhether loudspeaker can be toggled by the user
listeningWhether the radio is currently receiving radio messages from its radio frequencies.
loudspeakerWhether the radio broadcasts to everyone within a few tiles, or not
onif FALSE, broadcasting and listening dont matter and this radio shouldnt do anything
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
syndiekeyHolder for the syndicate encryption key if present
traitor_frequencytune to frequency to unlock traitor supplies

Procs

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
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

Var Details

broadcasting

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

canhear_range

the range which mobs can hear this radio from

channels

see communications.dm for full list. First channes is a "default" for :h

disable_timer

How many times this is disabled by EMPs

freerange

Whether the radio can be re-tuned to restricted channels it has no key for

freqlock

Whether the radio is able to have its primary frequency changed. Used for radios with weird primary frequencies, like DS, syndi, etc

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

has_loudspeaker

Whether loudspeaker can be toggled by the user

listening

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

loudspeaker

Whether the radio broadcasts to everyone within a few tiles, or not

on

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

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

syndiekey

Holder for the syndicate encryption key if present

traitor_frequency

tune to frequency to unlock traitor supplies

Proc Details

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

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