Shift key binding
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Shift key binding
Can I bind shift for a decorate weapon action?(for ex.:bashing)If yes,how?
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
If you want more attacks in a weapon you must code them yourself via Inventory hacks. Look here, but keep in mind the same tricks used for adding a button for reloading also work for pretty much whatever you want to do: http://armory.drdteam.org/index.php?page=topic&id=2063
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
defaultbind is what you're looking for. Actually, I just looked at a WAD that already defined such keys (I used Wolfen, but any WAD with reloading will do), and I believe that info is also in the tutorial?
shift is shift (unless you specifically want to define rshift)
Also, Risen, I have had no problems with weapons giving the necessary inventory items on selecting the weapon itself. When I didn't have a particular LOADACS script to give items to me, it was all I needed.
shift is shift (unless you specifically want to define rshift)
Also, Risen, I have had no problems with weapons giving the necessary inventory items on selecting the weapon itself. When I didn't have a particular LOADACS script to give items to me, it was all I needed.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
- TheDarkArchon
- Posts: 7656
- Joined: Sat Aug 07, 2004 5:14 am
- Location: Some cold place
- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
E might be kinda bad, since it would be forward for a "WASD variant" where you didn't have to move your hand from its standard typing position.
How many people use V or C for anything? (I have C set to use myself)
Either way, you might as well make your alias easy to remember and let people bind the key themselves.
How many people use V or C for anything? (I have C set to use myself)
Either way, you might as well make your alias easy to remember and let people bind the key themselves.
I use C for a secondary crouch. I would try to avoid keys used in cheat codes anyway (C and V).
All this talk of WASD (etc)... Don't forget us left-handers where the other side of the keyboard is more convenient. For me, the easiest keys to use for movement are the arrow ones because that's where my right hand rests naturally anyway.
As for default bind... there's no harm in using it as long as you also define a menu entry for key configuration. That's the point of defaultbind: it will work if the user has nothing already bound to the key but if they do the defaultbind will be ignored and the user can set the key of their choice in the menu.
All this talk of WASD (etc)... Don't forget us left-handers where the other side of the keyboard is more convenient. For me, the easiest keys to use for movement are the arrow ones because that's where my right hand rests naturally anyway.
As for default bind... there's no harm in using it as long as you also define a menu entry for key configuration. That's the point of defaultbind: it will work if the user has nothing already bound to the key but if they do the defaultbind will be ignored and the user can set the key of their choice in the menu.