Headset microphones can be turned off (#26926)

This commit is contained in:
DamianX
2020-06-24 21:07:20 +02:00
committed by GitHub
parent 2604dfb6a1
commit ba0e416d28
2 changed files with 8 additions and 3 deletions

View File

@@ -9,7 +9,8 @@
melt_temperature = MELTPOINT_PLASTIC
subspace_transmission = 1
canhear_range = 0 // can't hear headsets from very far away
flags = FPRINT // No HEAR. Headsets should only work when being used explicitly.
broadcasting = TRUE
slot_flags = SLOT_EARS
var/translate_binary = 0
var/translate_hive = 0
@@ -30,6 +31,11 @@
recalculateChannels()
return ..()
/obj/item/device/radio/headset/talk_into(datum/speech/speech_orig, channel=null)
if(!broadcasting)
return
return ..()
/obj/item/device/radio/headset/receive_range(freq, level)
if(ishuman(src.loc))
var/mob/living/carbon/human/H = src.loc