c++ static float s_SpeedBias = 5.0f; s_SpeedBias += 10.0f * DeltaTime; s_SpeedBias -= length(m_pClient->m_pControls->m_MousePos - s_LastMousePos) * DeltaTime; s_SpeedBias = clamp(s_SpeedBias, 0.5f, 5.0f);