2024-01-27 15:15:05 +03:00
|
|
|
using Robust.Shared.GameStates;
|
2023-01-17 00:05:20 -05:00
|
|
|
|
2023-02-06 00:03:53 -05:00
|
|
|
namespace Content.Shared.Anomaly.Effects.Components;
|
|
|
|
|
|
2023-03-23 01:53:32 -04:00
|
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedGravityAnomalySystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GravityAnomalyComponent : Component
|
2023-01-17 00:05:20 -05:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximumum size the GravityWellComponent MaxRange can be.
|
|
|
|
|
/// Is scaled linearly with stability.
|
|
|
|
|
/// </summary>
|
2024-01-27 15:15:05 +03:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float MaxGravityWellRange = 10f;
|
2023-01-17 00:05:20 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum distance from which the anomaly
|
|
|
|
|
/// can throw you via a pulse.
|
|
|
|
|
/// </summary>
|
2024-01-27 15:15:05 +03:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2023-01-17 00:05:20 -05:00
|
|
|
public float MaxThrowRange = 5f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum strength the anomaly
|
|
|
|
|
/// can throw you via a pulse
|
|
|
|
|
/// </summary>
|
2024-01-27 15:15:05 +03:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2023-01-17 00:05:20 -05:00
|
|
|
public float MaxThrowStrength = 10;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum Intensity of the RadiationSourceComponent.
|
|
|
|
|
/// Is scaled linearly with stability.
|
|
|
|
|
/// </summary>
|
2024-01-27 15:15:05 +03:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2023-01-17 00:05:20 -05:00
|
|
|
public float MaxRadiationIntensity = 3f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The minimum acceleration value for GravityWellComponent
|
|
|
|
|
/// Is scaled linearly with stability.
|
|
|
|
|
/// </summary>
|
2024-01-27 15:15:05 +03:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float MinAccel = 0f;
|
2023-01-17 00:05:20 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum acceleration value for GravityWellComponent
|
|
|
|
|
/// Is scaled linearly with stability.
|
|
|
|
|
/// </summary>
|
2024-01-27 15:15:05 +03:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2023-01-17 00:05:20 -05:00
|
|
|
public float MaxAccel = 5f;
|
|
|
|
|
|
2024-01-27 15:15:05 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// The minimum acceleration value for GravityWellComponent
|
|
|
|
|
/// Is scaled linearly with stability.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float MinRadialAccel = 0f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum acceleration value for GravityWellComponent
|
|
|
|
|
/// Is scaled linearly with stability.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float MaxRadialAccel = 5f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum speed for RandomWalkComponent
|
|
|
|
|
/// Is scaled linearly with severity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float MinSpeed = 0.1f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum speed for RandomWalkComponent
|
|
|
|
|
/// Is scaled linearly with severity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float MaxSpeed = 1.0f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Random +- speed modifier
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float SpeedVariation = 0.1f;
|
|
|
|
|
|
2023-01-17 00:05:20 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// The range around the anomaly that will be spaced on supercritical.
|
|
|
|
|
/// </summary>
|
2024-01-27 15:15:05 +03:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2023-01-17 00:05:20 -05:00
|
|
|
public float SpaceRange = 3f;
|
|
|
|
|
}
|