Merge pull request #4154 from Anewbe/footsteps_fix

Corrects the walking footstep play ratio
This commit is contained in:
Mechoid
2017-10-26 15:31:23 -07:00
committed by GitHub
@@ -174,11 +174,12 @@
var/S = pick(footstep_sounds)
if(!S) return
// Play every other step while running
if(m_intent == "run" && step_count++ % 2 == 0)
return
// Play every 20 steps while walking, for the sneak
if(m_intent == "walk" && step_count++ % 20 == 0)
if(m_intent == "walk" && step_count++ % 20 != 0)
return
// Play every other step while running
if(m_intent == "run" && step_count++ % 2 != 0)
return
var/volume = config.footstep_volume