Crawling Part 1: The Knockdownening (#36881)
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: ScarKy0 <scarky0@onet.eu>
This commit is contained in:
committed by
GitHub
parent
cfb0a95035
commit
dec2d42a1d
23
Content.Shared/Movement/Components/WormComponent.cs
Normal file
23
Content.Shared/Movement/Components/WormComponent.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Movement.Components;
|
||||
|
||||
/// <summary>
|
||||
/// This component ensures an entity is always in the KnockedDown State and cannot stand. Great for any entities you
|
||||
/// don't want to collide with other mobs, don't want eating projectiles and don't want to get knocked down.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class WormComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Modifier for KnockedDown Friction, or in this components case, all friction
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public float FrictionModifier = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// Modifier for KnockedDown Movement, or in this components case, all movement
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public float SpeedModifier = 1f;
|
||||
}
|
||||
Reference in New Issue
Block a user