fish-station/Content.Shared/_RMC14/Explosion/CMExplosionEffectComponent.cs
ThereDrD 6c8050eb1e
Новые эффекты взрывов (#1410)
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>
2025-02-20 17:29:41 +03:00

44 lines
1.2 KiB
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._RMC14.Explosion;
[RegisterComponent, NetworkedComponent]
[Access(typeof(SharedRMCExplosionSystem))]
public sealed partial class CMExplosionEffectComponent : Component
{
[DataField]
public EntProtoId? Explosion = "CMExplosionEffectGrenade";
[DataField]
public EntProtoId? ShockWave = "RMCExplosionEffectGrenadeShockWave";
// Sunrise added
[DataField]
public EntProtoId? Smoke = "ExplosionEffectSmoke";
// Sunrise added
}
// Sunrise added start
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ExplosionSmokeEffectComponent : Component
{
public const float AnimationDuration = 2.5f;
public const float Variation = 1f;
[DataField, AutoNetworkedField]
public float LifeTime = AnimationDuration;
}
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ExplosionEffectComponent : Component
{
public const float AnimationDuration = 2.5f;
[DataField, AutoNetworkedField]
public float LifeTime = AnimationDuration;
[DataField, AutoNetworkedField]
public float SizeModifier = 2f;
}
// Sunrise added end