Geiger counters can now be heard by everyone nearby (#30463)

* haha geiger counter go brrrrrrr

* move hardcoded values to datafields

* syntax cleanup
This commit is contained in:
Errant
2025-04-17 13:24:47 +02:00
committed by GitHub
parent f46bb301fb
commit 9b1a7dea1d
3 changed files with 59 additions and 39 deletions

View File

@@ -83,6 +83,24 @@ public sealed partial class GeigerComponent : Component
/// Played only for current user.
/// </summary>
public EntityUid? Stream;
/// <summary>
/// Mark true if the audio should be heard by everyone around the device
/// </summary>
[DataField]
public bool BroadcastAudio = false;
/// <summary>
/// The distance within which the broadcast tone can be heard.
/// </summary>
[DataField]
public float BroadcastRange = 4f;
/// <summary>
/// The volume of the warning tone.
/// </summary>
[DataField]
public float Volume = -4f;
}
[Serializable, NetSerializable]