radio 
Vars | |
| anonymize | makes anyone who is talking through this anonymous. |
|---|---|
| broadcast_z_override | Overrides the zlevel(s) that receive the signal. |
| 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. If it's -1, it will not broadcast sound or listen. |
| channels | k:v list of channel_name -> listening state (in the form of bitflags, ie, CHANNEL_STATUS_LISTENING). This list is automatically built by recalculate_channels(). |
| 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 |
| handsfree | If true, the radio can be used even when the user is restrained. |
| independent | If true, can say/hear on the special CentCom channel. Set by encryption key! |
| keyslot | Encryption key handling |
| listening | Whether the radio is currently receiving radio messages from its radio frequencies. |
| listening_radio_channels | k:v list of channel_name -> channel frequency number AS STRING. This list is automatically built by recalculate_channels(). Any channel in this list we are actively receiving communications on. |
| on | if FALSE, broadcasting and listening dont matter and this radio shouldnt do anything |
| prison_radio | If true, the transmit wire starts cut. |
| 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 |
| 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. Set by encryption key! |
| translate_binary | If true, can hear the special binary channel. Set by encryption key! |
| unscrewed | Whether wires are accessible. Toggleable by screwdrivering. |
| use_command | If true, broadcasts will be large and BOLD. |
Procs | |
| 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_channels | Returns the channels available to the radio, for use by recalculate_channels() |
| 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 |
| recalculate_channels | Builds the channels list, and sets translate_binary/syndie/independant state |
| reset_channels | Wipes radio channel state for recalculate_channels() |
| 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 |
Var Details
anonymize 
makes anyone who is talking through this anonymous.
broadcast_z_override 
Overrides the zlevel(s) that receive the signal.
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. If it's -1, it will not broadcast sound or listen.
channels 
k:v list of channel_name -> listening state (in the form of bitflags, ie, CHANNEL_STATUS_LISTENING). This list is automatically built by recalculate_channels().
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
handsfree 
If true, the radio can be used even when the user is restrained.
independent 
If true, can say/hear on the special CentCom channel. Set by encryption key!
keyslot 
Encryption key handling
listening 
Whether the radio is currently receiving radio messages from its radio frequencies.
listening_radio_channels 
k:v list of channel_name -> channel frequency number AS STRING. This list is automatically built by recalculate_channels(). Any channel in this list we are actively receiving communications on.
on 
if FALSE, broadcasting and listening dont matter and this radio shouldnt do anything
prison_radio 
If true, the transmit wire starts cut.
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
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. Set by encryption key!
translate_binary 
If true, can hear the special binary channel. Set by encryption key!
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_channels
Returns the channels available to the radio, for use by recalculate_channels()
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
recalculate_channels
Builds the channels list, and sets translate_binary/syndie/independant state
reset_channels
Wipes radio channel state for recalculate_channels()
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
- new_broadcasting- the new value we want to set broadcasting to
- actual_setting - whether or not the radio is supposed to be broadcasting, sets should_be_broadcasting to the new value if true, otherwise just changes broadcasting
set_listening
setter for the listener var, adds or removes this radio from the global radio list if we are also on
- new_listening - the new value we want to set listening to
- actual_setting - whether or not the radio is supposed to be listening, sets should_be_listening to the new listening value if true, otherwise just changes listening
set_on
setter for the on var that sets both broadcasting and listening to off or whatever they were supposed to be