From 1f0093c96262761df0c219d0010d3094def65bdc Mon Sep 17 00:00:00 2001 From: deathride58 Date: Wed, 3 Oct 2018 23:34:40 -0400 Subject: [PATCH] makes footsteps sound less like ass by shoving the old values into the new system (#7598) --- code/datums/components/footstep.dm | 6 +++--- code/modules/mob/living/carbon/carbon.dm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/datums/components/footstep.dm b/code/datums/components/footstep.dm index ccd3d30463..c93be4dae3 100644 --- a/code/datums/components/footstep.dm +++ b/code/datums/components/footstep.dm @@ -27,11 +27,11 @@ v /= 2 e -= 5 steps++ - if(steps >= 6) + if(steps >= 3) steps = 0 - if(steps % 2) + else return - if(!LM.has_gravity(T) && steps != 0) // don't need to step as often when you hop around + if(prob(80) && !LM.has_gravity(T)) // don't need to step as often when you hop around return playsound(T, pick(GLOB.footstep[T.footstep][1]), GLOB.footstep[T.footstep][2] * v, diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 84b949014c..7bc0e281c5 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -20,7 +20,7 @@ GLOB.carbon_list -= src /mob/living/carbon/initialize_footstep() - AddComponent(/datum/component/footstep, 1, 2) + AddComponent(/datum/component/footstep, 0.6, 2) /mob/living/carbon/relaymove(mob/user, direction) if(user in src.stomach_contents)