Skip to content

Commit

Permalink
Makes headset sounds not insane (WHY DO THEY HAVE A RANGE OF 17 TI:LE…
Browse files Browse the repository at this point in the history
…S?) (#215)

* the 17 tile range is insane

* makes that use a define
  • Loading branch information
Paxilmaniac authored and Iajret committed Jan 3, 2024
1 parent 5188125 commit 60bd067
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modular_nova/modules/radiosound/code/headset.dm
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
/obj/item/radio/headset
/// The sound that plays when someone uses the headset
var/radiosound = 'modular_nova/modules/radiosound/sound/radio/common.ogg'
/// The volume of the radio sound we make
var/radio_sound_volume = 25

/obj/item/radio/headset/syndicate //disguised to look like a normal headset for stealth ops
radiosound = 'modular_nova/modules/radiosound/sound/radio/syndie.ogg'

/obj/item/radio/headset/headset_sec
radiosound = 'modular_nova/modules/radiosound/sound/radio/security.ogg'

/obj/item/radio/headset/talk_into(mob/living/M, message, channel, list/spans, datum/language/language, list/message_mods, direct = TRUE)
/obj/item/radio/headset/talk_into(mob/living/mob_in_question, message, channel, list/spans, datum/language/language, list/message_mods, direct = TRUE)
if(radiosound && listening)
playsound(M, radiosound, rand(20, 30), 0, 0, SOUND_FALLOFF_EXPONENT)
playsound(mob_in_question, radiosound, radio_sound_volume, TRUE, SHORT_RANGE_SOUND_EXTRARANGE, SOUND_FALLOFF_EXPONENT)
. = ..()

0 comments on commit 60bd067

Please sign in to comment.