Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Contribution Scores
Random page
Help about MediaWiki
External Links
Homepage
Discord
Forum
Funding
DDraceNetwork
Search
Search
English
Create account
Log in
Personal tools
Create account
Log in
Export translations
Translate
English
Language statistics
Message group statistics
Export
Tools
Tools
move to sidebar
hide
Actions
Language statistics
Message group statistics
Export
General
Special pages
Printable version
Settings
Group
Aled
Binds
Block
Catch16
Category:Templates
Collision
Common Terminology
DDNet Mobile Tutorial
DDRace
Death
Deepfly
Demos
Development
Drag Part
Dragger
Dummy
Dummy drag
Edge jump
Extra tools
FAQ
FNG
Foot
Freeze
Getting started
GFX Troubleshooting
Gores
Grenade
Hammer
Hammerfly
Hammerhit
Hook
Hookfly
How to contribute
Infection
Jetpack
Jump
LAN Server
Laser
Main Page
Map
Mapping
Monster
Movement
Ninja
Pistol
Pseudofly
Ranks and Points
Resources
Rocketfly
Settings and Commands
Shotgun
Shotgunfly
Skin Creation
Speedups
Stoppers
Switch layer
Teams
TeeSmash
TeeWare
Telegun
Teleporter
Teleportfly
Template:Infobox mod
Template:Infobox weapon
Template:MigrateTranslationText
Template:Note
Template:Stub
Template:Tip
Template:Todo
Template:Warning
Ticks
Tiles
Timeline
Troubleshooting
Tune zones
Vanilla
World
ZCatch
Language
aa - Afar
aae - Arbëresh
ab - Abkhazian
abs - Ambonese Malay
ace - Achinese
acm - Iraqi Arabic
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
ann - Obolo
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
ban-bali - Balinese (Balinese script)
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bci - Baoulé
bcl - Central Bikol
bdr - West Coast Bajau
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bew - Betawi
bg - Bulgarian
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
blk - Pa'O
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
cdo - Mindong
ce - Chechen
ceb - Cebuano
ch - Chamorro
chn - Chinook Jargon
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cpx - Pu–Xian Min
cpx-hans - Pu–Xian Min (Simplified Han script)
cpx-hant - Pu–Xian Min (Traditional Han script)
cpx-latn - Pu–Xian Min (Latin script)
cr - Cree
crh - Crimean Tatar
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
crh-ro - Dobrujan Tatar
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
dag - Dagbani
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
dga - Dagaare
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dv - Divehi
dz - Dzongkha
ee - Ewe
efi - Efik
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - Spanish (formal address)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
fat - Fanti
ff - Fula
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fon - Fon
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gaa - Ga
gag - Gagauz
gan - Gan
gan-hans - Gan (Simplified Han script)
gan-hant - Gan (Traditional Han script)
gcf - Guadeloupean Creole
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
gld - Nanai
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
gpe - Ghanaian Pidgin
grc - Ancient Greek
gsw - Alemannic
gu - Gujarati
guc - Wayuu
gur - Frafra
guw - Gun
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
hno - Northern Hindko
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
hsn - Xiang
ht - Haitian Creole
hu - Hungarian
hu-formal - Hungarian (formal address)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
ibb - Ibibio
id - Indonesian
ie - Interlingue
ig - Igbo
igl - Igala
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kai - Karekare
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kcg - Tyap
kea - Kabuverdianu
kg - Kongo
kge - Komering
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjh - Khakas
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ksw - S'gaw Karen
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kus - Kʋsaal
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mad - Madurese
mag - Magahi
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Māori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mnc - Manchu
mnc-latn - Manchu (Latin script)
mnc-mong - Manchu (Mongolian script)
mni - Manipuri
mnw - Mon
mo - Moldovan
mos - Mossi
mr - Marathi
mrh - Mara
mrj - Western Mari
ms - Malay
ms-arab - Malay (Jawi script)
mt - Maltese
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Minnan
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
nia - Nias
nit - కొలామి
niu - Niuean
nl - Dutch
nl-informal - Dutch (informal address)
nmz - Nawdm
nn - Norwegian Nynorsk
no - Norwegian
nod - Northern Thai
nog - Nogai
nov - Novial
nqo - N’Ko
nrm - Norman
nso - Northern Sotho
nv - Navajo
ny - Nyanja
nyn - Nyankole
nyo - Nyoro
nys - Nyungar
oc - Occitan
ojb - Northwestern Ojibwa
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pcm - Nigerian Pidgin
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
pwn - Paiwan
qqq - Message documentation
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rki - Arakanese
rm - Romansh
rmc - Carpathian Romani
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
rsk - Pannonian Rusyn
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rut - Rutul
rw - Kinyarwanda
ryu - Okinawan
sa - Sanskrit
sah - Yakut
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
se-fi - Northern Sami (Finland)
se-no - Northern Sami (Norway)
se-se - Northern Sami (Sweden)
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
sh-cyrl - Serbo-Croatian (Cyrillic script)
sh-latn - Serbo-Croatian (Latin script)
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy - Shawiya
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sjd - Kildin Sami
sje - Pite Sami
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sms - Skolt Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
sro - Campidanese Sardinian
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - Siberian Tatar
su - Sundanese
sv - Swedish
sw - Swahili
syl - Sylheti
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Tayal
tcy - Tulu
tdd - Tai Nuea
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tly-cyrl - Talysh (Cyrillic script)
tn - Tswana
to - Tongan
tok - Toki Pona
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
ttj - Tooro
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vmw - Makhuwa
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
wal - Wolaytta
war - Waray
wls - Wallisian
wo - Wolof
wuu - Wu
wuu-hans - Wu (Simplified Han script)
wuu-hant - Wu (Traditional Han script)
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yrl - Nheengatu
yue - Cantonese
yue-hans - Cantonese (Simplified Han script)
yue-hant - Cantonese (Traditional Han script)
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Export for off-line translation
Export in native format
Export in CSV format
Fetch
{{MigrateTranslation}} <languages/> <div lang="en" dir="ltr" class="mw-content-ltr"> DDNet client has a multitude of [https://ddnet.org/settingscommands/#client-settings commands and settings] that can be '''''bound''''' to nearly any key or mouse button. You can enter commands into the console, which by default is accessed by pressing '''F1.''' </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==Syntax== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Single binds=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> bind <span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This is the basic syntax for simple binds. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> *'''[key]''' is the key on your keyboard/mouse you want to bind a command to. *'''[command/setting]''' A full list of all commands and settings can be found [https://ddnet.org/settingscommands/#client-settings here]. *'''[value]''' is the variable you want to set your setting to or an argument for a command. Not all commands require arguments You can find keycodes [https://github.com/ddnet/ddnet/blob/master/src/engine/client/keynames.h here], or just type the key temporarily into one of the controls in the Settings > Controls page in DDNet client and it will show the key name. You can also use modifier keys with binds. bind <span style="color:magenta">ctrl+</span><span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> you can use '''ctrl''', '''alt''', '''shift''', and '''gui'''. '''Gui''' is used to refer to the windows key on windows, the command key on macOS/osx, and super/meta on linux. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Multiple binds=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can also chain commands/settings together by separating them using a semicolon and wrapping them in quotes. You can add as many commands to this chain as you want. bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>[command/setting] <span style="color:purple">[value]</span><span style="color:red">;</span> [command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">"</span> It's important to know that when chaining things together like this, all commands/settings get executed by the game at the exact same time, meaning they will not execute sequentially in the order you write them. There is no sleep or delay type command to space things out the way you want them. The best way to make things happen in an ordered sequence is to either bind a different key for each step of the sequence, or to use [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files config files] to press one key multiple times to read multiple files sequentially. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> === Nested binds=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can nest multiple quoted strings in a single line by escaping each new set of quotes with backslashes. bind <span style="color:green">[key]</span> <span style="color:red">"</span>bind <span style="color:green">[key]</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:orange">\</span><span style="color:red">""</span> As the quoted strings go deeper, you also need to escape the backslash. Since each new layer will again un-escape them, you need to double the amount of backslashes per layer. The maximum amount of layers you can use is '''5''' before the console gives you an error. This is because the console has a maximum character limit of '''255'''. The amount of backslashes for 6 layers is '''240''' (1*2 + 3*2 + 7*2 + 15*2 + 31*2 + 63*2), leaving you with only '''15''' characters. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> 1 = 1 <span style="color:orange">\</span> 2 = 3 <span style="color:orange">\\\</span> 3 = 7 <span style="color:orange">\\\\\\\</span> 4 = 15 <span style="color:orange">\\\\\\\\\\\\\\\</span> 5 = 31 <span style="color:orange">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</span> If this is confusing to look at, try making a new line and indent for each escaped quote to get a more clear visual idea of what's happening. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> bind <span style="color:green">[key]</span> <span style="color:red">"</span>bind <span style="color:green">[key]</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span><span style="color:red">;</span> bind <span style="color:green">[key]</span> <span style="color:orange">\\\\\\\</span><span style="color:red">"</span><span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:orange">\\\\\\\</span><span style="color:red">"</span> <span style="color:orange">\\\</span><span style="color:red">"</span> <span style="color:orange">\</span><span style="color:red">"</span> <span style="color:red">"</span> '''Note:''' You cannot run a config file formatted as the example above is, it will not work. This example is just to get a clear visual idea of how a nested bind is constructed. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Useful Commands & Settings=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Toggles==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Toggles are a way to use a single key to alternate between 2 values for a setting. There are two types of toggles. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> *'''toggle''' is used so that each time you press a key, it will change between one of the two values for the setting *'''+toggle''' is used so that your first value is set only while the key is being pressed, and the second value is set when the key is released. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> bind <span style="color:green">[key]</span> <span style="color:magenta">toggle</span> <span style="color:blue">[setting]</span> <span style="color:purple">[value1] [value2]</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> bind <span style="color:green">[key]</span> <span style="color:magenta">+toggle</span> <span style="color:blue">[setting]</span> <span style="color:purple">[value1] [value2]</span> Toggles only work for client settings. They cannot be used for client or chat commands. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Say ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Say is an important client command for binding. It allows you to incorporate chat commands into a bind as well as just send text to the chat. bind <span style="color:green">[key]</span> <span style="color:magenta">say</span> <span style="color:blue">/[chat command]</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> bind <span style="color:green">[key]</span> <span style="color:magenta">say</span> <span style="color:blue">[chat message]</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Colors==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Some client commands allow you to set colors. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> *'''player_color_body''' *'''player_color_feet''' *'''cl_message_client_color''' </div> <div lang="en" dir="ltr" class="mw-content-ltr"> are a few examples. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> To get the correct color values, go to '''Settings > Tee''', and use the sliders to find the color you want. Go into the console and type the command for the color you're trying to set, by itself with no value. The number that comes after "'''Value:'''" is the relevant number. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> [[File:Colors.png|File:Colors.png]] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <span style="color:blue">player_color_body</span> <span style="color:purple">5635840</span> or, if you prefer to use the hexadecimal value: <span style="color:blue">player_color_body</span> <span style="color:purple">$00FF00</span> It will also accept a few color values by name. '''red''', '''yellow''', '''green''', '''cyan''', '''blue''', '''magenta''', '''white, gray, black''' all work. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Emotes==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The '''emote''' command can be used to display emotes without using the emote wheel. Each emote is represented by a different number. [[File:Emotes.png|right|frameless]] {| class="wikitable" |+ | emote 0 |oop |- |emote 1 |exclamation |- |emote 2 |hearts |- |emote 3 |drop |- |emote 4 |dotdot |- |emote 5 |music |- |emote 6 | sorry |- |emote 7 | ghost |- |emote 8 | sushi |- |emote 9 | splattee |- |emote 10 |deviltee |- |emote 11 |zomg |- |emote 12 |zzz |- |emote 13 | wtf |- |emote 14 | eyes |- |emote 15 |question |} </div> <div lang="en" dir="ltr" class="mw-content-ltr"> For example: bind <span style="color:green">h</span> <span style="color:blue">emote</span> <span style="color:purple">14</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Other==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> binds <span style="color:blue">[key]</span> You can use this command to print what's bound to a single key. Use it without a key at the end to get a full list of all your current binds. unbind <span style="color:blue">[key]</span> Will unbind whatever key you specify. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==Using Config Files== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Syntax=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> For more complicated binds, you can make text files containing settings/commands that get executed via a key press. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''settings.cfg''' <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:blue">[command/setting] <span style="color:purple">[value]</span><span style="color:red">;</span> [command/setting]</span> <span style="color:purple">[value]</span> <span style="color:blue">[command/setting] <span style="color:purple">[value]</span><span style="color:red">;</span> [command/setting]</span> <span style="color:purple">[value]</span> bind <span style="color:green">[key]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span> Settings/commands can be chained together via a semicolon or by just using a new line. You can put as many commands/settings/binds as you want in these files. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Note:''' You don't need to use '''.cfg''' as the extension. You can actually use any file extension you want. .'''cfg''' just seems to be the standard. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Path/Exec=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> In order to execute these files, you need to put them in correct directory and execute them with the '''exec''' command. The correct path depends on your operating system. To find the right path for your operating system, see [[Special:MyLanguage/FAQ#Where_is_the_DDNet_config,_config_directory_or_save_directory?|Where is the DDNet config, config directory or save directory?]] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Once the files are in the correct path, you can execute them in the game console with the '''exec''' command. <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span> or bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span> You can use sub-directories within the 'DDNet' or 'Teeworlds' directory to organize files. Just include the path when you execute the file. bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">[path/to/file.cfg]</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Improved toggle with config files=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The most common reason to use config files is to create a single-key toggle to alternate between two files. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''file1.cfg''' <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">file2.cfg</span> '''file2.cfg''' <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> <span style="color:blue">[command/setting]</span> <span style="color:purple">[value]</span> bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">file1.cfg</span> In this case, '''[key]''' would be the same key in both files. This way each time you press the key, it will switch to the other file. Once you have both of these files in the correct path, you can '''exec''' either one just once and they will be bound forever until you unbind them. bind <span style="color:green">[key]</span> <span style="color:magenta">exec</span> <span style="color:blue">file1.cfg</span> You can use this method to cycle between any amount of files. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Customization=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Echo==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> As a more clear way to show which file you're activating when you press a bind, you can use the '''echo''' command to display which one is active. [command/setting] [value] [command/setting] [value] <span style="color:blue">echo</span> <span style="color:purple">setting ON</span> bind [key] exec file1.cfg To take this a step further, there is a command to change the color of the echo messages. [command/setting] [value] [command/setting] [value] <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span> <span style="color:blue">echo</span> <span style="color:purple">setting OFF</span> bind [key] exec file1.cfg Having different colors for "on" and "off" binds makes it a bit easier to notice which setting you've activated. If you want to get more creative with colors, see [https://wiki.ddnet.org/wiki/Binds#Colors colors]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Comments==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can put comments in your bind files too. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <span style="color:purple"># These lines change some settings</span> [command/setting] [value] [command/setting] [value] <span style="color:purple"># This next line rebinds the key</span> bind [key] exec file1.cfg </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==Examples== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Hook line always on=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The command '''cl_show_hook_coll_own''', sets whether you will see your own hook collision line or not when you hold your '''+showhookcoll''' bind (defaulted to '''S'''). When set to '''2''', your hook collision line will always show only to you. Others players won't see it. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''hook_line_on.cfg''' <span style="color:blue">cl_show_hook_coll_own</span> <span style="color:purple">2</span> <span style="color:blue">cl_message_client_color</span> <span style="color:purple">green</span> <span style="color:blue">echo</span> <span style="color:purple">Hook Line ON</span> bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_off.cfg</span> '''hook_line_off.cfg''' <span style="color:blue">cl_show_hook_coll_own</span> <span style="color:purple">1</span> <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span> <span style="color:blue">echo</span> <span style="color:purple">Hook Line OFF</span> bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span> Put both of these in the correct path, and in console: bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Everyone's hooklines=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The command '''cl_show_hook_coll_other''' allows you to see other tee's hooklines, which can be useful when they are out of your view. You can add this to the basic hookline bind to "upgrade" it: </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''cl_show_hook_coll_other''' bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:blue">+showhookcoll</span><span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">cl_show_hook_coll_other</span> <span style="color:purple">2 1</span><span style="color:red">"</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Deepfly=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The [[Special:MyLanguage/Deepfly|deepfly]] bind is a way to make your [[Special:MyLanguage/Dummy|dummy]] {{hammer|hammer}}/fire toward you whenever you fire with your main tee. If your dummy is [[Special:MyLanguage/Freeze|deep frozen]], they can hammer back at you when you hammer them with this bind on. You can use this to fly with your dummy, but it takes practice. If your dummy is not deep frozen, you can just use this as a alternative version of the regular Dummy [[Special:MyLanguage/Hammerfly|Hammerfly]] bind included in the games settings, where you can fire your pistol each time you want to be hammered. It offers better control since you can control the timing of your dummy's hammers. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Note:''' If the mapper has set <code><span style="color:blue">sv_deepfly</span> <span style="color:purple">0</span></code> on their map, you will not be able to deepfly with a deep frozen tee, since it can sometimes enable players to do parts in ways that the mapper did not intend. The deepfly bind will still work normally with frozen or unfrozen tees. As a player, this is not a setting you can adjust. </div> [[File:Deepfly webm.webm|351x198px|gif]] <div lang="en" dir="ltr" class="mw-content-ltr"> The command '''cl_dummy_hammer 1''' is what is used for the regular Dummy Hammerfly bind in the games control options. By using a [[Special:MyLanguage/Binds#Toggles|toggle]], you can make your dummy hammer you only when you fire, and can make an on/off switch with config files. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Using 2 Config Files==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''deepfly_on.cfg''' bind <span style="color:green">mouse1</span> <span style="color:red">"</span><span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">cl_dummy_hammer</span> 1 0<span style="color:red">"</span> <span style="color:blue">cl_message_client_color</span> <span style="color:purple">green</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly ON</span> bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly_off.cfg</span> '''deepfly_off.cfg''' bind <span style="color:green">mouse1</span> <span style="color:blue">+fire</span> <span style="color:blue">cl_dummy_hammer</span> <span style="color:purple">0</span> <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly OFF</span> bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly_on.cfg</span> Put both of these in the correct path, and in console: bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly_on.cfg</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Using 1 Config File==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can accomplish the same thing as above using only 1 config file. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> bind <span style="color:green">x</span> <span style="color:red">"</span>bind <span style="color:green">mouse1</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:blue"><span style="color:magenta">+toggle</span> cl_dummy_hammer</span> <span style="color:purple">1 0</span><span style="color:orange">\</span><span style="color:red">";</span><span style="color:blue">cl_message_client_color <span style="color:purple">green</span></span><span style="color:red">;</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly ON</span><span style="color:red">;</span> bind <span style="color:green">x</span> <span style="color:orange">\</span><span style="color:red">"</span>bind <span style="color:green">mouse1</span> <span style="color:blue">+fire</span><span style="color:red">;</span> <span style="color:blue">cl_dummy_hammer</span> <span style="color:purple">0</span><span style="color:red">;</span> <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span><span style="color:red">;</span> <span style="color:blue">echo</span> <span style="color:purple">Deep Fly OFF</span><span style="color:red">;</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly.cfg</span><span style="color:orange">\</span><span style="color:red">""</span> Put this file in the correct path, and in console: bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly.cfg</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Note 1:''' This assumes mouse1 is your '''+fire''' bind. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Note 2:''' If you turn deep fly off while you're holding your '''+fire''' bind, your dummy will get stuck in a hammering rhythm since '''cl_dummy_hammer''' is set to '''1''' still. The '''cl_dummy_hammer 0''' line in '''deepfly_off.cfg''' fixes this. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ====Weapon Swapping==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> If your dummy isn't holding hammer when you turn the bind on, they will switch back and forth between pistol and hammer. If you want to fix this: <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">0</span> Now if they're holding pistol when you start using the bind, they will switch to hammer and stay there after 1 pistol shot. There are however some benefits of having this setting set to '''1'''. <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">1</span> This will allow you to {{laser|laser}} yourself with your dummy with perfect aim. It can also be useful with {{shotgun|shotgun}}. </div> [[File:Deepfly laser example.webm|351x198px|gif]] <div lang="en" dir="ltr" class="mw-content-ltr"> To manage dealing with both of these settings, you can either create a [https://wiki.ddnet.org/wiki/Binds#Toggles toggle], use [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files config files], or have this setting attached to your weapon binds. bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>+weapon1<span style="color:red">;</span></span> <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:red">0"</span> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> bind <span style="color:green">[key]</span> <span style="color:blue"><span style="color:red">"</span>+weapon5<span style="color:red">;</span></span> <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:red">1"</span> This of course only works if you have dedicated weapon binds as opposed to '''+nextweapon''' and '''+prevweapon''' which is by default bound to '''mousewheelup''' and '''mousewheeldown'''. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===45° Aiming=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> This bind allows you to only aim in 45° angles when holding down the key. This is useful for shooting rockets straight up for double rockets and a few other scenarios. bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">cl_mouse_max_distance</span> <span style="color:purple">2 400<span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">inp_mousesens</span> <span style="color:purple">1 200</span><span style="color:red">;</span> <span style="color:blue">+showhookcoll</span><span style="color:purple"><span style="color:red">"</span> Keep in mind that if you have changed '''cl_mouse_max_distance''' or '''inp_mousesens''' from the default, using the example above will reset those settings to default. Before you just enter the binds, check your settings for both first by typing '''cl_mouse_max_distance''' and '''inp_mousesens''' into the console. bind <span style="color:green">x</span> <span style="color:red">"</span><span style="color:magenta">+toggle</span> <span style="color:blue">cl_mouse_max_distance</span> <span style="color:purple">2 [Your Value]<span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">inp_mousesens</span> <span style="color:purple">1 [Your Value]</span><span style="color:red">;</span> <span style="color:blue">+showhookcoll</span><span style="color:purple"><span style="color:red">"</span> '''Note:''' the '''+showhookcoll''' line is optional. It's just helpful to see which way you're aiming since your tee's eyes don't follow the 45° constraints, and by nature of how this bind works, your crosshair won't show direction either. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ===Rainbow Tee=== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You will sometimes see players rapidly changing color as they play. To do this you just have to bind a '''player_color_body''' change to each of your regular movement inputs. bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span> You can do this for several common inputs and get a variety of to cycle through. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''rainbow_tee.cfg''' bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span> bind <span style="color:green">d</span> <span style="color:blue"><span style="color:red">"</span>+right<span style="color:red">;</span> player_color_body</span> <span style="color:red">yellow"</span> bind <span style="color:green">space</span> <span style="color:blue"><span style="color:red">"</span>+jump<span style="color:red">;</span> player_color_body</span> <span style="color:red">green"</span> bind <span style="color:green">mouse1</span> <span style="color:blue"><span style="color:red">"</span>+fire<span style="color:red">;</span> player_color_body</span> <span style="color:red">blue"</span> bind <span style="color:green">mouse2</span> <span style="color:blue"><span style="color:red">"</span>+hook<span style="color:red">;</span> player_color_body</span> <span style="color:red">cyan"</span> Here's an example of what a rainbow tee file looks like. You could save that in the correct path and execute it once. <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee.cfg</span> Or if you want a key to toggle it on and off: </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''rainbow_tee_on.cfg''' bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span> bind <span style="color:green">d</span> <span style="color:blue"><span style="color:red">"</span>+right<span style="color:red">;</span> player_color_body</span> <span style="color:red">yellow"</span> bind <span style="color:green">space</span> <span style="color:blue"><span style="color:red">"</span>+jump<span style="color:red">;</span> player_color_body</span> <span style="color:red">green"</span> bind <span style="color:green">mouse1</span> <span style="color:blue"><span style="color:red">"</span>+fire<span style="color:red">;</span> player_color_body</span> <span style="color:red">blue"</span> bind <span style="color:green">mouse2</span> <span style="color:blue"><span style="color:red">"</span>+hook<span style="color:red">;</span> player_color_body</span> <span style="color:red">cyan"</span> <span style="color:purple">bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_off.cfg</span> '''rainbow_tee_off.cfg''' bind <span style="color:green">a</span> <span style="color:blue">+left</span> bind <span style="color:green">d</span> <span style="color:blue">+right</span> bind <span style="color:green">space</span> <span style="color:blue">+jump</span> bind <span style="color:green">mouse1</span> <span style="color:blue">+fire</span> bind <span style="color:green">mouse2</span> <span style="color:blue">+hook</span> <span style="color:purple">bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span> Put both of these in the correct path, and in console: bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span> You can of course get more creative with colors and use '''player_color_feet''' too. To learn more about how colors work, see [https://wiki.ddnet.org/wiki/Binds#Colors colors] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> '''Note:''' This assumes you have default binds for left, right, jump, fire, and hook. There is also a delay between color changes, so changes don't happen the instant you press a key. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==See also== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> *[https://forum.ddnet.org/viewtopic.php?t=2537 Just bind it] - Useful binds available for copying *[https://forum.ddnet.org/viewtopic.php?t=5819 Take Binding to the next level, with Scripting!] - Another forum post about more advanced binds *[https://www.youtube.com/watch?v=sELsw2I2jj8& Teeworlds New Binding Tutorial by Klex] - A video tutorial about binds by KlexMikrowelle </div>
Toggle limited content width