Jump to content

Changing Keys

Closed 0.1.4 0.1.5

Bumfuzzler

Posted

Love the plugin, but I've had some complaints by players that the default keys conflict with their default key setup. 

For instance, one player has run set to right shift so when they aim down the sights...

I'm guessing I can comment out the following lines

                Players.Remove(player.userID);
                player.SendConsoleCommand("gestures");

but then how can players launch it.

The /gestures command doesn't seem to work...

RFC1920

Posted (edited)

Changed Status from Pending to Closed

Changed Fixed In to 0.1.5

This can be customized now without editing the code.  However, there are instructions now in roughly the same area on how to find the code you want.  It's still global.  One of these days it might be a per-user override...

Edited by RFC1920
  • Like 1
Bumfuzzler

Posted

I'm a little confused about the latest update.

I see the comments in the code, but I'm not sure what it's suggesting. I see nothing new added in the configure. Can you please explain the changes?

            //if(input.current.buttons > 0)
            //    Puts($"OnPlayerInput: {input.current.buttons}");
            // Shift-RightClick == 2176, our default.  Uncomment the above TWO lines and reload to search for the best choice for your players.
            // Definitely comment these again or face the wrath of khan!!!!

 

RFC1920

Posted

This 'should' be in there:

"Key Activation Code": 2176,

To change it, I am suggesting that you change the two lines to remove the comments:

if(input.current.buttons > 0)

    Puts($"OnPlayerInput: {input.current.buttons}");

This will show ALL keystrokes for ALL users, so if you have a test server this would be the right place for it.  Also, if you have one in mind I can try to sniff it out.

 

Bumfuzzler

Posted

I'm confused. You said

Quote

This can be customized now without editing the code.  

but I don't see anywhere to edit except the code.

In the code I don't understand where it can be edited either. 

Am I to assume that Shift-RightClick == 2176 and that there is some list of numbered keystrokes out there?

RFC1920

Posted

If none of the above makes sense to you, just tell me what keystroke you want to set and I can tell you the code to use.

  • Love 1
Bumfuzzler

Posted

On 2/14/2021 at 10:32 AM, RFC1920 said:

If none of the above makes sense to you, just tell me what keystroke you want to set and I can tell you the code to use.

What about Shift + ALT? I don't think that combo ever gets used.

RFC1920

Posted (edited)

Sadly, alt is not available.  You can use any combination of Ctrl, Shift, WASD, mouse buttons.   Basically what appears here:

zI23WeY.png

You can add alt to any of these as well, but then it will appear as the same numerical value as well as duplicating the function, e.g. W and alt would send a '2' if you assigned leftalt to Forward.

Edited by RFC1920
Bumfuzzler

Posted

Maybe leftcontrol + leftshit + a?

RFC1920

Posted (edited)

Left-control and shift would work, a would also move left, but maybe that's acceptable.  I'll get the code for that in a bit (rolling blackouts here).

200 for ctrl-shift-a.

Edited by RFC1920
Ruben

Posted

So can't you use middle mouse for this? 😕

RFC1920

Posted

You can use any of the mouse buttons alone or in combination with another mouse button or one of the keybinds shown above.

Ruben

Posted

Thanks. And what is the code for the middle mouse?

ffriozi

Posted

How should i know the button codes? 

where i can find all the codes?

this is not clear at all

  • Like 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.