Tweak bluespace backpack radio

This commit is contained in:
Aronai Sieyes
2020-04-25 18:40:32 -04:00
parent d9b837dab1
commit 7a3b4fe041
3 changed files with 9 additions and 18 deletions

View File

@@ -125,7 +125,7 @@ var/const/EXP_FREQ = 1361
var/const/MED_I_FREQ = 1485 var/const/MED_I_FREQ = 1485
var/const/SEC_I_FREQ = 1475 var/const/SEC_I_FREQ = 1475
var/const/TALON_FREQ = 1481 //VOREStation Add var/const/TALON_FREQ = 1363 //VOREStation Add
var/list/radiochannels = list( var/list/radiochannels = list(
"Common" = PUB_FREQ, "Common" = PUB_FREQ,

View File

@@ -355,7 +355,7 @@ var/message_delay = 0 // To make sure restarting the recentmessages list is kept
for(var/obj/item/device/radio/R in forced_radios) for(var/obj/item/device/radio/R in forced_radios)
//Cursory check to ensure they are 'on' and stuff //Cursory check to ensure they are 'on' and stuff
if(R.receive_range(display_freq, list(0))) if(R.receive_range(display_freq, list(0)) > -1)
radios |= R radios |= R
// --- Broadcast only to intercom devices --- // --- Broadcast only to intercom devices ---

View File

@@ -132,22 +132,13 @@
return -1 return -1
if(!listening) if(!listening)
return -1 return -1
if(is_jammed(src)) if(!on)
return -1 return -1
if (!on) if(!freq)
return -1 return -1
if (!freq) //recieved on main frequency
if (!listening)
return -1
else
var/accept = (freq==frequency && listening)
if (!accept)
for (var/ch_name in channels)
var/datum/radio_frequency/RF = secure_radio_connections[ch_name]
if (RF && RF.frequency==freq && (channels[ch_name]&FREQ_LISTENING))
accept = 1
break
if (!accept)
return -1
return canhear_range //Only listen on main freq
if(freq == frequency)
return canhear_range
else
return -1