albertz / openlierox

OpenLieroX - Liero clone / Worms realtime / 2D shooter
http://openlierox.net
Other
265 stars 60 forks source link

[Feature] show countdown for respawn on client #637

Open albertz opened 13 years ago

albertz commented 13 years ago

Converted from SourceForge issue 1989622, submitted by albertzeyer

Multiple things this will improve:

The client knows that the server received the information that the worm is dead.

The client can show a countdown to the next respawn (good if the respawn time is high like 30 secs or so).

If the count-down is over and the client did not receive the respawn after +1 secs or so, it can request it again.


Though, in all the cases, it also has to be ensured, that the client can not just randomly respawn when it like to (cheating) or that the server counts the dead twice.

albertz commented 13 years ago

Note that there is one thing that made this a bit more complicated: Currently, the network protocol is general enough so that the respawn time might not be as simple as a time-countdown. There could be a game mode with a more complicated logic about this where a time-countdown might not make sense.

To solve this, there could be some signal from the server like "spawn-countdown