Hacker News new | ask | show | jobs
by Dove 4275 days ago
A further thought: this is another of the fundamental tradeoffs in doing this sort of design work.

In a laggy environment, you can either have dodging work 100% correctly client side, if you dodged it, it didn't hit you, no questions asked . . . or you can have aiming work that way, if you hit it, you hit it, no questions asked.

You can have one or the other. You cannot have both. (And in a server-based setup, you generally get neither).

And I think which you choose (or which you choose to emphasize, if you give both up) will depend on what sort of game it is. In an aiming-heavy, mostly fast-weapon or instant-hit FPS (like maybe DOOM), you should pick aiming. In slow-weapon, slow-ship, combat-flight-maneuver-oriented Descent, the original developers correctly picked dodging.

Which highlights something else: When doing netcode for an FPS, your engineering decisions are game design decisions. Never overlook that.

2 comments

> "When doing netcode for an FPS, your engineering decisions are game design decisions."

Of particular note: your engineering decisions directly affect which tactics are viable and to what degree. Can you wait for the last instant to dodge, or do you need to dodge a shot well before it reaches you? Can you kill a laggy player before they have a chance to react, or can they dodge your shots long after they appeared to hit? Can a player with a better internet connection control an area simply by virtue of their shots taking effect sooner (destroying an opponent, or at least wrecking their aim, before their shot gets counted as having fired)?

This came up in the Descent series with a change to the networking model between Descent 2 and 3. The top competitive communities didn't consider Descent 3 to be "real Descent" because the move to client-server (as well as physics changes) changed the gamescape so drastically.

[Disclosure: I'm married to Dove, and we have been playing Descent together for 16 years.]

Great thoughts in this tread, thanks.

In Battlefield 3 and 4, DICE chose to implement the latter option (aiming and hit detection are clientside, no questions asked). The tradeoff - and I'm sure you'd agree there is always a tradeoff no matter how we deal with latency - is that as the person being shot at, you'll frequently die some fraction of a second after getting behind solid cover, because you weren't behind cover just yet on your opponent's screen when he shot you.

This is certainly frustrating and frequently complained about, but I think it's the lesser of various evils for these particular games.