Shift key binding

Archive of the old editing forum
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.
User avatar
DoomerMrT
Posts: 370
Joined: Tue Nov 21, 2006 10:58 am
Location: Budapest,Hungary

Shift key binding

Post by DoomerMrT »

Can I bind shift for a decorate weapon action?(for ex.:bashing)If yes,how?
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

bind shift +altattack
User avatar
DoomerMrT
Posts: 370
Joined: Tue Nov 21, 2006 10:58 am
Location: Budapest,Hungary

Post by DoomerMrT »

Thanks,but the secondary attack is already the aiming.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Sorry, but I don't believe DECORATE allows for tertiary attacks like that.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

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
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

You'll have to either go beyond DECORATE or redefine the default player class in order to give the player the inventory they need to pull that off.
User avatar
DoomerMrT
Posts: 370
Joined: Tue Nov 21, 2006 10:58 am
Location: Budapest,Hungary

Post by DoomerMrT »

I have already done with these action_ stuffs I only need how to define shift in keyconf
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Shift is already bound by most people so you will have problems. KEYKONF does not allow to change an existent binding.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

I usually bind shift to use and ctrl to reload.

To get around what Graf pointed out, make sure you add a menu item to KEYCONF as well so that people can bind it to whatever key they want.
User avatar
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:

Post by Project Shadowcat »

"E" for Use and "R" to reload here. If anything, I actually recommend "Q" if most people use thw WADS keys for movement.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

I click the mouse wheel for use.
User avatar
DoomerMrT
Posts: 370
Joined: Tue Nov 21, 2006 10:58 am
Location: Budapest,Hungary

Post by DoomerMrT »

That was done already too,then I'll not make default keybind for that action.ppl will have to bind them for themselves in the control menu if they want bashing.
User avatar
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:

Post by Matt »

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.
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

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.
Locked

Return to “Editing (Archive)”