mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* Properly network ClumsyComponent
* Fix being able to climb and bonk at the same time.
Also properly subscribe to AttemptClimbEvent by-ref.
* Update Content.Shared/Interaction/Components/ClumsyComponent.cs
(cherry picked from commit 480d26aba6)
25 lines
744 B
C#
25 lines
744 B
C#
using Content.Shared.Damage;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Interaction.Components;
|
|
|
|
/// <summary>
|
|
/// A simple clumsy tag-component.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class ClumsyComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Damage dealt to a clumsy character when they try to fire a gun.
|
|
/// </summary>
|
|
[DataField(required: true), AutoNetworkedField]
|
|
public DamageSpecifier ClumsyDamage = default!;
|
|
|
|
/// <summary>
|
|
/// Sound to play when clumsy interactions fail.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier ClumsySound = new SoundPathSpecifier("/Audio/Items/bikehorn.ogg");
|
|
}
|