6
StarHorizon_Public/Content.Server/SurveillanceCamera/Components/SurveillanceCameraSpeakerComponent.cs
2025-11-03 10:15:18 +03:00

17 lines
516 B
C#

namespace Content.Server.SurveillanceCamera;
/// <summary>
/// This allows surveillance cameras to speak, if the camera in question
/// has a microphone that listens to speech.
/// </summary>
[RegisterComponent]
public sealed partial class SurveillanceCameraSpeakerComponent : Component
{
// mostly copied from Speech
[DataField("speechEnabled")] public bool SpeechEnabled = true;
[ViewVariables] public float SpeechSoundCooldown = 0.5f;
public TimeSpan LastSoundPlayed = TimeSpan.Zero;
}