Throwing tweaks (#16266)

- Cartridge bounds decreased.
- Throwing pushback scales based on entity mass.
This commit is contained in:
metalgearsloth
2023-05-13 09:54:37 +10:00
committed by GitHub
parent 1f608dd637
commit d86294d547
3 changed files with 21 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ namespace Content.Server.Chemistry.EntitySystems
_physics.SetLinearDamping(physics, 0f);
_physics.SetAngularDamping(physics, 0f);
_throwing.TryThrow(vapor.Owner, dir, speed, user: user, pushbackRatio: 50f);
_throwing.TryThrow(vapor.Owner, dir, speed, user: user, pushbackRatio: ThrowingSystem.PushbackDefault * 10f);
var distance = (target.Position - vaporXform.WorldPosition).Length;
var time = (distance / physics.LinearVelocity.Length);