Topic: [QUESTION] Dynamic Cam
I've got a question, how can i switch the Dynamic Cam on and of per bind?
You are not logged in. Please login or register.
Teeworlds Forum → Development → [QUESTION] Dynamic Cam
I've got a question, how can i switch the Dynamic Cam on and of per bind?
It is possible only by trickery. U have to create two additional config files. Name them dynoff.cfg and dynon.cfg ( just an example ) and place them in teeworlds config dir ( ~/.teeworlds on linux )
dynoff.cfg:
[command to turn off dyn cam]
bind t "exec dynon.cfg"
dynon.cfg:
[command to turn on dyn can]
bint t "exec dynoff.cfg"
Then u can switch with the t key. Dont forget to add
bind t "exec dynon.cfg"'
into your settings.cfg
Thx^^
mmmh i tried it but it didnt work
i did it so how u said it to me
open config_directory.bat in the teeworlds root
copy settings.cfg
Paste it twice and rename it to dynon.cfg and dynoff.cfg
open dynon.cfg
alter/add these values
cl_mouse_deadzone 300
cl_mouse_followfactor 60
cl_mouse_max_distance 800
bind e "exec dynoff.cfg"
open dynoff.cfg
alter/add these values:
cl_mouse_deadzone 0
cl_mouse_followfactor 0
cl_mouse_max_distance 400
bind e "exec dynon.cfg"
save both files.
Open settings.cfg and add
bind e "exec dynon.cfg"
save it, that's it
Or :
bind X "cl_mouse_deadzone 300; cl_mouse_followfactor 60; cl_mouse_max_distance 1000" #dynamic camera ON
bind Y "cl_mouse_deadzone 0; cl_mouse_followfactor 0; cl_mouse_max_distance 400" #dynamic camera OFF
I only can switch on dyn cam
did it exactly how u wrote it
aaah thx ubuntu you're my hero
ubu's way is working for me too, gj.
but i'd appreciate a working way with both binds at 1 key, for example e or q.
someone know how?
tried landils solution but didnt work
lol
guy just go in settings and change it
don't need command for this
UPDATE:
XDDD
only now i saw "per bind"
sorry
LOL
*SLEEPY*
ubu's way is working for me too, gj.
but i'd appreciate a working way with both binds at 1 key, for example e or q.
someone know how?
tried landils solution but didnt work
You cannot bind a "toggle dynamic cam" function in the pure Teeworlds client.
xake wrote:ubu's way is working for me too, gj.
but i'd appreciate a working way with both binds at 1 key, for example e or q.
someone know how?
tried landils solution but didnt workYou cannot bind a "toggle dynamic cam" function in the pure Teeworlds client.
Yes, you can just as torch described, but you need to use separate configuration files.
The solution is to use torch's template but mix Ubuntu's command where torch put [insert command here].
Here you go:
dynoff.cfg:
cl_mouse_deadzone 0
cl_mouse_followfactor 0
cl_mouse_max_distance 400
bind X "exec dynon.cfg"
dynon.cfg:
bind X cl_mouse_deadzone 300
cl_mouse_followfactor 60
cl_mouse_max_distance 1000
bind X "exec dynoff.cfg"
Then you can switch with the t key. Dont forget to add
bind X "exec dynon.cfg"'
Replace "X" with the key you'd like.
See torch's and Landil's posts for details on where to put the files.
Dune wrote:xake wrote:ubu's way is working for me too, gj.
but i'd appreciate a working way with both binds at 1 key, for example e or q.
someone know how?
tried landils solution but didnt workYou cannot bind a "toggle dynamic cam" function in the pure Teeworlds client.
Yes, you can just as torch described, but you need to use separate configuration files.
The solution is to use torch's template but mix Ubuntu's command where torch put [insert command here].
Here you go:
dynoff.cfg:
cl_mouse_deadzone 0
cl_mouse_followfactor 0
cl_mouse_max_distance 400
bind X "exec dynon.cfg"dynon.cfg:
bind X cl_mouse_deadzone 300
cl_mouse_followfactor 60
cl_mouse_max_distance 1000
bint X "exec dynoff.cfg"Then u can switch with the t key. Dont forget to add
bind X "exec dynon.cfg"'
Replace "X" with the key you'd like.
See torch's and Landil's posts for details on where to put the files.
x= always same letter like p in every part, on as off or x= in on part p in off part o?
It is possible only by trickery. U have to create two additional config files. Name them dynoff.cfg and dynon.cfg ( just an example ) and place them in teeworlds config dir ( ~/.teeworlds on linux )
dynoff.cfg:[command to turn off dyn cam] bind t "exec dynon.cfg"
dynon.cfg:
[command to turn on dyn can] bint t "exec dynoff.cfg"
Then u can switch with the t key. Dont forget to add
bind t "exec dynon.cfg"'
into your settings.cfg
2nd "binT" does not excist and with binD does not work why?
he means bind, not bint. don't use capitals maybe.
also, no bumps please.
Teeworlds Forum → Development → [QUESTION] Dynamic Cam
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.