mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-22 20:46:55 +01:00
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:
@@ -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)
|
||||
|
||||
. = ..()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user