Download
(4 Kb)
Download
Updated: 09/01/22 01:30 AM
Compatibility:
Lost Depths (8.1.5)
Updated:09/01/22 01:30 AM
Created:03/02/21 10:17 AM
Monthly downloads:43
Total downloads:4,451
Favorites:7
MD5:
Draw Weapon
Version: 1.4.1
by: Chivana [More]
Do you like exploring the world with your weapon drawn?

And does it annoy you, that when interacting with certain things, like gathering flying insects, looting heavy sacks, lockpicking chests, or general harvesting, your character automatically sheaths the weapon?

This simple little Addon might be the solution:
It toggles the weapon to be drawn as soon as you move again, use Roll Dodge (Hasty Retreat with Bow equipped), crouch (Stealth) or sprint (Shift key).
Optional the weapon can be automatically sheathed when you are sprinting.
Both toggles happen only out of combat, not while mounted or swimming, and can be configured in the settings menu.

In case Sprint is not bound to Shift the addon can now check the movement speed. Enable Debug to display your speed and set the Sprint detection slider accordingly. Set the slider to 0 if you use the default keybind.

Enjoy!

Required Library:
LibAddonMenu (https://www.esoui.com/downloads/info7-LibAddonMenu.html)
1.4.1
- Draw Weapon only once if (not while) Dodge Fatigue is active.
- API bump to Lost Depths (U35)

1.4.0
- Keybind to enable/disable the addon.
- New option: Sprint detection (in case Sprint is not bound to SHIFT)
- New option: Debug (Display infos in chat, incl. current speed)
- API bump to Deadlands

1.3.0
- New option: Draw weapon after using Roll Dodge (Hasty Retreat with Bow equipped).
- New option: Draw weapon when crouching (Stealth).
- Movement ignored for one cycle (499 ms), was every weapon toggle.
- API bump to Blackwood

1.2.1
- New option: Draw weapon only if sprinting (instead of sheathing).
- No weapon toggle while swimming.

1.2.0
- Update cycle halfed, but weapon toggle skipped for one cycle to achieve smoother transitions.
- Some minor code and text changes.

1.1.0
- Independent from looting and all interactions the weapon is now drawn if you are moving (but not sprinting).
- Optional the weapon can be automatically sheathed when you are sprinting.
- The weapon is not toggled if you are in combat or mounted.
- Addon settings Auto-draw and Auto-sheath.
- API bump to Flames of Ambition.

1.0.1
- Based on EVENT_LOOT_CLOSED (called only once) instead of _RECEIVED (called for every item).
- Optimized code structure.

1.0.0
- Initial release.
Archived Files (7)
File Name
Version
Size
Uploader
Date
1.4.0
4kB
Chivana
01/11/22 12:46 PM
1.3.0
3kB
Chivana
05/07/21 10:56 PM
1.2.1
2kB
Chivana
04/30/21 02:36 AM
1.2.1
2kB
Chivana
03/19/21 02:47 AM
1.1.0
2kB
Chivana
03/08/21 02:09 PM
1.0.1
1kB
Chivana
03/04/21 11:14 AM
1.0.0
767B
03/02/21 10:17 AM


Post A Reply Comment Options
Unread 03/02/21, 12:10 PM  
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member

Forum posts: 210
File comments: 865
Uploads: 0
THANK YOU!
Report comment to moderator  
Reply With Quote
Unread 04/29/21, 01:57 AM  
Duendy

Forum posts: 0
File comments: 3
Uploads: 0
extra option

Hello , Great little Addon ! Thanks a lot for putting it together.

I was wandering, would there be a way to make the weapon unsheathe only when sprinting ?
I like my character animation when running slow, but hate it when he sprints ^^.

Since there is an option to sheathe when sprinting, would there be a way to just do the opposite ? No action on normal speed deplacement, but unsheathe when sprinting ?

Thanks !
Report comment to moderator  
Reply With Quote
Unread 04/30/21, 02:43 AM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 36
Uploads: 1
Re: extra option

Done, try it out.
Report comment to moderator  
Reply With Quote
Unread 04/30/21, 07:26 AM  
Duendy

Forum posts: 0
File comments: 3
Uploads: 0
Re: Re: extra option

Originally Posted by Chivana
Done, try it out.
Hey, thx for looking into it so quickly, you're a legend !

I did upload to the new version via Minion. Sadly the option doesn't seem to work for me . When I put "Sprint only" On, it does change the behavior of the base function of the addon, as it doesn't draw weapon when I start moving anymore. But nothing happens when I sprint.

Let me know if there is something i miss or if I can give any extra info that would help.

I do appreciate immensely you looking to make that feature possible, thx again.

Cheers,
Report comment to moderator  
Reply With Quote
Unread 04/30/21, 10:42 PM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 36
Uploads: 1
Re: Re: Re: extra option

Hmm, did you change the sprint keybind? Unfortunately, this only works if sprinting is bound to SHIFT. There used to be an event to detect sprint start and stop, but it was removed by ZOS. Now the only way I know is the function IsShiftKeyDown().
Report comment to moderator  
Reply With Quote
Unread 05/02/21, 07:52 AM  
Duendy

Forum posts: 0
File comments: 3
Uploads: 0
Hello ! Yes I had the sprint binded to something else. I changed it back to Shift and it works perfectly ! Thx so much. It sounds stupid, but as a new player, I spent like a week and a half struggling with choosing my main, that I loved for the background story I had in my head, but hated the unarmed sprinting animation that was so goofy. Your addon solved this problem and I am now totally in with my main Thx !
Report comment to moderator  
Reply With Quote
Unread 05/08/21, 02:16 AM  
TheYcUtS
 
TheYcUtS's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 87
Uploads: 3
You sure that LibAddonMenu works correctly instead LibAddonMenu-2.0?
Report comment to moderator  
Reply With Quote
Unread 05/08/21, 10:24 AM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 36
Uploads: 1
Originally Posted by TheYcUtS
You sure that LibAddonMenu works correctly instead LibAddonMenu-2.0?
If you click the link, you will see that the library is named LibAddonMenu, but actually is LAM2.
Report comment to moderator  
Reply With Quote
Unread 10/27/21, 10:04 AM  
sonwon

Forum posts: 0
File comments: 274
Uploads: 0
For me it does not always work reliability.
Report comment to moderator  
Reply With Quote
Unread 01/09/22, 08:58 PM  
jpor

Forum posts: 3
File comments: 47
Uploads: 0
I farm a lot and want my weapon out for mobs so this is just what I was looking for.

When I'm in towns or sprinting (my sprint = tab, not shift) I want to stow it.

Could there be a keybind / hotkey for it to toggle it on/off? Thanks!
Report comment to moderator  
Reply With Quote
Unread 01/10/22, 02:44 AM  
sonwon

Forum posts: 0
File comments: 274
Uploads: 0
Originally Posted by jpor
I farm a lot and want my weapon out for mobs so this is just what I was looking for.

When I'm in towns or sprinting (my sprint = tab, not shift) I want to stow it.

Could there be a keybind / hotkey for it to toggle it on/off? Thanks!
There is an in game keybind already to stow the weapon.
Report comment to moderator  
Reply With Quote
Unread 01/10/22, 02:46 AM  
sonwon

Forum posts: 0
File comments: 274
Uploads: 0
Auto stow when you first enter a town would be one suggestion and turn off the draw weapon while in a town.

Also, couldn't you trigger the draw weapon based on movement speed? That would work for those not using shift for a run keybind. There are at least two addons that have code for detecting movement speed. And I think there is an in game stat for base move speed so you could detect walk versus run based on speed after adjusting for base movement speed.
Report comment to moderator  
Reply With Quote
Unread 01/10/22, 03:04 AM  
jpor

Forum posts: 3
File comments: 47
Uploads: 0
Using the basegame's keybind to stow my weapon while "Draw Weapon" is installed only stows my weapon for a moment before it is drawn out again by the add on.

A keybind for the Draw Weapon addon to toggle it on and off would let me use it when I'm farming but not at other times so I could manually stow/draw my weapon.

Originally Posted by sonwon
Originally Posted by jpor
I farm a lot and want my weapon out for mobs so this is just what I was looking for.

When I'm in towns or sprinting (my sprint = tab, not shift) I want to stow it.

Could there be a keybind / hotkey for it to toggle it on/off? Thanks!
There is an in game keybind already to stow the weapon.
Report comment to moderator  
Reply With Quote
Unread 01/10/22, 03:17 AM  
sonwon

Forum posts: 0
File comments: 274
Uploads: 0
Originally Posted by jpor
Using the basegame's keybind to stow my weapon while "Draw Weapon" is installed only stows my weapon for a moment before it is drawn out again by the add on.

A keybind for the Draw Weapon addon to toggle it on and off would let me use it when I'm farming but not at other times so I could manually stow/draw my weapon.

Originally Posted by sonwon
Originally Posted by jpor
I farm a lot and want my weapon out for mobs so this is just what I was looking for.

When I'm in towns or sprinting (my sprint = tab, not shift) I want to stow it.

Could there be a keybind / hotkey for it to toggle it on/off? Thanks!
There is an in game keybind already to stow the weapon.
I get it now, you want to toggle Draw Weapon on and off. That could be included in my suggestion. I think the Draw Stow weapon addons could be merged with some automation added for where you are in the game there are plenty of addons that do that already with CP points.
Report comment to moderator  
Reply With Quote
Unread 01/10/22, 09:04 AM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 36
Uploads: 1
Originally Posted by sonwon
Also, couldn't you trigger the draw weapon based on movement speed? That would work for those not using shift for a run keybind. There are at least two addons that have code for detecting movement speed. And I think there is an in game stat for base move speed so you could detect walk versus run based on speed after adjusting for base movement speed.
I'll try this (and a keybind)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: