Make emitter use guncode (#13258)

This commit is contained in:
Nemanja
2023-01-01 18:54:47 -05:00
committed by GitHub
parent e6097d0301
commit 4a7c0b94b2
4 changed files with 21 additions and 36 deletions

View File

@@ -15,20 +15,12 @@ namespace Content.Server.Singularity.Components
// Whether the power switch is on AND the machine has enough power (so is actively firing)
[ViewVariables] public bool IsPowered;
// For the "emitter fired" sound
public const float Variation = 0.25f;
public const float Volume = 0.5f;
public const float Distance = 6f;
/// <summary>
/// counts the number of consecutive shots fired.
/// </summary>
[ViewVariables]
public int FireShotCounter;
[DataField("fireSound")]
public SoundSpecifier FireSound = new SoundPathSpecifier("/Audio/Weapons/emitter.ogg");
/// <summary>
/// The entity that is spawned when the emitter fires.
/// </summary>