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>
23 lines
663 B
C#
23 lines
663 B
C#
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>
|
|
/// The friction modifier that will be applied to any friction calculations.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float FrictionModifier;
|
|
|
|
/// <summary>
|
|
/// Hashset of contacting entities.
|
|
/// </summary>
|
|
[DataField]
|
|
public HashSet<EntityUid> Contacting = new();
|
|
}
|