-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes headset sounds not insane (WHY DO THEY HAVE A RANGE OF 17 TI:LE…
…S?) (#215) * the 17 tile range is insane * makes that use a define
- Loading branch information
1 parent
5188125
commit 60bd067
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
. = ..() |