mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
24 lines
753 B
C#
24 lines
753 B
C#
using Content.Server.Temperature.Systems;
|
|
using Content.Server.Temperature.Components;
|
|
using Content.Shared.Temperature;
|
|
|
|
namespace Content.Server.Temperature.Components;
|
|
|
|
/// <summary>
|
|
/// Put this component on a projectile that you would like to change the temperature on whatever it hits.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(TemperatureSystem))]
|
|
public sealed partial class ChangeTemperatureOnCollideComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The amount it changes the target's temperature by. In Joules.
|
|
/// </summary>
|
|
[DataField]
|
|
public float Heat = 0f;
|
|
|
|
/// <summary>
|
|
/// If this heat change ignores heat resistance or not.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool IgnoreHeatResistance = true;
|
|
}
|