diff --git a/code/defines/mob/living/living.dm b/code/defines/mob/living/living.dm index e7de787b97a..d4709674483 100644 --- a/code/defines/mob/living/living.dm +++ b/code/defines/mob/living/living.dm @@ -5,4 +5,3 @@ var/t_n2 = null var/now_pushing = null var/cameraFollow = null - diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 1aee515904a..067213e034f 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -86,6 +86,11 @@ for(var/obj/item/weapon/grab/G in src) G.process() + if(isturf(loc) && rand(1,1000) == 1) //0.1% chance of playing a scary sound to someone who's in complete darkness + var/turf/currentTurf = loc + if(!currentTurf.sd_lumcount) + playsound_local(src,pick(scarySounds),50, 1, -1) + ..() //for organs diff --git a/code/setup.dm b/code/setup.dm index daa7a02fb60..42d28d58436 100644 --- a/code/setup.dm +++ b/code/setup.dm @@ -213,4 +213,4 @@ var/list/global_mutations = list() // list of hidden mutation things #define EYE_BLUR "eye_blur" #define DROWSY "drowsy" - +var/static/list/scarySounds = list('thudswoosh.ogg','Taser.ogg','armbomb.ogg','hiss1.ogg','hiss2.ogg','hiss3.ogg','hiss4.ogg','hiss5.ogg','hiss6.ogg','Glassbr1.ogg','Glassbr2.ogg','Glassbr3.ogg','Welder.ogg','Welder2.ogg','airlock.ogg','clownstep1.ogg','clownstep2.ogg')