using Robust.Shared.Containers;
using Robust.Shared.Physics.Components;
using Robust.Shared.Physics.Systems;
+using Robust.Shared.Utility;
namespace Content.Shared.Slippery;
_physics.SetLinearVelocity(other, physics.LinearVelocity * component.LaunchForwardsMultiplier, body: physics);
if (component.SuperSlippery)
- EnsureComp<SlidingComponent>(other);
+ {
+ var sliding = EnsureComp<SlidingComponent>(other);
+ sliding.CollidingEntities.Add(uid);
+ DebugTools.Assert(_physics.GetContactingEntities(other, physics).Contains(uid));
+ }
}
var playSound = !_statusEffects.HasStatusEffect(other, "KnockedDown");