mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Headset microphones can be turned off (#26926)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user