

If we aren't sprinting and aren't ducked, it is set to 0.5, else it is set to 1.įloat flSpeedBoostPerc = ( !pMoveData->m_bIsSprinting & !player->m_Local.m_bDucked ) ? 0.5f : 0.1f This is calculated based on the state of the player when they jump. Calculate the speed multiplier flSpeedBoostPerc for figuring out our speed addition and maximum speeds.The game goes through a few steps to decide how much to add to or subtract from the player's speed.

How the game calculates and bounds your speed when bunnyhopping Substitute flMaxSpeed with the Speed limits from the table above and you will have your new speed. Walking is also recommended as it allows for better air control between jumps.Ĭompounding all the flaws shown below, we can calculate our next speed after an ABH (given that the jump is perfect and there is no angle change) with the equation below: (2) The only states you can enter without the suit is walking and crouching.ĭucking while doing ABH is recommended since it has the lowest speedcap of all states at 209 UPS. Note that some conditions will not give you speed because of how the speed is calculated. The table below will show these thresholds and the maximum speed you can get on your first ABH after doing a sprint jump (a normal run-up jump if without a suit), turning around exactly 180 degrees then entering the specified state. The speed threshold is dependent on your movement state when you jump. The amount of backward speed the game applies on you is based on your speed the moment before the jump so the faster you are when you jump, the more speed you'll get.īecause of this, you can accelerate extremely fast, much faster than bunnyhopping.ĪBHing and Bunnyhopping comparison chart, shows the speed gain on each jump (no sprint). As such, when you are moving backwards, the game will effectively accelerate you. When this happens, the game will try to slow you down by applying speed opposite your viewing direction, rather than your movement direction. Your speed is capped when the speed on your jump exceeds a certain threshold. Binding +jump to mouse wheel or using a jumping script is recommended as it makes timing jumps a lot easier.ĪBH works due to Valve not accounting for the direction of the player's speed when capping it, thus leading to the directly opposite result of accelerating the player even further. It's recommended not to hold S or W (or your respective keys for moving forwards and back) while ABHing. Jump forward, turn around in the air and jump right as you land. 2.2 How the game calculates and bounds your speed when bunnyhopping.
