Files
OldThink/Content.Shared/_White/Explosion/RMCExplosionShockWaveComponent.cs

29 lines
985 B
C#
Raw Permalink Normal View History

using Robust.Shared.GameStates;
namespace Content.Shared._White.Explosion
{
[RegisterComponent, NetworkedComponent]
[AutoGenerateComponentState]
[Access(typeof(SharedExplosionSystem))]
public sealed partial class ExplosionShockWaveComponent : 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 = 40f;
/// <summary>
/// How sharp the wave distortion is. Higher values make the wave more pronounced.
/// </summary>
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
public float Sharpness = 10.0f;
/// <summary>
/// Width of the wave.
/// </summary>
[DataField, AutoNetworkedField, ViewVariables(VVAccess.ReadWrite)]
public float Width = 0.8f;
}
}