radio 
Vars | |
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 |
Procs | |
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 |
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
- 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