//Bhop
if(GetAsyncKeyState(VK_SPACE) && (ppmove->flags & FL_ONGROUND)) //if we are on the ground and spacebar is pressed...
{
int percent = (int)(100 * ( Vector(ppmove->velocity.x, ppmove->velocity.y, 0.0f).Length() / ppmove->maxspeed) ); //calculate our max speed percentage
if(percent < 170)//if we're below the speed cap...
{
pEngfuncs->pfnClientCmd("+jump;wait;-jump;wait"); //JUMP
}
}// -exrazile
//