18 lines
528 B
C#
18 lines
528 B
C#
using Content.Server.Explosion.EntitySystems;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.Explosion.Components;
|
|
|
|
/// <summary>
|
|
/// Will play sound from the attached entity upon a <see cref="TriggerEvent"/>.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class SoundOnTriggerComponent : Component
|
|
{
|
|
[DataField("removeOnTrigger")]
|
|
public bool RemoveOnTrigger = true;
|
|
|
|
[DataField("sound")]
|
|
public SoundSpecifier? Sound = new SoundPathSpecifier("/Audio/Effects/Grenades/supermatter_start.ogg");
|
|
}
|