Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Фиксы полетов аванпоста (#303)
Browse files Browse the repository at this point in the history
* Update anomalouslab.yml

* Update arena.yml

* Update beacon.yml

* Update cargodepot.yml

* Update caseyscasino.yml

* Update courthouse.yml

* Update cove.yml

* Update grifty.yml

* Update lodge.yml

* Update lpbravo.yml

* Update nfsd.yml

* Update tinnia.yml

* Update trade.yml

* Update FrictionRemoverSystem.cs

* Update MovementSpeedModifierComponent.cs
  • Loading branch information
Vonsant authored Jun 14, 2024
1 parent c0f75c9 commit 7c31f66
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 33 deletions.
37 changes: 18 additions & 19 deletions Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
//using Robust.Shared.Physics;
//using Robust.Shared.Physics.Components;
//using Robust.Shared.Physics.Systems;
using Robust.Shared.Physics;
using Robust.Shared.Physics.Components;
using Robust.Shared.Physics.Systems;

//namespace Content.Shared.SimpleStation14.Physics;
namespace Content.Shared.SimpleStation14.Physics;

//public sealed class FrictionRemoverSystem : EntitySystem
//{
// [Dependency] private readonly SharedPhysicsSystem _physics = default!;
public sealed class FrictionRemoverSystem : EntitySystem
{
[Dependency] private readonly SharedPhysicsSystem _physics = default!;


// public override void Initialize()
// {
// base.Initialize();
public override void Initialize()
{
base.Initialize();

// SubscribeLocalEvent<PhysicsComponent, PhysicsSleepEvent>(RemoveDampening);
// }
SubscribeLocalEvent<PhysicsComponent, PhysicsSleepEvent>(RemoveDampening);
}


// private void RemoveDampening(EntityUid uid, PhysicsComponent component, PhysicsSleepEvent args)
// {
// _physics.SetAngularDamping(component, 0, false);
// _physics.SetLinearDamping(component, 0);
// }
//}
// Пока не придумаем как закрепить станцию - не работает.
private void RemoveDampening(EntityUid uid, PhysicsComponent component, PhysicsSleepEvent args)
{
_physics.SetAngularDamping(component, 0, false);
_physics.SetLinearDamping(component, 0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed partial class MovementSpeedModifierComponent : Component
// Weightless
public const float DefaultMinimumFrictionSpeed = 0.005f;
public const float DefaultWeightlessFriction = 1f;
public const float DefaultWeightlessFrictionNoInput = 0.2f;
public const float DefaultWeightlessFrictionNoInput = 0f; // Frontier
public const float DefaultWeightlessModifier = 0.7f;
public const float DefaultWeightlessAcceleration = 1f;

Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/anomalouslab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/arena.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/beacon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/cargodepot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/caseyscasino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/courthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/cove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/grifty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/lodge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/lpbravo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/nfsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/tinnia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 999999
linearDamping: 999999
fixedRotation: False
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/trade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ entities:
version: 6
- type: Broadphase
- type: Physics
bodyStatus: InAir
bodyStatus: OnGround
angularDamping: 0.05
linearDamping: 0.05
fixedRotation: False
Expand Down

0 comments on commit 7c31f66

Please sign in to comment.