1
0

FirestarterComponent.cs 998 B

12345678910111213141516171819202122232425262728293031323334
  1. using Content.Shared.Atmos.EntitySystems;
  2. using Robust.Shared.Audio;
  3. using Robust.Shared.GameStates;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Shared.Atmos.Components;
  6. /// <summary>
  7. /// Lets its owner entity ignite flammables around it and also heal some damage.
  8. /// </summary>
  9. [RegisterComponent, NetworkedComponent, Access(typeof(SharedFirestarterSystem))]
  10. public sealed partial class FirestarterComponent : Component
  11. {
  12. /// <summary>
  13. /// Radius of objects that will be ignited if flammable.
  14. /// </summary>
  15. [DataField]
  16. public float IgnitionRadius = 4f;
  17. /// <summary>
  18. /// The action entity.
  19. /// </summary>
  20. [DataField]
  21. public EntProtoId? FireStarterAction = "ActionFireStarter";
  22. [DataField] public EntityUid? FireStarterActionEntity;
  23. /// <summary>
  24. /// Radius of objects that will be ignited if flammable.
  25. /// </summary>
  26. [DataField]
  27. public SoundSpecifier IgniteSound = new SoundPathSpecifier("/Audio/Magic/rumble.ogg");
  28. }