Spacelube slide (#24801)

* Space lube now makes you slide

* review

* oh lord he slippin

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Arendian
2024-02-01 11:39:10 +01:00
committed by GitHub
parent c4f275bc53
commit 4f3b8d740c
7 changed files with 112 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Slippery;
/// <summary>
/// Applies continuous movement to the attached entity when colliding with super slipper entities.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class SlidingComponent : Component
{
/// <summary>
/// A list of SuperSlippery entities the entity with this component is colliding with.
/// </summary>
[DataField, AutoNetworkedField]
public HashSet<EntityUid> CollidingEntities = new ();
/// <summary>
/// The friction modifier that will be applied to any friction calculations.
/// </summary>
[DataField, AutoNetworkedField]
public float FrictionModifier;
}