Added double-tapping stand-up bind to push yourself up. (#4802)

This commit is contained in:
Vanessa 2025-11-30 10:24:25 -06:00 committed by GitHub
parent 293239834c
commit 12b750aa91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -231,7 +231,14 @@ public abstract partial class SharedStunSystem
if (playerSession.AttachedEntity is not { Valid: true } playerEnt || !Exists(playerEnt))
return;
ToggleKnockdown(playerEnt);
// DeltaV - Double-tap Standup bind forces standup (unless hands full)
if (_standingState.IsDown(playerEnt)
&& TryComp<KnockedDownComponent>(playerEnt, out var knockedDown)
&& knockedDown.DoAfterId != null)
ForceStandUp(playerEnt);
else
ToggleKnockdown(playerEnt);
// END DeltaV
}
/// <summary>

View File

@ -1,6 +1,7 @@
stunnable-component-disarm-success-others = {CAPITALIZE(THE($source))} pushes {THE($target)}!
stunnable-component-disarm-success = You push {THE($target)}!
knockdown-component-pushup-failure = You're too exhausted to push yourself up!
knockdown-component-pushup-success = With a burst of energy you push yourself up!
# DeltaV - Added a bit about needing a free hand.
knockdown-component-pushup-success = With a burst of energy, you push yourself up with one of your free hands!
knockdown-component-stand-no-room = You try to push yourself to stand up but there's not enough room!
worm-component-stand-attempt = You try to stand up but you cannot!