Changes slosh sounds to global list (#8591)

This commit is contained in:
Guti
2024-06-29 16:22:00 +02:00
committed by GitHub
parent fc8df8d122
commit 376e79e2fd
6 changed files with 15 additions and 46 deletions

View File

@@ -1,11 +0,0 @@
GLOBAL_LIST_INIT(slosh, list(
'sound/vore/walkslosh2.ogg',
'sound/vore/walkslosh3.ogg',
'sound/vore/walkslosh4.ogg',
'sound/vore/walkslosh5.ogg',
'sound/vore/walkslosh6.ogg',
'sound/vore/walkslosh7.ogg',
'sound/vore/walkslosh8.ogg',
'sound/vore/walkslosh9.ogg',
'sound/vore/walkslosh10.ogg'
))

View File

@@ -1,17 +1,17 @@
//Reagent Vore belly Sounds
var/global/list/vore_reagent_sounds = list(
'sound/vore/walkslosh1.ogg',
'sound/vore/walkslosh2.ogg',
'sound/vore/walkslosh3.ogg',
'sound/vore/walkslosh4.ogg',
'sound/vore/walkslosh5.ogg',
'sound/vore/walkslosh6.ogg',
'sound/vore/walkslosh7.ogg',
'sound/vore/walkslosh8.ogg',
'sound/vore/walkslosh9.ogg',
'sound/vore/walkslosh10.ogg',
"None" = null)
GLOBAL_LIST_INIT(slosh, list(
'sound/vore/walkslosh1.ogg',
'sound/vore/walkslosh2.ogg',
'sound/vore/walkslosh3.ogg',
'sound/vore/walkslosh4.ogg',
'sound/vore/walkslosh5.ogg',
'sound/vore/walkslosh6.ogg',
'sound/vore/walkslosh7.ogg',
'sound/vore/walkslosh8.ogg',
'sound/vore/walkslosh9.ogg',
'sound/vore/walkslosh10.ogg'
))
var/global/list/item_tf_spawnpoints = list() // Global variable tracking which items are item tf spawnpoints

View File

@@ -1,17 +0,0 @@
/turf/simulated
//CHOMP reagent belly sloshing sounds
var/static/list/base_vorefootstep_sounds = list("human" = list(
'sound/vore/walkslosh1.ogg',
'sound/vore/walkslosh2.ogg',
'sound/vore/walkslosh3.ogg',
'sound/vore/walkslosh4.ogg',
'sound/vore/walkslosh5.ogg',
'sound/vore/walkslosh6.ogg',
'sound/vore/walkslosh7.ogg',
'sound/vore/walkslosh8.ogg',
'sound/vore/walkslosh9.ogg',
'sound/vore/walkslosh10.ogg'))
// Removal of older code - this isn't necessary anymore as /decl/flooring/floortype and initial_flooring = /decl/flooring/floortype
// can handle this. If you're not sure how to do it, refer to flooring.dm, and read things over. It's explained there. Rykka <3

View File

@@ -522,10 +522,10 @@
return
thing.enter_belly(src) // Atom movable proc, does nothing by default. Overridden in children for special behavior.
if(owner && istype(owner.loc,/turf/simulated) && !cycle_sloshed && reagents.total_volume > 0)
var/turf/simulated/T = owner.loc
var/S = pick(T.base_vorefootstep_sounds["human"]) //ChompEDIT
// var/turf/simulated/T = owner.loc // CHOMPEdit
var/S = pick(GLOB.slosh) //ChompEDIT
if(S)
playsound(T, S, sound_volume * (reagents.total_volume / 100), FALSE, frequency = noise_freq, preference = /datum/client_preference/digestion_noises) //CHOMPEdit
playsound(owner.loc, S, sound_volume * (reagents.total_volume / 100), FALSE, frequency = noise_freq, preference = /datum/client_preference/digestion_noises) //CHOMPEdit
cycle_sloshed = TRUE
thing.belly_cycles = 0 //reset cycle count
if(istype(thing, /mob/observer)) //Ports CHOMPStation PR#3072

View File

@@ -19,7 +19,6 @@
/datum/element/slosh/Detach(datum/source)
UnregisterSignal(source, COMSIG_MOVABLE_MOVED)
step_count -= source
return ..()
/datum/element/slosh/proc/handle_footstep(mob/living/source)

View File

@@ -130,7 +130,6 @@
#include "code\__defines\shuttle.dm"
#include "code\__defines\simple_mob.dm"
#include "code\__defines\size.dm"
#include "code\__defines\slosh_ch.dm"
#include "code\__defines\sound.dm"
#include "code\__defines\span_vr.dm"
#include "code\__defines\species_languages.dm"
@@ -1803,7 +1802,6 @@
#include "code\game\objects\structures\stool_bed_chair_nest\wheelchair.dm"
#include "code\game\objects\structures\stool_bed_chair_nest\wheelchair_item.dm"
#include "code\game\turfs\simulated.dm"
#include "code\game\turfs\simulated_ch.dm"
#include "code\game\turfs\simulated_vr.dm"
#include "code\game\turfs\turf.dm"
#include "code\game\turfs\turf_changing.dm"