MAX Auto Jump Code.
client.cpp
-------------------------------------------------------------------------------------------------------------
void CL_CreateMove (float frametime, struct usercmd_s *usercmd, int active)
-------------------------------------------------------------------------------------------------------------
//auto jump
if (usercmd->buttons&IN_FORWARD && me.alive && cvar.autojump)
{
if (me.pmVelocity[0]==0 && me.pmVelocity[1]==0 && me.pmVelocity[2]==0 )
{
usercmd->buttons |= IN_JUMP;
}
}