From f83dc49b828098381b7e1ddd0686be5ab2b4cb80 Mon Sep 17 00:00:00 2001 From: Leshana Date: Tue, 18 Apr 2017 18:09:45 -0400 Subject: [PATCH] Reduce footstep volume if walking or barefoot. --- code/modules/mob/living/carbon/human/human_movement.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human_movement.dm b/code/modules/mob/living/carbon/human/human_movement.dm index bb3b76edbb1..3dbb3d0fceb 100644 --- a/code/modules/mob/living/carbon/human/human_movement.dm +++ b/code/modules/mob/living/carbon/human/human_movement.dm @@ -163,8 +163,10 @@ if(m_intent == "run" && step_count++ % 2 == 0) return - // Future Upgrades - Consider quieter noises if you walk or have no shoes var/volume = config.footstep_volume + // Reduce volume while walking or barefoot + if(!shoes || m_intent != "run") + volume *= 0.5 if(!has_organ(BP_L_FOOT) && !has_organ(BP_R_FOOT)) return // no feet = no footsteps