Skip to content

Commit

Permalink
[MIRROR] Fixes a footsteps runtime [MDB IGNORE] (#815)
Browse files Browse the repository at this point in the history
* Fixes a footsteps runtime (#79903)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored Nov 25, 2023
1 parent 9c41e62 commit cfe5d08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/datums/elements/footstep.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@
heard_clients = playsound(source.loc, pick(source.dna.species.special_step_sounds), 50, TRUE, falloff_distance = 1, vary = sound_vary)
else
var/static/list/bare_footstep_sounds = GLOB.barefootstep

heard_clients = playsound(source.loc, pick(bare_footstep_sounds[barefoot_type][1]),
bare_footstep_sounds[barefoot_type][2] * volume * volume_multiplier,
TRUE,
bare_footstep_sounds[barefoot_type][3] + e_range + range_adjustment, falloff_distance = 1, vary = sound_vary)
if(!isnull(barefoot_type) && bare_footstep_sounds[barefoot_type]) // barefoot_type can be null
heard_clients = playsound(source.loc, pick(bare_footstep_sounds[barefoot_type][1]),
bare_footstep_sounds[barefoot_type][2] * volume * volume_multiplier,
TRUE,
bare_footstep_sounds[barefoot_type][3] + e_range + range_adjustment, falloff_distance = 1, vary = sound_vary)

if(heard_clients)
play_fov_effect(source, 5, "footstep", direction, ignore_self = TRUE, override_list = heard_clients)
Expand Down

0 comments on commit cfe5d08

Please sign in to comment.