1

Topic: Press and hold a button for dynamic cam?

The use of dynamic and static cam can be made more dynamic with pressing and hold a button, (eg. lshift for emotion).

2

Re: Press and hold a button for dynamic cam?

Did it, wanna see?

3

Re: Press and hold a button for dynamic cam?

Siile wrote:

Did it, wanna see?

Great, definitely smile

4 (edited by HMH 2014-04-18 00:31:13)

Re: Press and hold a button for dynamic cam?

Its also possible with ddnetclient. Just bind +toggle <configname> <value to change to> <standard value>.
ddnet.tw

edit:
+toggle would be pretty useful for standard client too btw.

Luck is allowed

5

Re: Press and hold a button for dynamic cam?

HMH wrote:

+toggle would be pretty useful for standard client too btw.

toggle and +toggle will be in 0.7 (see #888)

6

Re: Press and hold a button for dynamic cam?

So there is no need of a special command for dynamic camera smile. But then a tutorial would be badly needed.

Luck is allowed

7

Re: Press and hold a button for dynamic cam?

You can also pretty much achieve the same goal in vanilla client with some config abuse. See this old post of mine.

But... what if we tried more power?

8

Re: Press and hold a button for dynamic cam?

lolnameless wrote:

The use of dynamic and static cam can be made more dynamic with pressing and hold a button, (eg. lshift for emotion).

bind lshift "+toggle cl_mouse_followactor 60 0;cl_mouse_max_distance 800 400"
Use DDNet Client for this bind or some other Client that supports a dynamic camera bind.

There are three kinds of lies: lies, damned lies, and benchmarks.

9

Re: Press and hold a button for dynamic cam?

My solution looks something like this:

controls.h

int m_InputDynamicCamera;

controls.cpp:

Console()->Register("+dynamiccamera", "", CFGFLAG_CLIENT, ConKeyInputState, &m_InputDynamicCamera, "Dynamic camera");
if (m_InputDynamicCamera)
{
    g_Config.m_ClMouseFollowfactor = 60;
    g_Config.m_ClMouseMaxDistance = 1000;
    g_Config.m_ClMouseDeadzone = 300;
}
else
{
    g_Config.m_ClMouseFollowfactor = 0;
    g_Config.m_ClMouseMaxDistance = 400;
    g_Config.m_ClMouseDeadzone = 0;
}

binds.cpp

Bind(KEY_LCTRL, "+dynamiccamera");

Requires resetting controls once so left control gets binded. Correct lines to modify should be easy to spot.

10

Re: Press and hold a button for dynamic cam?

Maybe not the easiest solution, but it is still a working dyn-bind.

I created two configuration files, dynon.cfg and dynoff.cfg.

Say your key to bind is x.

dynon.cfg

cl_mouse_deadzone 300
cl_mouse_followfactor 60
cl_mouse_max_distance 1000

bind x "exec dynoff.cfg"

dynoff.cfg

cl_mouse_deadzone 0
cl_mouse_followfactor 0
cl_mouse_max_distance 400

bind x "exec dynon.cfg"

You may also want to insert inp_mousesens 394893485934545 for playing with 2 different senses..

Then you just have to add in your settings.cfg:

bind x "exec dynon.cfg"

11

Re: Press and hold a button for dynamic cam?

lush, you post is entirely wrong.

Guess you didnt read his post carefully enoght wink

How to database by FFanta: http://puu.sh/jdPVk/fa37a95ac2.png

12

Re: Press and hold a button for dynamic cam?

Kompl.exe wrote:

lush, you post is entirely wrong.

Guess you didnt read his post carefully enoght wink

Oh yes sry.
I really should read more carefully hmm