Add slipping moving you forward a few tiles (#1520)
* Add slipping moving you forward * Check for weightless and change decay to a multiplier * Pragma moment
This commit is contained in:
@@ -74,6 +74,12 @@ namespace Content.Shared.GameObjects.Components.Movement
|
||||
return false;
|
||||
}
|
||||
|
||||
if (entity.TryGetComponent(out ICollidableComponent collidable))
|
||||
{
|
||||
var controller = collidable.EnsureController<SlipController>();
|
||||
controller.LinearVelocity = collidable.LinearVelocity;
|
||||
}
|
||||
|
||||
stun.Paralyze(5);
|
||||
_slipped.Add(entity.Uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user