Fixes catwalks making footsteps on everything

Fixes catwalks making footstep sounds on literally anything that crosses them, including ghosts and projectiles and everything else that definitely shouldn't be making footsteps.
This commit is contained in:
Verkister
2022-03-24 21:10:14 +02:00
committed by GitHub
parent 5c1be8a040
commit 5b1e592293
+2 -2
View File
@@ -120,9 +120,9 @@
new /obj/item/stack/rods(get_turf(src))
Destroy()
/obj/structure/catwalk/Crossed()
/obj/structure/catwalk/Crossed(atom/movable/AM as mob|obj)
. = ..()
if(isliving(usr) && !usr.is_incorporeal())
if(isliving(AM) && !AM.is_incorporeal())
playsound(src, pick('sound/effects/footstep/catwalk1.ogg', 'sound/effects/footstep/catwalk2.ogg', 'sound/effects/footstep/catwalk3.ogg', 'sound/effects/footstep/catwalk4.ogg', 'sound/effects/footstep/catwalk5.ogg'), 25, 1)
/obj/effect/catwalk_plated