-
Notifications
You must be signed in to change notification settings - Fork 124
feat(hotkey): Enable players to hold down hotkeys to queue multiple units #1935
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
base: main
Are you sure you want to change the base?
Conversation
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/MetaEvent.cpp
Outdated
Show resolved
Hide resolved
To provent the meta event translator from 'eating up' hotkey events.
|
It would be really cool if holding multiple hotkeys at once would queue units alternatingly between them. Example: holding A and B could queue units in an A → B → A → B pattern. |
|
This feature would also be really useful if you want to build a unit, but you are out of money. So you just hold down the button and no longer need to spam it. |
|
What is the risk that a player accidentally builds one extra unit due to holding the key too long? |
I think that's fair. I'll look into that. |
I'll check whether this is feasible.
Being able to queue units without paying in advance is not related to this PR and requires a bigger change. |
QoL improvement to make it more convenient to add units to build queues by holding down hotkeys.
Currently, a hotkey needs to be held down for longer than ~125 milliseconds to start queuing multiple units. Next units will take just over ~40 milliseconds (1 / 3 of the initial delay) to queue.