17 lines
516 B
C#
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;
|
|
}
|