Skip to content

Commit

Permalink
Movers Don't Accelerate Instantly (#47)
Browse files Browse the repository at this point in the history
# Media


https://github.com/Simple-Station/Parkstation-Friendly-Chainsaw/assets/77995199/e7405492-1e88-40a9-8a2c-0b377006551b

# Changelog

:cl:
- tweak: The crew have suddenly lost some strength in their legs and
can't stop or start moving instantly
  • Loading branch information
DEATHB4DEFEAT authored Feb 17, 2024
1 parent 402b6b0 commit 990a72b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ public sealed partial class MovementSpeedModifierComponent : Component
public const float DefaultWeightlessModifier = 0.7f;
public const float DefaultWeightlessAcceleration = 1f;

public const float DefaultAcceleration = 20f;
public const float DefaultFriction = 20f;
public const float DefaultFrictionNoInput = 20f;
// Parkstation-AcceleratingMovement Start
public const float DefaultAcceleration = 8f;
public const float DefaultFriction = 8f;
public const float DefaultFrictionNoInput = 14f;
// Parkstation-AcceleratingMovement End

public const float DefaultBaseWalkSpeed = 3f;
public const float DefaultBaseSprintSpeed = 5f;
Expand Down Expand Up @@ -100,7 +102,7 @@ private float _baseSprintSpeedVV
/// The negative velocity applied for friction.
/// </summary>
[AutoNetworkedField, ViewVariables(VVAccess.ReadWrite), DataField]
public float? FrictionNoInput;
public float? FrictionNoInput = DefaultFrictionNoInput; // Parkstation-AcceleratingMovement

[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
public float BaseWalkSpeed { get; set; } = DefaultBaseWalkSpeed;
Expand Down

0 comments on commit 990a72b

Please sign in to comment.