mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Change footstep rate
This commit is contained in:
parent
00830108e9
commit
b5a979c82e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user