Skip to content

Commit

Permalink
[MIRROR] sec-hailers no longer apply filters on TTS when pushed out o…
Browse files Browse the repository at this point in the history
…f the way. (#2085)

* sec-hailers no longer apply filters on TTS when pushed out of the way. (#81569)

## About The Pull Request
Previously, pushing the mask out of the way did not prevent TTS from
being filtered.

## Why It's Good For The Game
If the mask isn't in the way, it shouldn't do that. Simple as that.

* sec-hailers no longer apply filters on TTS when pushed out of the way.

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Ghom <[email protected]>
  • Loading branch information
3 people authored Feb 22, 2024
1 parent 1ed814c commit a749b34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions code/modules/clothing/masks/_masks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
strip_delay = 40
equip_delay_other = 40
var/modifies_speech = FALSE
///Whether the mask is pushed out of the food hole or not.
var/mask_adjusted = FALSE
var/adjusted_flags = null
///Did we install a filtering cloth?
Expand Down
1 change: 1 addition & 0 deletions code/modules/clothing/masks/gasmask.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ GLOBAL_LIST_INIT(clown_mask_options, list(
///Cigarette in the mask
var/obj/item/clothing/mask/cigarette/cig
voice_filter = "lowpass=f=750,volume=2"

/datum/armor/mask_gas
bio = 100

Expand Down
11 changes: 6 additions & 5 deletions code/modules/mob/living/living_say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,12 @@ GLOBAL_LIST_INIT(message_modes_stat_limits, list(
var/mob/living/carbon/human/human_speaker = src
if(istype(human_speaker.wear_mask, /obj/item/clothing/mask))
var/obj/item/clothing/mask/worn_mask = human_speaker.wear_mask
if(worn_mask.voice_override)
voice_to_use = worn_mask.voice_override
if(worn_mask.voice_filter)
filter += worn_mask.voice_filter
use_radio = worn_mask.use_radio_beeps_tts
if(!worn_mask.mask_adjusted)
if(worn_mask.voice_override)
voice_to_use = worn_mask.voice_override
if(worn_mask.voice_filter)
filter += worn_mask.voice_filter
use_radio = worn_mask.use_radio_beeps_tts
if(use_radio)
special_filter += TTS_FILTER_RADIO
if(issilicon(src))
Expand Down

0 comments on commit a749b34

Please sign in to comment.