Use chase_active 70 to enable, or any value >1.
You can also try 'set a 50', 'set b 50' or 'set c 50' in the console to fine tune your playermodels position.
chase_active 1 is still handled by Darkplaces.
http://paste.debian.net/24822/
- Code: Select all
// Assign Standard Viewflags
// Draw the World (and sky)
R_SetView(VF_DRAWWORLD, 1);
R_SetView(VF_FOV, GetCurrentFov(fov));
// ------------- add the following to client/View.qc at about line 283
// start with chase_active 70
// use 'set a 50', 'set b 50' or 'set c 50' to fine tune your playermodels position
// chase_active 1 uses the traditional Darkplaces chase camera
if (cvar("chase_active") > 1)
{
vector temp1;
vector temp2;
vector temp3;
temp1 = input_angles;
// temp1_x += cvar("x");
// temp1_y += cvar("y");
// temp1_z += cvar("z");
temp2 = pmove_org;
temp2_x += cvar("a") + cvar("chase_active") * cos(input_angles_x * DEG2RAD);
temp2_y += cvar("b") + cvar("chase_active") * cos(input_angles_x * DEG2RAD);
temp2_z += cvar("c") + cvar("chase_active") * sin(input_angles_x * DEG2RAD);
temp3_x = cvar("chase_active");
temp3_y = cvar("chase_active");
temp3_z = cvar("chase_active");
temp3 = vectoangles(temp3);
temp1_y += 180 + temp3_y - input_angles_y;
R_SetView(VF_ANGLES, temp1);
R_SetView(VF_ORIGIN, temp2);
}
// -------------
// Draw the Crosshair
float scoreboard_active;
scoreboard_active = Sbar_WouldDrawScoreboard();
// I have the following key binds in my autoexec.cfg
// bind / "toggle chase_active 0 50 75 100"
// bind c "toggle a -180 -165 -150 -135 -120 -105 -90 -75 -60 -45 -30 -15 0 15 30 45 60 75 90 105 120 135 150 165 180 ; echo a $a"
// bind v "toggle a 180 165 150 135 120 105 90 75 60 45 30 15 0 -15 -30 -45 -60 -75 -90 -105 -120 -135 -150 -165 -180 ; echo a $a"
// bind d "toggle b -180 -165 -150 -135 -120 -105 -90 -75 -60 -45 -30 -15 0 15 30 45 60 75 90 105 120 135 150 165 180 ; echo b $b"
// bind f "toggle b 180 165 150 135 120 105 90 75 60 45 30 15 0 -15 -30 -45 -60 -75 -90 -105 -120 -135 -150 -165 -180 ; echo b $b"
// bind e "toggle c -180 -165 -150 -135 -120 -105 -90 -75 -60 -45 -30 -15 0 15 30 45 60 75 90 105 120 135 150 165 180 ; echo c $c"
// bind r "toggle c 180 165 150 135 120 105 90 75 60 45 30 15 0 -15 -30 -45 -60 -75 -90 -105 -120 -135 -150 -165 -180 ; echo c $c"