Co-authored-by: Vero <73014819+vero5123@users.noreply.github.com> Co-authored-by: Whisper <121047731+QuietlyWhisper@users.noreply.github.com> Co-authored-by: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
30 lines
1,015 B
C#
30 lines
1,015 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared._RMC14.Explosion.Components
|
|
{
|
|
[RegisterComponent, NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
public sealed partial class RMCExplosionShockWaveComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The rate at which the wave fades, lower values means it's active for longer.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float? FalloffPower = 20f;
|
|
|
|
/// <summary>
|
|
/// How sharp the wave distortion is. Higher values make the wave more pronounced.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float Sharpness = 5.0f;
|
|
|
|
/// <summary>
|
|
/// Width of the wave.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float? Width = 0.8f;
|
|
|
|
[DataField]
|
|
public TimeSpan CreationTime;
|
|
}
|
|
}
|