From: Winkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com> Date: Sat, 13 Sep 2025 19:51:13 +0000 (+0300) Subject: Fix throwing objects causing pushback on the player who threw them in a not weightles... X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3aece8d46ccfd3e34b4263221010ef9644125dd0;p=space-station-14.git Fix throwing objects causing pushback on the player who threw them in a not weightless environment (#40335) * Fix * Update Content.Shared/Gravity/SharedGravitySystem.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- diff --git a/Content.Shared/Gravity/SharedGravitySystem.cs b/Content.Shared/Gravity/SharedGravitySystem.cs index a8f1be8287..d9a0a70d94 100644 --- a/Content.Shared/Gravity/SharedGravitySystem.cs +++ b/Content.Shared/Gravity/SharedGravitySystem.cs @@ -228,12 +228,12 @@ public abstract partial class SharedGravitySystem : EntitySystem private void OnThrowerImpulse(Entity entity, ref ThrowerImpulseEvent args) { - args.Push = true; + args.Push |= IsWeightless((entity.Owner, entity.Comp)); } private void OnShooterImpulse(Entity entity, ref ShooterImpulseEvent args) { - args.Push = true; + args.Push |= IsWeightless((entity.Owner, entity.Comp)); } }