mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-13 04:11:13 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
28 lines
940 B
C#
28 lines
940 B
C#
using Content.Shared.Damage.Prototypes;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Weapons.Ranged.Components;
|
|
|
|
/// <summary>
|
|
/// Plays the specified sound upon receiving damage of that type.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class RangedDamageSoundComponent : Component
|
|
{
|
|
// TODO: Limb damage changing sound type.
|
|
|
|
/// <summary>
|
|
/// Specified sounds to apply when the entity takes damage with the specified group.
|
|
/// Will fallback to defaults if none specified.
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<ProtoId<DamageGroupPrototype>, SoundSpecifier>? SoundGroups;
|
|
|
|
/// <summary>
|
|
/// Specified sounds to apply when the entity takes damage with the specified type.
|
|
/// Will fallback to defaults if none specified.
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<ProtoId<DamageTypePrototype>, SoundSpecifier>? SoundTypes;
|
|
}
|