Corrects the walking footstep play ratio

This commit is contained in:
Anewbe
2017-10-24 17:36:19 -05:00
parent 6825aea71e
commit a29f386fd3
@@ -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