mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* Basic improvements to sparks * Pull spark configuration out of SparkOnHit component * Add various sparks to tasers, batons, RCD * Add sparks back to electrocution * Adjust new projectiles * Tile fires on cable cuts * That's a terrible idea, actually * Add a custom PreventCollide system * Make the new prevent collide component prevent collisions
35 lines
840 B
C#
35 lines
840 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._ES.Sparks.Components;
|
|
|
|
/// <summary>
|
|
/// This is a base component that contains details about
|
|
/// configuring sparks in order to be reused with minimal duplication
|
|
/// </summary>
|
|
public abstract partial class ESBaseSparkConfigurationComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Number of sparks
|
|
/// </summary>
|
|
[DataField]
|
|
public int Count = 3;
|
|
|
|
/// <summary>
|
|
/// Chance for sparks to occur
|
|
/// </summary>
|
|
[DataField]
|
|
public float Prob = 1f;
|
|
|
|
/// <summary>
|
|
/// Chance a successful spark hit will also spawn a tile fire
|
|
/// </summary>
|
|
[DataField]
|
|
public float TileFireChance;
|
|
|
|
/// <summary>
|
|
/// Spark prototypes
|
|
/// </summary>
|
|
[DataField]
|
|
public EntProtoId SparkPrototype = ESSparksSystem.DefaultSparks;
|
|
}
|