Files
tbd-station-14/Content.Server/Stunnable/Components/StunOnCollideComponent.cs
Vera Aguilera Puerto c5f7c61041 Fix some friend access violations by allowing others access. (#8594)
Rename Friend attribute to Access attribute.
Updates submodule to v0.21.0.0 as well.
2022-06-07 11:30:27 +02:00

33 lines
933 B
C#

namespace Content.Server.Stunnable.Components
{
/// <summary>
/// Adds stun when it collides with an entity
/// </summary>
[RegisterComponent, Access(typeof(StunOnCollideSystem))]
public sealed class StunOnCollideComponent : Component
{
// TODO: Can probably predict this.
// See stunsystem for what these do
[DataField("stunAmount")]
public int StunAmount;
[DataField("knockdownAmount")]
public int KnockdownAmount;
[DataField("slowdownAmount")]
public int SlowdownAmount;
[DataField("walkSpeedMultiplier")]
public float WalkSpeedMultiplier = 1f;
[DataField("runSpeedMultiplier")]
public float RunSpeedMultiplier = 1f;
/// <summary>
/// Fixture we track for the collision.
/// </summary>
[ViewVariables, DataField("fixture")] public string FixtureID = "projectile";
}
}