fix footstep sounds from being played while buckled (#42788)

Fixes the crawling sound from being played from moving buckled/mounted mobs.
## Why It's Good For The Game

Apparently I didn't catch the crawling sounds being played from buckled mobs that are moving. Examples include the Janitor on their pimpin' ride or some assistant piggy-backing off of a cyborg.
This commit is contained in:
nero1024
2019-02-25 15:00:40 +13:00
committed by oranges
parent 2e807d83f4
commit 327d8fbd40
+2 -3
View File
@@ -19,9 +19,8 @@
var/v = volume
var/e = e_range
if(!T.footstep || LM.buckled || LM.lying || !CHECK_MULTIPLE_BITFIELDS(LM.mobility_flags, MOBILITY_STAND | MOBILITY_MOVE) || LM.throwing || LM.movement_type & (VENTCRAWLING | FLYING))
if (!T.footstep || LM.movement_type & (VENTCRAWLING | FLYING)) //don't play sounds if flying etc.
return
playsound(T, 'sound/effects/footstep/crawl1.ogg', 15 * v) //play crawling sound
if (LM.lying && !(!T.footstep || LM.movement_type & (VENTCRAWLING | FLYING))) //play crawling sound if we're lying
playsound(T, 'sound/effects/footstep/crawl1.ogg', 15 * v)
return
if(iscarbon(LM))