Change footstep rate

This commit is contained in:
Louis Pearson 2019-08-31 21:24:47 -06:00
parent 00830108e9
commit b5a979c82e

View File

@ -60,7 +60,7 @@ impl SoundMgr {
.or_insert_with(|| AnimState {last_step_sound: Instant::now()});
if let Run = &character.movement {
if state.last_step_sound.elapsed().as_secs_f64() > 0.5 {
if state.last_step_sound.elapsed().as_secs_f64() > 0.25 {
let rand_step = (rand::random::<usize>() % 7) + 1;
audio.play_sound(format!("voxygen.audio.footsteps.stepdirt_{}", rand_step), pos.0);
state.last_step_sound = Instant::now();