#Smart Cast Commands

1 messages · Page 1 of 1 (latest)

wispy mango
#

Download: https://github.com/zxbc/BAR_widgets/blob/main/gui_smart_commands.lua

For those of you who already used my instant d-gun widget, this makes all commands work like that.

This is a widget that makes issuing any command a "smart cast", where you press the key to set command active, and release the key to issue the command at your mouse cursor. If a unit or feature is below the cursor, the command should automatically be used on it; otherwise the command will be issued as a ground targeting command.

Build commands are excluded.

Formation commands can still be issued - simply do right mouse button drag when command key is held down. Area commands also work, just do left mouse button drag while the command key is held down.

It might take some getting used to, but it might open up new ways to play the game with higher efficiency with reduced mouse clicks.

**Latest Updates: **

  • Fixed Ctrl and Alt modifiers in actual keybind shortcuts.
  • Super enhanced meta key integration: now command keys can be pressed AFTER meta key is held down, much like with shift key.
  • Fixed the issue with shift+settarget not working properly together.

Previous Updates:

  • Fixed issue with mex/area mex canceling build queue.
  • Fixed issue with blueprints getting deselected after units pop out of factories.
  • Fixed an issue where attack, manualfire, patrol and fight commands can fail when used on a feature (they now target the ground below the feature).
  • Fixed logic errors and now button pressing should feel more responsive and can be mashed faster.
  • Added toggle for on/off, default alt+backspace.

Feedback on bugs and ideas for improvement is extremely welcome!

wispy mango
#

Smart Cast Commands

brave geyser
#

can't selfd

wispy mango
brave geyser
#

my selfd is like on default gridkeys, so Ctrl+B

#

I can selfd on normal keys but not on grid

#

it just gives the selfd beep and nothing else happens, maybe it is instantly activating and cancelling selfd ?

brave geyser
#

for now I changed my selfd to Ctrl+D and it works, so it is something specific to Ctrl+B

wispy mango
#

yeah apparently it's not just selfd, I am noticing lots of problems, I'm going to work on it at some point, it seems certain keybinds are clashing with the way it's detecting the keys

wispy mango
covert mist
#

e

stoic shard
#

Weird bug, but this widget doesn't work in FFA mode

#

every other mode works fine

old oracle
#

@wispy mango, added a pull request on Github which makes the widget skip toggle commands, which makes it work better with Grid Optimized controls. Otherwise toggles in Grid Optimized work like default toggles instead of optimized

stoic shard
#

This is so good I wonder if it should be a base game option?

near path
#

@stark crypt what's your take on this? Commands where you hold down the hotkey for the command and on release it is executed at cursor location?

spiral bobcat
#

I like this, but the menu custom tab should have a list of toggles.
you dont want everything like this!