Supermatter grenades (#13747)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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 class SoundOnTriggerComponent : Component
|
||||
{
|
||||
[DataField("removeOnTrigger")]
|
||||
public bool RemoveOnTrigger = true;
|
||||
|
||||
[DataField("sound")]
|
||||
public SoundSpecifier? Sound = new SoundPathSpecifier("/Audio/Effects/Grenades/supermatter_start.ogg");
|
||||
}
|
||||
Reference in New Issue
Block a user