2024-02-01 00:01:52 +11:00
|
|
|
using Content.Shared.Atmos.EntitySystems;
|
2024-01-04 12:53:15 +00:00
|
|
|
using Robust.Shared.Audio;
|
|
|
|
|
using Robust.Shared.GameStates;
|
2024-02-01 00:01:52 +11:00
|
|
|
using Robust.Shared.Prototypes;
|
2024-01-04 12:53:15 +00:00
|
|
|
|
2024-02-01 00:01:52 +11:00
|
|
|
namespace Content.Shared.Atmos.Components;
|
2024-01-04 12:53:15 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Lets its owner entity ignite flammables around it and also heal some damage.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedFirestarterSystem))]
|
|
|
|
|
public sealed partial class FirestarterComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Radius of objects that will be ignited if flammable.
|
|
|
|
|
/// </summary>
|
2024-02-01 00:01:52 +11:00
|
|
|
[DataField]
|
2024-01-04 12:53:15 +00:00
|
|
|
public float IgnitionRadius = 4f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The action entity.
|
|
|
|
|
/// </summary>
|
2024-02-01 00:01:52 +11:00
|
|
|
[DataField]
|
|
|
|
|
public EntProtoId? FireStarterAction = "ActionFireStarter";
|
2024-01-04 12:53:15 +00:00
|
|
|
|
2024-02-01 00:01:52 +11:00
|
|
|
[DataField] public EntityUid? FireStarterActionEntity;
|
2024-01-04 12:53:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Radius of objects that will be ignited if flammable.
|
|
|
|
|
/// </summary>
|
2024-02-01 00:01:52 +11:00
|
|
|
[DataField]
|
2024-01-04 12:53:15 +00:00
|
|
|
public SoundSpecifier IgniteSound = new SoundPathSpecifier("/Audio/Magic/rumble.ogg");
|
|
|
|
|
}
|