]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Throwing system hotfix (#29935)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Fri, 12 Jul 2024 10:32:47 +0000 (12:32 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Jul 2024 10:32:47 +0000 (20:32 +1000)
throwing system hotfix

Content.Shared/Hands/Components/HandsComponent.cs
Content.Shared/Throwing/ThrowingSystem.cs

index 84a389a39c5f53583d3284b2f9d745dd74df7419..01579cccdb79ec14c53d5829a5a70be0a15139f0 100644 (file)
@@ -42,7 +42,7 @@ public sealed partial class HandsComponent : Component
     /// </summary>
     [DataField]
     [ViewVariables(VVAccess.ReadWrite)]
-    public float BaseThrowspeed { get; set; } = 10f;
+    public float BaseThrowspeed { get; set; } = 11f;
 
     /// <summary>
     ///     Distance after which longer throw targets stop increasing throw impulse.
index 56bbf4c2bf3dd27f9d7eaf32d7ce27fd253b1f4a..549473278e40126c133b6ea13b4e49fa8ff66372 100644 (file)
@@ -26,11 +26,6 @@ public sealed class ThrowingSystem : EntitySystem
 
     public const float PushbackDefault = 2f;
 
-    /// <summary>
-    /// The minimum amount of time an entity needs to be thrown before the timer can be run.
-    /// Anything below this threshold never enters the air.
-    /// </summary>
-    public const float MinFlyTime = 0.15f;
     public const float FlyTimePercentage = 0.8f;
 
     private float _frictionModifier;
@@ -168,9 +163,6 @@ public sealed class ThrowingSystem : EntitySystem
         var flyTime = direction.Length() / baseThrowSpeed;
         if (compensateFriction)
             flyTime *= FlyTimePercentage;
-
-        if (flyTime < MinFlyTime)
-            flyTime = 0f;
         comp.ThrownTime = _gameTiming.CurTime;
         comp.LandTime = comp.ThrownTime + TimeSpan.FromSeconds(flyTime);
         comp.PlayLandSound = playSound;