From 3aece8d46ccfd3e34b4263221010ef9644125dd0 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 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)); } }