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>
44 lines
1.2 KiB
C#
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
|