NEW 1.7.0 Update!
* FULLY PLAYABLE IN PVP AND PVE *
** NOW SUPPORTS SHADOWLANDS & WOW CLASSIC **
SOURCE CODE AVAILABLE -- ACCEPTING PULL REQUESTS
Adds a keybind toggle and smart mouselook locking to World of Warcraft. This AddOn should not interfere with your current hotkey setup or configuration.
This enables the binding of left and right mouse clicks, along with their respective modifier keys
HELP WANTED: I'd love to see some great videos of questing/pvp/raid/dungeon action using this AddOn, if you make a video up I'll feature it here. :) Thanks Everyone!
JOIN US ON DISCORD https://discord.gg/5mwBSmz
INSTRUCTIONS: Install the AddOn and enter your Keybindings settings, you will find "Combat Mode" listed there. Map the toggle key to a key of your choice to enable Combat Mode. Pressing the Combat Mode hotkey will TOGGLE on and off. When toggled off, your mouse buttons are remapped to what they were originally. You may also use the HOLD keybind to enable or disable combat mode quickly.
Features:
- Handles Ground Targeting Skills (Releases cursor, returns after cast)
- Handles Pet Casting / Move abilities (Releases cursor, returns after cast)
- Mappable toggle and hold keys for Combat Mode
- Mappable mouse clicks
- Automatically releases the mouse cursor when specific frames are visible (Quest Text/Map/Bags etc) and returns to combat mode. For example, you can open your bags, your mouse cursor is available and close them without having to re-enable Combat Mode. This also works for questing.
Mouse1 and Mouse2 while in Combat mode have new functionality
DEFAULT CONTROLS
- Mouse1: ACTION BUTTON 1
- Mouse2: ACTION BUTTON 2
- Control+Click Mouse 1: TARGET SCAN ENEMY
- Control+Click Mouse 2: TARGET NEAREST FRIENDLY
- ALT/SHIT + LEFT OR RIGHT CLICK: INTERACT WITH TARGET
KEYBINDING MOUSE CLICKS
You can change the keybinds in the interface options.
Simply type /cm or /combatmode or enter Interface Options -> Combat Mode
Features in Progress
Bugfixes- Improve detection of frames and interactions
Display user feedback when combat mode is toggled- Input instructions into combat mode bindings page
Added Compatibility With
ChangeLog
- 1.7.0 Added new actions and modifiers (alt/shift) for click binding and fixed a bug where you had to press the enable key twice to start it
- 1.6.1 Removed PVPReadyDialog as it was causing a bug
- 1.6.0 Added support for Shadowlands & WoW Classic, fixed some long standing bugs
- 1.5.3 Fixed flight paths
- 1.5.2 Debugging code removed
- 1.5.1 Refactoring
- 1.5.0 Removed smart targeting, tons of bug fixes
- 1.4.1 Fixed bug on load which required user to toggle twice to activate
- 1.4.0 Added support for Battle for Azeroth + Changed Default Controls
- 1.3.1 Found and fixed some edge cases where combat mode doesn't release cursor
- 1.3.0 Added additional keybinds
- 1.2.9 Quality of life update. (doesn't drop out when blocking frames are on screen)
- 1.2.8 Added ability to rebind or disable Smart Targeting feature
- 1.2.7 Rework of combatmode script, changed the way events are handled.
- 1.2.6 Hold to release bug should be fully resolved
- 1.2.5 Improved bug with Hold to Release which was introduced in 1.2.4, still happens on occasion
- 1.2.4 Fixed bug when dropping combat mode with pet ability enabled
- 1.2.3 Added support for Pet Move / Targeting abilities, releases cursor appropriately
- 1.2.2 Further debugging and restructuring
- 1.2.1 Bugfixes for Smart Targeting. Jittery mouse issue resolved.
- 1.2.0 Added Smart Targeting to Mouse1 clicks while in combat mode, added Keybinds
- 1.1.0 Added Mouse Keybind support in Interface Options under "Combat Mode"
- 1.0.9 Updated Keybindings to fix issue with selecting friendly targets. Fixed GW2-ui compatibility.
- 1.0.8 Updated Keybindings, added support for Transmogrification window
- 1.0.7 Added support for GW2-ui AddOn
- 1.0.6 Performance Enhanced for low CPU systems
- 1.0.5 Added HOLD keybind to activate or switch modes, Added support for BagNon AddOn
- 1.0.4 Fixed bindings issues
- 1.0.3 Improved efficiency, refactored to prepare for additional features
- 1.0.2 Fixed some typos
- 1.0.1 Added Immersion AddOn compatibility
- 1.0.0 Initial Release
Thanks to our contributors
spizypie - code updates during shadowlands
zaephirmoth - testing of initial release
Is there a way to get it working with ElvUI?
If ElvUI loads the buttons don't work.
how to split ALT / SHIFT functions? when changing ALT, my shift also changes
Appending : "SortedFrame", to CombatMode.lua under the section local FramesToCheck enables compatibility with the new bag mod Sorted.
Example:
Thanks for the AMAZING add-on! And thanks for the clean code that allows dumb people like me to figure out simple things like this.
Hey man, I really like the idea of your addon, but I'm having some trouble using it. I'm setting the keybind to toggle it but it is not turning it on.
Please let me know if you have any problems or suggestions for this mod, and which version you're using if you're having issues.
WoW was not intended to do this out of the box, so this took some tuning to get just right. I think it's very playable in its current state, hopefully they integrate a feature like this into the main client in the future.
Thank you.
Hello Combat Mode users, I have just picked up WoW again and will be making some updates. A few users have sent me some updated code, and I will be releasing version 2.0 of CM shortly. Stay tuned.
Didn't this addon used to release the cursor when you opened your bags or any UI panel?
Also:
1x [ADDON_ACTION_BLOCKED] AddOn 'CombatMode' tried to call the protected function 'SetMouselookOverrideBinding()'.
[string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string "=[C]"]: in function `SetMouselookOverrideBinding'
[string "@CombatMode\CombatMode-1.5.3.lua"]:200: in function `BindBindingOverrides'
[string "@CombatMode\CombatMode-1.5.3.lua"]:263: in function `Toggle'
[string "@CombatMode\CombatMode-1.5.3.lua"]:271: in function `CombatModeToggleKey'
[string "Combat Mode Toggle"]:1: in function <[string "Combat Mode Toggle"]:1>
In reply to RealRobD:
this should be fixed now.
In reply to RealRobD:
it does now, there was a game breaking bug during some update to the wow api's
Make this addOn available for Vanilla and WoTLK please!
I can't no longer play wow without this addon. lol
In reply to azraftt:
this addon works in classic as is.
In reply to BaronSolace:
Really? OMG, I must be doing something wrong then. I just dropped the file on my AddOns folder. I'll give it another try. Thank you!
In reply to azraftt:
use this macro instead of assigning the keybinds. the menu keybinds are glitchy so i just unbind them put the macro on your bars
/script CombatMode:Toggle()
In reply to BaronSolace:
In reply to BaronSolace:
YOU ARE THE BEST THANKSSSSS
In reply to CaptainHizzy:
Done!
In reply to CaptainHizzy:
it's a good time to play wow again, new expansion, updated combat mode... let's gooooo! :)
Really loving this addon, not having to hold down the right mouse button all the time is amazing. Haven't found any bugs yet (just installed it and trying it out). I do have a suggestion though, if I may?
It would be really nice if there was a way to always put the cursor at a specific x / y corrdinate on the screen when it gets hidden & have it go back to that x / y coordinate after every cursor action. That way you know where the cursor is at for the ground targeting reticle at all times (especially for those of us that use the "[@cursor]" macro conditional, since that doesn't even display the reticle). Right now I sometimes forget where my cursor is at & completely miss my target(s). Hopefully this type of feature will make it in or something similar!
In reply to VE1023:
I can probably have it save the last location, I am resetting the cursor back to the middle intentionally. Do you find this a hindrance?
It sometimes will not release the cursor.
Maybe half a dozen times over the course of a few hours play, it will simply not release the cursor when you hit the keybind. The only way to fix it is to reload the UI. This becomes very frustrating after a while.
In reply to RealRobD:
unbind your keys for the addon, and use this macro and stick it on your bar instead /script CombatMode:Toggle()