How to make a projectile bounce

Thanks for that. Saved me some time!