2024-09-12 21:52:04 +03:00
|
|
|
using Content.Shared.Standing.Systems;
|
2022-07-29 14:13:12 +12:00
|
|
|
using Robust.Shared.Audio;
|
2021-10-15 14:45:04 -07:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
2023-08-06 09:19:47 +01:00
|
|
|
namespace Content.Shared.Stunnable;
|
2021-10-15 14:45:04 -07:00
|
|
|
|
2023-08-06 09:19:47 +01:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SharedStunSystem))]
|
|
|
|
|
public sealed partial class KnockedDownComponent : Component
|
|
|
|
|
{
|
2024-09-12 21:52:04 +03:00
|
|
|
[DataField, AutoNetworkedField]
|
2023-08-06 09:19:47 +01:00
|
|
|
public float HelpInterval = 1f;
|
2021-10-15 14:45:04 -07:00
|
|
|
|
2024-09-12 21:52:04 +03:00
|
|
|
[DataField]
|
2023-08-06 09:19:47 +01:00
|
|
|
public SoundSpecifier StunAttemptSound = new SoundPathSpecifier("/Audio/Effects/thudswoosh.ogg");
|
2021-10-15 14:45:04 -07:00
|
|
|
|
2023-08-06 09:19:47 +01:00
|
|
|
[ViewVariables, AutoNetworkedField]
|
|
|
|
|
public float HelpTimer = 0f;
|
2024-09-12 21:52:04 +03:00
|
|
|
|
|
|
|
|
// WD added start
|
|
|
|
|
// Holy shit why is this so long
|
|
|
|
|
[DataField, AutoNetworkedField]
|
|
|
|
|
public SharedStandingStateSystem.DropHeldItemsBehavior KnockDownBehavior = SharedStandingStateSystem.DropHeldItemsBehavior.DropIfStanding;
|
|
|
|
|
// WD added end
|
2021-10-15 14:45:04 -07:00
|
|
|
}
|