when the player jumps from the ground, set the bounce counter to whatever amount of bounces you want. then, when the player hits the ground, if the bounce counter is bigger than 0, set the y velocity to -75% of the original y velocity. should work in theory.