Unofficial Hacker News client - receive Push Notifications on replies.

The Math Behind Counter-Strike Surfing (opens external site)

425 points by v3gas 3 days ago | healeycodes.com | 73 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (2)

  1. This was an absolute delight to read. Surf has a sweet spot in my heart -- it's what stopped me from driving up the walls when I injured my wrist and could only use one hand for long stretches of time. My mouse had a buncha buttons, so I mapped them to A, D, jump, and duck. I dunno why but I felt like ducking made me faster. Probably not, but... rituals, and maybe carried over from crouch jumping. :-)

    One minor nitpick:

    > Gravity pulls you down at 800 u/s every single second.

    I was pretty sure it's actually 600. It turns out different Valve games use different values, so both are correct. When I surfed in CSS I am almost sure it was 600.

    --

    Either way, this was an absolute delightful dive into something that kept me somewhat sane -- funnily enough, while I was working on a Source game. Thank you for writing this up and putting so much care into it!

    Replies (1)
    1. It's 800 in CS (all CS, I think, via `sv_gravity`) and I just edited the post to make this clearer as it's e.g. 600 in HL2 (and I jump around between games a bit).

      Really glad you enjoyed it :)