Fix thrusters, add new max velocity calculation (#19688)

This commit is contained in:
router
2023-09-04 22:33:47 +03:00
committed by GitHub
parent a20211a1df
commit 0b94825182
3 changed files with 62 additions and 11 deletions

View File

@@ -16,7 +16,11 @@ namespace Content.Server.Shuttles.Components
/// </summary>
public const float BrakeCoefficient = 1.5f;
public const float MaxLinearVelocity = 20f;
/// <summary>
/// Maximum velocity assuming unupgraded, tier 1 thrusters
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public float BaseMaxLinearVelocity = 20f;
public const float MaxAngularVelocity = 4f;
@@ -26,6 +30,12 @@ namespace Content.Server.Shuttles.Components
[ViewVariables]
public readonly float[] LinearThrust = new float[4];
/// <summary>
/// The cached thrust available for each cardinal direction, if all thrusters are T1
/// </summary>
[ViewVariables]
public readonly float[] BaseLinearThrust = new float[4];
/// <summary>
/// The thrusters contributing to each direction for impulse.
/// </summary>