Merge pull request #2164 from radiantAurora/vore-belches

Adds belching whilst full
This commit is contained in:
Razgriz
2021-06-18 18:27:00 -07:00
committed by GitHub
23 changed files with 68 additions and 4 deletions

View File

@@ -265,6 +265,13 @@
'sound/vore/sunesound/prey/death_07.ogg','sound/vore/sunesound/prey/death_08.ogg','sound/vore/sunesound/prey/death_09.ogg',
'sound/vore/sunesound/prey/death_10.ogg')
//END VORESTATION EDIT
//CHOMPEdit Begin
if ("belches") soundin = pick(
'sound/vore/belches/belch1.ogg','sound/vore/belches/belch2.ogg','sound/vore/belches/belch3.ogg','sound/vore/belches/belch4.ogg',
'sound/vore/belches/belch5.ogg','sound/vore/belches/belch6.ogg','sound/vore/belches/belch7.ogg','sound/vore/belches/belch8.ogg',
'sound/vore/belches/belch9.ogg','sound/vore/belches/belch10.ogg','sound/vore/belches/belch11.ogg','sound/vore/belches/belch12.ogg',
'sound/vore/belches/belch13.ogg','sound/vore/belches/belch14.ogg','sound/vore/belches/belch15.ogg',)
//CHOMPEdit End
if ("terminal_type")
soundin = pick('sound/machines/terminal_button01.ogg', 'sound/machines/terminal_button02.ogg', 'sound/machines/terminal_button03.ogg', \
'sound/machines/terminal_button04.ogg', 'sound/machines/terminal_button05.ogg', 'sound/machines/terminal_button06.ogg', \

View File

@@ -98,14 +98,21 @@ var/list/_client_preferences_by_type
key = "DIGEST_NOISES"
enabled_description = "Noisy"
disabled_description = "Silent"
//CHOMPEdit; belching
/datum/client_preference/belch_noises
description = "Burping"
key = "BELCH_NOISES"
enabled_description = "Noisy"
disabled_description = "Silent"
enabled_by_default = FALSE
//CHOMPEdit end
/datum/client_preference/emote_noises
description = "Emote Noises" //MERP
key = "EMOTE_NOISES"
enabled_description = "Noisy"
disabled_description = "Silent"
/datum/client_preference/whisubtle_vis
description = "Whi/Subtles Ghost Visible"
description = "Whi/Subtles Ghost Visible"
key = "WHISUBTLE_VIS"
enabled_description = "Visible"
disabled_description = "Hidden"
@@ -152,7 +159,7 @@ var/list/_client_preferences_by_type
key = "SOUND_AIRPUMP"
enabled_description = "Audible"
disabled_description = "Silent"
/datum/client_preference/old_door_sounds
description ="Old Door Sounds"
key = "SOUND_OLDDOORS"

View File

@@ -40,6 +40,23 @@
feedback_add_details("admin_verb","TDigestNoise") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
//CHOMPEdit: belching
/client/verb/toggle_belch_noises()
set name = "Audible belching"
set category = "Preferences"
set desc = "Toggles audible belches."
var/pref_path = /datum/client_preference/belch_noises
toggle_preference(pref_path)
to_chat(src, "You will [ (is_preference_enabled(pref_path)) ? "now" : "no longer"] hear belching.")
SScharacter_setup.queue_preferences_save(prefs)
feedback_add_details("admin_verb","TBelchNoise")
//CHOMPEdit End
/client/verb/toggle_emote_noises()
set name = "Emote Noises"

View File

@@ -982,6 +982,16 @@
var/growlmultiplier = 100 - (nutrition / 250 * 100)
playsound(src, growlsound, vol = growlmultiplier, vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/digestion_noises)
// VOREStation Edit End
//CHOMPEdit Begin
if(nutrition > 500 && noisy_full == TRUE)
var/belch_prob = 10 //Maximum belch prob.
if(nutrition < 4075)
belch_prob = ((nutrition-500)/3575)*20 //Scale belch prob with fullness if not already at max. If editing make sure the multiplier matches the max prob above.
if(prob(belch_prob))
var/sound/belchsound = sound(get_sfx("belches"))
playsound(src, belchsound, vol = (30+(belch_prob*2)), vary = 1, falloff = 0.1, ignore_walls = TRUE, preference = /datum/client_preference/belch_noises)
custom_emote(AUDIBLE_MESSAGE, "belches.") //Don't know if this should stay, I'll leave in in for now.
//CHOMPEdit End
// TODO: stomach and bloodstream organ.
if(!isSynthetic())

View File

@@ -35,6 +35,7 @@
var/vis_height = 32 // Sprite height used for resize features.
var/show_vore_fx = TRUE // Show belly fullscreens
var/latejoin_vore = FALSE //CHOMPedit: If enabled, latejoiners can spawn into this, assuming they have a client
var/noisy_full = FALSE //CHOMPEdit: Enables belching when a mob has overeaten
//
// Hook for generic creation of stuff on new creatures

View File

@@ -279,6 +279,7 @@
//CHOMPedit start, liquid belly prefs
"liq_rec" = host.receive_reagents,
"liq_giv" = host.give_reagents,
"noisy_full" = host.noisy_full //Belching while full
//CHOMPedit end
)
@@ -510,6 +511,11 @@
host.client.prefs_vr.give_reagents = host.give_reagents
unsaved_changes = TRUE
return TRUE
//Belch code
if("toggle_noisy_full")
host.noisy_full = !host.noisy_full
unsaved_changes = TRUE
return TRUE
//CHOMPedit end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -163,6 +163,9 @@ const digestModeToPreyMode = {
*
* return tabIndex===4 ? null : (
*
* New preference added, noisy_full
* noisy_full enables belching when nutrition exceeds 500, very similar to the noisy preference.
*
* That's everything so far.
*
*/
@@ -939,6 +942,7 @@ const VoreUserPreferences = (props, context) => {
step_mechanics_active,
pickup_mechanics_active,
noisy,
noisy_full,
liq_rec,
liq_giv,
} = data.prefs;
@@ -1074,6 +1078,18 @@ const VoreUserPreferences = (props, context) => {
: "Click here to turn on hunger noises.")}
content={noisy ? "Hunger Noises Enabled" : "Hunger Noises Disabled"} />
</Flex.Item>
<Flex.Item basis="32%">
<Button
onClick={() => act("toggle_noisy_full")}
icon={noisy_full ? "toggle-on" : "toggle-off"}
selected={noisy_full}
fluid
tooltip={"Toggle belching while full. "
+ (noisy_full
? "Click here to turn off belching when full."
: "Click here to turn on belching when full.")}
content={noisy_full ? "Belching Enabled" : "Belching Disabled"} />
</Flex.Item>
<Flex.Item basis="32%">
<Button
onClick={() => act("toggle_resize")}

File diff suppressed because one or more lines are too long