multiplayer survivability due to lag
So far as I can tell, multiplayer servers assume the player to be continuously actively moving in a given direction if that player sends a movement command (by pressing WASD, for example) until such time as that player sends a stop-moving command (normally by releasing the movement key on the keyboard). Functionally, the emergent problem is that if you tap a movement key immediately prior to a lag spike, the server assumes the player has chosen to continue moving in that direction through part or all of that lag spike. In order to dramatically reduce player respawns due to lag deaths, consider changing this to a "keep-alive" command scheme. That is, if the player client doesn't send a new "I'm doing this" set of commands every so many milliseconds, then the server should assume that command has expired and force the player to stop executing commands which fail to send keep-alive refreshes.
shared this idea 17/08/17 20:16