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:
parent
e7711b8000
commit
5244330d58
|
|
@ -233,12 +233,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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue