Skip to content

Invert the Running/Walking States#485

Merged
DangerRevolution merged 8 commits intoSimple-Station:masterfrom
DEATHB4DEFEAT:invert-sprint
Aug 1, 2024
Merged

Invert the Running/Walking States#485
DangerRevolution merged 8 commits intoSimple-Station:masterfrom
DEATHB4DEFEAT:invert-sprint

Conversation

@DEATHB4DEFEAT
Copy link
Copy Markdown
Member

@DEATHB4DEFEAT DEATHB4DEFEAT commented Jun 24, 2024

Description

Ports Simple-Station/Parkstation-Friendly-Chainsaw#39

A change made to encourage people to stop and smell the roses, instead of sprinting everywhere trying to get shit done.
This goes well with #486, so people don't actually have to rush places to try to get things done before the shift ends fatally.
It's weird anyway how we're all constantly sprinting everywhere and have to very actively choose not to (and why would you?).
Increases the default speeds so that walking isn't painfully slow and sprinting feels more like sprinting in combination with the active choice to sprint.

Someone needs to PR changing the default sprint or examine buttons, so people can fight and sprint with this change.
(A lot of other default keybinds suck or conflict too and need to change)

Media

Terrible video but whatever

2024-07-20_00-12-13.mp4

Changelog

🆑

  • tweak: The station's crew hivemind has decided to slow down their movement and enjoy The Park instead of sprinting everywhere

Simple-Station/Parkstation#193

🆑
- tweak: The station's crew hivemind has decided to slow down their
movement and enjoy The Park instead of sprinting everywhere
@DEATHB4DEFEAT DEATHB4DEFEAT added Size: 4-Small For small issues/PRs Priority: 3-Medium Needs to be resolved at some point Type: Port Brings something to here from another codebase labels Jun 24, 2024
@github-actions github-actions bot added Changes: C# Changes any cs files Changes: Localization Changes any ftl files Changes: YML Changes any yml files labels Jun 24, 2024
@DEATHB4DEFEAT DEATHB4DEFEAT requested a review from VMSolidus June 24, 2024 07:34
@github-actions github-actions bot added the Status: Needs Review Someone please review this label Jun 24, 2024
@ShadesMars
Copy link
Copy Markdown
Contributor

Im not a fan of this change, i like the shift to slow down because else mostly nearly everyone is going to hold shift to just walk, and that just may be annoying.

@DEATHB4DEFEAT
Copy link
Copy Markdown
Member Author

Im not a fan of this change, i like the shift to slow down because else mostly nearly everyone is going to hold shift to just walk, and that just may be annoying.

Use toggle sprint or slow down and enjoy The Park.

@DEATHB4DEFEAT DEATHB4DEFEAT removed their assignment Jun 24, 2024
DangerRevolution

This comment was marked as resolved.

@DEATHB4DEFEAT

This comment was marked as resolved.

@DangerRevolution

This comment was marked as resolved.

@DEATHB4DEFEAT
Copy link
Copy Markdown
Member Author

Added a description explaining rationale.

ui-options-function-move-down = Move Down
ui-options-function-move-right = Move Right
ui-options-function-walk = Walk
ui-options-function-walk = Run
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misleading fluent key

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know why this is the engine. I can't change this.

image

image

Androclast

This comment was marked as resolved.

@DangerRevolution

This comment was marked as resolved.

@github-actions github-actions bot added the Status: Merge Conflict FIX YOUR PR AAAGH label Jun 25, 2024
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the Status: Merge Conflict FIX YOUR PR AAAGH label Jun 25, 2024
@DangerRevolution DangerRevolution marked this pull request as draft July 4, 2024 08:28
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the Status: Merge Conflict FIX YOUR PR AAAGH label Jul 20, 2024
@github-actions github-actions bot removed the Status: Merge Conflict FIX YOUR PR AAAGH label Jul 20, 2024
@DEATHB4DEFEAT DEATHB4DEFEAT removed the Status: Needs Discussion Must be discussed label Jul 20, 2024
@github-actions github-actions bot added the Status: Merge Conflict FIX YOUR PR AAAGH label Jul 20, 2024
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@DEATHB4DEFEAT DEATHB4DEFEAT marked this pull request as ready for review July 20, 2024 07:18
@github-actions github-actions bot removed the Status: Merge Conflict FIX YOUR PR AAAGH label Jul 20, 2024
Copy link
Copy Markdown
Member

@VMSolidus VMSolidus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually went through and read the code this time. This is good. :)

Comment on lines +77 to +80
//NOTE I don't think I'm supposed to do this
public bool Sprinting => IoCManager.Resolve<IConfigurationManager>().GetCVar(CCVars.GameSprintWalks)
? (HeldMoveButtons & MoveButtons.Sprint) != 0x0
: (HeldMoveButtons & MoveButtons.Sprint) == 0x0;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's logic in my Components!

Yeah, this isn't ideal, Component should just hold the state. This is also a really goofy way of doing it. You're also querying the CVar every single time this is checked, which doesn't seem ideal?


ui-options-hotkey-keymap = Use US QWERTY Keys
ui-options-hotkey-toggle-walk = Toggle Walk
ui-options-hotkey-toggle-walk = Toggle Speed
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite sure about this, same reason with it being an optional change. You could make two separate Loc strings, one for walk and one for sprint, that wouldn't be unreasonable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an engine bind, I cannot make it switch between two locales.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes: C# Changes any cs files Changes: Localization Changes any ftl files Changes: YML Changes any yml files Priority: 3-Medium Needs to be resolved at some point Size: 4-Small For small issues/PRs Status: Needs Review Someone please review this Type: Port Brings something to here from another codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants