Electrocution noises (#8061)
* Adds spark noises when an entity gets electrocuted by something * oops * double oops * Update Content.Server/Electrocution/Components/ElectrifiedComponent.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Content.Shared.Sound;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
@@ -65,5 +66,14 @@ namespace Content.Server.Electrocution
|
||||
|
||||
[DataField("siemensCoefficient")]
|
||||
public float SiemensCoefficient { get; } = 1f;
|
||||
|
||||
[DataField("shockNoises")]
|
||||
public SoundSpecifier ShockNoises { get; } = new SoundCollectionSpecifier("sparks");
|
||||
|
||||
[DataField("playSoundOnShock")]
|
||||
public bool PlaySoundOnShock { get; } = true;
|
||||
|
||||
[DataField("shockVolume")]
|
||||
public float ShockVolume { get; } = 20;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user