20 #include "../../client/client.h"
75 if (!api->GetMotion(&dx, &dy))
94 speed = sqrt(mx * mx + my * my);
138 vec3_t prev_viewangles;
143 vec3_t velocity = { 0.f };
152 VectorScale(velocity, 5.f, velocity);
154 VectorScale(velocity, 0.1f, velocity);
187 if (cl_paused->integer != 2 || !
sv_paused->integer)
191 if (kb && strstr(kb,
"pause"))
194 if (
cvar_pt_dof->integer != 0 && down && (key == K_MWHEELUP || key == K_MWHEELDOWN))
213 float factor =
Key_IsDown(K_CTRL) ? 1.01f : 1.1f;
215 if (key == K_MWHEELDOWN)
216 factor = 1.f / factor;
218 float value = var->value;
220 value = max(minvalue, min(maxvalue, value));