Fix felinid stepping sounds playing all at once (#3004)
* Fix felinid stepping sounds playing all at once Fixes DeltaV-Station/Delta-v#2996 * Short-circuiting && Because why was this not here already
This commit is contained in:
parent
9078857689
commit
3c3b0111de
|
|
@ -432,14 +432,6 @@ public abstract partial class SharedMoverController : VirtualController
|
|||
return false;
|
||||
}
|
||||
|
||||
// DeltaV - Don't play the sound if they have no shoes and the component
|
||||
if (NoShoesSilentQuery.HasComp(uid) &
|
||||
!_inventory.TryGetSlotEntity(uid, "shoes", out var _))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// End DeltaV code
|
||||
|
||||
mobMover.LastPosition = coordinates;
|
||||
|
||||
if (mobMover.StepSoundDistance < distanceNeeded)
|
||||
|
|
@ -447,6 +439,14 @@ public abstract partial class SharedMoverController : VirtualController
|
|||
|
||||
mobMover.StepSoundDistance -= distanceNeeded;
|
||||
|
||||
// DeltaV - Don't play the sound if they have no shoes and the component
|
||||
if (NoShoesSilentQuery.HasComp(uid) &&
|
||||
!_inventory.TryGetSlotEntity(uid, "shoes", out var _))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// End DeltaV code
|
||||
|
||||
if (FootstepModifierQuery.TryComp(uid, out var moverModifier))
|
||||
{
|
||||
sound = moverModifier.FootstepSoundCollection;
|
||||
|
|
|
|||
Loading…
Reference in New Issue