mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 11:35:19 +01:00
Merge pull request #4154 from Anewbe/footsteps_fix
Corrects the walking footstep play ratio
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user