This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
forked from new-frontiers-14/frontier-station-14
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
15 changed files
with
32 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters