-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ready for Testmerge] Implement Diagonal Movement #11358
[Ready for Testmerge] Implement Diagonal Movement #11358
Conversation
Initial, add in diagonal movement
Holy fuck, you can hotkey selecting specific zones on the body now (nvm already mapped to numpad, but 'can map them to something more convenient' heheh. Only caviat is that to aim for hands you have to hit the arm select hotkey twice, or to aim for eyes you gotta hit the head hotkey twice. This is going to be mega robust, I've been thinking about that for ages! This is the future! |
Yeah its going to be a lot better than what we have now but Id still like to see a radial menu for body part targeting |
code/modules/keybindings/setup.dm
Outdated
winset(src, "[setname]-[REF(key)]", "parent=[setname];name=[key];command=[command]") | ||
|
||
if(prefs.toggles & HOTKEYS) | ||
winset(src, null, "mapwindow.map.focus=true input.background-color=#e0e0e0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't set hotkeys yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't know what to do with this yet honestly might need to scrap the check completely later on and just use a separate system
Can we not have the numpad region targeting? This broke my numpad full of emotes before, and a lot of people also have numpads full of emotes, who will also be pissed |
Once this is working I’ll make it an config option along with AZERTY support |
Could always have the numpad emotes require another key be pressed shrug I have mine all long the standard number row but you need to use shift too so it avoids command conflict. I think we should value standard keybinds for key priority rather than macros because macros can be comb eniently and dynamically remapped. We shouldn't be afraid of utilizing the numpad for this reason |
I apologize in advance to the poor maintainer who will have to review this frankenstein abomination of code |
During the test merge it seems this broke movement for some people inconsistently. Problems reported included:
I cannot replicate it myself locally for now. |
Holy crap ninjanomnom fixed it |
Shift middle click locks your direction again Spacepods now move again(literally one letter fixed this) Holster hotkey is back!(H to holster and unholster) Hotkey Toggle button has been removed from the bottom bar and verbs
@@ -1037,7 +1037,7 @@ obj/spacepod/proc/add_equipment(mob/user, var/obj/item/spacepod_equipment/SPE, v | |||
return stop() | |||
|
|||
/obj/spacepod/relaymove(mob/user, direction) | |||
if(usr != src.pilot) | |||
if(user != src.pilot) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slow clap
God bless |
What does this PR do:
Port over TG diagonal movement and their keybinding system(macros will not work for diagonal movement)
Changelog:
🆑
add: Diagonal movement
add: Input subsystem(numpad targetting, press numpad 8 multiple times to target eyes and mouth, numpad 6 or 4 to target arms and press them again to target hands and numpad 1 or 3 to target legs and press them again to target feet) taken from tgstation/tgstation#32751
add: change confused status to have you move diagonally randomly in the direction you're headed if not too confused(now you can drunkenly walk down the hall)
add: clients are now children of datums like everything else in BYOND taken from tgstation/tgstation#20394
add: AZERTY and numpad targetting preferences
/:cl:
NOW REQUIRES SQL UPDATE