* Disable footstep sounds for ghosts Adds a check before playing footstep sounds to check if the mover is a ghost. Doesn't play footstep sounds if they are a ghost. * Add FootstepSoundComponent Adds FootstepSoundComponent. If a mob has this component, it will make footstep sounds. Otherwise they will not. As of this commit humans have this component and ghosts do not.
22 lines
574 B
C#
22 lines
574 B
C#
using Robust.Shared.GameObjects;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Content.Server.Mobs;
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Server.GameObjects.Components.Mobs
|
|
{
|
|
/// <summary>
|
|
/// Mobs will only make footstep sounds if they have this component.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public class FootstepSoundComponent : Component
|
|
{
|
|
public override string Name => "FootstepSound";
|
|
}
|
|
}
|