From 5244330d585d581412fc96e0b873ae2b29df5ec3 Mon Sep 17 00:00:00 2001 From: Winkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com> Date: Sat, 13 Sep 2025 22:51:13 +0300 Subject: [PATCH] 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> --- Content.Shared/Gravity/SharedGravitySystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/Gravity/SharedGravitySystem.cs b/Content.Shared/Gravity/SharedGravitySystem.cs index 87e192f5ac..7471cc6fe8 100644 --- a/Content.Shared/Gravity/SharedGravitySystem.cs +++ b/Content.Shared/Gravity/SharedGravitySystem.cs @@ -233,12 +233,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)); } }