Rust
Оценок: 199
The Ultimate Key Binds Guide (chat & console commands)
От reddBDGR и соавторов
In this discussion, i will show you how to bind keys to execute certain chat commands ingame, this can be useful to quickly teleport home, toggle the remover tool, accept teleport requests.... basically anything that can be used as a command in chat, all without using macros.
3
5
2
2
   
Наградить
В избранное
В избранном
Удалить
- PLEASE KEEP IN MIND -
There are no spelling / punctuation mistakes in any of the command examples. They will need to be executed as stated below.

ALSO

I am only sharing the knowledge that i have gained over my time administrating and playing rust. Some of the information below MAY be incorrect or outdated. If so, feel free to add me on steam and inform me on what i have done wrong
Commands without spaces
To execute commands without spaces, it is easy to setup.
  1. Press F1 to open your console

  2. Decide what key you want to bind the command to

  3. Type this command into the console bind <key> "chat.say /<command>"

    Example : bind g "chat.say /remove"


    This will bind the "G" key to toggle the remover tool.

  4. Next execute the writecfg command in your console to save the config so it won't reset when you next launch the game
Commands with spaces
Executing commands with spaces is a little trickier, but if you are able to ♥♥♥♥-talk kids in rust, you should be able to do it.

  1. Press F1 to open your console

  2. Decide what key you want to bind the command to

  3. Type this command into the console bind <key> "chat.say "/command""

    Example : bind g "chat.say "/home 1""

    This will bind the "G" key to initiate the teleport to your home.

  4. Here is the "tricky" part, to have this save for your next rust adventure, type writecfg into console then, navigate to your rust folder and find the key.cfg file ( Steam\steamapps\common\Rust\cfg ) and open the keys.cfg file. Now what you want to do is find the line that your bind is stored on, it should look a little different from the way you entered it (there will be an addiional \)

    Example : bind g "chat.say \"/home 1"

  5. you now want to remove the \ before the " at the start of your command. Save this file, then right click it and navigate to properites. Under the general tab, you will want to tick the box at the bottom that is: Read-Only. MAKE SURE YOU HAVE CLOSED RUST BEFORE YOU DO THIS

  6. Once you have completed these steps you should be able to use the bind without it getting reset.

Additional Information : If you do not do the last 3 steps, the bind will still work but will get reset when you next launch your game.

Disclaimer

If you are kicked from your game after changing the keys.cfg file to read-only or are unable to re-join the server, this could be an issue caused by plugins on the server, or by doing certain actions in the menu. This issue is currently being worked on.
Thanks to Brengun from the NoBull Australian modded server[nobull.net.au] for help with this.
Unbinding
Unbinding is easy, heres how :

  1. Press F1 to open the console

  2. type in this command: bind <key> ""

    Example: bind g ""

    This will bind the key to nothing or, unbind it.

(alternativley you can go into your settings ingame and click RESET TO DEFAULT )
Dictionary of all bindable keys
Note : These are the things that you will replace <key> with when typing your command into your console. The first entry is what it looks like on your keyboard, and the second entry is what you need to replace <keys> with.

Example:

Key
Bind Name
~
backquote

Letters (these are all pretty self explanatory)

q
w
e
r
t
y
u
i
o
p
a
s
d
f
g
h
j
k
l
z
x
c
v
b
n
m

Top row numbers

1
2
3
4
5
6
7
8
9
0

Symbols

Key
Bind Name
~
backquote
-
minus
=
equals
left square bracket
leftbracket
right square bracket
rightbracket
\
backslash
;
semicolon
'
quote
.
comma
.
period
/
slash

Arrows

Key
Bind Name
uparrow
downarrow
leftarrow
rightarrow

Other keys (shift, tab, etc.)

tab
capslock
leftshift
leftcontrol
windowskey = leftcommand
leftalt
spacebar = space
rightalt
menu
rightcontrol
rightshift
enter
backspace

Function keys

f1
f2
f3
f4
f5
f6
f7
f8
f9
f10
f11
f12

Keys around page up/down (idk what this area is called)

print screen = <nobind?>
scrolllock
pause
insert
home
delete
end
pageup
pagedown

