From 2383130a2815458ad4ca494fff2737d60da4cc8f Mon Sep 17 00:00:00 2001 From: uporotiy Date: Thu, 20 Oct 2011 17:39:08 +0000 Subject: [PATCH] Shhhhhhh. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2402 316c924e-a436-60f5-8080-3fe189b3f50e --- code/defines/mob/living/living.dm | 1 - code/modules/mob/living/carbon/human/life.dm | 5 +++++ code/setup.dm | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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')