TeeworldsCN / ddnet-pvp

DDNet based server designed for PvP
Other
10 stars 9 forks source link

[feat] Timeout Protection for 0.7 #7

Open TsFreddie opened 3 years ago

TsFreddie commented 3 years ago

Not sure why we can't do timeout protection for 0.7 yet. I'm assuming 0.7 doesn't support timeout protection because we can't let 0.7 client switch its clientid.

But we could make a clientid swap for the specified player (integrate it with the already existing PlayerMap, like how we do 16 player client support, but we only need to swap a pair of ids, which should be easy to do)

see https://github.com/TeeworldsCN/ddnet-pvp/blob/06799ad79628eadea82759a77c925aeb2749cb48/src/game/server/gamecontext.cpp#L3757

TsFreddie commented 3 years ago

We should also contribute it to upstream if we figured this out.