Stop atmos spamming physics bodies awake
ApplyLinearImpulse already wakes it up so there's no point for this besides slammin physics.
This commit is contained in:
@@ -45,7 +45,6 @@ namespace Content.Server.Atmos.Components
|
|||||||
if (!Owner.TryGetComponent(out PhysicsComponent? physics))
|
if (!Owner.TryGetComponent(out PhysicsComponent? physics))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
physics.WakeBody();
|
|
||||||
// TODO ATMOS stuns?
|
// TODO ATMOS stuns?
|
||||||
|
|
||||||
var transform = physics.Owner.Transform;
|
var transform = physics.Owner.Transform;
|
||||||
@@ -62,7 +61,6 @@ namespace Content.Server.Atmos.Components
|
|||||||
&& (maxForce >= (MoveResist * MoveForcePushRatio)))
|
&& (maxForce >= (MoveResist * MoveForcePushRatio)))
|
||||||
|| (physics.BodyType == BodyType.Static && (maxForce >= (MoveResist * MoveForceForcePushRatio))))
|
|| (physics.BodyType == BodyType.Static && (maxForce >= (MoveResist * MoveForceForcePushRatio))))
|
||||||
{
|
{
|
||||||
|
|
||||||
if (physics.Owner.HasComponent<IMobStateComponent>())
|
if (physics.Owner.HasComponent<IMobStateComponent>())
|
||||||
{
|
{
|
||||||
physics.BodyStatus = BodyStatus.InAir;
|
physics.BodyStatus = BodyStatus.InAir;
|
||||||
|
|||||||
Reference in New Issue
Block a user