Multiply pushback ratio by 10 for better recovery from being spaced (#5687)

Co-authored-by: 20kdc <asdd2808@gmail.com>
This commit is contained in:
wrexbe
2021-12-03 16:26:51 -08:00
committed by GitHub
parent e4defccd33
commit 076910eb04

View File

@@ -29,8 +29,8 @@ namespace Content.Server.Throwing
/// <param name="direction">A vector pointing from the entity to its destination.</param>
/// <param name="strength">How much the direction vector should be multiplied for velocity.</param>
/// <param name="user"></param>
/// <param name="pushbackRatio">The ratio of impulse applied to the thrower</param>
internal static void TryThrow(this IEntity entity, Vector2 direction, float strength = 1.0f, IEntity? user = null, float pushbackRatio = 1.0f)
/// <param name="pushbackRatio">The ratio of impulse applied to the thrower - defaults to 10 because otherwise it's not enough to properly recover from getting spaced</param>
internal static void TryThrow(this IEntity entity, Vector2 direction, float strength = 1.0f, IEntity? user = null, float pushbackRatio = 10.0f)
{
if (entity.Deleted ||
strength <= 0f ||