Merge pull request #93 from surftheseawing/noises

Add toggle for burping noises
This commit is contained in:
GDLW
2023-04-16 19:06:04 +02:00
committed by GitHub
11 changed files with 141 additions and 120 deletions
+32
View File
@@ -0,0 +1,32 @@
/proc/gs13_get_sfx(soundin)
if(istext(soundin))
switch(soundin)
if("belch")
soundin = pick( 'GainStation13/sound/voice/belch1.ogg',
'GainStation13/sound/voice/belch2.ogg',
'GainStation13/sound/voice/belch3.ogg',
'GainStation13/sound/voice/belch4.ogg',
'GainStation13/sound/voice/belch5.ogg',
'GainStation13/sound/voice/belch6.ogg')
if("brap")
soundin = pick( 'GainStation13/sound/voice/brap1.ogg',
'GainStation13/sound/voice/brap2.ogg',
'GainStation13/sound/voice/brap3.ogg',
'GainStation13/sound/voice/brap4.ogg',
'GainStation13/sound/voice/brap5.ogg',
'GainStation13/sound/voice/brap6.ogg',
'GainStation13/sound/voice/brap7.ogg',
'GainStation13/sound/voice/brap8.ogg')
if("burp")
soundin = pick( 'GainStation13/sound/voice/burp1.ogg')
if("burunyu")
soundin = pick( 'GainStation13/sound/voice/funnycat.ogg')
if("fart")
soundin = pick( 'GainStation13/sound/voice/fart1.ogg',
'GainStation13/sound/voice/fart2.ogg',
'GainStation13/sound/voice/fart3.ogg',
'GainStation13/sound/voice/fart4.ogg')
if("gurgle")
soundin = pick( 'GainStation13/sound/voice/gurgle1.ogg',
'GainStation13/sound/voice/gurgle2.ogg')
return soundin
@@ -1,20 +0,0 @@
/datum/emote/living/brap
key = "brap"
key_third_person = "braps"
message = " "
emote_type = EMOTE_AUDIBLE
/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(var/mob/living/user, params)
if(!ishuman(user))
return FALSE
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)
. = ..()
+76 -67
View File
@@ -1,3 +1,74 @@
/datum/emote/living/proc/make_noise(var/mob/living/user, noise_name, pref_toggle)
if(!ishuman(user))
return FALSE
var/turf/source = get_turf(user)
var/sound/noise = sound(gs13_get_sfx(noise_name))
for(var/mob/living/M in get_hearers_in_view(3, source))
if ((pref_toggle == 0) || (M.client && M.client.prefs.cit_toggles & pref_toggle))
SEND_SOUND(M, noise)
/datum/emote/living/belch
key = "belch"
key_third_person = "belches loudly"
message = "belches"
emote_type = EMOTE_AUDIBLE
//god hates me for this -Metha
/datum/emote/living/belch/run_emote(mob/living/user, params)
if(!ishuman(user))
return FALSE
make_noise(user, "belch", BURPING_NOISES)
. = ..()
/datum/emote/living/brap
key = "brap"
key_third_person = "braps"
message = " "
emote_type = EMOTE_AUDIBLE
/datum/emote/living/brap/select_message_type(var/mob/living/user)
return pick("farts loudly!", "cuts a fat one!", "rips absolute ass!")
/datum/emote/living/brap/run_emote(var/mob/living/user, params)
if(!ishuman(user))
return FALSE
make_noise(user, "brap", FARTING_NOISES)
. = ..()
/datum/emote/living/burp
key = "burp"
key_third_person = "burps"
message = "burps."
emote_type = EMOTE_AUDIBLE
/datum/emote/living/burp/run_emote(mob/living/user, params)
if(!ishuman(user))
return FALSE
make_noise(user, "burp", BURPING_NOISES)
. = ..()
/datum/emote/living/fart
key = "fart"
key_third_person = "farts"
message = "farts"
emote_type = EMOTE_AUDIBLE
//god hates me for this -Metha
/datum/emote/living/fart/run_emote(mob/living/user, params)
if(!ishuman(user))
return FALSE
make_noise(user, "fart", FARTING_NOISES)
. = ..()
/datum/emote/living/gurgle
key = "gurgle"
key_third_person = "gurgles"
@@ -8,46 +79,10 @@
if(!ishuman(user))
return FALSE
if(prob(50))
playsound(user, 'GainStation13/sound/voice/gurgle1.ogg', 50, 1, -1)
else
playsound(user, 'GainStation13/sound/voice/gurgle2.ogg', 50, 1, -1)
make_noise(user, "gurgle", 0)
. = ..()
/datum/emote/living/burp/run_emote(mob/living/user, params)
if(!ishuman(user))
return FALSE
playsound(user, 'GainStation13/sound/voice/burp1.ogg', 50, 1, -1)
. = ..()
/datum/emote/living/fart
key = "fart"
key_third_person = "farts"
message = "farts"
emote_type = EMOTE_AUDIBLE
//god hates me for this -Metha
/datum/emote/living/fart/run_emote(mob/living/user, params)
if(!ishuman(user))
return FALSE
var/fartSoundChoice = rand(3)
switch(fartSoundChoice)
if (0)
playsound(user, 'GainStation13/sound/voice/fart3.ogg', 50, 1, -1)
if (1)
playsound(user, 'GainStation13/sound/voice/fart4.ogg', 50, 1, -1)
if (2)
playsound(user, 'GainStation13/sound/voice/fart2.ogg', 50, 1, -1)
if (3)
playsound(user, 'GainStation13/sound/voice/fart1.ogg', 50, 1, -1)
. = ..()
//Shhh... It's a secret! Don't tell or I'll steal your legs
/datum/emote/living/burunyu
key = "burunyu"
@@ -56,35 +91,9 @@
emote_type = EMOTE_AUDIBLE
/datum/emote/living/burunyu/run_emote(mob/living/user, params)
playsound(user, 'GainStation13/sound/voice/funnycat.ogg', 50, 1, -1)
. = ..()
/datum/emote/living/belch
key = "belch"
key_third_person = "belches loudly"
message = "belches"
emote_type = EMOTE_AUDIBLE
//god hates me for this -Metha
/datum/emote/living/belch/run_emote(mob/living/user, params)
if(!ishuman(user))
return FALSE
var/fartSoundChoice = rand(5)
switch(fartSoundChoice)
if(0)
playsound(user, 'GainStation13/sound/voice/belch3.ogg', 50, 1, -1)
if(1)
playsound(user, 'GainStation13/sound/voice/belch4.ogg', 50, 1, -1)
if(2)
playsound(user, 'GainStation13/sound/voice/belch2.ogg', 50, 1, -1)
if(3)
playsound(user, 'GainStation13/sound/voice/belch1.ogg', 50, 1, -1)
if(4)
playsound(user, 'GainStation13/sound/voice/belch5.ogg', 50, 1, -1)
if(5)
playsound(user, 'GainStation13/sound/voice/belch6.ogg', 50, 1, -1)
return FALSE
. = ..()
make_noise(user, "burunyu", 0)
. = ..()
+6 -4
View File
@@ -129,13 +129,15 @@
//Citadel toggles because bitflag memes
#define MEDIHOUND_SLEEPER (1<<0)
#define EATING_NOISES (1<<1)
#define DIGESTION_NOISES (1<<2)
#define TRASH_FORCEFEED (1<<3)
#define EATING_NOISES (1<<1) //Vore
#define DIGESTION_NOISES (1<<2) //Vore
#define TRASH_FORCEFEED (1<<3) //GS13
#define FARTING_NOISES (1<<4) //GS13
#define BURPING_NOISES (1<<5) //GS13
//toggles on by default
#define TOGGLES_CITADEL (EATING_NOISES|DIGESTION_NOISES|FARTING_NOISES)
#define TOGGLES_CITADEL (EATING_NOISES|DIGESTION_NOISES|FARTING_NOISES|BURPING_NOISES)
//component stuff
#define COMSIG_COMBAT_TOGGLED "combatmode_toggled" //called by combat mode toggle on all equipped items. args: (mob/user, combatmode)
+3 -2
View File
@@ -19,11 +19,12 @@
#define CHANNEL_REACTOR_ALERT 1007 // reactor sounds
//GS13 Channels
#define CHANNEL_BRAP 1006
#define CHANNEL_BURP 1006
#define CHANNEL_FART 1005
//THIS SHOULD ALWAYS BE THE LOWEST ONE!
//KEEP IT UPDATED
#define CHANNEL_HIGHEST_AVAILABLE 1005
#define CHANNEL_HIGHEST_AVAILABLE 1004
#define SOUND_MINIMUM_PRESSURE 10
#define FALLOFF_SOUNDS 1
-9
View File
@@ -227,13 +227,4 @@
if("slosh")
soundin = pick('sound/effects/slosh1.ogg', 'sound/effects/slosh2.ogg')
//END OF CIT CHANGES
if("fart") //GS13
soundin = pick( 'GainStation13/sound/voice/brap1.ogg',
'GainStation13/sound/voice/brap2.ogg',
'GainStation13/sound/voice/brap3.ogg',
'GainStation13/sound/voice/brap4.ogg',
'GainStation13/sound/voice/brap5.ogg',
'GainStation13/sound/voice/brap6.ogg',
'GainStation13/sound/voice/brap7.ogg',
'GainStation13/sound/voice/brap8.ogg')
return soundin
+7 -3
View File
@@ -1021,16 +1021,18 @@ GLOBAL_LIST_EMPTY(preferences_datums)
dat += "<b>Exhibitionist:</b><a href='?_src_=prefs;preference=exhibitionist'>[features["exhibitionist"] == TRUE ? "Yes" : "No"]</a><BR>"
dat += "<b>Hear Vore Sounds:</b> <a href='?_src_=prefs;preference=toggleeatingnoise'>[(cit_toggles & EATING_NOISES) ? "Yes" : "No"]</a><br>"
dat += "<b>Hear Vore Digestion Sounds:</b> <a href='?_src_=prefs;preference=toggledigestionnoise'>[(cit_toggles & DIGESTION_NOISES) ? "Yes" : "No"]</a><br>"
dat += "<b>Hear Fart Sounds:</b> <a href='?_src_=prefs;preference=togglefartingnoise'>[(cit_toggles & FARTING_NOISES) ? "Yes" : "No"]</a><br>"
dat += "<b>Allow trash forcefeeding (requires Trashcan quirk)</b> <a href='?_src_=prefs;preference=toggleforcefeedtrash'>[(cit_toggles & TRASH_FORCEFEED) ? "Yes" : "No"]</a><br>"
dat += "<b>Lewdchem:</b><a href='?_src_=prefs;preference=lewdchem'>[lewdchem == TRUE ? "Enabled" : "Disabled"]</a><BR>"
dat += "<b>Widescreen:</b> <a href='?_src_=prefs;preference=widescreenpref'>[widescreenpref ? "Enabled ([CONFIG_GET(string/default_view)])" : "Disabled (15x15)"]</a><br>"
dat += "<b>Auto stand:</b> <a href='?_src_=prefs;preference=autostand'>[autostand ? "Enabled" : "Disabled"]</a><br>"
dat += "<b>Screen Shake:</b> <a href='?_src_=prefs;preference=screenshake'>[(screenshake==100) ? "Full" : ((screenshake==0) ? "None" : "[screenshake]")]</a><br>"
if (user && user.client && !user.client.prefs.screenshake==0)
dat += "<b>Damage Screen Shake:</b> <a href='?_src_=prefs;preference=damagescreenshake'>[(damagescreenshake==1) ? "On" : ((damagescreenshake==0) ? "Off" : "Only when down")]</a><br>"
//GS13 stuff goes here
//GS13
dat += "<h2>GS13 Preferences</h2>"
dat += "<b>Hear Burp Sounds:</b> <a href='?_src_=prefs;preference=toggleburpingnoise'>[(cit_toggles & BURPING_NOISES) ? "Yes" : "No"]</a><br>"
dat += "<b>Hear Fart Sounds:</b> <a href='?_src_=prefs;preference=togglefartingnoise'>[(cit_toggles & FARTING_NOISES) ? "Yes" : "No"]</a><br>"
dat += "<b>Trashcan Forcefeeding:</b> <a href='?_src_=prefs;preference=toggleforcefeedtrash'>[(cit_toggles & TRASH_FORCEFEED) ? "Yes" : "No"]</a><br>"
dat += "<b>Maximum Weight:</b><a href='?_src_=prefs;preference=max_fatness'>[max_weight == FALSE ? "None" : max_weight]</a><BR>"
dat += "<b>NonCon - Weight Gain:</b><a href='?_src_=prefs;preference=noncon_weight_gain'>[noncon_weight_gain == TRUE ? "Enabled" : "Disabled"]</a><BR>"
@@ -2804,6 +2806,8 @@ GLOBAL_LIST_EMPTY(preferences_datums)
cit_toggles ^= DIGESTION_NOISES
if("toggleforcefeedtrash") //GS13
cit_toggles ^= TRASH_FORCEFEED
if("toggleburpingnoise") //GS13
cit_toggles ^= BURPING_NOISES
if("togglefartingnoise") //GS13
cit_toggles ^= FARTING_NOISES
//END CITADEL EDIT
-12
View File
@@ -16,18 +16,6 @@
message_param = "bows to %t."
restraint_check = TRUE
/datum/emote/living/burp
key = "burp"
key_third_person = "burps"
message = "burps."
emote_type = EMOTE_AUDIBLE
/datum/emote/living/belch
key = "belch"
key_third_person = "belches loudly"
message = "belches."
emote_type = EMOTE_AUDIBLE
/datum/emote/living/choke
key = "choke"
key_third_person = "chokes"
@@ -19,10 +19,13 @@
var/lewdchem = TRUE
//vore prefs
var/hound_sleeper = TRUE
var/toggleeatingnoise = TRUE
var/toggledigestionnoise = TRUE
//GS13
var/toggleburpingnoise = TRUE
var/togglefartingnoise = TRUE
var/hound_sleeper = TRUE
//default toggles
var/cit_toggles = TOGGLES_CITADEL
//Hyper prefs
@@ -20,13 +20,24 @@ TOGGLE_CHECKBOX(/datum/verbs/menu/Settings/Sound, toggledigestionnoise)()
/datum/verbs/menu/Settings/Sound/toggledigestionnoise/Get_checked(client/C)
return C.prefs.cit_toggles & DIGESTION_NOISES
TOGGLE_CHECKBOX(/datum/verbs/menu/Settings/Sound, toggleburpingnoise)()
set name = "Toggle Burping Noises"
set category = "Preferences"
set desc = "Hear Burping noises"
usr.client.prefs.cit_toggles ^= BURPING_NOISES
usr.client.prefs.save_preferences()
usr.stop_sound_channel(CHANNEL_BURP)
to_chat(usr, "You will [(usr.client.prefs.cit_toggles & BURPING_NOISES) ? "now" : "no longer"] hear burping noises.")
/datum/verbs/menu/Settings/Sound/toggleburpingnoise/Get_checked(client/C)
return C.prefs.cit_toggles & BURPING_NOISES
TOGGLE_CHECKBOX(/datum/verbs/menu/Settings/Sound, togglefartingnoise)()
set name = "Toggle Farting Noises"
set category = "Preferences"
set desc = "Hear Farting noises"
usr.client.prefs.cit_toggles ^= FARTING_NOISES
usr.client.prefs.save_preferences()
usr.stop_sound_channel(CHANNEL_BRAP)
usr.stop_sound_channel(CHANNEL_FART)
to_chat(usr, "You will [(usr.client.prefs.cit_toggles & FARTING_NOISES) ? "now" : "no longer"] hear farting noises.")
/datum/verbs/menu/Settings/Sound/togglefartingnoise/Get_checked(client/C)
return C.prefs.cit_toggles & FARTING_NOISES
+1 -1
View File
@@ -3073,6 +3073,7 @@
#include "code\modules\zombie\items.dm"
#include "code\modules\zombie\organs.dm"
#include "GainStation13\code\clothing\calorite_collar.dm"
#include "GainStation13\code\game\sound.dm"
#include "GainStation13\code\game\area\ruins.dm"
#include "GainStation13\code\machinery\feeding_tube.dm"
#include "GainStation13\code\mechanics\fatness.dm"
@@ -3082,7 +3083,6 @@
#include "GainStation13\code\mobs\cakegolem.dm"
#include "GainStation13\code\modules\client\preferences\preferences.dm"
#include "GainStation13\code\modules\food_and_drinks\drinks\drinks.dm"
#include "GainStation13\code\modules\mob\living\brap.dm"
#include "GainStation13\code\modules\mob\living\emote.dm"
#include "GainStation13\code\modules\reagents\chemistry\reagents\consumable_reagents.dm"
#include "GainStation13\code\modules\reagents\chemistry\reagents\dwarverndrinks.dm"