Voice Preferences

Added different voices and voice preferences to character customization. Already implemented voices are human, roach and lizard
This commit is contained in:
Alphas00
2024-06-19 10:48:56 +02:00
parent e51f547c87
commit 11182eeed4
15 changed files with 31 additions and 14 deletions
+3 -1
View File
@@ -72,7 +72,9 @@ proc/get_top_level_mob(var/mob/S)
if(M.stat == DEAD && M.client && (M.client?.prefs?.chat_toggles & CHAT_GHOSTSIGHT) && !(M in viewers(T, null)))
M.show_message(message)
playsound(usr.loc, 'GainStation13/sound/voice/voices/speak_1.ogg', 90, 10)
if(ishuman(usr))
var/mob/living/carbon/human/H = usr
playsound(usr.loc, "GainStation13/sound/voice/voices/[H.voice].ogg", 90, 10)
if(emote_type == EMOTE_AUDIBLE)
user.audible_message(message=message,hearing_distance=1)