Earlyports catwalk noise fix

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:17:58 +02:00
committed by GitHub
parent 64ba91423c
commit b5b4678908
+2 -2
View File
@@ -128,9 +128,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