Commit cd6fe9cf authored by Samual's avatar Samual

Fix velocity zoom during intermission

parent 1b130c7c
......@@ -166,15 +166,19 @@ vector GetCurrentFov(float fov)
if(autocvar_cl_velocityzoom && autocvar_cl_velocityzoom_type) // _type = 0 disables velocity zoom too
{
v = pmove_vel;
if(csqcplayer)
v = csqcplayer.velocity;
switch(autocvar_cl_velocityzoom_type)
if(intermission) { curspeed = 0; }
else
{
case 3: curspeed = max(0, v_forward * v); break;
case 2: curspeed = (v_forward * v); break;
case 1: default: curspeed = vlen(v); break;
v = pmove_vel;
if(csqcplayer)
v = csqcplayer.velocity;
switch(autocvar_cl_velocityzoom_type)
{
case 3: curspeed = max(0, v_forward * v); break;
case 2: curspeed = (v_forward * v); break;
case 1: default: curspeed = vlen(v); break;
}
}
velocityzoom = bound(0, drawframetime / max(0.000000001, autocvar_cl_velocityzoom_time), 1); // speed at which the zoom adapts to player velocity
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment