Reading the usual resources on multiplayer games (1, 2, 3); I have started working on my own multiplayer game.
I used a naive approach that for every input I receive from a client, I immediately run it on the server.
For simple units (soldiers) everything works well, however I have an issue with "always moving" units (such as jet fighters); They require queuing inputs on the server (small delay, less than 100ms)and performing them in delay - and I read elsewhere (1, 2) that you should allow a window to receive inputs longer than said delay, since latency is variable (and could easily reach over 100ms) and reconcile the player's input.
Now I understand how this works for simple input such as movement, but what about using weapons / more advanced input?
What happens if player input came in delay, where he wishes to fire his weapon - what do I do? When do I notify other players of the shot? What about it's result? What if my cool-downs are out of sync due to this reconciliation?
Thanks!