Radiation rework (#10970)

This commit is contained in:
Alex Evgrashin
2022-10-11 05:09:10 +02:00
committed by GitHub
parent 667fc1970d
commit 7d882f22c9
34 changed files with 1010 additions and 46 deletions

View File

@@ -1,3 +1,5 @@
namespace Content.Shared.Radiation.Components;
/// <summary>
/// Irradiate all objects in range.
/// </summary>
@@ -5,16 +7,20 @@
public sealed class RadiationSourceComponent : Component
{
/// <summary>
/// How many rads per second receive irradiated object.
/// Radiation intensity in center of the source in rads per second.
/// From there radiation rays will travel over distance and loose intensity
/// when hit radiation blocker.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("radsPerSecond")]
public float RadsPerSecond = 1;
[DataField("intensity")]
public float Intensity = 1;
/// <summary>
/// Radius of radiation source.
/// Defines how fast radiation rays will loose intensity
/// over distance. The bigger the value, the shorter range
/// of radiation source will be.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField("range")]
public float Range = 5f;
[DataField("slope")]
public float Slope = 0.5f;
}