Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes locking movement a hotkey #53771

Merged
merged 5 commits into from Sep 19, 2020
Merged

Makes locking movement a hotkey #53771

merged 5 commits into from Sep 19, 2020

Conversation

ghost
Copy link

@ghost ghost commented Sep 16, 2020

馃啈 Qustinnus
code: Moves locking movement from being a hardcoded thing to being a customizable hotkey. The default for this is now Alt, moving movement toggle to C
/:cl:

still need to look into a bug that existed before this PR that causes the key to be let go even though you were holding it.

this pr was made in response to some of the comments in #53755

Fixes #50216

@tgstation-server tgstation-server added the Code Improvement Code is now easier to copy paste. label Sep 16, 2020
@Rohesie
Copy link
Member

Rohesie commented Sep 16, 2020

Fixes #50216
(Actually it doesn't yet, but you could get that fixed without much effort)

@ghost
Copy link
Author

ghost commented Sep 16, 2020

it does fix that, unless I misunderstood the issues.

@Rohesie
Copy link
Member

Rohesie commented Sep 16, 2020

If you hold ctrl while running, to click something, you'll stop where you are.
This does not seem to fix that.

Edit: I can't read. Disregard my comment. It does fix it.

Rohesie
Rohesie previously approved these changes Sep 16, 2020
Co-authored-by: Rohesie <rohesie@gmail.com>
Qustinnus and others added 3 commits September 16, 2020 20:04
Co-authored-by: Rohesie <rohesie@gmail.com>
Co-authored-by: Rohesie <rohesie@gmail.com>
Co-authored-by: Rohesie <rohesie@gmail.com>
@Tharcoonvagh
Copy link
Contributor

Dont make it alt, its used to see the contents of a tile, I suggest changing it to something like pause, since locking movement is a niche thing that not many people use or know about imo

@Rohesie
Copy link
Member

Rohesie commented Sep 16, 2020

Dont make it alt, its used to see the contents of a tile, I suggest changing it to something like pause, since locking movement is a niche thing that not many people use or know about imo

You can rebind it to something else if you want.
Alt makes sense, if you want to see the contents of a tile in general you'll stop moving as well.

@ghost
Copy link
Author

ghost commented Sep 16, 2020

what roh said was my thought process, noone runs and checks a tile

@Tharcoonvagh
Copy link
Contributor

Okay then, when I tried to bind stuff to alt and ctrl it refused to work, guess ill try again

@ATH1909
Copy link
Contributor

ATH1909 commented Sep 17, 2020

what roh said was my thought process, noone runs and checks a tile

No, but they do run and alt+click an extinguisher to extinguisher slip people or run and alt+click a door to shock it as a silicon.

Still, THANK YOU for this PR, it'll be a GODSEND for diehard borg mains. I'm just worried that, due to the key that you chose to move it to, it's gonna be quite annoying for anyone who HASN'T reconfigured their hotkeys yet. Could you maybe assign movement locking to "c" and keep the temporary movement mode change hotkey where it currently is (alt)?

@ATH1909
Copy link
Contributor

ATH1909 commented Sep 17, 2020

Wait, why have you kept the FaceNorth, FaceSouth, etc. hotkeys around? Aren't they now entirely redundant with this new movement locking hotkey?

@ATH1909
Copy link
Contributor

ATH1909 commented Sep 17, 2020

Also, isn't there some weird stuff you have to do whenever you update the preferences menus? Like, you have to update a version or something? I ran into that with my PR that added extra quickdraw hotkeys.

@Rohesie
Copy link
Member

Rohesie commented Sep 17, 2020

Also, isn't there some weird stuff you have to do whenever you update the preferences menus? Like, you have to update a version or something? I ran into that with my PR that added extra quickdraw hotkeys.

No, they are just not updated automatically. Which means the users will have to either assign them manually or reset to hotkey mode if they don't have custom changes.

@Angustmeta
Copy link
Contributor

Angustmeta commented Sep 19, 2020

Tested this now.

The 'turn north' etc bindings cause problems.

To bind 'block movement' to other keys than ctrl/alt/shift you must bind the "turn" keys to WASD, but that makes you turn oddly while walking diagonally.

@Rohesie
Copy link
Member

Rohesie commented Sep 19, 2020

The 'turn north' etc bindings cause problems.

To bind 'block movement' to other keys than ctrl/alt/shift you must bind the "turn" keys to WASD, but that makes you turn oddly while walking diagonally.

Could you expand on this / clarify?
What happens if you bind blocking movement to something like space? Do you still move?
Why do you need to bind facing to WASD to bind blocking movement to keys other than ctrl/alt/shift?

@ATH1909
Copy link
Contributor

ATH1909 commented Sep 22, 2020

Tested this now.

The 'turn north' etc bindings cause problems.

To bind 'block movement' to other keys than ctrl/alt/shift you must bind the "turn" keys to WASD, but that makes you turn oddly while walking diagonally.

I've binded "block movement" to u (and then c) with no issues. Could you show us a video or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Code is now easier to copy paste.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

control+WASD still roots you in place, even if you've changed your bindings
6 participants