Lag compensation of projectile shooting game

Posted by Denis Ermolin on Game Development See other posts from Game Development or by Denis Ermolin
Published on 2012-03-02T18:44:30Z Indexed on 2012/09/13 21:50 UTC
Read the original article Hit count: 248

I'm thinking about an algorithm for firing projectiles with lag compensation. Now I did find only one descent solution:

  1. Player hits fire button.
  2. Client sends input "fire".
  3. Client waits for server response.
  4. Server generates bullet then sends response to client.
  5. Client recieves response and finally fires projectile.

Is this solution only "trueway"? I find it the only one that can be fair to all of the clients. Valve in this case, doesn't compensate lag from rocket shots. I am feeling that I will not compensate it, too. I think that with today's bandwidth I can close my eyes on this problem, because I don't see any solutions with fair logic. What do you think?

© Game Development or respective owner

Related posts about networking

Related posts about actionscript-3