mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-07 08:02:49 +00:00
Makes footstep sounds check if we actually moved
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
|
||||
/mob/living/carbon/human/Move(NewLoc, direct)
|
||||
. = ..()
|
||||
if(shoes)
|
||||
if(shoes && .) // did we actually move?
|
||||
if(!lying && !buckled)
|
||||
if(!has_gravity(loc))
|
||||
return
|
||||
|
||||
@@ -477,8 +477,9 @@
|
||||
if (s_active && !( s_active in contents ) && get_turf(s_active) != get_turf(src)) //check !( s_active in contents ) first so we hopefully don't have to call get_turf() so much.
|
||||
s_active.close(src)
|
||||
|
||||
handle_footstep(loc)
|
||||
step_count++
|
||||
if(.) // did we actually move?
|
||||
handle_footstep(loc)
|
||||
step_count++
|
||||
|
||||
if(update_slimes)
|
||||
for(var/mob/living/carbon/slime/M in view(1,src))
|
||||
|
||||
Reference in New Issue
Block a user