Electrified grille sparks effect (#15178)
* use file namespace * shorter systems name * replace SoundSystem with AudioSystem * refactor update function * refactor * refactor 2 * remove setters * uh oh * remove getters * active checks * refactor 3 * better way * update state * have to remove this for now * move electrified component to shared * forgot this * fix airlocks * add effect * Revert "move electrified component to shared" This reverts commit 6457e8fc9c3b674a705a61034831ce6f084e2b01. * Revert "forgot this" This reverts commit ed361cee2d5b8b958830ba0af07fcc2627eb7845. * functioning effects * use animation by Aleksh * make effect part of grille * optimisation? * remove timing * file name * only activate when touched * refactor electrocution comp too * make it 1 sec * formatting * replace all entity query with enumerator * queue del
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
namespace Content.Server.Electrocution
|
||||
{
|
||||
/// <summary>
|
||||
/// Component for virtual electrocution entities (representing an in-progress shock).
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(ElectrocutionSystem))]
|
||||
public sealed class ElectrocutionComponent : Component
|
||||
{
|
||||
[DataField("timeLeft")] public float TimeLeft { get; set; }
|
||||
[DataField("electrocuting")] public EntityUid Electrocuting { get; set; }
|
||||
[DataField("accumDamage")] public float AccumulatedDamage { get; set; }
|
||||
[DataField("source")] public EntityUid Source { get; set; }
|
||||
namespace Content.Server.Electrocution;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Component for virtual electrocution entities (representing an in-progress shock).
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(ElectrocutionSystem))]
|
||||
public sealed class ElectrocutionComponent : Component
|
||||
{
|
||||
[DataField("timeLeft")]
|
||||
public float TimeLeft;
|
||||
|
||||
[DataField("electrocuting")]
|
||||
public EntityUid Electrocuting;
|
||||
|
||||
[DataField("accumDamage")]
|
||||
public float AccumulatedDamage;
|
||||
|
||||
[DataField("source")]
|
||||
public EntityUid Source;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user