Page 1 of 2

action targeting

Posted: Mon Jun 01, 2020 2:20 pm
by Faef
Question for those who have knowledge of the availble api calls, would an addon that allowed for a cross hair to target, which on mouse click would select whats in the cross hair, be feasible please?

Re: action targetting

Posted: Mon Jun 01, 2020 2:32 pm
by Grock
And do this while in "hold rmb" mode without having to hold rmb and to free up a button

As far as i know though leftclick/rightclick are hardcoded in the game and can't be changed

Re: action targetting

Posted: Mon Jun 01, 2020 3:23 pm
by Faef
You can hold in rmb mode now without having to hold the button, you can lock into it by pressing and holding rmb then clicking lmb - for some reason you always need to go into keymapping and select return to default options first before it will work. But yes, its in this mode i would want to action target with xhair.

Re: action targetting

Posted: Mon Jun 01, 2020 3:25 pm
by Faef
I got an approximation of action targetting working with a steam controller, i added a xhair overlay to game then would have the mouse pointer move to this centre point and left click on click of button pad (all whilst in locked rmb mode). However, it couldnt handle movement at the same time, as mouse would continue to track as you actioned this.

Re: action targetting

Posted: Mon Jun 01, 2020 4:16 pm
by Akalukz
thought there was a cross hair addon already?

Re: action targetting

Posted: Mon Jun 01, 2020 4:38 pm
by Faef
with selecting target within the crosshair? Not aware of it if so, pretty sure someone started a project along these lines in the early days on live, but i dont think it got completed.

Re: action targetting

Posted: Mon Jun 01, 2020 4:43 pm
by Grock
Honestly i dont think its possible via addon API as you'd likely need to move the mouse cursor via code to make this happen.

But i imagine developers should be able to add this in the client itself

Re: action targetting

Posted: Mon Jun 01, 2020 5:40 pm
by Akalukz
Faef wrote: Mon Jun 01, 2020 4:38 pm with selecting target within the crosshair? Not aware of it if so, pretty sure someone started a project along these lines in the early days on live, but i dont think it got completed.
ahh got ya.

Re: action targeting

Posted: Mon Jun 01, 2020 7:52 pm
by Omegus
Faef wrote: Mon Jun 01, 2020 2:20 pm Question for those who have knowledge of the availble api calls, would an addon that allowed for a cross hair to target, which on mouse click would select whats in the cross hair, be feasible please?
100% impossible with the current API. As mentioned you would need a third party program to move the mouse location and click at the crosshair location when you pressed whatever button it was you have to target. I don't know whether the devs allow this kind of behaviour.

Re: action targeting

Posted: Mon Jun 01, 2020 7:58 pm
by Faef
that would be pointless, already replicated that with steamcontroller functions and it cant handle mouse movement, i.e. you cant rmb control your movement AND have a mouse pointer move to a point in space and select, which is why I was hoping you could do it via the api, shame, thanks for the info.

Just seems odd, given you have tab or nearest targeting, that you couldnt tap into these based on coordinates within screen space, but only if target selection methods those used are exposed by the api.