Numpad (if you have one)

Key
Bind Name
numlock
numlock
/
keypaddivide
*
keypadmultiply
-
keypadminus
+
keypadplus
enter
keypadenter
.
keypadperiod
0
keypad0
1
keypad1
2
keypad2
3
keypad3
4
keypad4
5
keypad5
6
keypad6
7
keypad7
8
keypad8
9
keypad9

Mouse buttons

Key
Bind name
left mouse click
mouse0
right mouse click
mouse1
middle mouse click
mouse2
scroll up
mousewheelup
scroll down
mousewheeldown

Macros

Macro type
Bind name
Description
Mouse macros
mouse4 | mouse5
brought to my attention by SirElegant , you are able to bind the macros on your mouse (if you have any). Changing the number after "mouse" will change which macro it is set to.
Please note : You will have to play around with this kind of bind, all mice are different.

IF I HAVE FORGOTTEN ANY PLEASE LET ME KNOW SO I CAN ADD THEM
Dictionary of useful commands
- THIS WILL BE UPDATED IN THE FUTURE -

Here i will post an updated list of useful / common commands that can be used together with these binds (for those people who lack the knowledge or creativity) and will split them up into different categories to make it easier to find what your looking for.


Vanilla console commands

The commands below will be some basic commands regarding player movement, settings and other things alike that can be used in both modded and vanilla servers.

Command
Description
kill
This will kill your player and take you to the respawn screen
+jump
This will bind the button to "jump"


Server admin commands

These commands are directed at server owners / administrators and can make running / managing the server a bit easier without having to manually write out all the commands. A full list can be found HERE[docs.google.com]

Command
Description
noclip
This command will toggle noclip
debugcamera
This command will toggle the "spectator" like view, useful for taking screenshots, making videos. You will also be invisible while you are in this mode
weather.fog <value>
setting value to 0 will turn off fog on the key press
weather.rain <value>
"
weather.clouds <value>
"
server.radiation <true/false>
Enables / disables radiation
ent kill
Kills the entity you are looking at (can be used in vanilla, works like the remover tool)
ent unlock
Unlocks the entity you are looking at (e.g. codelock)
ent who
Returns the steamID of whoever placed the entity you are looking at
xmas.refill
Forces 2015 christmas event (presents spawn on the ground)
Комментариев: 54
Nakano 19 сен. 2023 г. в 21:38 
just wondering if it is possible to make it so when i press and hold a key it runs a command but after i let go of the key it resets to what it was before. What I am trying to do is make it so when i press CTRL it changes my sensitivity and when i release the key it reverts back to my old sensitivity I have gotten this far Bind leftcontrol ~Input.sensitivity 0.7;Input.sensitivity 0.4
Tex 16 янв. 2023 г. в 19:21 
You can also add SHIFT key to binds

ex: bind shift+p "chat.say /home 1"
fishstick191291 10 янв. 2023 г. в 16:02 
player.recoilcomp true (
fishstick191291 10 янв. 2023 г. в 16:02 
player.recoilcomp true (player.recoilcomp true (player.recoilcomp true (player.recoilcomp true (player.recoilcomp true (player.recoilcomp true (player.recoilcomp true (player.recoilcomp true (
myholewasbleedingfrmurgirth 2 июл. 2021 г. в 1:03 
if u want to bind 2 chat commands do this: bind <key> "chat.say "/kit bow";chat.say "/kit medic""
Hazode 19 мар. 2021 г. в 5:52 
@notexd

bind x sprint; forward
notexd 22 фев. 2021 г. в 7:21 
should also put an auto run command
Duke403 6 фев. 2021 г. в 18:40 
is there a way to bind graphics.fov 90 to mouse1 release?
Blatnik 2 янв. 2021 г. в 10:44 
bind for:
noclip and vanish 1 button
daytime for admin only
toggle view trough walls

Please.
Joe Hendry 8 дек. 2020 г. в 2:56 
do you know if i can use stream deck to bind keys im not to sure what half the keys are bind to already so is it also possible to bind commands to 2 keys like ctrl+y etc