Skip to content

Commit

Permalink
Re-adds 0.2 second delay to getting up, sorta borked it when it was l…
Browse files Browse the repository at this point in the history
…iterally 0
  • Loading branch information
spess-empyrean committed Jan 13, 2025
1 parent 98fe0f6 commit e6d970c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Content.Shared/Standing/LayingDownComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Content.Shared.Standing;
public sealed partial class LayingDownComponent : Component
{
[DataField, AutoNetworkedField]
public TimeSpan StandingUpTime = TimeSpan.FromSeconds(0);
public TimeSpan StandingUpTime = TimeSpan.FromSeconds(0.2);

[DataField, AutoNetworkedField]
public float LyingSpeedModifier = 0.35f,
Expand Down
4 changes: 1 addition & 3 deletions Content.Shared/Standing/SharedLayingDownSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ public bool TryStandUp(EntityUid uid, LayingDownComponent? layingDown = null, St
if (!_doAfter.TryStartDoAfter(args))
return false;

// In case the DoAfter immediately finishes.
if (standingState.CurrentState != StandingState.Standing)
standingState.CurrentState = StandingState.GettingUp;
standingState.CurrentState = StandingState.GettingUp;
layingDown.IsCrawlingUnder = false;
return true;
}
Expand Down

0 comments on commit e6d970c

Please sign in to comment.