// clamp the velocity to something sane
if(length(m_Vel) > 6000)
m_Vel = normalize(m_Vel) * 6000;
at the end of ccharactercore::tick float Velspeed = length(vec2(m_pClient->m_Snap.m_pLocalCharacter->m_VelX/256.0f, m_pClient->m_Snap.m_pLocalCharacter->m_VelY/256.0f))*50;