1 (edited by Pathos 2015-08-24 17:33:04)

Topic: Is there a way to bind middle click to toggle dyn cam?

What would be the command line to make this possible? If there is only on/off available instead of toggle, what would be the command line for that?

SOLUTION #1 (thank you Broken for the link and thank you Ubuntu for the solution!):
1. F1
2. bind space "cl_mouse_deadzone 300; cl_mouse_followfactor 60; cl_mouse_max_distance 800; inp_mousesens 800"
3. bind lshift "cl_mouse_deadzone 0; cl_mouse_followfactor 0; cl_mouse_max_distance 400; inp_mousesens 400"
4. F1 to close -- press space to turn dyn cam on, press shift to turn it off!

SOLUTION #2 (by Landil):
1. open config_directory.bat in the teeworlds root
2. copy settings.cfg
3. Paste it twice and rename it to dynon.cfg and dynoff.cfg
4. Open dynon.cfg and alter/add these values :

cl_mouse_deadzone 300
    cl_mouse_followfactor 60
    cl_mouse_max_distance 800
   
    bind e "exec dynoff.cfg"

5. Open dynoff.cfg and alter/add these values:

cl_mouse_deadzone 0
    cl_mouse_followfactor 0
    cl_mouse_max_distance 400
 
    bind e "exec dynon.cfg"

6. Save both files.

7. Open settings.cfg and add

bind e "exec dynon.cfg"

2

Re: Is there a way to bind middle click to toggle dyn cam?

There is a very hackish way to use toggle, you have to use .cfg files iirc.

Not Luck, Just Magic.

3

Re: Is there a way to bind middle click to toggle dyn cam?

https://www.teeworlds.com/forum/viewtopic.php?id=3455

4

Re: Is there a way to bind middle click to toggle dyn cam?

Not just toggle.. I think press and hold is better.