Quantcast
Download
(4 Kb)
Download
Updated: 01/11/22 12:46 PM
Compatibility:
Deadlands (7.2.5)
Updated:01/11/22 12:46 PM
Created:03/02/21 10:17 AM
Monthly downloads:84
Total downloads:1,706
Favorites:3
MD5:
Draw Weapon
Version: 1.4.0
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.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 (6)
File Name
Version
Size
Uploader
Date
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 01/11/22, 01:13 PM  
sonwon

Forum posts: 0
File comments: 274
Uploads: 0
Originally Posted by Chivana
Originally Posted by sonwon
Actually, I was thinking any movement should draw the weapon.
It already does if you set Auto-draw ON and leave the sub-options OFF.

Originally Posted by sonwon
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.
I tried that first (draw after harvesting etc.) but gave up in version 1.1 as it became way too complicated.
Auto draw works like you said, there is a lag to bringing out the weapon. Anyway to reduce the lag?
Report comment to moderator  
Reply With Quote
Unread 01/11/22, 01:43 AM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 34
Uploads: 1
Originally Posted by sonwon
Actually, I was thinking any movement should draw the weapon.
It already does if you set Auto-draw ON and leave the sub-options OFF.

Originally Posted by sonwon
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.
I tried that first (draw after harvesting etc.) but gave up in version 1.1 as it became way too complicated.
Last edited by Chivana : 01/11/22 at 01:44 AM.
Report comment to moderator  
Reply With Quote
Unread 01/10/22, 03:04 PM  
sonwon

Forum posts: 0
File comments: 274
Uploads: 0
Originally Posted by Chivana
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)
Actually, I was thinking any movement should draw the weapon.
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: 34
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
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, 03:04 AM  
jpor

Forum posts: 3
File comments: 38
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, 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, 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/09/22, 08:58 PM  
jpor

Forum posts: 3
File comments: 38
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 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 05/08/21, 10:24 AM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 34
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 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/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 04/30/21, 10:42 PM  
Chivana
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 34
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 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
Post A Reply



Category Jump: