Bump up tile friction (#4329)

* Bump up tile friction

* Increase throwing speed

* Fix ExplosionLaunched throwing

* Flying time
This commit is contained in:
metalgearsloth
2021-07-25 16:58:02 +10:00
committed by GitHub
parent d1f8d3869c
commit 29e335c54d
5 changed files with 47 additions and 12 deletions

View File

@@ -132,8 +132,10 @@ namespace Content.Server.Hands
if (direction == Vector2.Zero)
return true;
var throwVec = direction.Normalized * MathF.Min(direction.Length, hands.ThrowRange) * hands.ThrowForceMultiplier;
throwEnt.TryThrow(throwVec, playerEnt);
direction = direction.Normalized * Math.Min(direction.Length, hands.ThrowRange);
var throwStrength = hands.ThrowForceMultiplier;
throwEnt.TryThrow(direction, throwStrength, playerEnt);
return true;
}