2021-07-21 19:16:38 +10:00
|
|
|
namespace Content.Server.Stunnable.Components
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds stun when it collides with an entity
|
|
|
|
|
/// </summary>
|
2022-06-07 15:26:28 +02:00
|
|
|
[RegisterComponent, Access(typeof(StunOnCollideSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class StunOnCollideComponent : Component
|
2021-07-21 19:16:38 +10:00
|
|
|
{
|
|
|
|
|
// TODO: Can probably predict this.
|
|
|
|
|
|
2021-10-15 14:45:04 -07:00
|
|
|
// See stunsystem for what these do
|
2021-07-21 19:16:38 +10:00
|
|
|
[DataField("stunAmount")]
|
2021-10-10 12:47:26 +02:00
|
|
|
public int StunAmount;
|
|
|
|
|
|
2021-07-21 19:16:38 +10:00
|
|
|
[DataField("knockdownAmount")]
|
2021-10-10 12:47:26 +02:00
|
|
|
public int KnockdownAmount;
|
|
|
|
|
|
2021-07-21 19:16:38 +10:00
|
|
|
[DataField("slowdownAmount")]
|
2021-10-10 12:47:26 +02:00
|
|
|
public int SlowdownAmount;
|
|
|
|
|
|
|
|
|
|
[DataField("walkSpeedMultiplier")]
|
|
|
|
|
public float WalkSpeedMultiplier = 1f;
|
|
|
|
|
|
|
|
|
|
[DataField("runSpeedMultiplier")]
|
|
|
|
|
public float RunSpeedMultiplier = 1f;
|
2022-05-21 18:04:47 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Fixture we track for the collision.
|
|
|
|
|
/// </summary>
|
2022-11-16 20:22:11 +01:00
|
|
|
[DataField("fixture")] public string FixtureID = "projectile";
|
2021-07-21 19:16:38 +10:00
|
|
|
}
|
|
|
|
|
}
|