The Math Behind Counter-Strike Surfing
Web page · https://healeycodes.com/the-math-behind-counter-strike-surfing
First seen by Oriel on .
AI summary
The article explains how Quake and Source engine movement lets players build speed by air-strafing along steep ramps, then describes a beam-search bot that nearly matches a surf-map world record.
- Source's Accelerate() and AirAccelerate() limit acceleration in the direction of input, not total velocity; strafing repeatedly refreshes the available air acceleration while avoiding friction.
- Ramps steeper than about 45.57° are treated as air, so gravity pulls players along their faces; ramp angle and server tick rate affect speed, control, and how steeply players can stay attached.
- Because sv_maxvelocity is capped per axis, a 3500 u/s limit permits about 4950 u/s horizontally on a diagonal and roughly 6,062 u/s across three axes.
- The bot searches candidate inputs with a beam-search loop across 120 puppets, retaining the best state in each map grid cell; its 19.47-second run was about 1.3 seconds slower than the world record.
- In one explored section, the bot tested 6,317 paths: 451 died and 37 passed through the door; the author suggests a human-in-the-loop approach may be optimal.
#counter-strike #source engine #game physics #beam search
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 419, latest observation ; +416 over observed period since
- Lobsters: 48, latest observation ; +47 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 71, latest observation ; +71 over observed period since
- Lobsters: 3, latest observation ; +3 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50665337 | https://healeycodes.com/the-math-behind-counter-strike-surfing Read discussion |
| Lobsters | 8tyiy7 | https://healeycodes.com/the-math-behind-counter-strike-surfing Read discussion |