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>
This commit is contained in:
@@ -228,12 +228,12 @@ public abstract partial class SharedGravitySystem : EntitySystem
|
||||
|
||||
private void OnThrowerImpulse(Entity<GravityAffectedComponent> entity, ref ThrowerImpulseEvent args)
|
||||
{
|
||||
args.Push = true;
|
||||
args.Push |= IsWeightless((entity.Owner, entity.Comp));
|
||||
}
|
||||
|
||||
private void OnShooterImpulse(Entity<GravityAffectedComponent> entity, ref ShooterImpulseEvent args)
|
||||
{
|
||||
args.Push = true;
|
||||
args.Push |= IsWeightless((entity.Owner, entity.Comp));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user