ChangeTemperatureOnCollideComponent.cs 752 B

123456789101112131415161718192021222324
  1. using Content.Server.Temperature.Systems;
  2. using Content.Server.Temperature.Components;
  3. using Content.Shared.Temperature;
  4. namespace Content.Server.Temperature.Components;
  5. /// <summary>
  6. /// Put this component on a projectile that you would like to change the temperature on whatever it hits.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(TemperatureSystem))]
  9. public sealed partial class ChangeTemperatureOnCollideComponent : Component
  10. {
  11. /// <summary>
  12. /// The amount it changes the target's temperature by. In Joules.
  13. /// </summary>
  14. [DataField]
  15. public float Heat = 0f;
  16. /// <summary>
  17. /// If this heat change ignores heat resistance or not.
  18. /// </summary>
  19. [DataField]
  20. public bool IgnoreHeatResistance = true;
  21. }