[entity] Mega Spray Bottle (#15558)

This commit is contained in:
Nemanja
2023-04-21 05:16:33 -04:00
committed by GitHub
parent 6783bce00b
commit e4642cefcb
8 changed files with 62 additions and 3 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, speed, user: user, pushbackRatio: 50f);
var distance = (target.Position - vaporXform.WorldPosition).Length;
var time = (distance / physics.LinearVelocity.Length);