Refactor thrusters (#15698)
This commit is contained in:
@@ -6,6 +6,18 @@ namespace Content.Server.Shuttles.Components
|
||||
[ViewVariables]
|
||||
public bool Enabled = true;
|
||||
|
||||
[ViewVariables]
|
||||
public Vector2[] CenterOfThrust = new Vector2[4];
|
||||
|
||||
/// <summary>
|
||||
/// Thrust gets multiplied by this value if it's for braking.
|
||||
/// </summary>
|
||||
public const float BrakeCoefficient = 1.5f;
|
||||
|
||||
public const float MaxLinearVelocity = 10f;
|
||||
|
||||
public const float MaxAngularVelocity = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// The cached thrust available for each cardinal direction
|
||||
/// </summary>
|
||||
|
||||
@@ -46,10 +46,10 @@ namespace Content.Server.Shuttles.Components
|
||||
|
||||
// Need to serialize this because RefreshParts isn't called on Init and this will break post-mapinit maps!
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("thrust")]
|
||||
public float Thrust;
|
||||
public float Thrust = 100f;
|
||||
|
||||
[DataField("baseThrust"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float BaseThrust = 750f;
|
||||
public float BaseThrust = 100f;
|
||||
|
||||
[DataField("thrusterType")]
|
||||
public ThrusterType Type = ThrusterType.Linear;
|
||||
|
||||
Reference in New Issue
Block a user