Add toggle for farting noises

Add farting noises to Citadel toggles
Add channel for farting noises
Integrate fart sound effects into /proc/get_sfx
Use similar pattern to vore noises
This commit is contained in:
psq95
2023-04-14 21:38:56 +01:00
parent d35dce0925
commit eea9b8b0ef
7 changed files with 40 additions and 38 deletions
+7 -26
View File
@@ -4,36 +4,17 @@
message = " "
emote_type = EMOTE_AUDIBLE
/datum/emote/living/brap/select_message_type(mob/user)
/datum/emote/living/brap/select_message_type(var/mob/user)
return pick("farts loudly!", "cuts a fat one!", "rips absolute ass!")
/datum/emote/living/brap/run_emote(mob/living/user, params)
/datum/emote/living/brap/run_emote(var/mob/living/user, params)
if(!ishuman(user))
return FALSE
var/fartSoundChoice = rand(7)
switch(fartSoundChoice)
if(0)
playsound(user, 'GainStation13/sound/voice/brap3.ogg', 50, 1, -1)
if(1)
playsound(user, 'GainStation13/sound/voice/brap4.ogg', 50, 1, -1)
if(2)
playsound(user, 'GainStation13/sound/voice/brap2.ogg', 50, 1, -1)
if(3)
playsound(user, 'GainStation13/sound/voice/brap1.ogg', 50, 1, -1)
if(4)
playsound(user, 'GainStation13/sound/voice/brap5.ogg', 50, 1, -1)
if(5)
playsound(user, 'GainStation13/sound/voice/brap6.ogg', 50, 1, -1)
if(6)
playsound(user, 'GainStation13/sound/voice/brap7.ogg', 50, 1, -1)
if(7)
playsound(user, 'GainStation13/sound/voice/brap8.ogg', 50, 1, -1)
var/turf/source = get_turf(user)
var/sound/farting = sound(get_sfx("fart"))
for(var/mob/living/M in get_hearers_in_view(3, source))
if(M.client && M.client.prefs.cit_toggles & FARTING_NOISES)
SEND_SOUND(M, farting)
. = ..()