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
DDRace
Death
Deepfly
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
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
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
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)
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 Chinese
ht - Haitian Creole
hu - Hungarian
hu-formal - Hungarian (formal address)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
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
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
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
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)
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)
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
{{DISPLAYTITLE:Binds}}{{MigrateTranslation}} <languages/> Le client DDNet dispose d'une multitude de [https://ddnet.org/settingscommands/#client-settings commandes et paramètres] qui peuvent être '''''bind''''' à presque n'importe quelle touche ou bouton de la souris. Vous pouvez saisir des commandes dans la console, à laquelle on accède par défaut en appuyant sur '''F1'''. <span id="Syntax"></span> ==Syntaxe== <span id="Single_binds"></span> ===Binds simples=== bind <span style="color:green">[clef]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> Voici la syntaxe pour les binds simple. *'''[clef]''' est la touche sur votre clavier/souris à laquelle vous voulez associer votre commande. *'''[commande/paramètre]''' : une liste complète des commandes et paramètres possibles peut être trouvée [https://ddnet.org/settingscommands/#client-settings ici]. *'''[valeur]''' est la variable sur laquelle vous souhaitez définir votre paramètre ou un argument pour une commande. Toutes les commandes ne nécessitent pas d'arguments. Vous pouvez retrouver des codes clés [https://github.com/ddnet/ddnet/blob/master/src/engine/client/keynames.h ici], ou simplement taper temporairement la clé dans l'un des contrôles de la page Paramètres > Contrôles dans le client DDNet et le nom de la clé s'affichera. Vous pouvez également associer des touches modifiées avec des bind. bind <span style="color:magenta">ctrl+</span><span style="color:green">[clef]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> Vous pouvez utiliser '''ctrl''', '''alt''', '''shift''', et '''gui'''. '''Gui''' est utilisé pour se référer à la touche windows sur Windows, la touche commande sur macOS/osx, et super/meta sur linux. <span id="Multiple_binds"></span> ===Binds multiples=== Vous pouvez également enchaîner des commandes/paramètres en les séparant par un point-virgule et en les plaçant entre guillemets. Vous pouvez ajouter autant de commandes que vous le souhaitez à votre chaîne. bind <span style="color:green">[clef]</span> <span style="color:blue"><span style="color:red">"</span>[commande/paramètre] <span style="color:purple">[valeur]</span><span style="color:red">;</span> [commande/paramètre]</span> <span style="color:purple">[valeur]</span><span style="color:red">"</span> Lorsque vous enchaînez des commandes de cette manière, toutes les commandes/paramètres sont exécutés par le jeu exactement au même moment, ce qui signifie qu'ils ne s'exécuteront pas séquentiellement dans l'ordre dans lequel vous les avez écrits. Il n'y a pas de commande de type "sleep" ou "delay" pour espacer les choses comme vous le souhaitez. La meilleure façon de faire en sorte que les choses se déroulent dans une séquence ordonnée est de lier une touche différente pour chaque étape de la séquence, ou d'utiliser des [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files fichiers de configuration] pour appuyer plusieurs fois sur une même touche afin de lire plusieurs fichiers de façon séquentielle. <span id="Nested_binds"></span> === Binds imbriqués === Vous pouvez imbriquer plusieurs chaînes de caractères entre guillemets sur une même ligne en séparant chaque nouvelle série de guillemets par des backslash. bind <span style="color:green">[clef]</span> <span style="color:red">"</span>bind <span style="color:green">[clef]</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span><span style="color:red">;</span> bind <span style="color:green">[clef]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:orange">\</span><span style="color:red">""</span> Au fur et à mesure que les commandes entre guillemets deviennent plus imbriquées, vous devez également des backslash. Chaque nouvelle couche retirera les backslash à nouveau, vous devez doubler la quantité de backslash par couche. Le nombre maximum de couches que vous pouvez utiliser est de '''5''' avant que la console ne retourne une erreur. Ceci est dû au fait que la console a une limite maximale de caractères de '''255'''. La quantité de backslash pour 6 couches est de '''240''' (1*2 + 3*2 + 7*2 + 15*2 + 31*2 + 63*2), ce qui vous laisse seulement '''15''' caractères. 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> Si cela vous semble compliqué, essayez de créer un nouveau retour à la ligne indenté pour chaque commande entre guillemets afin d'obtenir une idée visuelle plus claire de ce qui se passe. bind <span style="color:green">[clef]</span> <span style="color:red">"</span>bind <span style="color:green">[clef]</span> <span style="color:orange">\</span><span style="color:red">"</span><span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span><span style="color:red">;</span> bind <span style="color:green">[clef]</span> <span style="color:orange">\\\</span><span style="color:red">"</span><span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span><span style="color:red">;</span> bind <span style="color:green">[clef]</span> <span style="color:orange">\\\\\\\</span><span style="color:red">"</span><span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</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 :''' Vous ne pouvez pas lancer un fichier de configuration formatté comme dans l'exemple ci dessus. Il ne fonctionnerait pas, et permet juste d'avoir une idée visuelle de comment un bind imbriqué est construit. <span id="Useful_Commands_&_Settings"></span> =====Commandes et paramètres utiles=== ====Toggles==== Les '''toggles''' permettent d'alterner entre deux valeurs pour une seule touche. Il existe deux types de toggle. *'''toggle'' est utilisé pour qu'à chaque fois que vous appuyez sur une touche, elle change entre l'une des deux valeurs paramétrées. *'''+toggle'' est utilisé pour que la première valeur soit définie uniquement lorsque la touche est enfoncée, et que la seconde valeur soit définie lorsque la touche est relâchée. bind <span style="color:green">[clef]</span> <span style="color:magenta">toggle</span> <span style="color:blue">[paramètre]</span> <span style="color:purple">[valeur1] [valeur2]</span> bind <span style="color:green">[clef]</span> <span style="color:magenta">+toggle</span> <span style="color:blue">[paramètre]</span> <span style="color:purple">[valeur1] [valeur2]</span> Les toggles fonctionnent uniquement pour les paramètres du client. On ne peut pas les utiliser pour des commandes liés au client ou au chat. <span id="Say"></span> ===Say=== '''Say''' est une commande client importante pour le binding. Elle vous permet d'incorporer des commandes de chat dans un bind et d'envoyer simplement du texte au chat. bind <span style="color:green">[clef]</span> <span style="color:magenta">say</span> <span style="color:blue">/[commande dans le chat]</span> bind <span style="color:green">[clef]</span> <span style="color:magenta">say</span> <span style="color:blue">[message dans le chat]</span> <span id="Colors"></span> ====Couleurs==== Certaines commandes client permettent de définir des couleurs. *'''player_color_body''' (couleur du joueur) *'''player_color_feet''' (couleur des pieds) *'''cl_message_client_color''' (couleur des messages du client) sont quelques exemples. Pour obtenir les valeurs de couleur que vous désirez, allez dans '''Settings > Tee''', et utilisez les curseurs pour trouver votre couleur. Allez dans la console et tapez la commande de la couleur que vous essayez de définir, seule, sans valeur. Le nombre qui vient après « "'''Valeur'''": est le nombre pertinent. [[File:Colors.png|File:Colors.png]] <span style="color:blue">player_color_body</span> <span style="color:purple">5635840</span> ou, si vous préférez utiliser la valeur héxadecimale : <span style="color:blue">player_color_body</span> <span style="color:purple">$00FF00</span> Quelques noms de couleurs sont acceptés : '''red''', '''yellow''', '''green''', '''cyan''', '''blue''', '''magenta''', '''white''', '''gray''', '''black''' fonctionnent ! <span id="Emotes"></span> ====Émoticônes==== La commande '''emote''' permet d'afficher les émoticônes sans avoir à les sélectionner manuellement. Chaque émote est représentée par un numéro différent. [[File:Emotes.png|right|frameless]] {| class="wikitable" |+ | emote 0 |oups! |- |emote 1 |exclamation |- |emote 2 |coeurs |- |emote 3 |goutte |- |emote 4 |... |- |emote 5 |musique |- |emote 6 | pardon! |- |emote 7 | fantôme |- |emote 8 | sushi |- |emote 9 | splatee |- |emote 10 |diable |- |emote 11 |censuré |- |emote 12 |zzz |- |emote 13 | wtf |- |emote 14 | yeux |- |emote 15 |question |} Par exemple : bind <span style="color:green">h</span> <span style="color:blue">emote</span> <span style="color:purple">14</span> <span id="Other"></span> ====Autres==== binds <span style="color:blue">[clef]</span> Vous pouvez utiliser cette commande pour afficher ce qui est bind sur une touche. Utilisez-la commande sans ajouter la clef pour obtenir une liste complète de touts vos binds actuels. unbind <span style="color:blue">[clef]</span> Cette commande unbind la touche que vous aurez spécifié. <span id="Using_Config_Files"></span> ==Utiliser des fichiers de configuration== <span id="Syntax"></span> ===Syntaxe=== Pour des binds plus complexes, vous pouvez créer des fichiers texte contenant des paramètres/commandes qui seront exécutés en appuyant sur une touche. '''settings.cfg''' <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:blue">[commande/paramètre] <span style="color:purple">[valeur]</span><span style="color:red">;</span> [commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:blue">[commande/paramètre] <span style="color:purple">[valeur]</span><span style="color:red">;</span> [commande/paramètre]</span> <span style="color:purple">[valeur]</span> bind <span style="color:green">[clef]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> bind <span style="color:green">[clef]</span> <span style="color:magenta">exec</span> <span style="color:blue">[file.cfg]</span> Les commandes/paramètres se suivre à l'aide d'un point-virgule ou allant simplement à la ligne. Vous pouvez mettre autant de commandes/paramètres/binds que vous le souhaitez dans ces fichiers. '''Note:''' Vous n'avez pas besoin d'utiliser '''.cfg''' comme extension. Vous pouvez en fait utiliser n'importe quelle extension de fichier. '''.cfg''' est simplement la norme. <span id="Path/Exec"></span> ===Path/Exec (Chemin/Exécution)=== Pour exécuter ces fichiers, vous devez les placer dans le bon répertoire et les exécuter avec la commande '''exec'''. Le chemin correct dépend de votre système d'exploitation. Pour trouver le bon chemin pour votre système d'exploitation, voir [[Special:MyLanguage/FAQ#Where_is_the_DDNet_config,_config_directory_or_save_directory?|FAQ#Où est la configuration DDNet, dossier de configuration ou de sauvegarde?]]. Une fois que les fichiers sont dans le bon chemin, vous pouvez les exécuter dans la console du jeu avec la commande '''exec'''. <span style="color:magenta">exec</span> <span style="color:blue">[fichier.cfg]</span> ou bien bind <span style="color:green">[clef]</span> <span style="color:magenta">exec</span> <span style="color:blue">[fichier.cfg]</span> Vous pouvez utiliser des sous-répertoires dans le répertoire 'DDNet' ou 'Teeworlds' pour organiser les fichiers. Il suffit d'inclure le chemin d'accès lorsque vous exécutez le fichier. bind <span style="color:green">[clef]</span> <span style="color:magenta">exec</span> <span style="color:blue">[chemin/vers/le/fichier.cfg]</span> <span id="Improved_toggle_with_config_files"></span> ===Améliorer le 'toggle' avec les fichiers de configuration=== La raison la plus courante d'utiliser des fichiers de configuration est de créer une touche unique permettant d'alterner entre deux fichiers. '''fichier1.cfg''' <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> bind <span style="color:green">[clef]</span> <span style="color:magenta">exec</span> <span style="color:blue">fichier2.cfg</span> '''fichier2.cfg''' <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> <span style="color:blue">[commande/paramètre]</span> <span style="color:purple">[valeur]</span> bind <span style="color:green">[clef]</span> <span style="color:magenta">exec</span> <span style="color:blue">fichier1.cfg</span> Dans ce cas, ''[clef]'' est la même touche dans les deux fichiers. De cette façon, chaque fois que vous appuyez sur la touche, l'autre fichier est activé. Une fois que vous avez placé ces deux fichiers dans le bon chemin, vous pouvez '''exec'''uter l'un ou l'autre une seule fois et ils seront '''bind''' pour toujours jusqu'à ce que vous les '''unbind'''iez. bind <span style="color:green">[clef]</span> <span style="color:magenta">exec</span> <span style="color:blue">fichier1.cfg</span> Vous pouvez utiliser cette méthode pour alterner entre autant de fichiers que vous le souhaitez. <span id="Customization"></span> ===Customisation=== ====Echo==== Pour montrer plus clairement quel fichier vous activez lorsque vous appuyez sur une touche, vous pouvez utiliser la commande '''echo''' pour afficher le fichier actif. [commande/paramètre] [valeur] [commande/paramètre] [valeur] <span style="color:blue">echo</span> <span style="color:purple">paramètre ON</span> bind [clef] exec fichier1.cfg Pour aller encore plus loin, une commande permet également de changer la couleur de messages '''echo''' ! [commande/paramètre] [valeur] [commande/paramètre] [valeur] <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">paramètre OFF</span> bind [clef] exec fichier1.cfg Avoir des couleurs différentes pour les états "on" et "off" permettent de savoir plus facilement quel paramètre est activé. Si vous voulez encore plus d'originalité, vous pouvez jeter un coup d’œil à la section sur les [https://wiki.ddnet.org/wiki/Binds#Colors couleurs]. <span id="Comments"></span> === Commentaires === Vous pouvez également ajouter des commentaires dans vos fichiers de bind. <span style="color:purple"># Ces lignes changes des paramètres</span> [commande/paramètre] [value] [commande/paramètre] [value] <span style="color:purple"># Cette ligne rebind la clef</span> bind [clef] exec fichier1.cfg <span id="Examples"></span> ==Exemples== <span id="Hook_line_always_on"></span> ===Ligne de hook toujours visible=== La commande '''cl_show_hook_coll_own''', définit si vous verrez votre propre ligne de collision de crochet ou non lorsque vous tenez votre bind '''+showhookcoll''' (par défaut à '''1'''). Lorsque ce paramètre est réglé à '''2''', votre ligne de collision sera toujours visible mais seulement pour vous. Les autres joueurs ne la verront pas. '''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">Ligne de hook 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">Ligne de hook OFF</span> bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span> Mettez ces deux fichiers dans le bon dossier, et dans la console : bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">hook_line_on.cfg</span> <span id="Everyone's_hooklines"></span> ===La ligne de hook de tout le monde=== La commande '''cl_show_hook_coll_other''' vous permet de voir les hooklines des autres tee, ce qui peut être utile lorsqu'ils sont hors de votre vue. Vous pouvez ajouter cette commande à la ligne basique qui montre les lignes de hook pour l'améliorer : '''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> ===Deepfly=== Le bind pour [[Special:MyLanguage/Deepfly|deepfly]] permet au [[Special:MyLanguage/Dummy|dummy]] de vous {{hammer|frapper}} (ou vous tirer dessus) dès que vous tirez avec votre tee principal. Si votre dummy est [[Special:MyLanguage/Freeze|deep freeze]], il peut vous frappez en retour avec ce bind. Vous pouvez même voler avec votre dummy, mais ça demande de l'entrainement. Ce bind offre un meilleur contrôle, que le bind inclus dans les paramètres de jeu permettant de [[Special:MyLanguage/Hammerfly|Hammerfly]], car vous choisissez le moment où le dummy utilise son marteau. '''Note :''' Si le mappeur a défini <code><span style="color:blue">sv_deepfly</span> <span style="color:purple">0</span></code> sur sa carte, vous ne pourrez pas faire de deepfly avec un tee freeze. Le bind pour deepfly fonctionnera cependant normalement avec des tees simplement freeze ou non freeze. En tant que joueur, vous ne pouvez pas ajuster ce paramètre. [[File:Deepfly webm.webm|351x198px|gif]] La commande '''cl_dummy_hammer 1''' est utilisée pour le Dummy Hammerfly dans les options de contrôle du jeu. En utilisant un [[Special:MyLanguage/Binds#Toggles|toggle]], vous pouvez faire en sorte que votre dummy ne vous frappe que lorsque vous tirez, et vous pouvez configurer un switch on/off avec des fichiers de configuration. <span id="Using_2_Config_Files"></span> ====Utiliser 2 fichiers de configuration==== '''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> Mettez ces 2 fichiers au bon endroit, puis dans la console écrivez : bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly_on.cfg</span> <span id="Using_1_Config_File"></span> ====Utiliser 1 fichier de configuration==== Vous pouvez réaliser la même chose utilisant un seul fichier de configuration. 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> Mettez ce fichier au bon endroit, puis dans la console écrivez : bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly.cfg</span> '''Note 1 :''' Cela suppose que votre clic gauche de la souris correspond au bond '''+fire'''. '''Note 2 :''' Si vous désactivez le deepfly alors que vous laissez enfoncé la touche '''+fire''', votre dummy va se bloquer en train de frapper, parce que '''cl_dummy_hammer''' est toujours à '''1'''. La commande '''cl_dummy_hammer 0''' dans le fichier '''deepfly_off.cfg''' corrige cela. <span id="Weapon_Swapping"></span> ====Changer d'arme==== Si votre dummy ne tient pas le marteau lorsque vous activez le bind, il alternera entre le pistolet et le marteau. Si vous voulez résoudre cela : <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">0</span> Maintenant, s'ils tiennent un pistolet lorsque vous commencez à utiliser le bind, ils passeront au marteau et resteront dans cette position après un tir de pistolet. Il y a cependant quelques avantages à ce que ce paramètre soit réglé sur '''1'''. <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">1</span> Vous pouvez par exemple vous tirer dessus avec le {{laser|laser}} avec une visée parfaite. Utiliser le {{shotgun|shotgun}} de cette manière peut également être pratique dans certaines conditions. [[File:Deepfly laser example.webm|351x198px|gif]] Pour gérer ces deux paramètres, vous pouvez soit créer un [https://wiki.ddnet.org/wiki/Binds#Toggles toggle], soit utiliser des [https://wiki.ddnet.org/wiki/Binds#Using_Config_Files fichiers de configuration], soit attacher ce paramètre aux binds de votre arme. bind <span style="color:green">[clef]</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> Bien sûr, cela ne fonctionne que si vous avez des binds dédiés aux armes, contrairement à '''+nextweapon''' et '''+prevweapon''' qui sont par défaut liés à '''mousewheelup'' et '''mousewheeldown'''. <span id="45°_Aiming"></span> ===Viser à 45°=== Ce bind vous permet de viser uniquement dans des angles de 45° lorsque vous maintenez la touche enfoncée. C'est utile pour tirer des grenades tout droit (pour les doubles explosions et certains autres scénario). 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> Gardez à l'esprit que si vous avez modifié '''cl_mouse_max_distance''' ou '''inp_mousesens''' par rapport à la valeur par défaut, l'utilisation de l'exemple ci-dessus réinitialisera ces paramètres à la valeur par défaut. Avant d'entrer les binds, vérifiez d'abord vos paramètres en tapant '''cl_mouse_max_distance''' et '''inp_mousesens''' dans la 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 [Votre Valeur]<span style="color:red">;</span> <span style="color:magenta">+toggle</span> <span style="color:blue">inp_mousesens</span> <span style="color:purple">1 [Votre Valeur]</span><span style="color:red">;</span> <span style="color:blue">+showhookcoll</span><span style="color:purple"><span style="color:red">"</span> '''Note:''' la ligne '''+showhookcoll''' est optionnelle. Elle permet simplement de savoir dans quelle direction vous visez, parce que les yeux de votre tee ne suivent pas naturellement l'angle à 45°, et votre arme ne montrera pas la direction non plus. <span id="Rainbow_Tee"></span> ===Tee arc-en-ciel=== Vous verrez parfois des joueurs changer rapidement de couleur pendant qu'ils jouent. Pour ce faire, il vous suffit de bind un changement de '''player_color_body''' à chacun de vos mouvements réguliers. 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> Vous pouvez procéder de la sorte pour plusieurs touches courantes et ainsi obtenir une variété de couleurs à faire défiler. '''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> Voici un exemple d'à quoi un fichier de 'tee arc-en-ciel' ressemble. Vous pourriez sauvegarder ce fichier et l'exécuter dans le bon chemin : <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee.cfg</span> Ou si vous souhaitez avoir une touche pour l'activer et le désactiver : '''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> Mettez ces deux fichiers dans le bon chemin, et dans la console : bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span> Vous pouvez bien sûr avoir plus d'originalité et changer les couleurs des pieds également : '''player_color_feet'''. Pour en savoir plus sur les couleurs, vous référer à la section des [https://wiki.ddnet.org/wiki/Binds#Colors couleurs]. '''Note:''' Cela suppose que vous avez des binds par défaut pour la gauche, la droite, le saut, le tir et le crochet. Il y a également un délai entre les changements de couleur, donc les changements ne se produisent pas au moment où vous appuyez sur une touche. <span id="See_also"></span> ==Voir également== *[https://forum.ddnet.org/viewtopic.php?t=2537 Just bind it] - Des binds utiles à copier *[https://forum.ddnet.org/viewtopic.php?t=5819 Take Binding to the next level, with Scripting!] - Un forum avec des binds plus avancés *[https://www.youtube.com/watch?v=sELsw2I2jj8& Teeworlds New Binding Tutorial by Klex] - Un tutoriel sur les binds de KlexMikrowelle
Toggle limited content width