Binds: Difference between revisions
m →Nested binds: - added a bit about the maximum character limit in console |
→Deep Fly: - added a 1 config file method |
||
Line 253: | Line 253: | ||
The command '''cl_dummy_hammer 1''' is what is used for the regular Dummy Hammerfly bind in the games control options. By using a [https://wiki.ddnet.tw/wiki/Binds#Toggles toggle], you can make your dummy hammer you only when you fire, and can make an on/off switch with config files. | The command '''cl_dummy_hammer 1''' is what is used for the regular Dummy Hammerfly bind in the games control options. By using a [https://wiki.ddnet.tw/wiki/Binds#Toggles toggle], you can make your dummy hammer you only when you fire, and can make an on/off switch with config files. | ||
====Using 2 Config Files==== | |||
'''deepfly_on.cfg''' | '''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> <span style="color:purple">1 0<span style="color:red">"</span> | 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> <span style="color:purple">1 0<span style="color:red">"</span> | ||
Line 270: | Line 271: | ||
Put both of these in the correct path, and in console: | 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> | bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">deepfly_on.cfg</span> | ||
====Using 1 Config File ==== | |||
You can accomplish the same thing as above using only 1 config file. | |||
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> Deep Fly ON<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:purple">binds/deepfly.cfg</span><span style="color:orange">\</span><span style="color:red">""</span> | |||
'''Note 1:''' This assumes mouse1 is your '''+fire''' bind. | '''Note 1:''' This assumes mouse1 is your '''+fire''' bind. | ||
'''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. | '''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. | ||
==== Weapon Swapping ==== | |||
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: | 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> | <span style="color:blue">cl_dummy_restore_weapon</span> <span style="color:purple">0</span> | ||
Line 332: | Line 340: | ||
'''Note:''' This assumes you have default binds for left, right, jump, fire, and hook. | '''Note:''' This assumes you have default binds for left, right, jump, fire, and hook. | ||
==See also == | ==See also== | ||
*[https://forum.ddnet.tw/viewtopic.php?t=2537 Just bind it] - Useful binds available for copying | *[https://forum.ddnet.tw/viewtopic.php?t=2537 Just bind it] - Useful binds available for copying | ||
*[https://forum.ddnet.tw/viewtopic.php?t=5819 Take Binding to the next level, with Scripting!] - Another forum post about more advanced binds | *[https://forum.ddnet.tw/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 | *[https://www.youtube.com/watch?v=sELsw2I2jj8& Teeworlds New Binding Tutorial by Klex] - A video tutorial about binds by KlexMikrowelle |