Esc ensures that you will be able to clear the target by pressing escape.
The reason I need to rebind the other keys is a bit more complicated.
When a player presses "A" to attack, the mod needs to know about it. Then, the mod will stop trying to reselect an inactive target. Otherwise, it would continue to try to select the inactive target, which would order your hero to attack the inactive target. Same with patrol/move.
Ok, so now that the reselecting been temporarily disabled, the mod needs to know when the user has finished issuing the attack command, and it is once again safe to start reselecting. It does this by monitoring the mouse clicks. A left mouse click or a right mouse click both indicate that the user is done issuing the attack/move/patrol order, and it is safe to reselect.
now that's what i wanted to hear. thank you
so if i got it right you only need to rename/rebind right click in order
to monitor when a manual attack command gets canceled by a right click.
or is it targettable spells and items aswell?
cause if it's only the "A" thing:
since i almost never use manual attack via "A" anymore icould live with it not resuming to reselect my previous target when i abort via right click
so could you please hint me to the lines of code i have to alter for the right click thingy to work with deny? plspls ? ^^
-edit- or is it that right click deny simulates a click on the attack button which you disabled to avoid bugs?
Last edited by Creep666; 02-28-2010 at 12:38 PM.
i will stop annoing you now^^ using version 1.1 till the magic happens
Items and spells are monitored separately.
I'm assuming you know how to compile a mod, so I'll just tell you the lines to change.
In locktarget_init.cfg, delete this:
also delete this:Code:Do locktarget_bind_secondary;
In mod.xml, delete this:Code:Do locktarget_unbind_secondary;
also delete this:Code:<incompatibility name="Right Click Deny"/>
Code:<find><![CDATA[<instance name="keybind" label="options_label_secondary_keybind" table="game" action="CommanderSecondary" labelx="2.0h" hastip="1" tipheight="5.8h" tipid="co_secondarybtn_tip" tool_tip_content="options_label_secondary_keybind_tooltip" />]]></find> <replace><![CDATA[<!--<instance name="keybind" label="options_label_secondary_keybind" table="game" action="CommanderSecondary" labelx="2.0h" hastip="1" tipheight="5.8h" tipid="co_secondarybtn_tip" tool_tip_content="options_label_secondary_keybind_tooltip" />--> <instance name="keybind_impulse" label="options_label_secondary_keybind" table="game" action="Cmd" param="'#locktarget_cmd_secondary#'" />]]></replace>
^you sir, are my hero!
worked flawlessly, everything as i hoped it would be (no clicking sound etc)
There seems to be a problem with illusions. I caught an illusion rune with deadwood, and as I was trying to select only one illusion deadwood would be automatically reselected. When I finally selected one illusion, I couldn't reselect deadwood again..
the mod just has problems with every other controlable unit than the hero..
All problems with controllable units should have been fixed with the latest version.
(note, auto-update may not work, so make sure you are using v1.30)
If you are still having problems, please provide with a specific set of actions (ie, hotkeys pressed, mouse clicks, units selected) that I can use to duplicate the problem.
you really made some progress there, everything feels smooth. love how it doesn't reselect allied units anymore.
however i found a recreatable bug:
when you have multiple selected units
for example ophelia, a vulture lord and a catman
and you left click one of that units to select it individually
it will always switch to one specific creep (vulture lord)
that creep will have itself as target.
you'll be unable to click/tab/f1 to any other unit until you press escape
-edit- i think the circumstance for this to happen is that you convert the creep that is your current target. so it's really no biggie.
but the first time just f**ked me up when i wanted to click ophelia a hundred times and it reselected the creep^^
could you maybe put in some magic code that makes it impossible for a unit to have itself as a locked target??
that could solve the problem
focusing on the use of control groups didn't help either.
often when you want to switch to another group it just randomly locks one of your units...
Last edited by Creep666; 03-03-2010 at 10:13 PM.
I see, no more needed an extern script :-)
Last edited by Herandcosch; 03-14-2010 at 06:15 PM.
Double select centering now works, but when your target is inactive, it only works for your hero. (Note, it will work all the time when your target is active or nonexistant)
Fixed another control bug.
Yeah Right Click Deny doesn't work. Downloaded from the link on the OP.
Code:"Right Click Deny" caused a problem: Could not find string starting with "<instance name="keybind" label="options_label_secondary_keybind" table="game" action="CommanderSecondary" labelx="2.0h" hastip="1" tipheight= "5.8h" tipid="co_secondarybtn_tip" tool_tip_content="options_label_secondary_keybind_tooltip" /> "as sought by line 51 of C:\Program Files (x86)\Heroes of Newerth\game \mods\Rightclickdeny.honmod\mod.xml